Skip to content

Commit 5be495d

Browse files
authored
github button
1 parent 59a4abc commit 5be495d

File tree

2 files changed

+30
-45
lines changed

2 files changed

+30
-45
lines changed

docusaurus.config.js

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,36 @@ module.exports = {
3838
src: 'img/spid_icon_dark.png',
3939
},
4040
items: [
41-
{
42-
type: 'doc',
43-
docId: 'intro',
44-
position: 'left',
45-
label: 'Docs',
46-
},
47-
{
48-
href: 'https://github.com/SPID-Protocol-project/spidprotocol-docs',
49-
label: 'GitHub',
50-
position: 'right',
51-
},
52-
{
53-
type: 'search',
54-
position: 'right',
55-
},
56-
],
41+
{
42+
type: 'doc',
43+
docId: 'intro',
44+
position: 'left',
45+
label: 'Docs',
46+
},
47+
{
48+
type: 'html',
49+
position: 'right',
50+
value: `
51+
<div style="display: flex; align-items: center; gap: 8px;">
52+
<a href="https://github.com/SPID-Protocol-project/spidprotocol-docs" target="_blank" rel="noopener noreferrer">
53+
<img src="https://img.shields.io/github/v/release/SPID-Protocol-project/spidprotocol-docs?label=version&color=brightgreen" alt="version" />
54+
</a>
55+
<a href="https://github.com/SPID-Protocol-project/spidprotocol-docs/stargazers" target="_blank" rel="noopener noreferrer">
56+
<img src="https://img.shields.io/github/stars/SPID-Protocol-project/spidprotocol-docs?style=social" alt="stars" />
57+
</a>
58+
<a href="https://github.com/SPID-Protocol-project/spidprotocol-docs/network/members" target="_blank" rel="noopener noreferrer">
59+
<img src="https://img.shields.io/github/forks/SPID-Protocol-project/spidprotocol-docs?style=social" alt="forks" />
60+
</a>
61+
</div>
62+
`,
63+
},
64+
65+
{
66+
type: 'search',
67+
position: 'right',
68+
},
69+
],
70+
5771
style: 'dark',
5872
},
5973

src/pages/index.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,6 @@ export default function Home() {
1212
</div>
1313
</header>
1414

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>
43-
4415
<main className={styles.main}>
4516
<section className={styles.section}>
4617
<h2>What is SPID?</h2>

0 commit comments

Comments
 (0)