Skip to content

Commit dcf4ea4

Browse files
Merge pull request #1916 from Adityakumar37/footer
Enhancement: Add Consistent Hover Effects to Footer Community Links
2 parents 477dd22 + 841ef8a commit dcf4ea4

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

components/Layout.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,16 @@ const Footer = () => (
351351
<div className='flex flex-col text-center sm:text-left'>
352352
<a
353353
href='https://opencollective.com/json-schema'
354-
className='text-white mb-2'
354+
className='text-white mb-2 transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
355355
>
356356
Open Collective
357357
</a>
358358
</div>
359359
<div className='flex flex-col text-center sm:text-left'>
360-
<Link href='/overview/code-of-conduct' className='text-white mb-2'>
360+
<Link
361+
href='/overview/code-of-conduct'
362+
className='text-white mb-2 transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
363+
>
361364
Code of Conduct
362365
</Link>
363366
</div>
@@ -366,13 +369,13 @@ const Footer = () => (
366369
<div className=''>
367370
<a
368371
href='https://json-schema.org/slack'
369-
className='flex items-center text-white'
372+
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
370373
>
371374
<Image
372375
src='/img/logos/slack_logo_small-white.svg'
373376
width={16}
374377
height={16}
375-
className=' mr-2'
378+
className='mr-2 group-hover:brightness-125 transition-all duration-300'
376379
alt='Slack logo'
377380
/>
378381
Slack
@@ -381,13 +384,13 @@ const Footer = () => (
381384
<div className=''>
382385
<a
383386
href='https://x.com/jsonschema'
384-
className='flex items-center text-white'
387+
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
385388
>
386389
<Image
387390
src='/img/logos/x-twitter.svg'
388391
width={16}
389392
height={16}
390-
className=' mr-2'
393+
className='mr-2 group-hover:brightness-125 transition-all duration-300'
391394
alt='X logo'
392395
/>{' '}
393396
X
@@ -396,13 +399,13 @@ const Footer = () => (
396399
<div className=''>
397400
<a
398401
href='https://linkedin.com/company/jsonschema/'
399-
className='flex items-center text-white'
402+
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
400403
>
401404
<Image
402405
src='/img/logos/icons8-linkedin-2.svg'
403406
width={16}
404407
height={16}
405-
className=' mr-2'
408+
className='mr-2 group-hover:brightness-125 transition-all duration-300'
406409
alt='LinkedIn logo'
407410
/>
408411
LinkedIn
@@ -411,13 +414,13 @@ const Footer = () => (
411414
<div className=''>
412415
<a
413416
href='https://www.youtube.com/@JSONSchemaOrgOfficial'
414-
className='flex items-center text-white'
417+
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
415418
>
416419
<Image
417420
src='/img/logos/icons8-youtube.svg'
418421
width={16}
419422
height={16}
420-
className='mr-2'
423+
className='mr-2 group-hover:brightness-125 transition-all duration-300'
421424
alt='YouTube logo'
422425
/>
423426
Youtube
@@ -426,13 +429,13 @@ const Footer = () => (
426429
<div className=''>
427430
<a
428431
href='https://github.com/json-schema-org'
429-
className='flex items-center text-white'
432+
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
430433
>
431434
<Image
432435
src='/img/logos/github_logo-white.svg'
433436
width={16}
434437
height={16}
435-
className='mr-2'
438+
className='mr-2 group-hover:brightness-125 transition-all duration-300'
436439
alt='GitHub logo'
437440
/>
438441
GitHub

0 commit comments

Comments
 (0)