Skip to content

Commit 1c25e8a

Browse files
committed
fix: update in person participants count and style
1 parent f9537d5 commit 1c25e8a

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/pages/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,37 +239,37 @@ const HomePage: React.FC<EventItem> = ({ slug, frontMatter }) => {
239239
<div className='h-full rounded-full border border-blue-100 bg-white shadow-[inset_0_0_8px_rgba(0,0,0,0.3)]'>
240240
<motion.div
241241
variants={WidthFramerItem}
242-
className='absolute inset-0 max-w-[100%] rounded-full bg-blue-300'
242+
className='absolute inset-0 max-w-[77%] rounded-full bg-blue-300'
243243
/>
244244
<motion.div
245245
variants={FadeFramerItem}
246246
className='total-participants'
247247
>
248248
<span className='block text-xl font-bold'>Goal</span>
249-
<span className='max-w-[180px] text-[16px] font-normal max-md:max-w-[130px]'>
249+
<span className='max-w-[200px] text-[16px] font-normal max-md:max-w-[130px]'>
250250
data collection from 4,000 participants
251251
</span>
252252
</motion.div>
253253
<motion.div
254254
variants={FadeFramerItem}
255-
className='completed-consent-text'
255+
className='completed-consent-text w-full'
256256
>
257257
<span className='block text-xl font-bold'>4,920+</span>
258-
<span className='max-w-[180px] text-[16px] font-normal max-md:max-w-[130px]'>
258+
<span className='max-w-[200px] text-[16px] font-normal max-md:max-w-[130px]'>
259259
participants completed the consent process
260260
</span>
261261
</motion.div>
262262

263263
<motion.div
264264
variants={WidthFramerItem}
265-
className='absolute inset-0 max-w-[85%] rounded-full bg-blue-600'
265+
className='absolute inset-0 max-w-[69%] rounded-full bg-blue-600'
266266
/>
267267
<motion.div
268268
variants={FadeFramerItem}
269269
className='completed-study-text'
270270
>
271-
<span className='block text-xl font-bold'>3,390+</span>
272-
<span className='max-w-[180px] text-[16px] font-normal max-md:max-w-[140px]'>
271+
<span className='block text-xl font-bold'>3,570+</span>
272+
<span className='max-w-[200px] text-[16px] font-normal max-md:max-w-[140px]'>
273273
participants completed in-person study visit
274274
</span>
275275
</motion.div>

src/styles/globals.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@
162162
bottom: 85px;
163163
left: calc(99% - 12px);
164164
z-index: 4;
165-
width: 150px;
166165
}
167166

168167
.completed-consent-text > span {
@@ -187,9 +186,8 @@
187186

188187
.completed-study-text {
189188
position: absolute;
190-
left: calc(85% - 12px);
189+
left: calc(69% - 12px);
191190
z-index: 4;
192-
width: 150px;
193191
bottom: 85px;
194192
}
195193

@@ -215,7 +213,7 @@
215213
.total-participants {
216214
position: absolute;
217215
top: 85px;
218-
left: calc(93% - 12px);
216+
left: calc(77% - 12px);
219217
z-index: 4;
220218
width: 240px;
221219
}

0 commit comments

Comments
 (0)