Feat: Add minimalist mobile-ready ZWUS homepage

This commit is contained in:
2026-03-11 20:27:55 -07:00
parent 9f798c52f1
commit 35575b8c46

View File

@@ -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">
<link href="https://fonts.bunny.net/css?family=inter:700,900" rel="stylesheet" />
<style> <style>
:root {
--bg: #fff;
--fg: #000;
--muted: #111;
--border: #000;
}
* { * {
box-sizing: border-box; box-sizing: border-box;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
} }
body, html {
html, body {
margin: 0; margin: 0;
width: 100%; padding: 0;
height: 100%; width: 100vw;
overflow: hidden; height: 100vh;
background: var(--bg); overflow: hidden; /* No scroll */
color: var(--fg); background-color: #ffffff;
font-family: Arial, Helvetica, sans-serif; color: #000000;
font-family: 'Inter', sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
} }
h1 {
body { font-size: 2.5rem;
min-height: 100svh; font-weight: 900;
min-height: 100dvh; line-height: 1.1;
display: grid; margin: 0 0 3rem 0;
place-items: center; padding: 0 1.5rem;
max-width: 600px;
} }
.btn {
main { display: inline-flex;
width: 100%; align-items: center;
height: 100%; justify-content: center;
padding: 24px; background-color: #000000;
color: #ffffff;
text-decoration: none;
padding: 1rem 2.5rem;
border-radius: 9999px; /* Fully round */
font-weight: 700;
font-size: 1.1rem;
margin-bottom: 4rem;
transition: transform 0.1s ease;
}
.btn:active {
transform: scale(0.95);
}
.playground {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; font-weight: 700;
gap: 18px;
text-align: center;
}
h1 {
margin: 0;
font-size: clamp(2rem, 8vw, 4rem);
line-height: 0.95;
font-weight: 900;
letter-spacing: -0.04em;
max-width: 10ch;
text-wrap: balance;
}
.actions {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
}
.npm {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 64px;
height: 64px;
padding: 0 22px;
border: 2px solid var(--border);
border-radius: 999px;
text-decoration: none;
color: var(--fg);
font-size: 1rem; font-size: 1rem;
font-weight: 900;
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 { .playground img {
width: 18px; width: 40px;
height: 18px; height: 40px;
object-fit: contain; margin-bottom: 0.75rem;
display: block; border-radius: 8px; /* Smooth out the icon edges a bit */
border-radius: 4px; }
flex: 0 0 auto; .playground p {
margin: 0;
}
.playground a {
color: #000000;
text-decoration: underline;
text-underline-offset: 4px;
} }
.playground span { @media (max-width: 400px) {
word-break: break-word; h1 { font-size: 2.2rem; }
.btn { padding: 0.8rem 2rem; font-size: 1rem; }
} }
</style> </style>
</head> </head>
<body> <body>
<main>
<h1>Zero Width Unicode Standard</h1> <h1>Zero Width Unicode Standard</h1>
<div class="actions"> <a href="https://www.npmjs.com/package/zwus" target="_blank" rel="noopener noreferrer" class="btn">
<a npm package
class="npm" </a>
href="https://www.npmjs.com/package/zwus"
target="_blank" <div class="playground">
rel="noopener noreferrer" <img src="https://raw.githubusercontent.com/planetrenox/inzerosight/main/icon_128.png" alt="inØsight logo">
aria-label="ZWUS npm package" <p>playground: <a href="https://inzerosight.pages.dev" target="_blank" rel="noopener noreferrer">inzerosight.pages.dev</a></p>
>npm</a>
</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>