Skip to content

Commit affd846

Browse files
Merge pull request #2070 from Sam-61s/fix/footer-external-links
fix: Add target="_blank" and security attributes to footer external links
2 parents 974ad0e + 28ead5d commit affd846

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/Layout.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ const Footer = () => (
353353
<div className='flex flex-col text-center sm:text-left'>
354354
<a
355355
href='https://opencollective.com/json-schema'
356+
target='_blank'
357+
rel='noopener noreferrer'
356358
className='text-white mb-2 transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
357359
>
358360
Open Collective
@@ -371,6 +373,8 @@ const Footer = () => (
371373
<div className=''>
372374
<a
373375
href='https://json-schema.org/slack'
376+
target='_blank'
377+
rel='noopener noreferrer'
374378
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
375379
>
376380
<Image
@@ -386,6 +390,8 @@ const Footer = () => (
386390
<div className=''>
387391
<a
388392
href='https://x.com/jsonschema'
393+
target='_blank'
394+
rel='noopener noreferrer'
389395
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
390396
>
391397
<Image
@@ -401,6 +407,8 @@ const Footer = () => (
401407
<div className=''>
402408
<a
403409
href='https://linkedin.com/company/jsonschema/'
410+
target='_blank'
411+
rel='noopener noreferrer'
404412
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
405413
>
406414
<Image
@@ -416,6 +424,8 @@ const Footer = () => (
416424
<div className=''>
417425
<a
418426
href='https://www.youtube.com/@JSONSchemaOrgOfficial'
427+
target='_blank'
428+
rel='noopener noreferrer'
419429
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
420430
>
421431
<Image
@@ -431,6 +441,8 @@ const Footer = () => (
431441
<div className=''>
432442
<a
433443
href='https://github.com/json-schema-org'
444+
target='_blank'
445+
rel='noopener noreferrer'
434446
className='flex items-center text-white group transition-transform duration-300 ease-out hover:scale-105 hover:-translate-y-[2px]'
435447
>
436448
<Image

0 commit comments

Comments
 (0)