summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2025-06-14 23:30:09 +0200
committerYuval Adam <_@yuv.al>2025-06-14 23:30:09 +0200
commitbae61910dd9aee1ab75bd9f7ca3bc20e749342ba (patch)
tree5ddee7a881a19cb50a7dfda83455c397635a36e3 /src
parentde0255ecfbdc9d33e3a20c74c01bded9a24881ca (diff)
Add some fonts
Diffstat (limited to 'src')
-rw-r--r--src/pages/index.astro90
1 files changed, 59 insertions, 31 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro
index f7479c4..a320a82 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -3,6 +3,13 @@ import { getCollection } from "astro:content";
import NameLink from "../components/NameLink.astro";
import "../styles/global.css";
+import "@fontsource/inter/300.css";
+import "@fontsource/inter/400.css";
+import "@fontsource/inter/500.css";
+import "@fontsource/inter/600.css";
+import "@fontsource/inter/700.css";
+import "@fontsource/jetbrains-mono/400.css";
+import "@fontsource/jetbrains-mono/600.css";
// Get all names from the collection
const allNames = await getCollection("names");
@@ -46,40 +53,61 @@ const url = "https://namehack.club";
<script src="https://cdn.usefathom.com/script.js" data-site="SSTGQKAU" defer></script>
</head>
-<body class="max-w-4xl mx-auto px-4 font-sans">
- <h1 class="mt-20 text-5xl text-center font-mono">Doma<span class="text-gray-400">.</span>in Na<span class="text-gray-400">.</span>me
- Ha<span class="text-gray-400">.</span>ck Cl<span class="text-gray-400">.</span>ub</h1>
- <p class="leading-relaxed text-xl">An exclusive club of geeks that serve their personal homepage from the <a
- href="https://en.wikipedia.org/wiki/Domain_hack" class="text-pink-600 hover:text-pink-800">domain hack</a> to their name. Are you
- one of us? Join the club by opening a pull
- request on <a href="https://github.com/yuvadm/namehack.club" class="text-pink-600 hover:text-pink-800">Github</a> or send us an
- email at <a href="mailto:join@namehack.club" class="text-pink-600 hover:text-pink-800">join@namehack.club</a>.</p>
+<body class="max-w-5xl mx-auto px-6 py-8" style="font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.7;">
+ <header class="text-center mb-16">
+ <h1 class="text-6xl lg:text-7xl font-light tracking-tight mb-6" style="font-family: 'JetBrains Mono', monospace; letter-spacing: -0.02em;">
+ Doma<span class="text-gray-400">.</span>in Na<span class="text-gray-400">.</span>me
+ Ha<span class="text-gray-400">.</span>ck Cl<span class="text-gray-400">.</span>ub
+ </h1>
+ <p class="text-xl lg:text-2xl font-light text-gray-700 max-w-4xl mx-auto leading-relaxed">
+ An exclusive club of geeks that serve their personal homepage from the
+ <a href="https://en.wikipedia.org/wiki/Domain_hack" class="text-pink-600 hover:text-pink-800 font-medium transition-colors duration-200">domain hack</a>
+ to their name. Are you one of us? Join the club by opening a pull request on
+ <a href="https://github.com/yuvadm/namehack.club" class="text-pink-600 hover:text-pink-800 font-medium transition-colors duration-200">Github</a>
+ or send us an email at
+ <a href="mailto:join@namehack.club" class="text-pink-600 hover:text-pink-800 font-medium transition-colors duration-200">join@namehack.club</a>.
+ </p>
+ </header>
- <h2 class="pt-8 text-2xl font-bold">💎 Members</h2>
- <ul class="list-none pl-0">
- {members.map((name) => (
- <li class="mb-3">
- <div class="text-2xl">
- <NameLink name={name} size="large" />
- </div>
- <div class="text-gray-600 font-serif mt-1">{name.data.title}</div>
- </li>
- ))}
- </ul>
+ <main class="space-y-12">
+ <section>
+ <h2 class="text-3xl font-semibold mb-8 text-gray-900 flex items-center gap-3">
+ <span class="text-2xl">💎</span>
+ <span>Members</span>
+ </h2>
+ <ul class="space-y-6">
+ {members.map((name) => (
+ <li class="border-l-4 border-gray-100 pl-6 py-2 hover:border-pink-200 transition-colors duration-200">
+ <div class="text-2xl lg:text-3xl font-medium">
+ <NameLink name={name} size="large" />
+ </div>
+ <div class="text-gray-600 text-lg mt-2 font-light">{name.data.title}</div>
+ </li>
+ ))}
+ </ul>
+ </section>
- <h2 class="pt-8 text-2xl font-bold">⭐ Candidates</h2>
- <ul class="pl-0 flex flex-wrap justify-between">
- {candidates.map((name) => (
- <li class="mb-3 inline-block pr-3">
- <NameLink name={name} size="small" />
- </li>
- ))}
- </ul>
+ <section>
+ <h2 class="text-3xl font-semibold mb-8 text-gray-900 flex items-center gap-3">
+ <span class="text-2xl">⭐</span>
+ <span>Candidates</span>
+ </h2>
+ <ul class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
+ {candidates.map((name) => (
+ <li class="p-3 rounded-lg hover:bg-gray-50 transition-colors duration-200">
+ <NameLink name={name} size="small" />
+ </li>
+ ))}
+ </ul>
+ </section>
+ </main>
- <hr class="mt-8 border-gray-200">
- <footer class="text-right leading-relaxed mb-4">
- Created by <a href="https://yuv.al" class="text-green-600 hover:text-green-800">Yuval Adam</a>. Maintained collaboratively on <a
- href="https://github.com/yuvadm/namehack.club" class="text-green-600 hover:text-green-800">Github</a>.
+ <hr class="mt-16 mb-8 border-gray-200">
+ <footer class="text-center text-gray-600 leading-relaxed pb-8">
+ <p class="text-lg font-light">
+ Created by <a href="https://yuv.al" class="text-green-600 hover:text-green-800 font-medium transition-colors duration-200">Yuval Adam</a>.
+ Maintained collaboratively on <a href="https://github.com/yuvadm/namehack.club" class="text-green-600 hover:text-green-800 font-medium transition-colors duration-200">Github</a>.
+ </p>
</footer>
</body>
</html>