mirror of
https://github.com/inzerosight/zwus.pages.dev.git
synced 2026-04-07 05:02:16 +00:00
Fix: center screen + repair button sizing
Co-authored-by: gpt-5.3-codex <no-reply@openai.com>
This commit is contained in:
92
index.html
92
index.html
@@ -7,12 +7,6 @@
|
|||||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||||
<link href="https://fonts.bunny.net/css?family=inter:400,700,900" rel="stylesheet" />
|
<link href="https://fonts.bunny.net/css?family=inter:400,700,900" rel="stylesheet" />
|
||||||
<style>
|
<style>
|
||||||
:root {
|
|
||||||
--content-max: 760px;
|
|
||||||
--grid-max: 340px;
|
|
||||||
--pad-x: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
@@ -22,62 +16,64 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100%;
|
height: 100%;
|
||||||
background: #fff;
|
overflow: hidden;
|
||||||
color: #000;
|
background-color: #ffffff;
|
||||||
|
color: #000000;
|
||||||
font-family: 'Inter', sans-serif;
|
font-family: 'Inter', sans-serif;
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
min-height: 100vh;
|
display: grid;
|
||||||
min-height: 100dvh;
|
place-items: center; /* true vertical + horizontal centering */
|
||||||
|
text-align: center;
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
|
padding: 12px;
|
||||||
|
padding-top: max(12px, env(safe-area-inset-top));
|
||||||
|
padding-bottom: max(12px, env(safe-area-inset-bottom));
|
||||||
}
|
}
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
width: min(100%, var(--content-max));
|
width: min(100%, 760px);
|
||||||
margin-inline: auto; /* TRUE horizontal centering */
|
display: flex;
|
||||||
text-align: center;
|
flex-direction: column;
|
||||||
padding:
|
align-items: center;
|
||||||
max(48px, env(safe-area-inset-top))
|
|
||||||
var(--pad-x)
|
|
||||||
max(24px, env(safe-area-inset-bottom));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0 0 2.2rem;
|
font-size: 2.5rem;
|
||||||
padding: 0 1rem;
|
|
||||||
font-size: clamp(2rem, 8vw, 2.6rem);
|
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
|
margin: 0 0 2.5rem 0;
|
||||||
|
padding: 0 1rem;
|
||||||
|
max-width: 600px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
width: min(100%, var(--grid-max));
|
width: min(100%, 380px); /* slightly wider so outlined btn text fits */
|
||||||
margin: 0 auto 2.2rem; /* centered */
|
margin-bottom: 2.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid a {
|
.grid a {
|
||||||
width: 100%;
|
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
|
min-width: 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap;
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 0.95rem;
|
font-size: clamp(0.86rem, 3.2vw, 0.95rem);
|
||||||
padding: 0.85rem 1rem;
|
padding: 0.85rem 0.8rem;
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
transition: transform 0.1s ease, opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
|
transition: transform 0.1s ease, opacity 0.15s ease;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid a:active {
|
.grid a:active {
|
||||||
transform: scale(0.97);
|
transform: scale(0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid a img {
|
.grid a img {
|
||||||
@@ -85,16 +81,15 @@
|
|||||||
height: 20px;
|
height: 20px;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
flex: 0 0 20px;
|
flex: 0 0 20px;
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.filled {
|
.filled {
|
||||||
color: #fff;
|
color: #ffffff;
|
||||||
background: #000;
|
background-color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filled.rust {
|
.filled.rust {
|
||||||
background: #ce412b;
|
background-color: #ce412b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filled .logo-invert {
|
.filled .logo-invert {
|
||||||
@@ -102,14 +97,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.outlined {
|
.outlined {
|
||||||
color: #000;
|
color: #000000;
|
||||||
background: transparent;
|
background-color: transparent;
|
||||||
border: 2px solid #000;
|
border: 2px solid #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.outlined:hover {
|
.outlined:hover {
|
||||||
background: #000;
|
background-color: #000000;
|
||||||
color: #fff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
@@ -120,13 +115,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.playground {
|
.playground {
|
||||||
width: min(100%, var(--grid-max));
|
|
||||||
margin: 0 auto; /* centered */
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: #666;
|
font-weight: 400;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.playground img {
|
.playground img {
|
||||||
@@ -134,7 +128,6 @@
|
|||||||
height: 36px;
|
height: 36px;
|
||||||
margin-bottom: 0.6rem;
|
margin-bottom: 0.6rem;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.playground p {
|
.playground p {
|
||||||
@@ -142,17 +135,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.playground a {
|
.playground a {
|
||||||
color: #000;
|
color: #000000;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-underline-offset: 4px;
|
text-underline-offset: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 380px) {
|
@media (max-width: 380px) {
|
||||||
:root { --grid-max: 290px; }
|
|
||||||
h1 { font-size: 2rem; }
|
h1 { font-size: 2rem; }
|
||||||
|
.grid { width: min(100%, 300px); }
|
||||||
.grid a { font-size: 0.8rem; padding: 0.7rem 0.6rem; }
|
.grid a { font-size: 0.8rem; padding: 0.7rem 0.6rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 340px) {
|
||||||
|
.grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
width: min(100%, 280px);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user