Skip to content

Commit

Permalink
✨ Add icons for status sites
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Dec 6, 2020
1 parent 9ebceb2 commit a0b6623
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/components/LiveStatus.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
background-position: top right;
background-repeat: no-repeat;
}
.icon {
height: 1rem;
margin-right: 0.33rem;
vertical-align: middle;
transform: scale(1.1) translateY(-0.1rem);
}
a {
text-decoration: none;
}
</style>

<h2>{config.i18n.liveStatus}</h2>
Expand All @@ -53,7 +62,10 @@
<article
class={`${site.status} link`}
style={`background-image: url("${graphsBaseUrl}/${site.slug}.png`}>
<h4><a href={`${config.path}/history/${site.slug}`}>{site.name}</a></h4>
<h4>
<img class="icon" alt="" src={site.icon} />
<a href={`${config.path}/history/${site.slug}`}>{site.name}</a>
</h4>
<div>
{@html config.i18n.overallUptime.replace(/\$UPTIME/g, site.uptime)}
</div>
Expand Down

0 comments on commit a0b6623

Please sign in to comment.