Skip to content

Commit e6ab80d

Browse files
committedFeb 6, 2024
create navbar
1 parent c5d8684 commit e6ab80d

File tree

8 files changed

+68
-25
lines changed

8 files changed

+68
-25
lines changed
 

‎.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"cSpell.words": ["clsx", "tailwindcss"]
2+
"cSpell.words": ["clsx", "Echolon", "tabler", "tailwindcss"]
33
}

‎app/globals.css

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
--border: 240 3.7% 15.9%;
6565
--input: 240 3.7% 15.9%;
6666
--ring: 240 4.9% 83.9%;
67+
68+
color-scheme: dark;
6769
}
6870
}
6971
}

‎app/layout.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Metadata } from "next";
22
import "./globals.css";
33
import { ReactNode } from "react";
4+
import { Navbar } from "~/components/navbar";
45

56
export const metadata: Metadata = {
67
title: "Create Next App",
@@ -10,7 +11,10 @@ export const metadata: Metadata = {
1011
export default function Layout({ children }: { children: ReactNode }) {
1112
return (
1213
<html lang="en">
13-
<body>{children}</body>
14+
<body>
15+
<Navbar />
16+
{children}
17+
</body>
1418
</html>
1519
);
1620
}

‎app/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
export default function Page() {
22
return (
33
<main className="m-8">
4-
<p>Hello world</p>
4+
<h2 className="text-lg font-semibold">
5+
Reduced Row Echolon Form Proof of Concept
6+
</h2>
57
</main>
68
);
79
}

‎components/navbar.tsx

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { IconBrackets, IconBrandGithub } from "@tabler/icons-react";
2+
import Link from "next/link";
3+
4+
export function Navbar() {
5+
return (
6+
<div className="flex items-center justify-between border-b border-border bg-muted px-8 py-4 dark:bg-muted/30">
7+
<Link href="/" className="flex items-center gap-2">
8+
<IconBrackets />
9+
<h1 className="text-xl font-bold">Concepts in Linear Algebra</h1>
10+
</Link>
11+
12+
<a
13+
href="https://github.com/zsrobinson/linear"
14+
target="_blank"
15+
rel="noreferrer"
16+
>
17+
<IconBrandGithub />
18+
</a>
19+
</div>
20+
);
21+
}

‎package-lock.json

+27-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@radix-ui/react-icons": "^1.3.0",
12+
"@tabler/icons-react": "^2.47.0",
1313
"class-variance-authority": "^0.7.0",
1414
"clsx": "^2.1.0",
1515
"next": "14.1.0",

‎tailwind.config.ts

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import type { Config } from "tailwindcss"
1+
import type { Config } from "tailwindcss";
22

33
const config = {
4-
darkMode: ["class"],
54
content: [
6-
'./pages/**/*.{ts,tsx}',
7-
'./components/**/*.{ts,tsx}',
8-
'./app/**/*.{ts,tsx}',
9-
'./src/**/*.{ts,tsx}',
10-
],
5+
"./pages/**/*.{ts,tsx}",
6+
"./components/**/*.{ts,tsx}",
7+
"./app/**/*.{ts,tsx}",
8+
"./src/**/*.{ts,tsx}",
9+
],
1110
prefix: "",
1211
theme: {
1312
container: {
@@ -75,6 +74,6 @@ const config = {
7574
},
7675
},
7776
plugins: [require("tailwindcss-animate")],
78-
} satisfies Config
77+
} satisfies Config;
7978

80-
export default config
79+
export default config;

0 commit comments

Comments
 (0)
Please sign in to comment.