Skip to content

Commit 0bded49

Browse files
authored
Merge pull request #44 from TheSoftwareDevGuild/improve-front-end-18-09-25
Improve front end 18 09 25
2 parents 3d08bc1 + 0776b78 commit 0bded49

7 files changed

Lines changed: 93 additions & 27 deletions

File tree

frontend/.astro/settings.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"_variables": {
3-
"lastUpdateCheck": 1756999065417
4-
},
5-
"eslint.validate": [
6-
"javascript",
7-
"javascriptreact",
8-
"astro",
9-
"typescript",
10-
"typescriptreact"
11-
]
12-
}
2+
"_variables": {
3+
"lastUpdateCheck": 1758201525305
4+
},
5+
"eslint.validate": [
6+
"javascript",
7+
"javascriptreact",
8+
"astro",
9+
"typescript",
10+
"typescriptreact"
11+
]
12+
}

frontend/.astro/types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/// <reference types="astro/client" />
2-
/// <reference path="content.d.ts" />

frontend/src/components/AppSidebar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Smile, BadgeCheck } from "lucide-react";
1+
import { Smile, BadgeCheck, Home } from "lucide-react";
22

33
import {
44
Sidebar,
@@ -13,6 +13,11 @@ import {
1313

1414
// Menu items.
1515
const items = [
16+
{
17+
title: "Home",
18+
url: "/",
19+
icon: Home,
20+
},
1621
{
1722
title: "Profiles",
1823
url: "/profiles",
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
export default function HomePage() {
2+
return (
3+
<div className="mx-auto w-full max-w-4xl p-6 space-y-8">
4+
<div className="flex items-center justify-between">
5+
<h1 className="text-3xl font-bold tracking-tight">The Guild Genesis</h1>
6+
<a
7+
href="https://discord.gg/pg4UgaTr"
8+
target="_blank"
9+
rel="noreferrer"
10+
className="inline-flex items-center rounded-md bg-indigo-600 px-4 py-2 text-sm font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
11+
>
12+
Join our Discord
13+
</a>
14+
</div>
15+
16+
<section className="space-y-4">
17+
<h2 className="text-xl font-semibold">What is The Guild?</h2>
18+
<p className="text-muted-foreground">
19+
The Guild is a peer‑run organization for software developers. We learn
20+
together, certify each other’s skills, and create opportunities
21+
through collaboration, attestations, and on‑chain credentials.
22+
</p>
23+
</section>
24+
25+
<section className="space-y-4">
26+
<h2 className="text-xl font-semibold">Why it matters</h2>
27+
<ul className="list-disc pl-6 space-y-2 text-muted-foreground">
28+
<li>
29+
Community‑verified skills: members issue attestations that build
30+
portable, credible profiles.
31+
</li>
32+
<li>
33+
Learning by doing: contribute, earn badges, and grow through real
34+
projects.
35+
</li>
36+
<li>
37+
Open and merit‑based: progress is transparent and anchored on public
38+
infrastructure.
39+
</li>
40+
</ul>
41+
</section>
42+
43+
<section className="space-y-4">
44+
<h2 className="text-xl font-semibold">How it works</h2>
45+
<ol className="list-decimal pl-6 space-y-2 text-muted-foreground">
46+
<li>Connect your wallet and create your developer profile.</li>
47+
<li>
48+
Contribute to initiatives and receive attestations from peers.
49+
</li>
50+
<li>Earn badges that reflect concrete skills and achievements.</li>
51+
<li>
52+
Use your on‑chain reputation across The Guild apps and beyond.
53+
</li>
54+
</ol>
55+
</section>
56+
57+
<section className="space-y-4">
58+
<h2 className="text-xl font-semibold">Get involved</h2>
59+
<p className="text-muted-foreground">
60+
New here? Start by joining the Discord, introducing yourself, and
61+
picking a project that matches your interests. Your first contribution
62+
can earn your first attestation.
63+
</p>
64+
</section>
65+
</div>
66+
);
67+
}

frontend/src/components/profiles/list/ProfilesList.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ export function ProfilesList() {
8383
<p className="text-sm text-gray-600">Loading profiles...</p>
8484
) : null}
8585
{error || attestations.error ? (
86-
<p className="text-sm text-red-600">{(error as Error).message}</p>
86+
<p className="text-sm text-red-600">
87+
{(error as any)?.message ??
88+
(attestations.error as any)?.message ??
89+
"An error occurred"}
90+
</p>
8791
) : null}
8892

8993
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">

frontend/src/lib/wagmi.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import { getDefaultConfig } from "@rainbow-me/rainbowkit";
2-
import {
3-
mainnet,
4-
sepolia,
5-
arbitrum,
6-
arbitrumSepolia,
7-
polygon,
8-
polygonAmoy,
9-
} from "wagmi/chains";
2+
import { polygonAmoy } from "wagmi/chains";
103

114
const projectId = import.meta.env.PUBLIC_WALLET_CONNECT_PROJECT_ID as
125
| string
@@ -15,6 +8,6 @@ console.log(projectId);
158
export const config = getDefaultConfig({
169
appName: "The Guild Genesis",
1710
projectId: projectId ?? "",
18-
chains: [mainnet, sepolia, arbitrum, arbitrumSepolia, polygon, polygonAmoy],
11+
chains: [polygonAmoy],
1912
ssr: false,
2013
});

frontend/src/pages/index.astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
---
22
import { AppWrapper } from '@/components/AppWrapper';
33
import Layout from '../layouts/Layout.astro';
4+
import HomePage from '@/components/pages/HomePage';
45
---
56

67
<Layout title="The Guild Genesis">
78
<div class="min-h-screen bg-gray-50">
89
<AppWrapper client:only="react">
9-
<section class="mx-auto max-w-5xl px-4 py-10">
10-
<h1 class="mb-6 text-3xl font-bold tracking-tight text-gray-900">The Guild Genesis</h1>
11-
<p class="mb-8 max-w-2xl text-gray-600">The Guild Genesis is a peer-run organization for software developers.</p>
12-
</section>
10+
<HomePage/>
1311
</AppWrapper>
1412
</div>
1513
</Layout>

0 commit comments

Comments
 (0)