Skip to content

Commit 5a02263

Browse files
committed
add: open in new tab when clicked
1 parent 95e5bbe commit 5a02263

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

src/components/CodingProfiles.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ const badges = badgesData.badges;
77

88
<section class="box contents">
99
<div class="leetcodeProfile">
10-
<a href="https://leetcode.com/naik-ji/">
10+
<a
11+
href="https://leetcode.com/naik-ji/"
12+
target="_blank"
13+
rel="noopener noreferrer"
14+
>
1115
<img src="https://leetcard.jacoblin.cool/naik-ji" />
1216
</a>
1317
</div>

src/components/Modal.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const { id, open, project } = Astro.props;
2222
{
2323
project.links.map((link: { url: string; title: string }) => (
2424
<div class="link">
25-
<a href={link.url}>{link.title}</a>
25+
<a href={link.url} target="_blank" rel="noopener noreferrer">
26+
{link.title}
27+
</a>
2628
<svg
2729
width="24"
2830
height="24"

src/pages/index.astro

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,21 @@ const projects = (await getCollection("work"))
4747
align="start"
4848
>
4949
<div class="roles">
50-
<a href="https://www.linkedin.com/in/naik-ji">
50+
<a
51+
href="https://www.linkedin.com/in/naik-ji"
52+
target="_blank"
53+
rel="noopener noreferrer"
54+
>
5155
<Pill><Icon icon="linkedin-logo" size="1.33em" /> LinkedIn</Pill>
5256
</a>
53-
<a href="https://github.com/vigneshsnaik">
57+
<a
58+
href="https://github.com/vigneshsnaik"
59+
target="_blank"
60+
rel="noopener noreferrer"
61+
>
5462
<Pill><Icon icon="github-logo" size="1.33em" /> GitHub</Pill>
5563
</a>
56-
<a href="/resume">
64+
<a href="/resume" target="_blank" rel="noopener noreferrer">
5765
<Pill><Icon icon="pencil-line" size="1.33em" /> Resume</Pill>
5866
</a>
5967
</div>

0 commit comments

Comments
 (0)