Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Commit a44b39b

Browse files
committed
fixed
1 parent acbf75e commit a44b39b

8 files changed

Lines changed: 291 additions & 353 deletions

File tree

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import "./App.css";
22
import { BrowserRouter, Routes, Route } from "react-router-dom";
33

44
// PAGES:
5-
import Home from "./pages/Home";
5+
import Home from "./pages/Home/Home";
66
import Boolforge from "./pages/Boolforge";
77
import SignificantDigits from "./pages/SignificantDigits";
88
import BCDNotation from "./pages/BCDNotation";

src/pages/Home.jsx

Lines changed: 0 additions & 352 deletions
This file was deleted.

src/pages/Home/ArticleSection.jsx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import React from "react";
2+
import { Link } from "react-router-dom";
3+
4+
const ArticleSection = ({ data }) => {
5+
return (
6+
<>
7+
{data.map((article, index) => (
8+
<article
9+
key={index}
10+
className={`home-card ${
11+
article.featured ? "featured-card" : ""
12+
} ${article.className || ""}`}
13+
>
14+
<h3>{article.title}</h3>
15+
<p>{article.description}</p>
16+
17+
<div className="home-card-links">
18+
{article.links.map((link, i) => (
19+
<Link
20+
key={i}
21+
to={link.to}
22+
className={`home-card-link ${
23+
link.primary ? "primary-link" : ""
24+
}`}
25+
>
26+
{link.text}
27+
</Link>
28+
))}
29+
</div>
30+
</article>
31+
))}
32+
</>
33+
);
34+
};
35+
36+
export default ArticleSection;

0 commit comments

Comments
 (0)