mirror of
https://github.com/bspeice/speice.io
synced 2025-09-08 07:35:12 -04:00
feat: switch to frontmatter
The intention is to build an RSS generator eventually
This commit is contained in:
@ -1,22 +1,7 @@
|
||||
import { PropsWithChildren, StrictMode } from "react";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faHome, faUser } from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
import "./style.css";
|
||||
|
||||
const Navbar: React.FC = () => (
|
||||
<span className="navbar">
|
||||
<a href="/">
|
||||
<FontAwesomeIcon icon={faHome} className="icon" />
|
||||
Home
|
||||
</a>
|
||||
<span>/</span>
|
||||
<a href="/about">
|
||||
<FontAwesomeIcon icon={faUser} className="icon" />
|
||||
About
|
||||
</a>
|
||||
</span>
|
||||
);
|
||||
import Navbar from "./Navbar";
|
||||
|
||||
const Layout: React.FC<PropsWithChildren> = ({ children }) => (
|
||||
<StrictMode>
|
||||
|
18
pages/Navbar.tsx
Normal file
18
pages/Navbar.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faHome, faUser } from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
const Navbar: React.FC = () => (
|
||||
<span className="navbar">
|
||||
<a href="/">
|
||||
<FontAwesomeIcon icon={faHome} className="icon" />
|
||||
Home
|
||||
</a>
|
||||
<span>/</span>
|
||||
<a href="/about">
|
||||
<FontAwesomeIcon icon={faUser} className="icon" />
|
||||
About
|
||||
</a>
|
||||
</span>
|
||||
);
|
||||
|
||||
export default Navbar;
|
Reference in New Issue
Block a user