Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Link } from 'react-router-dom';

const navigation = {
content: [
{ name: 'LeetCode', href: '/leetcode' },
Expand Down Expand Up @@ -32,7 +34,11 @@ const FooterCol = ({ title, links }) => (
<ul className="mt-4 space-y-3">
{links.map((item) => (
<li key={item.name}>
<a href={item.href} className={linkClass}>{item.name}</a>
{item.href.startsWith('/') ? (
<Link to={item.href} className={linkClass}>{item.name}</Link>
) : (
<a href={item.href} className={linkClass} target="_blank" rel="noreferrer">{item.name}</a>
)}
</li>
))}
</ul>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/PlaceholderPage.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Link } from 'react-router-dom';
import NavBar from '../components/navbar/Navbar';
import Footer from '../components/footer/Footer';

Expand All @@ -13,7 +14,7 @@ export default function PlaceholderPage({ title = 'Coming Soon' }) {
This section is being built. Check back soon for new content, or help us build it!
</p>
<div className="flex gap-4 flex-wrap justify-center">
<a href="/" className="btn-primary">Return Home</a>
<Link to="/" className="btn-primary">Return Home</Link>
<a
href="https://github.com/mathcodes/contentfordevelopers/blob/main/CONTRIBUTING.md"
target="_blank"
Expand Down
Loading