Skip to content

Commit 2c2c2c1

Browse files
committed
chore: Add git logo to button
1 parent da55bb6 commit 2c2c2c1

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/css/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@
8080
.home-hero .hero-title { font-size: 2.75rem; }
8181
}
8282

83+
.button {
84+
display: flex;
85+
align-items: center;
86+
justify-content: center;
87+
gap: 0.2rem;
88+
}
89+
8390
/* Custom footer styling to match site theme */
8491
.footer {
8592
background: rgba(15, 23, 42, 0.98);

src/pages/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ export default function Home() {
2424
<div className={styles.buttons}>
2525
<Link className="button button--primary button--lg" to="/docs/quick_start">Quick Start</Link>
2626
<Link className="button button--secondary button--lg" to="/docs/intro" style={{marginLeft: 12}}>Documentation</Link>
27-
<a className="button button--secondary button--lg" href="https://github.com/sparkison/m3u-editor" target="_blank" style={{marginLeft: 12}}>GitHub</a>
27+
<a className="button button--secondary button--lg" href="https://github.com/sparkison/m3u-editor" target="_blank" style={{marginLeft: 12}}>
28+
<svg width="20px" height="20px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
29+
<g>
30+
<path fill="none" d="M0 0h24v24H0z" />
31+
<path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476 0-.237-.013-1.024-.013-1.862-2.512.463-3.162-.612-3.362-1.175-.113-.288-.6-1.175-1.025-1.413-.35-.187-.85-.65-.013-.662.788-.013 1.35.725 1.538 1.025.9 1.512 2.338 1.087 2.912.825.088-.65.35-1.087.638-1.337-2.225-.25-4.55-1.113-4.55-4.938 0-1.088.387-1.987 1.025-2.688-.1-.25-.45-1.275.1-2.65 0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337 1.912-1.3 2.75-1.024 2.75-1.024.55 1.375.2 2.4.1 2.65.637.7 1.025 1.587 1.025 2.687 0 3.838-2.337 4.688-4.562 4.938.362.312.675.912.675 1.85 0 1.337-.013 2.412-.013 2.75 0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" />
32+
</g>
33+
</svg>
34+
<span>GitHub</span>
35+
</a>
2836
</div>
2937
</div>
3038
</header>

0 commit comments

Comments
 (0)