From 4805e0d93a79a49cd8908b89a12772ec10e5eff5 Mon Sep 17 00:00:00 2001 From: Antoine Estienne Date: Thu, 18 Sep 2025 15:23:44 +0200 Subject: [PATCH 1/2] issue #22, Add basic project description in the front end --- frontend/.astro/settings.json | 22 +++---- frontend/.astro/types.d.ts | 1 - frontend/src/components/AppSidebar.tsx | 7 ++- frontend/src/components/pages/HomePage.tsx | 67 ++++++++++++++++++++++ frontend/src/pages/index.astro | 6 +- 5 files changed, 86 insertions(+), 17 deletions(-) create mode 100644 frontend/src/components/pages/HomePage.tsx diff --git a/frontend/.astro/settings.json b/frontend/.astro/settings.json index bca256a..6e73642 100644 --- a/frontend/.astro/settings.json +++ b/frontend/.astro/settings.json @@ -1,12 +1,12 @@ { - "_variables": { - "lastUpdateCheck": 1756999065417 - }, - "eslint.validate": [ - "javascript", - "javascriptreact", - "astro", - "typescript", - "typescriptreact" - ] -} + "_variables": { + "lastUpdateCheck": 1758201525305 + }, + "eslint.validate": [ + "javascript", + "javascriptreact", + "astro", + "typescript", + "typescriptreact" + ] +} \ No newline at end of file diff --git a/frontend/.astro/types.d.ts b/frontend/.astro/types.d.ts index 03d7cc4..f964fe0 100644 --- a/frontend/.astro/types.d.ts +++ b/frontend/.astro/types.d.ts @@ -1,2 +1 @@ /// -/// \ No newline at end of file diff --git a/frontend/src/components/AppSidebar.tsx b/frontend/src/components/AppSidebar.tsx index b3aac34..9336fc2 100644 --- a/frontend/src/components/AppSidebar.tsx +++ b/frontend/src/components/AppSidebar.tsx @@ -1,4 +1,4 @@ -import { Smile, BadgeCheck } from "lucide-react"; +import { Smile, BadgeCheck, Home } from "lucide-react"; import { Sidebar, @@ -13,6 +13,11 @@ import { // Menu items. const items = [ + { + title: "Home", + url: "/", + icon: Home, + }, { title: "Profiles", url: "/profiles", diff --git a/frontend/src/components/pages/HomePage.tsx b/frontend/src/components/pages/HomePage.tsx new file mode 100644 index 0000000..69fd1e1 --- /dev/null +++ b/frontend/src/components/pages/HomePage.tsx @@ -0,0 +1,67 @@ +export default function HomePage() { + return ( +
+
+

The Guild Genesis

+ + Join our Discord + +
+ +
+

What is The Guild?

+

+ The Guild is a peer‑run organization for software developers. We learn + together, certify each other’s skills, and create opportunities + through collaboration, attestations, and on‑chain credentials. +

+
+ +
+

Why it matters

+
    +
  • + Community‑verified skills: members issue attestations that build + portable, credible profiles. +
  • +
  • + Learning by doing: contribute, earn badges, and grow through real + projects. +
  • +
  • + Open and merit‑based: progress is transparent and anchored on public + infrastructure. +
  • +
+
+ +
+

How it works

+
    +
  1. Connect your wallet and create your developer profile.
  2. +
  3. + Contribute to initiatives and receive attestations from peers. +
  4. +
  5. Earn badges that reflect concrete skills and achievements.
  6. +
  7. + Use your on‑chain reputation across The Guild apps and beyond. +
  8. +
+
+ +
+

Get involved

+

+ New here? Start by joining the Discord, introducing yourself, and + picking a project that matches your interests. Your first contribution + can earn your first attestation. +

+
+
+ ); +} diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro index 052ffa8..b9664ea 100644 --- a/frontend/src/pages/index.astro +++ b/frontend/src/pages/index.astro @@ -1,15 +1,13 @@ --- import { AppWrapper } from '@/components/AppWrapper'; import Layout from '../layouts/Layout.astro'; +import HomePage from '@/components/pages/HomePage'; ---
-
-

The Guild Genesis

-

The Guild Genesis is a peer-run organization for software developers.

-
+
\ No newline at end of file From 0776b784b728de3125235597518948e8d60dbac7 Mon Sep 17 00:00:00 2001 From: Antoine Estienne Date: Thu, 18 Sep 2025 15:39:04 +0200 Subject: [PATCH 2/2] fix firefox bug issue #43 --- .../src/components/profiles/list/ProfilesList.tsx | 6 +++++- frontend/src/lib/wagmi.ts | 11 ++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/profiles/list/ProfilesList.tsx b/frontend/src/components/profiles/list/ProfilesList.tsx index a0862ac..96c8dc9 100644 --- a/frontend/src/components/profiles/list/ProfilesList.tsx +++ b/frontend/src/components/profiles/list/ProfilesList.tsx @@ -83,7 +83,11 @@ export function ProfilesList() {

Loading profiles...

) : null} {error || attestations.error ? ( -

{(error as Error).message}

+

+ {(error as any)?.message ?? + (attestations.error as any)?.message ?? + "An error occurred"} +

) : null}
diff --git a/frontend/src/lib/wagmi.ts b/frontend/src/lib/wagmi.ts index f5fbb4e..e2b7afb 100644 --- a/frontend/src/lib/wagmi.ts +++ b/frontend/src/lib/wagmi.ts @@ -1,12 +1,5 @@ import { getDefaultConfig } from "@rainbow-me/rainbowkit"; -import { - mainnet, - sepolia, - arbitrum, - arbitrumSepolia, - polygon, - polygonAmoy, -} from "wagmi/chains"; +import { polygonAmoy } from "wagmi/chains"; const projectId = import.meta.env.PUBLIC_WALLET_CONNECT_PROJECT_ID as | string @@ -15,6 +8,6 @@ console.log(projectId); export const config = getDefaultConfig({ appName: "The Guild Genesis", projectId: projectId ?? "", - chains: [mainnet, sepolia, arbitrum, arbitrumSepolia, polygon, polygonAmoy], + chains: [polygonAmoy], ssr: false, });