diff options
| author | Yuval Adam <_@yuv.al> | 2025-06-14 23:30:09 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2025-06-14 23:30:09 +0200 |
| commit | bae61910dd9aee1ab75bd9f7ca3bc20e749342ba (patch) | |
| tree | 5ddee7a881a19cb50a7dfda83455c397635a36e3 | |
| parent | de0255ecfbdc9d33e3a20c74c01bded9a24881ca (diff) | |
Add some fonts
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | package-lock.json | 20 | ||||
| -rw-r--r-- | package.json | 4 | ||||
| -rw-r--r-- | src/pages/index.astro | 90 |
4 files changed, 84 insertions, 32 deletions
@@ -22,3 +22,5 @@ pnpm-debug.log* # jetbrains setting folder .idea/ + +.claude/
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 0cf9857..001bf11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,8 @@ "version": "0.0.1", "dependencies": { "@astrojs/react": "^4.3.0", + "@fontsource/inter": "^5.2.6", + "@fontsource/jetbrains-mono": "^5.2.6", "@tailwindcss/vite": "^4.1.7", "@types/react": "^19.1.5", "@types/react-dom": "^19.1.5", @@ -833,6 +835,24 @@ "node": ">=18" } }, + "node_modules/@fontsource/inter": { + "version": "5.2.6", + "resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-5.2.6.tgz", + "integrity": "sha512-CZs9S1CrjD0jPwsNy9W6j0BhsmRSQrgwlTNkgQXTsAeDRM42LBRLo3eo9gCzfH4GvV7zpyf78Ozfl773826csw==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/jetbrains-mono": { + "version": "5.2.6", + "resolved": "https://registry.npmjs.org/@fontsource/jetbrains-mono/-/jetbrains-mono-5.2.6.tgz", + "integrity": "sha512-nz//dBr99hXZmHp10wgNI00qThWImkzRR5PQjvRM+rpmuHO5rYBJCqPPWufidCvmkkryXx/GOP/lgqsM3R3Org==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@img/sharp-darwin-arm64": { "version": "0.33.5", "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", diff --git a/package.json b/package.json index 0d8a661..fc0bd05 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ }, "dependencies": { "@astrojs/react": "^4.3.0", + "@fontsource/inter": "^5.2.6", + "@fontsource/jetbrains-mono": "^5.2.6", "@tailwindcss/vite": "^4.1.7", "@types/react": "^19.1.5", "@types/react-dom": "^19.1.5", @@ -21,4 +23,4 @@ "devDependencies": { "@tailwindcss/typography": "^0.5.16" } -}
\ No newline at end of file +} 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> |
