Skip to content

Commit

Permalink
switch to relative links.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradgarropy committed Feb 23, 2024
1 parent 7d4e867 commit 8c356d9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 38 deletions.
4 changes: 1 addition & 3 deletions src/components/Contact/Contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const Contact: FC = () => {
</FancyLink>

<span>🙋🏼‍♂️</span>
<FancyLink to="https://bradgarropy.com/ama">
ask me anything
</FancyLink>
<FancyLink to="/ama">ask me anything</FancyLink>

<span>🐦</span>
<FancyLink to="https://twitter.com/bradgarropy">
Expand Down
23 changes: 5 additions & 18 deletions src/components/HireMe/HireMe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,12 @@ const HireMe: FC<HireMeProps> = ({testimonials}) => {
</h1>

<p>
I just snagged a new job at{" "}
<FancyLink to="https://atlassian.com">
<span className="font-semibold">Atlassian</span>
</FancyLink>
, working on{" "}
<FancyLink to="https://www.atlassian.com/software/confluence">
<span className="font-semibold">Confluence</span>
I&apos;m actively looking for a new role as a{" "}
<span className="italic">Senior Frontend Developer</span>.<br />
Please check out my <FancyLink to="/resume">
resume
</FancyLink>{" "}
as a <span className="italic">Frontend Developer</span>.
Although I&apos;m not actively looking for a new role, please
check out my{" "}
<FancyLink to="https://bradgarropy.com/resume">
<span className="font-semibold">resume</span>
</FancyLink>{" "}
and{" "}
<FancyLink to="https://bradgarropy.com/contact">
<span className="font-semibold">contact</span>
</FancyLink>{" "}
me!
and <FancyLink to="/contact">contact</FancyLink> me!
</p>

<div className="prose dark:prose-invert prose-h1:font-bold">
Expand Down
6 changes: 1 addition & 5 deletions src/components/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ const Home: FC<HomeProps> = ({latestPosts, latestVideos, featuredProjects}) => {
<Podcasts />
</Section>

<Section
id="store"
title="store"
link="https://bradgarropy.com/store"
>
<Section id="store" title="store" link="/store">
<Shirts />
</Section>

Expand Down
4 changes: 2 additions & 2 deletions src/components/SocialLink/SocialLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SocialLink: FC<SocialLinkProps> = ({platform}) => {

switch (platform) {
case "discord":
url = "https://bradgarropy.com/discord"
url = "/discord"
name = "discord"
break

Expand All @@ -36,7 +36,7 @@ const SocialLink: FC<SocialLinkProps> = ({platform}) => {
break

case "feed":
url = "https://bradgarropy.com/feed.json"
url = "/feed.json"
name = "feed"
break

Expand Down
10 changes: 2 additions & 8 deletions src/components/Sponsors/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ const Sponsors: FC<SponsorsProps> = ({sponsors}) => {

<p>
If you want to support me and be featured on this page go{" "}
<FancyLink to="https://bradgarropy.com/sponsor">
sponsor
</FancyLink>{" "}
me!
<FancyLink to="/sponsor">sponsor</FancyLink> me!
</p>
</Section>

Expand Down Expand Up @@ -59,10 +56,7 @@ const Sponsors: FC<SponsorsProps> = ({sponsors}) => {
) : (
<p>
Nobody yet,{" "}
<FancyLink to="https://bradgarropy.com/sponsor">
be the first
</FancyLink>
!
<FancyLink to="/sponsor">be the first</FancyLink>!
</p>
)}
</Section>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/newsletter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {redirect} from "@remix-run/node"

export const loader = () => {
throw redirect("https://bradgarropy.com/#newsletter")
throw redirect("/#newsletter")
}
2 changes: 1 addition & 1 deletion src/routes/subscribe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {redirect} from "@remix-run/node"

export const loader = () => {
throw redirect("https://bradgarropy.com/#newsletter")
throw redirect("/#newsletter")
}

0 comments on commit 8c356d9

Please sign in to comment.