Skip to content

Commit

Permalink
Merge branch 'master' of github.com:imteekay/tk
Browse files Browse the repository at this point in the history
  • Loading branch information
imteekay committed Sep 26, 2023
2 parents ea22995 + 308d203 commit be4740a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
1 change: 0 additions & 1 deletion Base/Article/Layout/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type FooterPropTypes = {
export const Footer: FC<FooterPropTypes> = ({ tags }) => (
<>
<SubstackEmbed />

<div
className={css`
display: flex;
Expand Down
31 changes: 18 additions & 13 deletions Base/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
/* eslint-disable @next/next/no-html-link-for-pages */
import Link from 'next/link';
import { FC } from 'react';
import { FC, ReactNode } from 'react';

interface NewTabLinkProps {
children: ReactNode;
href: string;
}

const NewTabLink = ({ children, href }: NewTabLinkProps) => (
<a href={href} target="_blank" rel="noopener noreferrer">
{children}
</a>
);

export const Footer: FC = () => (
<footer id="footer" className="footer">
Expand All @@ -14,24 +25,18 @@ export const Footer: FC = () => (
<Link href="/">Home</Link>
</li>
<li>
<a href="/writings">Writing</a>
<Link href="/writings">Writing</Link>
</li>
<li>
<a href="/support">Support</a>
<Link href="/support">Support</Link>
</li>
<li>
<a
href="https://github.com/imteekay"
target="_blank"
rel="noopener noreferrer"
>
Projects
</a>
<NewTabLink href="https://github.com/imteekay/iamtk.co">
Code
</NewTabLink>
</li>
<li>
<a href="/rss.xml" target="_blank" rel="noopener noreferrer">
RSS
</a>
<NewTabLink href="/rss.xml">RSS</NewTabLink>
</li>
</ul>
</nav>
Expand Down

0 comments on commit be4740a

Please sign in to comment.