From 318a320acfb2db97abba3263a3d3929cbbf693dd Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sun, 15 Jun 2025 13:59:21 +0200 Subject: Remove old files and some cleanup --- src/components/Counter.jsx | 16 --- src/config/analytics.js | 7 -- src/layouts/CenteredLayout.astro | 28 ----- src/layouts/StandardLayout.astro | 54 ---------- src/pages/index.astro | 226 ++++++++++++++++++++++++--------------- 5 files changed, 140 insertions(+), 191 deletions(-) delete mode 100644 src/components/Counter.jsx delete mode 100644 src/config/analytics.js delete mode 100644 src/layouts/CenteredLayout.astro delete mode 100644 src/layouts/StandardLayout.astro (limited to 'src') diff --git a/src/components/Counter.jsx b/src/components/Counter.jsx deleted file mode 100644 index 8661dc0..0000000 --- a/src/components/Counter.jsx +++ /dev/null @@ -1,16 +0,0 @@ -import { useState } from 'react'; - -export default function Counter() { - const [count, setCount] = useState(0); - - return ( -
- -
- ); -} diff --git a/src/config/analytics.js b/src/config/analytics.js deleted file mode 100644 index e17350d..0000000 --- a/src/config/analytics.js +++ /dev/null @@ -1,7 +0,0 @@ - -export const analytics = { - googleAnalyticsId: '', - fathomAnalyticsId: '' -}; - -export default analytics; diff --git a/src/layouts/CenteredLayout.astro b/src/layouts/CenteredLayout.astro deleted file mode 100644 index 1b9286c..0000000 --- a/src/layouts/CenteredLayout.astro +++ /dev/null @@ -1,28 +0,0 @@ ---- -import "../styles/global.css"; -import Analytics from "../components/Analytics.astro"; - -interface Props { - title?: string; -} - -const { title = "Astro Site" } = Astro.props; ---- - - - - - - - - {title} - - - -
-
- -
-
- - diff --git a/src/layouts/StandardLayout.astro b/src/layouts/StandardLayout.astro deleted file mode 100644 index e6a4bec..0000000 --- a/src/layouts/StandardLayout.astro +++ /dev/null @@ -1,54 +0,0 @@ ---- -import "../styles/global.css"; - -interface Props { - title?: string; - description?: string; -} - -const { - title = "Astro Site", - description = "A simple Astro site with blog functionality", -} = Astro.props; - -import Analytics from "../components/Analytics.astro"; ---- - - - - - - - - - {title} - - - -
-
- -
-
- -
-
- -
-
- -
-
-

- © {new Date().getFullYear()} Astro Blog. All rights reserved. -

-
-
- - diff --git a/src/pages/index.astro b/src/pages/index.astro index fca327e..97dee2d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -11,106 +11,160 @@ 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"); -const members = allNames.filter(name => name.data.candidate !== true); -const candidates = allNames.filter(name => name.data.candidate === true); +const members = allNames.filter((name) => name.data.candidate !== true); +const candidates = allNames.filter((name) => name.data.candidate === true); const title = "Domain Name Hack Club"; -const description = "An exclusive club of nerds that own the domain hack to their name"; +const description = + "An exclusive club of nerds that own the domain hack to their name"; const url = "https://namehack.club"; --- - + - - - {title} - - - - - - - - + + + {title} - - - - - + + + + + + - - - - - + + + + + - - + + + + + - - + + - -
-

- 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.length}) -

-
    - {members.map((name) => ( -
  • -
    - -
    -
    {name.data.title}
    -
  • - ))} -
-
+ +
+

+ 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. +

+
-
-

- - Candidates - ({candidates.length}) -

-
    - {candidates.map((name) => ( -
  • - -
  • - ))} -
-
-
+
+
+

+ 💎 + Members + ({members.length}) +

+
    + { + members.map((name) => ( +
  • +
    + +
    +
    + {name.data.title} +
    +
  • + )) + } +
+
+
+

+ + Candidates + ({candidates.length}) +

+
    + { + candidates.map((name) => ( +
  • + +
  • + )) + } +
+
+
-
- - +
+ + -- cgit v1.3.1