114 lines
3.5 KiB
HTML
114 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>status-indicator web component</title>
|
|
|
|
<!-- meta -->
|
|
<meta property="og:description" content="Colored circles that can pulse">
|
|
<meta name="description" content="Colored circles that can pulse">
|
|
<meta itemprop="description" content="Colored circles that can pulse">
|
|
<meta property="og:title" content="status-indicator web component">
|
|
<meta property="og:url" content="http://status-indicator.webcomponent.io">
|
|
<meta property="og:site_name" content="webcomponent.io">
|
|
|
|
<!-- icons -->
|
|
<link rel="mask-icon" href="mask-icon.svg" color="#000000"/>
|
|
<link rel="apple-touch-icon" href="apple-touch-icon.png"/>
|
|
<link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml"/>
|
|
|
|
<link rel="stylesheet" href="pico.min.css">
|
|
<script type="module" src="./src/status-indicator.ts"></script>
|
|
<style>
|
|
html, body {
|
|
height: 100%
|
|
}
|
|
body {
|
|
display: grid;
|
|
place-content: safe center;
|
|
}
|
|
main {
|
|
padding: 1em;
|
|
}
|
|
|
|
status-indicator {
|
|
font-family: 'Courier New', Courier, monospace;
|
|
}
|
|
|
|
nav, code {
|
|
max-width: 500px;
|
|
|
|
@media(max-width:440px) {
|
|
max-width: 300px;
|
|
}
|
|
}
|
|
|
|
code {
|
|
padding: 1rem;
|
|
margin: 1rem 0;
|
|
|
|
pre {
|
|
margin: 0;
|
|
padding: 0.25rem 0;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1><status-indicator></h1>
|
|
<nav>
|
|
<a href="https://git.ayo.run/ayo/status-indicator">Ayo's Forge</a> ·
|
|
<a href="https://github.com/ayo-run/status-indicator">GitHub</a> ·
|
|
<a href="https://git.sr.ht/~ayoayco/status-indicator">SourceHut</a>
|
|
</nav>
|
|
<hr />
|
|
</header>
|
|
<main>
|
|
<section>
|
|
<p>Colored circles that can pulse</p>
|
|
<status-indicator status="positive" pulse>
|
|
All systems operational
|
|
</status-indicator>
|
|
<br />
|
|
<status-indicator status="negative" pulse>
|
|
Something's wrong
|
|
</status-indicator>
|
|
<br />
|
|
<status-indicator status="active">
|
|
It's just fine; carry on
|
|
</status-indicator>
|
|
<br />
|
|
<status-indicator>
|
|
Nothing matters
|
|
</status-indicator>
|
|
<br />
|
|
<status-indicator status="intermediary">
|
|
Slow down...
|
|
</status-indicator>
|
|
</section>
|
|
<section>
|
|
<h3>Quick Start</h3>
|
|
<code><pre>
|
|
<script type="module" src="https://esm.sh/@ayo-run/status-indicator"></script>
|
|
|
|
<status-indicator pulse status="positive">
|
|
All systems operational
|
|
</status-indicator>
|
|
</pre></code>
|
|
<p>More on the
|
|
<a href="https://git.ayo.run/ayo/status-indicator#readme">README</a>
|
|
</p>
|
|
</section>
|
|
</main>
|
|
<footer>
|
|
<hr />
|
|
<small>
|
|
Just keep building.
|
|
<br>
|
|
A web component by <a href="https://ayo.ayco.io">Ayo</a>.
|
|
</small>
|
|
</footer>
|
|
</body>
|
|
</html>
|