Skip to content

Commit 496460c

Browse files
authored
Merge pull request #15 from cherryontech/feat/onboarding
feat(onboarding): add gradient background and onboarding quiz content
2 parents 2a32421 + 8e13129 commit 496460c

1 file changed

Lines changed: 50 additions & 6 deletions

File tree

src/pages/Onboarding.jsx

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,53 @@
1-
function Onboarding() {
1+
import Button from '../components/Button';
2+
3+
export default function Onboarding() {
24
return (
3-
<div className="min-h-screen bg-emerald-100 flex items-center justify-center">
4-
<h1 className="text-4xl font-bold text-lime-500">Onboarding Page! 🎉</h1>
5+
<div className="flex justify-center items-center h-screen bg-gradient-to-b from-nyanza via-celeste via-50% to-white to-50%">
6+
{/* quiz card */}
7+
<div className="flex flex-col justify-center items-center gap-10 bg-white rounded-[10px] h-[80vh] w-[60vw] shadow-[0_4px_15px_8px_rgba(30,30,30,0.10)]">
8+
{/* title and subtitle */}
9+
<div className='flex flex-col gap-3'>
10+
<h1 className='text-3xl font-medium'>What are some of your concerns today?</h1>
11+
<p className='text-2xl font-normal'>Your selections help us customize your dashboard</p>
12+
</div>
13+
{/* button quiz grid */}
14+
<div className='grid grid-cols-2 grid-rows-3 gap-y-10 gap-x-14'>
15+
<Button
16+
size='md'
17+
color='secondary'
18+
label='Sleep'
19+
/>
20+
<Button
21+
size='md'
22+
color='secondary'
23+
label='Postpartum Anxiety'
24+
/><Button
25+
size='md'
26+
color='secondary'
27+
label='Self-Doubt'
28+
/>
29+
<Button
30+
size='md'
31+
color='secondary'
32+
label='Stress'
33+
/>
34+
<Button
35+
size='md'
36+
color='secondary'
37+
label='Saying No'
38+
/>
39+
<Button
40+
size='md'
41+
color='secondary'
42+
label='Gender Bias'
43+
/>
44+
</div>
45+
{/* next and skip buttons */}
46+
<div className='flex flex-row gap-8'>
47+
<Button size='sm' color='secondary' label='Skip'/>
48+
<Button size='sm' color='primary' label='Next'/>
49+
</div>
50+
</div>
551
</div>
652
);
7-
}
8-
9-
export default Onboarding;
53+
}

0 commit comments

Comments
 (0)