Skip to content

Commit 226c5d8

Browse files
committed
Add sponsor button
1 parent 8edefea commit 226c5d8

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

site/src/landing/sponsors.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ function Sponsors({ sponsors }) {
2424
</li>
2525
))}
2626
</ul>
27+
<a
28+
href="https://github.com/sponsors/code-hike"
29+
className={s.button}
30+
>
31+
Sponsor Code Hike
32+
</a>
2733
</section>
2834
)
2935
}

site/src/landing/sponsors.module.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,28 @@
4747
color: #666;
4848
margin-top: 2px;
4949
}
50+
51+
.button {
52+
width: 200px;
53+
display: block;
54+
text-align: center;
55+
padding: 8px 16px;
56+
border-radius: 4px;
57+
margin: 48px auto 0;
58+
font-size: 1.2em;
59+
border: 2px solid;
60+
border-color: var(--accent-500) !important;
61+
background: var(--accent-500);
62+
color: var(--white);
63+
}
64+
65+
.button:hover {
66+
text-decoration: none;
67+
}
68+
69+
@media screen and (max-width: 725px) {
70+
.button {
71+
font-size: 1em;
72+
width: 160px;
73+
}
74+
}

0 commit comments

Comments
 (0)