Skip to content

Commit 19ab055

Browse files
committed
feat: link to analytics dashboard from the active instances badge
1 parent 612eb64 commit 19ab055

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

src/pages/index.astro

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ import { Card } from "@astrojs/starlight/components";
4444
authorization server for your self-hosted applications.
4545
</p>
4646
<instances-count class="instances-count-container">
47-
<p class="instances-count">
47+
<a
48+
target="_blank"
49+
title="Active Instances Dashboard"
50+
href="https://api.tinyauth.app/dashboard"
51+
class="instances-count"
52+
>
4853
<span id="instances-count">0</span>+ Active Instances
49-
</p>
54+
</a>
5055
</instances-count>
5156
<div class="nav-buttons-container">
5257
<a

src/styles/home.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ main:has(.home-container) {
5252
}
5353

5454
.instances-count {
55+
display: block;
5556
color: var(--sl-color-green-high);
5657
background-color: var(--sl-color-green-low);
5758
border: 1px solid var(--sl-color-green);
@@ -60,6 +61,15 @@ main:has(.home-container) {
6061
line-height: calc(1.25 / 0.875);
6162
font-weight: 500;
6263
padding: 0.25rem 0.75rem;
64+
transition-property: opacity;
65+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
66+
transition-duration: 200ms;
67+
transition-delay: 50ms;
68+
text-decoration: none;
69+
}
70+
71+
.instances-count:hover {
72+
opacity: 0.8;
6373
}
6474

6575
.nav-buttons-container {

0 commit comments

Comments
 (0)