Skip to content

Commit 59a4abc

Browse files
authored
added github badge
1 parent c812504 commit 59a4abc

File tree

4 files changed

+301
-6
lines changed

4 files changed

+301
-6
lines changed

package-lock.json

Lines changed: 232 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6+
"predeploy": "npm run build",
67
"docusaurus": "docusaurus",
78
"start": "docusaurus start",
89
"build": "docusaurus build",
910
"swizzle": "docusaurus swizzle",
10-
"deploy": "docusaurus deploy",
11+
"deploy": "gh-pages -d build",
1112
"clear": "docusaurus clear",
1213
"serve": "docusaurus serve",
1314
"write-translations": "docusaurus write-translations",
@@ -18,6 +19,7 @@
1819
"@docusaurus/preset-classic": "3.7.0",
1920
"@mdx-js/react": "^3.0.0",
2021
"clsx": "^2.0.0",
22+
"gh-pages": "^6.3.0",
2123
"prism-react-renderer": "^1.3.5",
2224
"react": "^19.0.0",
2325
"react-dom": "^19.0.0"

src/css/custom.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,35 @@
6161
a {
6262
color: #61dafb;
6363
}
64+
.github-badge {
65+
display: flex;
66+
align-items: center;
67+
justify-content: space-between;
68+
background: #f6f8fa;
69+
border: 1px solid #d0d7de;
70+
border-radius: 6px;
71+
padding: 0.5rem 1rem;
72+
margin-bottom: 1.5rem;
73+
font-size: 0.875rem;
74+
}
75+
76+
.github-link {
77+
display: flex;
78+
align-items: center;
79+
text-decoration: none;
80+
color: #0969da;
81+
font-weight: 600;
82+
}
83+
84+
.github-link svg {
85+
margin-right: 8px;
86+
}
87+
88+
.github-meta {
89+
display: flex;
90+
list-style: none;
91+
gap: 1rem;
92+
margin: 0;
93+
padding: 0;
94+
color: #57606a;
95+
}

src/pages/index.js

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,40 @@ export default function Home() {
66
return (
77
<Layout title="SPID Protocol" description="Smart Packets. Structured Answers. Voice-Ready.">
88
<header className={styles.hero}>
9-
<div className={styles.container}>
10-
<h1 className={styles.title}>SPID Protocol</h1>
11-
<p className={styles.tagline}>Smart Packets. Structured Answers. Voice-Ready.</p>
12-
</div>
13-
</header>
9+
<div className={styles.container}>
10+
<h1 className={styles.title}>SPID Protocol</h1>
11+
<p className={styles.tagline}>Smart Packets. Structured Answers. Voice-Ready.</p>
12+
</div>
13+
</header>
14+
15+
{/* GitHub Badge Section */}
16+
<div className="github-badge" style={{ margin: '1rem 2rem' }}>
17+
<a
18+
className="github-link"
19+
href="https://github.com/SPID-Protocol-project/spidprotocol-docs"
20+
target="_blank"
21+
rel="noopener noreferrer"
22+
>
23+
<svg
24+
height="20"
25+
viewBox="0 0 16 16"
26+
version="1.1"
27+
width="20"
28+
aria-hidden="true"
29+
>
30+
<path
31+
fill="currentColor"
32+
d="M8 0C3.58 0 0 3.58 0 8a8 8 0 005.47 7.59c.4.07.55-.17.55-.38v-1.33C4.13 14.91 3.63 13.91 3.63 13.91c-.36-.91-.88-1.15-.88-1.15-.72-.5.06-.49.06-.49.79.06 1.2.82 1.2.82.71 1.21 1.87.86 2.33.66.07-.52.28-.86.5-1.06-2.67-.3-5.47-1.34-5.47-5.96 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.52.12-3.18 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 016 0c2.29-1.55 3.3-1.23 3.3-1.23.66 1.66.25 2.88.12 3.18.77.84 1.24 1.91 1.24 3.22 0 4.63-2.8 5.66-5.47 5.96.29.25.54.74.54 1.49v2.21c0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"
33+
/>
34+
</svg>
35+
<span className="github-title" style={{ marginLeft: '8px' }}>SPID Protocol</span>
36+
</a>
37+
<ul className="github-meta">
38+
<li>v0.0.1</li>
39+
<li>⭐ 10</li>
40+
<li>🍴 2</li>
41+
</ul>
42+
</div>
1443

1544
<main className={styles.main}>
1645
<section className={styles.section}>

0 commit comments

Comments
 (0)