Skip to content

Commit e632a45

Browse files
ErikBjare0xbrayo
authored andcommitted
fix: improved styling of badges on stats page
1 parent 1f3718b commit e632a45

File tree

1 file changed

+61
-51
lines changed

1 file changed

+61
-51
lines changed

stats.pug

Lines changed: 61 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -69,97 +69,107 @@ div.row.text-center
6969
a(href="https://www.producthunt.com/products/activitywatch/reviews?utm_source=badge-product_rating&utm_medium=badge&utm_souce=badge-activitywatch" target="_blank")
7070
img(src="https://api.producthunt.com/widgets/embed-image/v1/product_rating.svg?product_id=112754&theme=neutral" alt="ActivityWatch - Open-source time tracker | Product Hunt")
7171

72-
div.col-sm-3
73-
h6 Arch Linux (AUR)
74-
p
75-
a(href="https://aur.archlinux.org/packages/activitywatch-bin/")
76-
img(src="https://img.shields.io/aur/votes/activitywatch-bin?logo=arch-linux")
77-
78-
div.col-sm-3
79-
h6 AlternativeTo
80-
p
72+
style.
73+
.group {
74+
display: flex;
75+
border-radius: 5px;
76+
border: 1px solid #e1e4e8;
77+
flex-direction: column;
78+
padding: 1rem 1rem 1rem 1rem;
79+
align-items: center;
80+
margin: 2rem 0;
81+
}
82+
83+
div.col-md-3.col-sm-0
84+
div.col-md-3.col-sm-6
85+
div.group
86+
h6 AlternativeTo
8187
a(href="https://alternativeto.net/software/activitywatch/about/")
82-
img(src="https://img.shields.io/badge/rating-{{ site.data.ratings.alternativeto.average }}%2F5%20({{ site.data.ratings.alternativeto.count }})-green")
88+
img(src="https://img.shields.io/badge/rating-{{ site.data.ratings.alternativeto.average }}%2F5%20({{ site.data.ratings.alternativeto.count }})-brightgreen")
8389

84-
div.col-sm-3
85-
h6 Play Store
86-
p
90+
div.group
91+
h6 Play Store
8792
a(href="https://play.google.com/store/apps/details?id=net.activitywatch.android")
8893
img(src="https://PlayBadges.pavi2410.me/badge/ratings?id=net.activitywatch.android&country=us")
8994

90-
div.col-sm-3
91-
h6 aw-watcher-web
92-
p
95+
div.group
96+
h6 Arch Linux (AUR)
97+
a(href="https://aur.archlinux.org/packages/activitywatch-bin/")
98+
img(src="https://img.shields.io/aur/votes/activitywatch-bin?logo=arch-linux&color=brightgreen")
99+
100+
div.col-md-3.col-sm-6
101+
div.group
102+
h6 aw-watcher-web
93103
a(href="https://chromewebstore.google.com/detail/activitywatch-web-watcher/nglaklhklhcoonedhgnpgddginnjdadi")
94104
img(alt="Chrome Web Store" src="https://img.shields.io/chrome-web-store/rating/nglaklhklhcoonedhgnpgddginnjdadi?logo=googlechrome")
95105
br
96106
a(href="https://addons.mozilla.org/en-US/firefox/addon/aw-watcher-web/")
97107
img(src="https://img.shields.io/amo/rating/aw-watcher-web?logo=firefox")
98108

