Skip to content

Commit 0ab9321

Browse files
committed
fix: improved styling of stats page, added Play Store and Patreon badges
1 parent 38edde6 commit 0ab9321

File tree

2 files changed

+31
-16
lines changed

2 files changed

+31
-16
lines changed

_sass/_helpers.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
max-width: 700px;
1616
}
1717

18+
.dim {
19+
opacity: 0.4;
20+
}
21+
1822
/* in dark mode, apply inverted filter */
1923
/* commented out because we don't have dark mode yet
2024
@media (prefers-color-scheme: dark) {

stats.pug

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ div.text-center
2323
| Download statistics for releases
2424
div.img-center
2525
img.width-500(src="/img/stats/downloads.png")
26-
div.small (Updated every 24 hours)
26+
div.small.dim (Updated every 24 hours)
2727

2828
hr.my-5
2929

@@ -39,14 +39,14 @@ div.text-center
3939
div.img-center
4040
img.width-500(src="/img/stats/chrome-wau.png")
4141
img.width-500(src="/img/stats/firefox-dau-7d.png")
42-
div.small (Updated manually on an irregular basis)
42+
div.small.dim (Updated manually on an irregular basis)
4343

4444
h4.mt-5 Android app
4545
p
4646
| How many active installations there are of the Android app
4747
div.img-center
4848
img.width-500(src="/img/stats/android-devices.png")
49-
div.small (Updated manually on an irregular basis)
49+
div.small.dim (Updated manually on an irregular basis)
5050

5151
hr.my-5
5252

@@ -57,25 +57,31 @@ div.text-center
5757
div.img-center
5858
a(href="https://starchart.cc/ActivityWatch/activitywatch")
5959
img.width-700(title="Stargazers over time" src="https://starchart.cc/ActivityWatch/activitywatch.svg")
60-
div.small
60+
div.small.dim
6161
| Provided by starchart.cc
6262

6363
hr.my-5
6464

65-
h3.text-center Ratings
65+
h3.text-center.mb-5 Ratings
6666
div.row.text-center
67-
div.col-12.img-center.mb-4.mt-2
67+
div.col-12.img-center.mb-5
6868
h6 Product Hunt
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-4
72+
div.col-sm-3
7373
h6 Arch Linux (AUR)
7474
p
7575
a(href="https://aur.archlinux.org/packages/activitywatch-bin/")
7676
img(src="https://img.shields.io/aur/votes/activitywatch-bin?logo=arch-linux")
7777

78-
div.col-sm-4
78+
div.col-sm-3
79+
h6 Play Store
80+
p
81+
a(href="https://play.google.com/store/apps/details?id=net.activitywatch.android")
82+
img(src="https://PlayBadges.pavi2410.me/badge/ratings?id=net.activitywatch.android")
83+
84+
div.col-sm-3
7985
h6 aw-watcher-web
8086
p
8187
a(href="https://chromewebstore.google.com/detail/activitywatch-web-watcher/nglaklhklhcoonedhgnpgddginnjdadi")
@@ -84,12 +90,12 @@ div.row.text-center
8490
a(href="https://addons.mozilla.org/en-US/firefox/addon/aw-watcher-web/")
8591
img(src="https://img.shields.io/amo/rating/aw-watcher-web?logo=firefox")
8692

87-
div.col-sm-4
93+
div.col-sm-3
8894
h6 aw-watcher-vscode
8995
p.my-0
9096
div.small Visual Studio Marketplace
9197
a(href="https://marketplace.visualstudio.com/items?itemName=activitywatch.aw-watcher-vscode")
92-
img(alt="Visual Studio Marketplace Rating (Stars)" src="https://img.shields.io/visual-studio-marketplace/stars/activitywatch.aw-watcher-vscode?logo=visual-studio-code")
98+
img(alt="Visual Studio Marketplace Rating" src="https://img.shields.io/visual-studio-marketplace/r/activitywatch.aw-watcher-vscode?logo=visual-studio-code")
9399
p.my-0
94100
div.small Open-VSX
95101
a(href="https://open-vsx.org/extension/ActivityWatch/aw-watcher-vscode")
@@ -100,9 +106,9 @@ div.row.text-center
100106
101107
hr.my-5
102108

103-
h3.text-center Donations
109+
h3.text-center.mb-5 Donations
104110
div.row.text-center
105-
div.col-sm-4
111+
div.col-sm-3
106112
h6 OpenCollective
107113
p
108114
//div
@@ -111,21 +117,26 @@ div.row.text-center
111117
a(href="https://opencollective.com/activitywatch")
112118
img(src="https://img.shields.io/opencollective/all/activitywatch?logo=opencollective")
113119

114-
div.col-sm-4
120+
div.col-sm-3
115121
h6 GitHub Sponsors
116122
p
117123
a(href="https://github.com/sponsors/activitywatch")
118124
img(src="https://img.shields.io/github/sponsors/activitywatch?logo=github")
119125

120-
div.col-sm-4
126+
div.col-sm-3
121127
h6 Liberapay
122128
p
123129
a(href="https://liberapay.com/ActivityWatch/")
124130
img(src="https://img.shields.io/liberapay/receives/ActivityWatch.svg?logo=liberapay")
125131

132+
div.col-sm-3
133+
h6 Patreon
134+
a(href="https://patreon.com/erikbjare")
135+
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")
136+
126137
hr.my-5
127138

128-
h3.text-center Social
139+
h3.text-center.mb-5 Social
129140
div.row.text-center
130141
div.col-sm-4
131142
h6 Discord
@@ -134,7 +145,7 @@ div.row.text-center
134145
img(alt="Discord" src="https://img.shields.io/discord/755040852727955476?logo=discord")
135146

136147
div.col-sm-4
137-
h6 GitHub stars #[span.small (all repos)]
148+
h6 GitHub stars #[span.small.dim (all repos)]
138149
p
139150
img(src="https://img.shields.io/github/stars/ActivityWatch?logo=github")
140151

0 commit comments

Comments
 (0)