Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import Layout from '@/components/layout/Layout';
import ButtonLink from '@/components/links/ButtonLink';
import Seo from '@/components/Seo';

import {
FadeFramerItem,
WidthFramerContainer,
WidthFramerItem,
} from '@/utils/framer';

/**
* SVGR Supportgray
* Caveat: No React Props Type.
Expand Down Expand Up @@ -430,6 +436,52 @@ const HomePage: React.FC<EventItem> = ({ slug, frontMatter }) => {
</div>
</div>
</motion.div>

<div className='mx-auto mt-20 max-w-screen-xl'>
<motion.div
variants={WidthFramerContainer}
initial='hidden'
whileInView='show'
viewport={{ once: true, amount: 1 }}
className='relative h-[40px] w-full'
>
<div className='h-full rounded-full border border-blue-100 bg-white shadow-[inset_0_0_8px_rgba(0,0,0,0.3)]'>
<span className='absolute bottom-[45px] right-2 text-base font-medium'>
4000 participants
</span>
</div>

<motion.div
variants={WidthFramerItem}
className='absolute inset-0 max-w-[78%] rounded-full bg-blue-300'
/>

<motion.div
variants={FadeFramerItem}
className='completed-consent-text'
>
<span className='block text-xl font-bold'>3,140+</span>
<span className='text-[16px] font-normal'>
participants have completed the consent process
</span>
</motion.div>

<motion.div
variants={WidthFramerItem}
className='absolute inset-0 max-w-[40%] rounded-full bg-blue-600'
/>

<motion.div
variants={FadeFramerItem}
className='completed-study-text'
>
<span className='block text-xl font-bold'>1590+</span>
<span className='text-[16px] font-normal'>
participants have completed in-person study visit
</span>
</motion.div>
</motion.div>
</div>
</section>

<section className='bg-gradient-to-t from-sky-100 to-white py-20'>
Expand Down
Loading