Skip to content

Commit 6ada5bd

Browse files
committed
feat: replace anchor tag with <Link />
1 parent 84800b9 commit 6ada5bd

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

apps/www/src/app/(main)/_components/ContactMe/ContactMe.tsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { clsx } from 'clsx/lite';
22

3+
import { Link } from '@acme/ui/Link';
4+
35
import { fadeUp } from '~/config/animations';
46

57
type Props = { variant: 'expanded' | 'collapsed' };
@@ -20,30 +22,29 @@ export const ContactMe = ({ variant }: Props) => {
2022
<p className='text-sm text-grey-text sm:text-base'>
2123
If you have any questions, opportunities or would just like to say
2224
hello, then feel free to send me a DM (
23-
<a
24-
className='text-grey-text-contrast decoration-grey-text-contrast decoration-dashed underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-grey-text-contrast focus-visible:ring-offset-1'
25+
<Link
26+
isExternal
27+
className='text-sm text-grey-text-contrast sm:text-base'
2528
href='https://dm.new/codingcodax'
26-
rel='noopener noreferrer'
27-
target='_blank'
2829
>
2930
X
30-
</a>{' '}
31+
</Link>{' '}
3132
or{' '}
32-
<a
33-
className='text-grey-text-contrast decoration-grey-text-contrast decoration-dashed underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-grey-text-contrast focus-visible:ring-offset-1'
33+
<Link
34+
isExternal
35+
className='text-sm text-grey-text-contrast sm:text-base'
3436
href='https://www.linkedin.com/in/codingcodax'
35-
rel='noopener noreferrer'
36-
target='_blank'
3737
>
3838
LinkedIn
39-
</a>
39+
</Link>
4040
) or if you prefer, you can{' '}
41-
<a
42-
className='text-grey-text-contrast decoration-grey-text-contrast decoration-dashed underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-grey-text-contrast focus-visible:ring-offset-1'
41+
<Link
42+
isExternal
43+
className='text-sm text-grey-text-contrast sm:text-base'
4344
href='emailto:[email protected]'
4445
>
4546
email me
46-
</a>
47+
</Link>
4748
.
4849
</p>
4950
</div>

apps/www/src/app/(main)/_components/Footer/Footer.tsx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Link } from '@acme/ui/Link';
2+
13
export const Footer = () => {
24
const currentYear = new Date().getFullYear();
35

@@ -11,36 +13,33 @@ export const Footer = () => {
1113

1214
<ul className='flex gap-2'>
1315
<li>
14-
<a
15-
className='text-sm text-grey-text decoration-grey-text decoration-dashed decoration-1 underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-grey-text focus-visible:ring-offset-1'
16+
<Link
17+
isExternal
18+
className='text-sm text-grey-text'
1619
href='https://github.com/codingcodax'
17-
rel='noopener noreferrer'
18-
target='_blank'
1920
>
2021
GitHub
21-
</a>
22+
</Link>
2223
</li>
2324

2425
<li>
25-
<a
26-
className='text-sm text-grey-text decoration-grey-text decoration-dashed decoration-1 underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-grey-text focus-visible:ring-offset-1'
26+
<Link
27+
isExternal
28+
className='text-sm text-grey-text'
2729
href='https://www.linkedin.com/in/codingcodax'
28-
rel='noopener noreferrer'
29-
target='_blank'
3030
>
3131
LinkedIn
32-
</a>
32+
</Link>
3333
</li>
3434

3535
<li>
36-
<a
37-
className='text-sm text-grey-text decoration-grey-text decoration-dashed decoration-1 underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-grey-text focus-visible:ring-offset-1'
36+
<Link
37+
isExternal
38+
className='text-sm text-grey-text'
3839
href='https://x.com/codingcodax'
39-
rel='noopener noreferrer'
40-
target='_blank'
4140
>
4241
X
43-
</a>
42+
</Link>
4443
</li>
4544
</ul>
4645
</footer>

apps/www/src/app/(main)/about/page.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { NextPage } from 'next';
22
import { clsx } from 'clsx/lite';
33

4+
import { Link } from '@acme/ui/Link';
5+
46
import { Hero } from '~/app/(main)/_components/Hero';
57
import { fadeUp } from '~/config/animations';
68
import { ContactMe } from '../_components/ContactMe';
@@ -42,23 +44,21 @@ const About: NextPage = () => {
4244

4345
<p>
4446
As a co-founder of{' '}
45-
<a
46-
className='text-grey-text-contrast decoration-grey-text-contrast decoration-dashed decoration-1 underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-grey-text focus-visible:ring-offset-1'
47+
<Link
48+
isExternal
49+
className='text-grey-text-contrast'
4750
href='https://www.khutz.com/'
48-
rel='noopener noreferrer'
49-
target='_blank'
5051
>
5152
Khutz
52-
</a>
53+
</Link>
5354
, alongside{' '}
54-
<a
55-
className='text-grey-text-contrast decoration-grey-text-contrast decoration-dashed decoration-1 underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-grey-text focus-visible:ring-offset-1'
55+
<Link
56+
isExternal
57+
className='text-grey-text-contrast'
5658
href='https://github.com/OscarStrada/'
57-
rel='noopener noreferrer'
58-
target='_blank'
5959
>
6060
Oscar Arturo
61-
</a>
61+
</Link>
6262
, we led our first big project, Docom, which focused on building a
6363
healthcare CRM. This experience has fueled my passion for creating
6464
helpful solutions that enhance experiences.

0 commit comments

Comments
 (0)