mirror of
https://github.com/inzerosight/zwus.pages.dev.git
synced 2026-03-16 22:11:01 +00:00
Feat: Add minimalist mobile-ready ZWUS homepage
This commit is contained in:
220
index.html
220
index.html
@@ -1,144 +1,96 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||||
<title>ZWUS</title>
|
<title>Zero Width Unicode Standard</title>
|
||||||
<meta name="description" content="Zero Width Unicode Standard">
|
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||||
<style>
|
<link href="https://fonts.bunny.net/css?family=inter:700,900" rel="stylesheet" />
|
||||||
:root {
|
<style>
|
||||||
--bg: #fff;
|
* {
|
||||||
--fg: #000;
|
box-sizing: border-box;
|
||||||
--muted: #111;
|
-webkit-tap-highlight-color: transparent;
|
||||||
--border: #000;
|
}
|
||||||
}
|
body, html {
|
||||||
|
margin: 0;
|
||||||
* {
|
padding: 0;
|
||||||
box-sizing: border-box;
|
width: 100vw;
|
||||||
-webkit-tap-highlight-color: transparent;
|
height: 100vh;
|
||||||
}
|
overflow: hidden; /* No scroll */
|
||||||
|
background-color: #ffffff;
|
||||||
html, body {
|
color: #000000;
|
||||||
margin: 0;
|
font-family: 'Inter', sans-serif;
|
||||||
width: 100%;
|
display: flex;
|
||||||
height: 100%;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
justify-content: center;
|
||||||
background: var(--bg);
|
align-items: center;
|
||||||
color: var(--fg);
|
text-align: center;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
}
|
||||||
}
|
h1 {
|
||||||
|
font-size: 2.5rem;
|
||||||
body {
|
font-weight: 900;
|
||||||
min-height: 100svh;
|
line-height: 1.1;
|
||||||
min-height: 100dvh;
|
margin: 0 0 3rem 0;
|
||||||
display: grid;
|
padding: 0 1.5rem;
|
||||||
place-items: center;
|
max-width: 600px;
|
||||||
}
|
}
|
||||||
|
.btn {
|
||||||
main {
|
display: inline-flex;
|
||||||
width: 100%;
|
align-items: center;
|
||||||
height: 100%;
|
justify-content: center;
|
||||||
padding: 24px;
|
background-color: #000000;
|
||||||
display: flex;
|
color: #ffffff;
|
||||||
flex-direction: column;
|
text-decoration: none;
|
||||||
align-items: center;
|
padding: 1rem 2.5rem;
|
||||||
justify-content: center;
|
border-radius: 9999px; /* Fully round */
|
||||||
gap: 18px;
|
font-weight: 700;
|
||||||
text-align: center;
|
font-size: 1.1rem;
|
||||||
}
|
margin-bottom: 4rem;
|
||||||
|
transition: transform 0.1s ease;
|
||||||
h1 {
|
}
|
||||||
margin: 0;
|
.btn:active {
|
||||||
font-size: clamp(2rem, 8vw, 4rem);
|
transform: scale(0.95);
|
||||||
line-height: 0.95;
|
}
|
||||||
font-weight: 900;
|
.playground {
|
||||||
letter-spacing: -0.04em;
|
display: flex;
|
||||||
max-width: 10ch;
|
flex-direction: column;
|
||||||
text-wrap: balance;
|
align-items: center;
|
||||||
}
|
font-weight: 700;
|
||||||
|
font-size: 1rem;
|
||||||
.actions {
|
}
|
||||||
display: flex;
|
.playground img {
|
||||||
align-items: center;
|
width: 40px;
|
||||||
justify-content: center;
|
height: 40px;
|
||||||
gap: 12px;
|
margin-bottom: 0.75rem;
|
||||||
flex-wrap: wrap;
|
border-radius: 8px; /* Smooth out the icon edges a bit */
|
||||||
}
|
}
|
||||||
|
.playground p {
|
||||||
.npm {
|
margin: 0;
|
||||||
display: inline-flex;
|
}
|
||||||
align-items: center;
|
.playground a {
|
||||||
justify-content: center;
|
color: #000000;
|
||||||
min-width: 64px;
|
text-decoration: underline;
|
||||||
height: 64px;
|
text-underline-offset: 4px;
|
||||||
padding: 0 22px;
|
}
|
||||||
border: 2px solid var(--border);
|
|
||||||
border-radius: 999px;
|
@media (max-width: 400px) {
|
||||||
text-decoration: none;
|
h1 { font-size: 2.2rem; }
|
||||||
color: var(--fg);
|
.btn { padding: 0.8rem 2rem; font-size: 1rem; }
|
||||||
font-size: 1rem;
|
}
|
||||||
font-weight: 900;
|
</style>
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.npm:active {
|
|
||||||
transform: scale(0.98);
|
|
||||||
}
|
|
||||||
|
|
||||||
.playground {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 8px;
|
|
||||||
color: var(--muted);
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 0.95rem;
|
|
||||||
font-weight: 800;
|
|
||||||
line-height: 1.2;
|
|
||||||
max-width: 90vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
.playground img {
|
|
||||||
width: 18px;
|
|
||||||
height: 18px;
|
|
||||||
object-fit: contain;
|
|
||||||
display: block;
|
|
||||||
border-radius: 4px;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.playground span {
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
|
||||||
<h1>Zero Width Unicode Standard</h1>
|
|
||||||
|
|
||||||
<div class="actions">
|
<h1>Zero Width Unicode Standard</h1>
|
||||||
<a
|
|
||||||
class="npm"
|
<a href="https://www.npmjs.com/package/zwus" target="_blank" rel="noopener noreferrer" class="btn">
|
||||||
href="https://www.npmjs.com/package/zwus"
|
npm package
|
||||||
target="_blank"
|
</a>
|
||||||
rel="noopener noreferrer"
|
|
||||||
aria-label="ZWUS npm package"
|
<div class="playground">
|
||||||
>npm</a>
|
<img src="https://raw.githubusercontent.com/planetrenox/inzerosight/main/icon_128.png" alt="inØsight logo">
|
||||||
|
<p>playground: <a href="https://inzerosight.pages.dev" target="_blank" rel="noopener noreferrer">inzerosight.pages.dev</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a
|
|
||||||
class="playground"
|
|
||||||
href="https://inzerosight.pages.dev"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
aria-label="Open inØsight playground"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src="https://raw.githubusercontent.com/planetrenox/inzerosight/main/icon_128.png"
|
|
||||||
alt="inØsight logo"
|
|
||||||
>
|
|
||||||
<span>playground: inzerosight.pages.dev</span>
|
|
||||||
</a>
|
|
||||||
</main>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user