Skip to content

Commit cab79a6

Browse files
committed
change: open links in new tab/window with no ref
1 parent 6aae98f commit cab79a6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/common/ViewButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ interface ViewButtonProps {
55
export default function ViewButton(props: ViewButtonProps) {
66
return (
77
<div className="pt-4 flex">
8-
<a href={props.link} className="rounded-3xl py-1.5 px-10 text-(--accent-color) bg-(--lightmode-background-color) dark:bg-(--darkmode-background-color) border-2 border-(--accent-color) dark:hover:bg-(--darkmode-background-color-hover) hover:scale-105">
8+
<a href={props.link} rel="noreferrer" target="_blank" className="rounded-3xl py-1.5 px-10 text-(--accent-color) bg-(--lightmode-background-color) dark:bg-(--darkmode-background-color) border-2 border-(--accent-color) dark:hover:bg-(--darkmode-background-color-hover) hover:scale-105">
99
<div className="text-lg dark:text-(--darkmode-text-color-primary) font-bold dark:font-normal">
1010
View
1111
</div>

src/components/education/EducationItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function EducationItem(props: EducationItemProps) {
2121
<SubSectionTitle name={props.name}/>
2222

2323
<div className="text-md pb-2 dark:text-(--darkmode-text-color-tertiary) text-(--lightmode-text-color-secondary)">
24-
<a href={props.link} className="underline dark:hover:text-(--darkmode-text-color-secondary) hover:text-(--lightmode-text-color-primary)">
24+
<a rel="noreferrer" target="_blank" href={props.link} className="underline dark:hover:text-(--darkmode-text-color-secondary) hover:text-(--lightmode-text-color-primary)">
2525
{props.institution}
2626
</a>
2727
</div>

src/components/experience/ExperienceItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function ExperienceItem(props: ExperienceItemProps) {
2929

3030
<div className="text-md dark:text-(--darkmode-text-color-tertiary) text-(--lightmode-text-color-secondary) pb-2">
3131
{props.website ? (
32-
<a className="underline dark:hover:text-(--darkmode-text-color-secondary) hover:text-(--lightmode-text-color-secondary)" href={props.website}>
32+
<a rel="noreferrer" target="_blank" className="underline dark:hover:text-(--darkmode-text-color-secondary) hover:text-(--lightmode-text-color-secondary)" href={props.website}>
3333
{props.company}
3434
</a>
3535
) : <div className="">{props.company}</div>}

0 commit comments

Comments
 (0)