From bae61910dd9aee1ab75bd9f7ca3bc20e749342ba Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sat, 14 Jun 2025 23:30:09 +0200 Subject: Add some fonts --- .gitignore | 2 ++ package-lock.json | 20 ++++++++++++ package.json | 4 ++- src/pages/index.astro | 90 +++++++++++++++++++++++++++++++++------------------ 4 files changed, 84 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 16d54bb..f24a9ea 100644 --- a/.gitignore +++ b/.gitignore @@ -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"; - -

Doma.in Na.me - Ha.ck Cl.ub

-

An exclusive club of geeks that serve their personal homepage from the domain hack to their name. Are you - one of us? Join the club by opening a pull - request on Github or send us an - email at join@namehack.club.

+ +
+

+ Doma.in Na.me + Ha.ck Cl.ub +

+

+ An exclusive club of geeks that serve their personal homepage from the + domain hack + to their name. Are you one of us? Join the club by opening a pull request on + Github + or send us an email at + join@namehack.club. +

+
-

💎 Members

- +
+
+

+ 💎 + Members +

+ +
-

⭐ Candidates

- +
+

+ + Candidates +

+ +
+
-
-