-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
melkent
committed
Nov 16, 2024
1 parent
a783c5f
commit f613fff
Showing
14 changed files
with
129 additions
and
772 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import SignUpButton from "../../components/Buttons/SignUpButton"; | ||
import Navbar from "../../components/Navbar/Navbar"; | ||
|
||
const mainColour = "#646cff"; | ||
|
||
export default function Home() { | ||
return ( | ||
<div className="home-container"> | ||
<Navbar variant="homepage" /> | ||
<CTASection mainColour={mainColour} /> | ||
</div> | ||
); | ||
} | ||
|
||
function CTASection() { | ||
return ( | ||
<div className="cta-section"> | ||
<h1> | ||
Welcome to <br /> | ||
<span style={{ color: mainColour }}>FlowLeaflets</span> | ||
</h1> | ||
<p className="cta-paragraph"> | ||
Detailed caselogs for patients you see, vital care for those in need, | ||
globally | ||
</p> | ||
<SignUpButton /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { useState, Fragment } from 'react'; | ||
|
||
import Box from '@mui/material/Box'; | ||
import Stepper from '@mui/material/Stepper'; | ||
import Step from '@mui/material/Step'; | ||
import StepLabel from '@mui/material/StepLabel'; | ||
import Button from '@mui/material/Button'; | ||
import Typography from '@mui/material/Typography'; | ||
|
||
const steps = ['Step 1', 'Step 2', 'Step 3']; | ||
|
||
export default function HorizontalLinearStepper() { | ||
const [activeStep, setActiveStep] = useState(0); | ||
|
||
const handleNext = () => { | ||
setActiveStep((prevActiveStep) => prevActiveStep + 1); | ||
}; | ||
|
||
const handleBack = () => { | ||
setActiveStep((prevActiveStep) => prevActiveStep - 1); | ||
}; | ||
|
||
return ( | ||
<Box sx={{ width: '100%' }}> | ||
<Stepper activeStep={activeStep}> | ||
{steps.map((label) => { | ||
const stepProps = {}; | ||
const labelProps = {}; | ||
return ( | ||
<Step key={label} {...stepProps}> | ||
<StepLabel {...labelProps}>{label}</StepLabel> | ||
</Step> | ||
); | ||
})} | ||
</Stepper> | ||
{activeStep === steps.length ? ( | ||
<Fragment> | ||
<Typography sx={{ mt: 2, mb: 1 }}> | ||
All steps completed - you're finished | ||
</Typography> | ||
<Box sx={{ display: 'flex', flexDirection: 'row', pt: 2 }}> | ||
<Box sx={{ flex: '1 1 auto' }} /> | ||
</Box> | ||
</Fragment> | ||
) : ( | ||
<Fragment> | ||
<Typography sx={{ mt: 2, mb: 1 }}>Step {activeStep + 1}</Typography> | ||
<Box sx={{ display: 'flex', flexDirection: 'row', pt: 2 }}> | ||
<Button | ||
backgroundColor="inherit" | ||
disabled={activeStep === 0} | ||
onClick={handleBack} | ||
sx={{ mr: 1 }} | ||
> | ||
Back | ||
</Button> | ||
<Box sx={{ flex: '1 1 auto' }} /> | ||
<Button onClick={handleNext}> | ||
{activeStep === steps.length - 1 ? 'Save to Log History' : 'Next'} | ||
</Button> | ||
</Box> | ||
</Fragment> | ||
)} | ||
</Box> | ||
); | ||
} |