Skip to content

Commit b9d3bcc

Browse files
committed
add a badge
1 parent e925e7f commit b9d3bcc

File tree

2 files changed

+33
-14
lines changed

2 files changed

+33
-14
lines changed

products.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ layout: base-simple-header.njk
44

55
## Products
66

7-
- [Ping (Free)](https://ping.tinytown.studio)
7+
<a class="badge-container" href="https://ping.tinytown.studio">
8+
Ping <span class="badge">Free</span>
9+
</a>

public/main.css

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
:root {
2-
--bg: #efefef;
3-
--fg: #181819;
4-
--subtle: #444;
2+
--bg: #efefef;
3+
--fg: #181819;
4+
--subtle: #444;
55
}
66

7-
body{
7+
body {
88
font-family: Quicksand, sans-serif;
99
max-width: 80ch;
1010
margin: 0 auto;
1111

12+
font-size: 120%;
13+
1214
background-color: #efefef;
13-
color: #181819;
15+
color: #181819;
1416
}
1517

16-
.uppercase{
18+
.uppercase {
1719
text-transform: uppercase;
1820
}
1921

20-
.subtle{
21-
color: var(--subtle)
22+
.subtle {
23+
color: var(--subtle);
2224
}
2325

24-
.hero-header{
26+
.hero-header {
2527
font-size: 2rem;
26-
width:100%;
28+
width: 100%;
2729
min-height: 80vh;
2830
display: flex;
2931
align-items: center;
@@ -36,6 +38,21 @@ a {
3638
text-underline-offset: 4px;
3739
}
3840

39-
a:hover{
40-
color: var(--fg);
41-
}
41+
a:hover {
42+
color: var(--fg);
43+
}
44+
45+
.badge-container {
46+
position: relative;
47+
}
48+
49+
.badge-container .badge {
50+
position: absolute;
51+
top: -10px;
52+
right: -70%;
53+
font-size: 0.6rem;
54+
background-color: black;
55+
color: white;
56+
border-radius: 100px;
57+
padding: 4px 8px;
58+
}

0 commit comments

Comments
 (0)