246 lines
7.9 KiB
CSS
246 lines
7.9 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #080b16;
|
|
--card: rgba(255, 255, 255, 0.08);
|
|
--card-strong: rgba(255, 255, 255, 0.13);
|
|
--text: #f8fafc;
|
|
--muted: #a6b0c3;
|
|
--line: rgba(255, 255, 255, 0.16);
|
|
--accent: #7c3aed;
|
|
--accent-2: #06b6d4;
|
|
--success: #34d399;
|
|
--danger: #fb7185;
|
|
--shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
|
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.35), transparent 32rem),
|
|
radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.22), transparent 28rem),
|
|
linear-gradient(135deg, #080b16 0%, #101323 52%, #080b16 100%);
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background-image:
|
|
linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
|
|
background-size: 48px 48px;
|
|
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
|
|
}
|
|
|
|
a { color: inherit; }
|
|
button, input { font: inherit; }
|
|
|
|
.page-shell {
|
|
position: relative;
|
|
width: min(1120px, calc(100% - 32px));
|
|
margin: 0 auto;
|
|
padding: 24px 0 56px;
|
|
}
|
|
|
|
.hero { min-height: 72vh; }
|
|
|
|
.nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
margin-bottom: 72px;
|
|
}
|
|
|
|
.brand, .nav-pill, .primary-link { text-decoration: none; }
|
|
|
|
.brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.brand-mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 14px;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
|
box-shadow: 0 16px 34px rgba(124, 58, 237, 0.36);
|
|
}
|
|
|
|
.nav-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.nav-pill, .nav-button, .ghost-button {
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
color: var(--muted);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
transition: 0.2s ease;
|
|
}
|
|
|
|
.nav-button, .ghost-button { cursor: pointer; }
|
|
.nav-pill:hover, .ghost-button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-1px); }
|
|
|
|
.user-chip {
|
|
max-width: 220px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 10px 14px;
|
|
border: 1px solid rgba(52, 211, 153, 0.28);
|
|
border-radius: 999px;
|
|
color: #bbf7d0;
|
|
background: rgba(52, 211, 153, 0.1);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hero-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 460px;
|
|
gap: 56px;
|
|
align-items: center;
|
|
}
|
|
|
|
.eyebrow, .card-kicker, .result-label {
|
|
margin: 0 0 10px;
|
|
color: #93c5fd;
|
|
font-size: 0.78rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
h1, h2, h3, p { margin-top: 0; }
|
|
|
|
h1 {
|
|
max-width: 760px;
|
|
margin-bottom: 22px;
|
|
font-size: clamp(3rem, 7vw, 5.8rem);
|
|
line-height: 0.9;
|
|
letter-spacing: -0.08em;
|
|
}
|
|
|
|
.subline {
|
|
max-width: 650px;
|
|
color: var(--muted);
|
|
font-size: clamp(1.05rem, 2vw, 1.25rem);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
|
|
.stats div { min-width: 116px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.055); backdrop-filter: blur(16px); }
|
|
.stats strong { display: block; margin-bottom: 4px; font-size: 1.45rem; letter-spacing: -0.06em; }
|
|
.stats span { color: var(--muted); font-size: 0.9rem; }
|
|
|
|
.card, .links-section {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 26px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 34px;
|
|
background: linear-gradient(180deg, var(--card-strong), var(--card));
|
|
box-shadow: var(--shadow);
|
|
backdrop-filter: blur(24px);
|
|
}
|
|
|
|
.card::before, .links-section::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 36%);
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.card > *, .links-section > * { position: relative; }
|
|
.card-header, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
|
|
.card h2, .section-heading h2 { margin-bottom: 0; font-size: 2rem; letter-spacing: -0.05em; }
|
|
|
|
.sparkle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); color: #fde68a; }
|
|
.login-panel .primary-link { display: inline-flex; margin-top: 18px; }
|
|
|
|
.primary-link, #submit-button {
|
|
padding: 15px 20px;
|
|
border-radius: 18px;
|
|
color: white;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
|
box-shadow: 0 16px 30px rgba(6, 182, 212, 0.18);
|
|
transition: 0.2s ease;
|
|
}
|
|
.primary-link:hover, #submit-button:hover { transform: translateY(-1px); box-shadow: 0 20px 36px rgba(6, 182, 212, 0.26); }
|
|
|
|
.form label { display: block; margin-bottom: 10px; color: var(--muted); font-weight: 700; }
|
|
.input-row { display: flex; gap: 10px; }
|
|
|
|
input {
|
|
min-width: 0;
|
|
width: 100%;
|
|
padding: 16px 17px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 18px;
|
|
outline: none;
|
|
color: var(--text);
|
|
background: rgba(8, 11, 22, 0.68);
|
|
transition: 0.2s ease;
|
|
}
|
|
input:focus { border-color: rgba(6, 182, 212, 0.65); box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14); }
|
|
button { border: 0; cursor: pointer; white-space: nowrap; font-weight: 800; }
|
|
#submit-button { border: 0; }
|
|
#submit-button:disabled { cursor: progress; opacity: 0.7; transform: none; }
|
|
|
|
.hint, .long-url, .link-long { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; }
|
|
.bigger { line-height: 1.6; font-size: 1rem; }
|
|
.alert { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(251, 113, 133, 0.35); border-radius: 18px; color: #fecdd3; background: rgba(251, 113, 133, 0.12); }
|
|
|
|
.result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
|
|
.result-box { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(52, 211, 153, 0.32); border-radius: 22px; background: rgba(52, 211, 153, 0.09); }
|
|
#short-url, .link-short { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; color: #bbf7d0; font-weight: 800; text-decoration: none; white-space: nowrap; }
|
|
#copy-button, .small-button { padding: 12px 14px; border-radius: 15px; color: var(--text); background: rgba(255, 255, 255, 0.12); transition: 0.2s ease; }
|
|
#copy-button:hover, .small-button:hover { background: rgba(255, 255, 255, 0.2); }
|
|
|
|
.links-section { margin-top: 40px; }
|
|
.empty-state { padding: 22px; border: 1px dashed var(--line); border-radius: 22px; color: var(--muted); text-align: center; }
|
|
.links-list { display: grid; gap: 14px; }
|
|
.link-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, 0.055); }
|
|
.link-main { min-width: 0; }
|
|
.edit-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
|
|
.edit-input { padding: 13px 14px; border-radius: 15px; }
|
|
.link-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.danger-button { color: #fecdd3; background: rgba(251, 113, 133, 0.13); }
|
|
.danger-button:hover { background: rgba(251, 113, 133, 0.22); }
|
|
|
|
@media (max-width: 900px) {
|
|
.nav { margin-bottom: 42px; }
|
|
.hero-grid { grid-template-columns: 1fr; gap: 34px; }
|
|
.card { max-width: 680px; }
|
|
.edit-form { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.page-shell { width: min(100% - 22px, 1120px); padding-top: 16px; }
|
|
.nav { align-items: flex-start; margin-bottom: 34px; }
|
|
h1 { font-size: clamp(2.7rem, 17vw, 4.2rem); }
|
|
.input-row, .result-box, .section-heading { flex-direction: column; align-items: stretch; }
|
|
#submit-button, #copy-button, .small-button { min-height: 52px; }
|
|
.stats { display: grid; grid-template-columns: 1fr; }
|
|
.link-actions { display: grid; grid-template-columns: 1fr; }
|
|
}
|