Skip to content

Commit d4186fb

Browse files
committed
Enhance Tailwind configuration with new font families and warm color palette; update global styles for typography; refactor layout to use Google Fonts; improve landing page styling and links.
1 parent 54029bb commit d4186fb

4 files changed

Lines changed: 47 additions & 39 deletions

File tree

src/app/globals.css

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
:root {
6-
--background: #ffffff;
7-
--foreground: #171717;
8-
}
9-
10-
@media (prefers-color-scheme: dark) {
11-
:root {
12-
--background: #0a0a0a;
13-
--foreground: #ededed;
5+
@layer base {
6+
h1,
7+
h2,
8+
h3,
9+
h4,
10+
h5,
11+
h6 {
12+
@apply font-mono;
1413
}
1514
}
16-
17-
body {
18-
color: var(--foreground);
19-
background: var(--background);
20-
font-family: Arial, Helvetica, sans-serif;
21-
}

src/app/layout.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import type { Metadata } from "next";
2-
import localFont from "next/font/local";
2+
import { Roboto_Mono, Roboto_Slab } from "next/font/google";
33
import "./globals.css";
44

5-
const geistSans = localFont({
6-
src: "./fonts/GeistVF.woff",
7-
variable: "--font-geist-sans",
8-
weight: "100 900",
5+
const robotoSlab = Roboto_Slab({
6+
subsets: ["latin"],
7+
variable: "--font-roboto-slab",
98
});
10-
const geistMono = localFont({
11-
src: "./fonts/GeistMonoVF.woff",
12-
variable: "--font-geist-mono",
13-
weight: "100 900",
9+
10+
const robotoMono = Roboto_Mono({
11+
subsets: ["latin"],
12+
variable: "--font-roboto-mono",
1413
});
1514

1615
export const metadata: Metadata = {
@@ -26,7 +25,7 @@ export default function RootLayout({
2625
return (
2726
<html lang="en">
2827
<body
29-
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
28+
className={`${robotoSlab.variable} ${robotoMono.variable} min-h-screen bg-warm-50 text-warm-900 antialiased font-sans`}
3029
>
3130
{children}
3231
</body>

src/app/page.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export default function LandingPage() {
1515
}, []);
1616

1717
return (
18-
<div className="min-h-screen flex flex-col items-center justify-center bg-gradient-to-br from-gray-800 to-black text-white font-mono">
18+
<div className="min-h-screen flex flex-col items-center justify-center text-warm-900">
1919
<div className="max-w-2xl mx-auto p-8 space-y-8 animate-fade-in h-56">
20-
<h1 className="text-4xl font-bold mb-4">
20+
<h1 className="text-4xl font-bold mb-4 text-warm-800">
2121
{mounted && (
2222
<Typewriter
2323
options={{
@@ -32,13 +32,15 @@ export default function LandingPage() {
3232
)}
3333
</h1>
3434
</div>
35-
<div className="space-y-4 ">
36-
<p className="text-xl mb-4">Learn more about me and my work</p>
35+
<div className="space-y-4">
36+
<p className="text-xl mb-4 text-warm-600">
37+
Learn more about me and my work
38+
</p>
3739
<div className="space-y-4 flex flex-col justify-center">
3840
<LinkItem
3941
href="https://www.youtube.com/@tylerdane-com"
4042
target="_blank"
41-
className="flex items-center space-x-2"
43+
className="flex items-center space-x-2 text-warm-700 transition-colors hover:text-warm-900"
4244
>
4345
<FaYoutube size="1.4em" />
4446
<u>
@@ -49,9 +51,9 @@ export default function LandingPage() {
4951
</span>
5052
</LinkItem>
5153
<LinkItem
52-
href="https://www.compasscalendar.com/"
54+
href="https://github.com/SwitchbackTech/compass"
5355
target="_blank"
54-
className="flex items-center space-x-2"
56+
className="flex items-center space-x-2 text-warm-700 transition-colors hover:text-warm-900"
5557
>
5658
<FaCompass size="1.4em" />
5759
<u>
@@ -63,29 +65,29 @@ export default function LandingPage() {
6365
</LinkItem>
6466

6567
<LinkItem
66-
href="https://www.tylerdane.com/"
68+
href="https://newsletter.fullstack.zip/"
6769
target="_blank"
68-
className="flex items-center space-x-2"
70+
className="flex items-center space-x-2 text-warm-700 transition-colors hover:text-warm-900"
6971
>
7072
<FaPenNib size="1.4em" />
7173
<u>
7274
<span>Blog:</span>
7375
</u>
7476
<span>
75-
<em>Lessons learned</em>
77+
<em>Sane system design</em>
7678
</span>
7779
</LinkItem>
7880
<LinkItem
7981
href="https://www.linkedin.com/in/tyler-dane/"
8082
target="_blank"
81-
className="flex items-center space-x-2"
83+
className="flex items-center space-x-2 text-warm-700 transition-colors hover:text-warm-900"
8284
>
8385
<TiSocialLinkedin size="1.4em" />
8486
<u>
8587
<span>LinkedIn:</span>
8688
</u>
8789
<span>
88-
<em>Condensed blogs</em>
90+
<em>Humble brags</em>
8991
</span>
9092
</LinkItem>
9193
</div>

tailwind.config.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,23 @@ export default {
88
],
99
theme: {
1010
extend: {
11+
fontFamily: {
12+
sans: ["var(--font-roboto-slab)", "ui-serif", "Georgia", "serif"],
13+
mono: ["var(--font-roboto-mono)", "ui-monospace", "monospace"],
14+
},
1115
colors: {
12-
background: "var(--background)",
13-
foreground: "var(--foreground)",
16+
warm: {
17+
50: "#F3EEE2",
18+
100: "#e7e2d8",
19+
200: "#b4b1a8",
20+
300: "#97938c",
21+
400: "#7a7771",
22+
500: "#5e5c57",
23+
600: "#44423e",
24+
700: "#2b2a27",
25+
800: "#141412",
26+
900: "#030303",
27+
},
1428
},
1529
},
1630
},

0 commit comments

Comments
 (0)