Skip to content

Commit dcfc9af

Browse files
committed
Fix broken link err...
1 parent 1c15bd8 commit dcfc9af

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎src/components/HomePage/FinalCTA/index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const FinalCTA: React.FC = () => {
3535
{/* CTAs */}
3636
<div className="final-cta__actions">
3737
<Link
38-
to="/tutorial"
38+
to="/tutorials/"
3939
className="final-cta__button final-cta__button--primary"
4040
>
4141
<Terminal size={18} aria-hidden="true" />
@@ -44,7 +44,7 @@ const FinalCTA: React.FC = () => {
4444
</Link>
4545

4646
<a
47-
href="https://github.com/CodeHarborHub/codeharborhub.github.io"
47+
href="https://github.com/codeharborhub/codeharborhub.github.io"
4848
target="_blank"
4949
rel="noopener noreferrer"
5050
className="final-cta__button final-cta__button--secondary"

‎src/components/HomePage/ResourcesSection/index.tsx‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useEffect, useMemo, useState } from "react";
2+
// @ts-ignore
23
import Link from "@docusaurus/Link";
34
import { motion, AnimatePresence } from "framer-motion";
45
import {
@@ -15,6 +16,8 @@ import {
1516
Trophy,
1617
} from "lucide-react";
1718

19+
// The stylesheet is handled by Docusaurus/Webpack and has no TypeScript declarations.
20+
// @ts-ignore
1821
import "./style.css";
1922

2023
type ResourceType = "tutorial" | "courses" | "blog" | "dsa";
@@ -40,7 +43,7 @@ interface ResourceCategory {
4043
const ALL_RESOURCES: Resource[] = [
4144
{
4245
id: "tutorials",
43-
url: "/docs/",
46+
url: "/tutorials/",
4447
type: "tutorial",
4548
title: "Learn the Fundamentals",
4649
description:
@@ -63,7 +66,7 @@ const ALL_RESOURCES: Resource[] = [
6366
},
6467
{
6568
id: "blog",
66-
url: "/blog/",
69+
url: "https://codeharborhub.github.io/blog/",
6770
type: "blog",
6871
title: "Explore the Tech Blog",
6972
description:
@@ -74,7 +77,7 @@ const ALL_RESOURCES: Resource[] = [
7477
},
7578
{
7679
id: "dsa",
77-
url: "/dsa/",
80+
url: "https://codeharborhub.github.io/dsa/",
7881
type: "dsa",
7982
title: "Build Strong DSA Skills",
8083
description:
@@ -342,7 +345,7 @@ const ResourcesSection: React.FC = () => {
342345
</div>
343346

344347
<Link
345-
to="/blog/"
348+
to="https://codeharborhub.github.io/blog/"
346349
className="chh-resources__view-all"
347350
>
348351
<span>View all resources</span>

0 commit comments

Comments
 (0)