99-
div.col-sm-3
100-
h6 aw-watcher-vscode
101-
p.my-0
102-
div.small Visual Studio Marketplace
103-
a(href="https://marketplace.visualstudio.com/items?itemName=activitywatch.aw-watcher-vscode")
104-
img(alt="Visual Studio Marketplace Rating" src="https://img.shields.io/visual-studio-marketplace/r/activitywatch.aw-watcher-vscode?logo=visual-studio-code")
105-
p.my-0
106-
div.small Open-VSX
107-
a(href="https://open-vsx.org/extension/ActivityWatch/aw-watcher-vscode")
108-
img(src="https://img.shields.io/open-vsx/rating/ActivityWatch/aw-watcher-vscode?logo=visual-studio-code")
109-
//br
110-
//a(href="https://open-vsx.org/extension/ActivityWatch/aw-watcher-vscode")
111-
img(src="https://img.shields.io/open-vsx/dt/ActivityWatch/aw-watcher-vscode?logo=visual-studio-code")
109+
div.group
110+
h6 aw-watcher-vscode
111+
p.my-0
112+
div.small VS Marketplace
113+
a(href="https://marketplace.visualstudio.com/items?itemName=activitywatch.aw-watcher-vscode")
114+
img(alt="Visual Studio Marketplace Rating" src="https://img.shields.io/visual-studio-marketplace/r/activitywatch.aw-watcher-vscode?logo=visual-studio-code")
115+
p.my-0
116+
div.small Open-VSX
117+
a(href="https://open-vsx.org/extension/ActivityWatch/aw-watcher-vscode")
118+
img(src="https://img.shields.io/open-vsx/rating/ActivityWatch/aw-watcher-vscode?logo=visual-studio-code")
119+
//br
120+
//a(href="https://open-vsx.org/extension/ActivityWatch/aw-watcher-vscode")
121+
img(src="https://img.shields.io/open-vsx/dt/ActivityWatch/aw-watcher-vscode?logo=visual-studio-code")
112122
113123
hr.my-5
114124

115125
h3.text-center.mb-5 Donations
116126
div.row.text-center
117-
div.col-sm-3
118-
h6 OpenCollective
119-
p
127+
div.col-md-3.col-sm-0
128+
div.col-md-3.col-sm-6
129+
div.group
130+
h6 OpenCollective
120131
//div
121132
a(href="https://opencollective.com/activitywatch")
122133
img(src="https://opencollective.com/activitywatch/tiers/backer.svg?avatarHeight=36")
123134
a(href="https://opencollective.com/activitywatch")
124135
img(src="https://img.shields.io/opencollective/all/activitywatch?logo=opencollective")
125136

126-
div.col-sm-3
127-
h6 GitHub Sponsors
128-
p
137+
div.group
138+
h6 GitHub Sponsors
129139
a(href="https://github.com/sponsors/activitywatch")
130-
img(src="https://img.shields.io/github/sponsors/activitywatch?logo=github")
140+
img(src="https://img.shields.io/github/sponsors/activitywatch?logo=github&color=brightgreen")
131141

132-
div.col-sm-3
133-
h6 Liberapay
134-
p
142+
div.col-md-3.col-sm-6
143+
div.group
144+
h6 Liberapay
135145
a(href="https://liberapay.com/ActivityWatch/")
136-
img(src="https://img.shields.io/liberapay/receives/ActivityWatch.svg?logo=liberapay")
146+
img(src="https://img.shields.io/liberapay/receives/ActivityWatch.svg?logo=liberapay&color=darkgreen")
137147

138-
div.col-sm-3
139-
h6 Patreon
140-
a(href="https://patreon.com/erikbjare")
141-
img(src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Derikbjare%26type%3Dpledges&style=flat&color=green")
148+
div.group
149+
h6 Patreon
150+
a(href="https://patreon.com/erikbjare")
151+
img(src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Derikbjare%26type%3Dpledges&style=flat&color=darkgreen")
142152

143153
hr.my-5
144154

145155
h3.text-center.mb-5 Social
146156
div.row.text-center
147157
div.col-sm-4
148-
h6 Discord
149-
p
158+
div.group
159+
h6 Discord
150160
a(href="https://discord.gg/vDskV9q")
151161
img(alt="Discord" src="https://img.shields.io/discord/755040852727955476?logo=discord")
152162

153163
div.col-sm-4
154-
h6 GitHub stars #[span.small.dim (all repos)]
155-
p
164+
div.group
165+
h6 GitHub stars #[span.small.dim (all repos)]
156166
img(src="https://img.shields.io/github/stars/ActivityWatch?logo=github")
157167

158168
div.col-sm-4
159-
h6 Reddit
160-
p
169+
div.group
170+
h6 Reddit
161171
a(href="https://www.reddit.com/r/activitywatch/")
162-
img(src="https://img.shields.io/reddit/subreddit-subscribers/activitywatch?color=green&logo=reddit")
172+
img(src="https://img.shields.io/reddit/subreddit-subscribers/activitywatch?color=brightgreen&logo=reddit")
163173

164174
hr.my-5
165175

0 commit comments

Comments
 (0)