share-photos / static /styles.css
jeffboudier's picture
jeffboudier HF Staff
Deploy share-photos
dd5bdb7 verified
Raw History Blame Contribute Delete
12.2 kB
/* Open Together: share photos. Night-party theme, HF yellow accents. */
:root {
--yellow: #FFD21E;
--orange: #FF9D00;
--pink: #ff5fa2;
--violet: #7c5cff;
--bg: #0b0d17;
--bg-2: #12152a;
--surface: rgba(255,255,255,.06);
--surface-2: rgba(255,255,255,.1);
--border: rgba(255,255,255,.12);
--text: #f5f6fb;
--muted: #a9afc4;
--ok: #34d399;
--warn: #fbbf24;
--err: #f87171;
--shadow: 0 10px 30px rgba(0,0,0,.35);
--radius: 22px;
color-scheme: dark;
}
@media (prefers-color-scheme: light) {
:root {
--bg: #fffaf0;
--bg-2: #fff3d6;
--surface: rgba(255,255,255,.75);
--surface-2: #ffffff;
--border: rgba(17,24,39,.1);
--text: #14161f;
--muted: #5d6475;
--ok: #047857;
--warn: #b45309;
--err: #b91c1c;
--shadow: 0 10px 30px rgba(120,80,0,.12);
color-scheme: light;
}
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
font: 16px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
-webkit-font-smoothing: antialiased;
min-height: 100vh; min-height: 100dvh;
padding-bottom: calc(96px + env(safe-area-inset-bottom));
overflow-x: hidden;
}
a { color: inherit; }
/* ---- ambient background ---- */
.glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow .g1 { width: 420px; height: 420px; top: -160px; right: -120px; background: radial-gradient(circle, var(--yellow), transparent 70%); }
.glow .g2 { width: 380px; height: 380px; top: 220px; left: -200px; background: radial-gradient(circle, var(--violet), transparent 70%); opacity: .35; }
.glow .g3 { width: 360px; height: 360px; bottom: -160px; right: -80px; background: radial-gradient(circle, var(--pink), transparent 70%); opacity: .25; }
@media (prefers-color-scheme: light) { .glow span { opacity: .35; } .glow .g2, .glow .g3 { opacity: .18; } }
.wrap { max-width: 560px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px 24px; }
/* ---- hero ---- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.hero-copy { min-width: 0; }
.brand {
display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
font-size: 13px; font-weight: 700; letter-spacing: .02em; text-decoration: none;
}
h1 { margin: 16px 0 6px; font-size: clamp(34px, 10vw, 46px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.hl { background: linear-gradient(100deg, var(--yellow), var(--orange) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 0 0 10px; color: var(--muted); font-size: 17px; max-width: 30ch; }
.meta { margin: 0; display: flex; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero-huggy { width: 132px; height: auto; flex: none; margin-right: -6px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
/* ---- action buttons ---- */
.actions { display: grid; gap: 12px; }
.big-btn {
position: relative; display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 16px 20px;
border-radius: var(--radius); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
transition: transform .12s ease, box-shadow .2s ease;
}
.big-btn:active { transform: scale(.98); }
.big-btn .ico { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.big-btn .label { display: flex; flex-direction: column; line-height: 1.2; }
.big-btn strong { font-size: 19px; letter-spacing: -.01em; }
.big-btn small { font-size: 13px; opacity: .72; margin-top: 3px; font-weight: 500; }
.big-btn.primary {
background: linear-gradient(135deg, #ffe066, var(--yellow) 45%, var(--orange));
color: #1a1300; box-shadow: 0 12px 30px rgba(255,170,0,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.big-btn.primary .ico { width: 34px; height: 34px; padding: 6px; box-sizing: content-box; border-radius: 14px; background: rgba(255,255,255,.45); }
.big-btn.secondary { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.big-btn.secondary .ico { width: 34px; height: 34px; padding: 6px; box-sizing: content-box; border-radius: 14px; background: var(--surface-2); }
.big-btn:focus-visible, input[type=file]:focus-visible + .big-btn { outline: 3px solid var(--orange); outline-offset: 3px; }
/* ---- how it works ---- */
.how { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.how span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 800; }
/* ---- status card ---- */
.card {
position: relative; margin-top: 22px; padding: 20px; border-radius: var(--radius); overflow: hidden;
background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); box-shadow: var(--shadow);
animation: rise .35s ease both;
}
.card.highlight { border: 1px solid rgba(255,210,30,.55); background: linear-gradient(160deg, rgba(255,210,30,.16), var(--surface) 55%); }
.card .card-huggy { position: absolute; right: -6px; top: -4px; width: 92px; opacity: .95; pointer-events: none; }
.card h3 { margin: 0 0 6px; padding-right: 84px; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.card p { margin: 0 0 16px; color: var(--muted); padding-right: 40px; }
.card .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.small { font-size: 13px; color: var(--muted); margin: 14px 0 0 !important; padding-right: 0 !important; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px;
border-radius: 16px; border: 0; background: var(--yellow); color: #1a1300; font: inherit; font-weight: 800;
text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(255,170,0,.28);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn img { width: 20px; height: 20px; flex: none; }
.btn.secondary { background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.btn.link { background: none; box-shadow: none; padding: 0 6px; min-height: 40px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
/* ---- tray ---- */
.tray-section { margin-top: 28px; }
.tray-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.count-pill { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted); }
.tray { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-2);
box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: pop .3s ease both;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.tile .placeholder::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--yellow); animation: spin 1s linear infinite; }
.tile .overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,12,22,.45); }
.tile .ring { width: 48px; height: 48px; }
.tile .ring circle { fill: none; stroke-width: 5; }
.tile .ring .track { stroke: rgba(255,255,255,.3); }
.tile .ring .bar { stroke: var(--yellow); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .2s; }
.tile .badge {
position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 12px);
padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: rgba(10,12,22,.72); color: #fff;
backdrop-filter: blur(6px); white-space: nowrap;
}
.tile .badge.live { background: #059669; }
.tile .badge.pending { background: rgba(180,83,9,.92); }
.tile .badge.error { background: #dc2626; }
.tile .remove {
position: absolute; top: 6px; right: 6px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; border: 0;
background: rgba(10,12,22,.6); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; backdrop-filter: blur(6px);
}
.tile .remove.confirm { background: #dc2626; }
.tile button.retry { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.note { margin-top: 18px; font-size: 14px; }
.note.warn { color: var(--warn); }
.fineprint { margin: 28px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; opacity: .85; }
/* ---- account bar ---- */
.account {
position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5;
max-width: 536px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
padding: 8px 8px 8px 16px; border-radius: 999px; font-size: 14px;
background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4);
border: 1px solid var(--border); box-shadow: 0 12px 34px rgba(0,0,0,.35);
}
.account:empty { display: none; }
.account img { width: 28px; height: 28px; border-radius: 50%; }
.account .who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .muted { color: var(--muted); font-weight: 600; }
.account .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 999px; flex: none; }
.account .btn.link { padding: 0 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.2); flex: none; }
.toast {
position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10;
max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: #fff; color: #111;
font-weight: 700; box-shadow: 0 12px 40px rgba(0,0,0,.35); animation: rise .25s ease both;
}
.frame-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--yellow); color: #111; font-size: 14px; font-weight: 700; }
.pill-link { padding: 6px 12px; border-radius: 999px; background: #111; color: #fff; text-decoration: none; font-weight: 800; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; }
}