Job Board — Gig / Shift Work Landing
A mobile-first marketing landing page for a fictional gig and shift-work platform, built with a bold orange-and-teal palette and chunky sans typography. It pairs an energetic hero with a live shift feed, animated count-up stats, an instant-pay wallet widget, scannable shift categories, a three-step how-it-works flow, an app-download block, and a business hiring call to action. Every section reveals on scroll and interactions surface lightweight toasts.
MCP
Code
:root {
--brand: #ff6a1a;
--brand-d: #e2530a;
--brand-50: #fff1e8;
--teal: #0ea5a4;
--teal-d: #0b7e7d;
--teal-50: #e6fafa;
--ink: #11161c;
--ink-2: #3a4654;
--muted: #6b7785;
--bg: #fff8f3;
--surface: #ffffff;
--line: rgba(17, 22, 28, 0.10);
--line-2: rgba(17, 22, 28, 0.18);
--ok: #16a34a;
--warn: #d97706;
--danger: #dc2626;
--r-sm: 10px;
--r-md: 16px;
--r-lg: 26px;
--r-pill: 999px;
--sh-sm: 0 2px 8px rgba(17, 22, 28, 0.06);
--sh-md: 0 12px 30px rgba(17, 22, 28, 0.10);
--sh-lg: 0 26px 60px rgba(226, 83, 10, 0.18);
--maxw: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: "Inter", system-ui, -apple-system, sans-serif;
background: var(--bg);
color: var(--ink);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link {
position: absolute; left: -999px; top: 0; z-index: 200;
background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }
/* ---------- buttons ---------- */
.btn {
border: 0; border-radius: var(--r-pill); padding: 14px 22px;
font-weight: 700; font-size: 1rem; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-lg); }
.btn--primary:hover { background: var(--brand-d); }
.btn--ghost { background: var(--ink); color: #fff; }
.btn--ghost:hover { background: #000; }
.btn--full { width: 100%; }
/* ---------- nav ---------- */
.nav {
position: sticky; top: 0; z-index: 100;
background: rgba(255, 248, 243, 0.82);
backdrop-filter: saturate(160%) blur(12px);
border-bottom: 1px solid transparent;
transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--sh-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--brand-50); border-radius: 9px; }
.brand--light { color: #fff; }
.brand--light .brand__mark { background: rgba(255,255,255,0.12); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
padding: 9px 14px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-2);
font-size: .95rem; transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--brand-50); color: var(--brand-d); }
.nav__cta { background: var(--teal); color: #fff !important; }
.nav__cta:hover { background: var(--teal-d) !important; color: #fff !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; align-items: center; justify-content: center; }
.nav__toggle span { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 54px 0 70px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero__copy h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); margin: 16px 0 14px; }
.hl { color: var(--brand); -webkit-text-fill-color: transparent; background: linear-gradient(95deg, var(--brand), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 30ch; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: var(--teal-50); color: var(--teal-d); font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid rgba(14,165,164,.22); }
.badge--pulse::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(14,165,164,.55); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,165,164,.5);} 70% { box-shadow: 0 0 0 9px rgba(14,165,164,0);} 100% { box-shadow: 0 0 0 0 rgba(14,165,164,0);} }
.search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; background: var(--surface); padding: 8px; border-radius: var(--r-lg); box-shadow: var(--sh-md); margin: 26px 0 14px; }
.search__field { display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: var(--r-md); }
.search__field + .search__field { border-left: 1px solid var(--line); }
.search__icon { font-size: 1rem; }
.search input { border: 0; outline: 0; font-size: 1rem; width: 100%; background: transparent; color: var(--ink); padding: 10px 0; font-family: inherit; }
.search .btn { white-space: nowrap; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .88rem; padding: 7px 14px; border-radius: var(--r-pill); transition: all .15s ease; }
.chip:hover { border-color: var(--brand); color: var(--brand-d); background: var(--brand-50); transform: translateY(-1px); }
.hero__stats { display: flex; gap: 30px; }
.hero__stats strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.hero__stats span { font-size: .82rem; color: var(--muted); font-weight: 500; }
.hero__card { position: relative; }
.livecard { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 18px; border: 1px solid var(--line); }
.livecard__top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink-2); margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
.livecard__list { display: grid; gap: 10px; }
.shiftrow { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.shiftrow:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); border-color: var(--line-2); }
.shiftrow__logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .9rem; }
.shiftrow__role { font-weight: 700; font-size: .92rem; }
.shiftrow__meta { font-size: .78rem; color: var(--muted); }
.shiftrow__pay { font-weight: 800; color: var(--teal-d); font-size: .95rem; text-align: right; white-space: nowrap; }
.shiftrow__pay small { display: block; font-weight: 600; color: var(--muted); font-size: .68rem; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 1; }
.hero__blob--a { width: 360px; height: 360px; background: radial-gradient(circle, var(--brand), transparent 70%); top: -120px; right: -90px; }
.hero__blob--b { width: 320px; height: 320px; background: radial-gradient(circle, var(--teal), transparent 70%); bottom: -140px; left: -110px; }
/* ---------- instant pay ---------- */
.pay { padding: 72px 0; }
.pay__inner { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--brand-d); background: var(--brand-50); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }
.eyebrow--light { color: #fff; background: rgba(255,255,255,.14); }
.pay h2, .cats h2, .how h2, .business h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.pay p { color: var(--ink-2); font-size: 1.06rem; max-width: 46ch; margin-bottom: 20px; }
.ticklist { display: grid; gap: 11px; }
.ticklist li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink-2); }
.ticklist li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; background: var(--teal-50); color: var(--teal-d); border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.wallet { background: linear-gradient(160deg, var(--ink), #1d2733); color: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-md); }
.wallet__label { font-size: .82rem; color: rgba(255,255,255,.6); font-weight: 600; }
.wallet__amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 14px; }
.wallet__bar { height: 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); overflow: hidden; margin-bottom: 18px; }
.wallet__bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--teal)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.wallet__rows { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.wallet__rows > div { display: flex; justify-content: space-between; font-size: .9rem; }
.wallet__rows span { color: rgba(255,255,255,.7); }
.wallet__rows b { color: #fff; }
/* ---------- categories ---------- */
.cats { padding: 30px 0 72px; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 36px; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; margin-top: 8px; }
.cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
text-align: left; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; position: relative; overflow: hidden;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.cat__emoji { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.cat h3 { font-size: 1.12rem; }
.cat p { font-size: .85rem; color: var(--muted); margin: 5px 0 12px; }
.cat__count { font-weight: 700; font-size: .82rem; color: var(--teal-d); display: inline-flex; align-items: center; gap: 6px; }
.cat__count::after { content: "→"; transition: transform .15s ease; }
.cat:hover .cat__count::after { transform: translateX(4px); }
/* ---------- how it works ---------- */
.how { padding: 30px 0 72px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--sh-lg); }
.step:nth-child(2) .step__num { background: var(--teal); box-shadow: 0 14px 28px rgba(14,165,164,.28); }
.step h3 { font-size: 1.2rem; margin-bottom: 7px; }
.step p { color: var(--ink-2); font-size: .95rem; }
/* ---------- download ---------- */
.download { padding: 30px 0 60px; }
.download__inner {
background: linear-gradient(135deg, var(--brand), var(--brand-d) 55%, var(--teal));
border-radius: var(--r-lg); padding: 48px; display: grid; grid-template-columns: 1fr 0.7fr; gap: 30px; align-items: center;
color: #fff; box-shadow: var(--sh-lg); position: relative; overflow: hidden;
}
.download__copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; color: #fff; }
.download__copy p { color: rgba(255,255,255,.9); font-size: 1.06rem; max-width: 42ch; margin-bottom: 22px; }
.download__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.store { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: #fff; border: 0; padding: 11px 18px; border-radius: 14px; transition: transform .12s ease, background .18s ease; }
.store:hover { transform: translateY(-2px); background: #000; }
.store > span:first-child { font-size: 1.4rem; }
.store__t { display: grid; text-align: left; line-height: 1.1; }
.store__t small { font-size: .68rem; opacity: .8; }
.store__t b { font-size: 1.05rem; }
.rating { font-weight: 700; color: #ffd9c2; }
.rating span { color: rgba(255,255,255,.85); font-weight: 600; font-size: .88rem; }
.download__phone { display: grid; place-items: center; }
.phone { width: 220px; background: #0b1118; border-radius: 34px; padding: 12px; box-shadow: 0 24px 50px rgba(0,0,0,.3); position: relative; }
.phone__notch { width: 90px; height: 20px; background: #0b1118; border-radius: 0 0 14px 14px; margin: -12px auto 8px; position: relative; z-index: 2; }
.phone__screen { background: var(--bg); border-radius: 24px; padding: 14px; }
.phone__hd { font-weight: 800; font-size: .95rem; margin-bottom: 10px; color: var(--ink); }
.phone__card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px; margin-bottom: 9px; display: grid; gap: 2px; }
.phone__card b { font-size: .8rem; color: var(--ink); }
.phone__card span { font-size: .72rem; color: var(--muted); }
.phone__card i { justify-self: start; font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; background: var(--teal); padding: 3px 11px; border-radius: var(--r-pill); margin-top: 5px; }
/* ---------- business ---------- */
.business { padding: 20px 0 80px; }
.business__inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; box-shadow: var(--sh-sm); }
.business h2 { margin-bottom: 10px; }
.business p { color: var(--ink-2); font-size: 1.04rem; max-width: 44ch; }
.biz-form { display: flex; gap: 8px; }
.biz-form input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 14px 18px; font-size: 1rem; font-family: inherit; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.biz-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.business__cta small { display: block; color: var(--muted); font-size: .82rem; margin-top: 11px; text-align: center; }
/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.78); padding: 54px 0 24px; }
.foot__inner { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot__brand p { margin-top: 12px; font-size: .9rem; max-width: 24ch; color: rgba(255,255,255,.6); }
.foot__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.foot__col a { display: block; padding: 6px 0; color: rgba(255,255,255,.78); font-size: .92rem; transition: color .15s ease; }
.foot__col a:hover { color: #fff; }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); }
/* ---------- toast ---------- */
.toast {
position: fixed; left: 50%; bottom: 26px; translate: -50% 0;
background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r-pill);
font-weight: 600; font-size: .92rem; box-shadow: var(--sh-md); opacity: 0; pointer-events: none;
transition: opacity .25s ease, transform .25s ease; z-index: 300; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateY(-6px); }
/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* ---------- responsive ---------- */
@media (max-width: 940px) {
.hero__inner, .pay__inner, .download__inner, .business__inner { grid-template-columns: 1fr; }
.hero__card { order: -1; }
.cats__grid { grid-template-columns: repeat(2, 1fr); }
.steps { grid-template-columns: 1fr; }
.download__phone { display: none; }
.foot__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
.nav__toggle { display: flex; }
.nav__links {
position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px; gap: 4px;
box-shadow: var(--sh-md); transform-origin: top; max-height: 0; overflow: hidden; opacity: 0;
transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
}
.nav__links a { padding: 13px 14px; text-align: center; }
.nav.is-open .nav__links { max-height: 360px; opacity: 1; }
}
@media (max-width: 520px) {
.wrap { padding: 0 16px; }
.hero { padding: 36px 0 50px; }
.search { grid-template-columns: 1fr; padding: 10px; }
.search__field + .search__field { border-left: 0; border-top: 1px solid var(--line); }
.search .btn { width: 100%; }
.hero__stats { gap: 18px; }
.hero__stats strong { font-size: 1.4rem; }
.cats__grid { grid-template-columns: 1fr; }
.pay, .cats, .how { padding-top: 12px; padding-bottom: 50px; }
.download__inner, .business__inner { padding: 28px 22px; }
.biz-form { flex-direction: column; }
.biz-form .btn { width: 100%; }
.foot__inner { grid-template-columns: 1fr 1fr; gap: 22px; }
.foot__brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; scroll-behavior: auto; }
.reveal { opacity: 1; transform: none; transition: none; }
}(function () {
"use strict";
/* ---------- toast ---------- */
const toastEl = document.getElementById("toast");
let toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(() => toastEl.classList.remove("show"), 2600);
}
/* ---------- mobile nav ---------- */
const nav = document.getElementById("nav");
const navToggle = document.getElementById("navToggle");
const navLinks = document.getElementById("navLinks");
function closeNav() {
nav.classList.remove("is-open");
navToggle.setAttribute("aria-expanded", "false");
navToggle.setAttribute("aria-label", "Open menu");
}
navToggle.addEventListener("click", () => {
const open = nav.classList.toggle("is-open");
navToggle.setAttribute("aria-expanded", String(open));
navToggle.setAttribute("aria-label", open ? "Close menu" : "Open menu");
});
navLinks.addEventListener("click", (e) => {
if (e.target.closest("a")) closeNav();
});
/* ---------- nav scroll shadow ---------- */
const onScroll = () => nav.classList.toggle("is-scrolled", window.scrollY > 8);
onScroll();
window.addEventListener("scroll", onScroll, { passive: true });
/* ---------- live shifts feed ---------- */
const companies = [
{ name: "Maple St Café", role: "Barista", color: "#0ea5a4", time: "6am–11am", dist: "0.8 mi", pay: "$17", unit: "/hr" },
{ name: "Riverbend Logistics", role: "Warehouse Picker", color: "#ff6a1a", time: "2pm–8pm", dist: "3.1 mi", pay: "$19", unit: "/hr" },
{ name: "QuickEats", role: "Delivery Driver", color: "#7c3aed", time: "5pm–10pm", dist: "1.4 mi", pay: "$21", unit: "/hr" },
{ name: "Lakeside Care", role: "Caregiver", color: "#db2777", time: "8am–4pm", dist: "2.2 mi", pay: "$23", unit: "/hr" },
{ name: "The Copper Tap", role: "Bartender", color: "#d97706", time: "7pm–1am", dist: "0.5 mi", pay: "$18", unit: "/hr" },
{ name: "Summit Events", role: "Event Setup", color: "#2563eb", time: "10am–3pm", dist: "4.0 mi", pay: "$16", unit: "/hr" },
{ name: "GreenLeaf Grocers", role: "Stock Associate", color: "#16a34a", time: "9pm–2am", dist: "1.9 mi", pay: "$17", unit: "/hr" },
{ name: "Harbor Hotel", role: "Housekeeping", color: "#0891b2", time: "8am–2pm", dist: "2.7 mi", pay: "$18", unit: "/hr" },
];
function initials(name) {
return name.split(" ").filter(Boolean).slice(0, 2).map((w) => w[0]).join("").toUpperCase();
}
function shiftRow(c) {
const li = document.createElement("li");
li.className = "shiftrow";
li.innerHTML =
'<span class="shiftrow__logo" style="background:' + c.color + '">' + initials(c.name) + "</span>" +
'<span><span class="shiftrow__role">' + c.role + "</span>" +
'<span class="shiftrow__meta">' + c.name + " · " + c.time + " · " + c.dist + "</span></span>" +
'<span class="shiftrow__pay">' + c.pay + "<small>" + c.unit + "</small></span>";
li.addEventListener("click", () => toast("Shift saved · " + c.role + " at " + c.name));
li.tabIndex = 0;
li.setAttribute("role", "button");
li.addEventListener("keydown", (e) => {
if (e.key === "Enter" || e.key === " ") { e.preventDefault(); li.click(); }
});
return li;
}
const liveList = document.getElementById("liveList");
let feedIdx = 0;
function seedFeed() {
liveList.innerHTML = "";
for (let i = 0; i < 4; i++) {
liveList.appendChild(shiftRow(companies[(feedIdx + i) % companies.length]));
}
feedIdx = (feedIdx + 1) % companies.length;
}
seedFeed();
// rotate one fresh shift in periodically
setInterval(() => {
if (document.hidden) return;
const fresh = shiftRow(companies[feedIdx % companies.length]);
fresh.style.animation = "none";
liveList.insertBefore(fresh, liveList.firstChild);
fresh.animate(
[{ opacity: 0, transform: "translateY(-8px)" }, { opacity: 1, transform: "none" }],
{ duration: 360, easing: "ease" }
);
if (liveList.children.length > 4) liveList.removeChild(liveList.lastChild);
feedIdx = (feedIdx + 1) % companies.length;
}, 4200);
/* ---------- search ---------- */
const searchForm = document.getElementById("searchForm");
searchForm.addEventListener("submit", (e) => {
e.preventDefault();
const loc = document.getElementById("loc").value.trim() || "your area";
const role = document.getElementById("role").value.trim();
const n = 40 + Math.floor(Math.random() * 260);
toast(role
? n + " " + role + " shifts found near " + loc
: n + " open shifts found near " + loc);
});
document.getElementById("quickChips").addEventListener("click", (e) => {
const btn = e.target.closest(".chip");
if (!btn) return;
document.getElementById("role").value = btn.dataset.q;
searchForm.requestSubmit();
});
/* ---------- count up stats ---------- */
const counters = document.querySelectorAll("[data-count]");
function animateCount(el) {
const target = +el.dataset.count;
const dur = 1400;
const start = performance.now();
const fmt = (v) => target >= 1000 ? Math.round(v).toLocaleString() : Math.round(v);
function tick(now) {
const p = Math.min((now - start) / dur, 1);
const eased = 1 - Math.pow(1 - p, 3);
el.textContent = fmt(target * eased);
if (p < 1) requestAnimationFrame(tick);
}
requestAnimationFrame(tick);
}
/* ---------- wallet widget ---------- */
const walletAmount = document.getElementById("walletAmount");
const walletBar = document.getElementById("walletBar");
const cashoutBtn = document.getElementById("cashoutBtn");
const WALLET_TOTAL = 138.5;
let walletAnimated = false;
let cashedOut = false;
function animateWallet() {
if (walletAnimated) return;
walletAnimated = true;
walletBar.style.width = "82%";
const start = performance.now();
function tick(now) {
const p = Math.min((now - start) / 1200, 1);
const eased = 1 - Math.pow(1 - p, 3);
walletAmount.textContent = "$" + (WALLET_TOTAL * eased).toFixed(2);
if (p < 1) requestAnimationFrame(tick);
}
requestAnimationFrame(tick);
}
cashoutBtn.addEventListener("click", () => {
if (cashedOut) { toast("Already cashed out for today 🎉"); return; }
cashedOut = true;
walletBar.style.width = "0%";
walletAmount.textContent = "$0.00";
cashoutBtn.textContent = "Cashed out ✓";
cashoutBtn.disabled = true;
cashoutBtn.style.opacity = ".7";
toast("$" + WALLET_TOTAL.toFixed(2) + " sent to your bank — usually instant");
});
/* ---------- categories ---------- */
const cats = [
{ emoji: "🍽️", bg: "#fff1e8", title: "Hospitality", desc: "Servers, baristas, bartenders & kitchen", count: "1,240 shifts" },
{ emoji: "📦", bg: "#e6fafa", title: "Warehouse", desc: "Pickers, packers, forklift & loading", count: "980 shifts" },
{ emoji: "🚚", bg: "#ede9fe", title: "Delivery", desc: "Drivers, couriers & last-mile", count: "760 shifts" },
{ emoji: "🩺", bg: "#fce7f3", title: "Care & Health", desc: "Caregivers, aides & support staff", count: "540 shifts" },
{ emoji: "🛒", bg: "#dcfce7", title: "Retail", desc: "Stock, cashier & merchandising", count: "690 shifts" },
{ emoji: "🎪", bg: "#dbeafe", title: "Events", desc: "Setup, ushers & promo crew", count: "410 shifts" },
{ emoji: "🧹", bg: "#fef3c7", title: "Cleaning", desc: "Housekeeping & facilities", count: "320 shifts" },
{ emoji: "🏗️", bg: "#ffe4d6", title: "General Labor", desc: "Movers, helpers & site crew", count: "470 shifts" },
];
const catGrid = document.getElementById("catGrid");
cats.forEach((c) => {
const b = document.createElement("button");
b.className = "cat reveal";
b.type = "button";
b.innerHTML =
'<span class="cat__emoji" style="background:' + c.bg + '">' + c.emoji + "</span>" +
"<h3>" + c.title + "</h3>" +
"<p>" + c.desc + "</p>" +
'<span class="cat__count">' + c.count + "</span>";
b.addEventListener("click", () => toast("Browsing " + c.title + " · " + c.count));
catGrid.appendChild(b);
});
/* ---------- store + business ---------- */
document.querySelectorAll(".store").forEach((s) => {
s.addEventListener("click", () => toast("Opening " + s.dataset.store + " (demo)"));
});
const bizForm = document.getElementById("bizForm");
bizForm.addEventListener("submit", (e) => {
e.preventDefault();
const email = document.getElementById("bizEmail").value.trim();
toast("Thanks! We'll reach out to " + email + " shortly.");
bizForm.reset();
});
/* ---------- scroll reveal ---------- */
const reveals = () => document.querySelectorAll(".reveal");
if ("IntersectionObserver" in window) {
const io = new IntersectionObserver((entries, obs) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return;
entry.target.classList.add("in");
if (entry.target.querySelector("[data-count]") || entry.target.matches("[data-count]")) {
/* handled below */
}
obs.unobserve(entry.target);
});
}, { threshold: 0.14 });
reveals().forEach((el) => io.observe(el));
// counters + wallet have their own observer for precise trigger
const fx = new IntersectionObserver((entries, obs) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return;
if (entry.target.matches("[data-count]")) animateCount(entry.target);
if (entry.target.classList.contains("wallet")) animateWallet();
obs.unobserve(entry.target);
});
}, { threshold: 0.4 });
counters.forEach((c) => fx.observe(c));
const wallet = document.querySelector(".wallet");
if (wallet) fx.observe(wallet);
} else {
reveals().forEach((el) => el.classList.add("in"));
counters.forEach(animateCount);
animateWallet();
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ShiftHive — Find Shifts Near You, Get Paid Today</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<header class="nav" id="nav">
<div class="wrap nav__inner">
<a href="#" class="brand" aria-label="ShiftHive home">
<span class="brand__mark" aria-hidden="true">
<svg viewBox="0 0 24 24" width="22" height="22" fill="none"><path d="M12 2l9 5.2v9.6L12 22l-9-5.2V7.2L12 2z" fill="var(--brand)"/><path d="M12 7l4.5 2.6v5.2L12 17.4 7.5 14.8V9.6L12 7z" fill="#fff"/></svg>
</span>
ShiftHive
</a>
<nav class="nav__links" id="navLinks" aria-label="Primary">
<a href="#categories">Find shifts</a>
<a href="#how">How it works</a>
<a href="#pay">Instant pay</a>
<a href="#business">For business</a>
<a href="#download" class="nav__cta">Get the app</a>
</nav>
<button class="nav__toggle" id="navToggle" aria-expanded="false" aria-controls="navLinks" aria-label="Open menu">
<span></span><span></span><span></span>
</button>
</div>
</header>
<main id="main">
<!-- HERO -->
<section class="hero" id="top">
<div class="wrap hero__inner">
<div class="hero__copy reveal">
<span class="badge badge--pulse">⚡ 4,120 shifts open right now</span>
<h1>Find shifts near you. <span class="hl">Get paid today.</span></h1>
<p class="hero__lead">Pick up flexible gigs in hospitality, warehouse, delivery and care. Work when you want, cash out the second your shift ends.</p>
<form class="search" id="searchForm" aria-label="Search shifts">
<div class="search__field">
<span class="search__icon" aria-hidden="true">📍</span>
<input id="loc" type="text" value="Austin, TX" aria-label="Location" />
</div>
<div class="search__field">
<span class="search__icon" aria-hidden="true">🔎</span>
<input id="role" type="text" placeholder="Try “barista”, “picker”…" aria-label="Role" />
</div>
<button type="submit" class="btn btn--primary">Find shifts</button>
</form>
<ul class="hero__chips" id="quickChips" aria-label="Popular searches">
<li><button class="chip" data-q="Bartender">Bartender</button></li>
<li><button class="chip" data-q="Warehouse">Warehouse</button></li>
<li><button class="chip" data-q="Driver">Driver</button></li>
<li><button class="chip" data-q="Caregiver">Caregiver</button></li>
</ul>
<div class="hero__stats">
<div><strong data-count="86000">0</strong><span>workers paid weekly</span></div>
<div><strong data-count="12">0</strong><span>min avg payout</span></div>
<div><strong data-count="98">0</strong><span>% shifts filled</span></div>
</div>
</div>
<aside class="hero__card reveal" aria-label="Live shifts preview">
<div class="livecard">
<div class="livecard__top">
<span class="dot"></span> Live near you
</div>
<ul class="livecard__list" id="liveList"></ul>
</div>
</aside>
</div>
<div class="hero__blob hero__blob--a" aria-hidden="true"></div>
<div class="hero__blob hero__blob--b" aria-hidden="true"></div>
</section>
<!-- INSTANT PAY -->
<section class="pay" id="pay">
<div class="wrap pay__inner reveal">
<div class="pay__copy">
<span class="eyebrow">💸 Instant pay</span>
<h2>Clock out at 6. Money in your account by 6:01.</h2>
<p>No more waiting two weeks for a paycheck. ShiftHive deposits your earnings the moment your shift is verified — zero fees on standard transfers.</p>
<ul class="ticklist">
<li>Cash out to any bank or debit card</li>
<li>See live earnings while you work</li>
<li>Tips & bonuses included automatically</li>
</ul>
</div>
<div class="pay__widget" aria-hidden="true">
<div class="wallet">
<div class="wallet__label">Available now</div>
<div class="wallet__amount" id="walletAmount">$0.00</div>
<div class="wallet__bar"><i id="walletBar"></i></div>
<button class="btn btn--ghost btn--full" id="cashoutBtn">Cash out instantly</button>
<div class="wallet__rows">
<div><span>Today · Maple St Café</span><b>+$92.50</b></div>
<div><span>Tips</span><b>+$31.00</b></div>
<div><span>Night bonus</span><b>+$15.00</b></div>
</div>
</div>
</div>
</div>
</section>
<!-- CATEGORIES -->
<section class="cats" id="categories">
<div class="wrap">
<div class="section-head reveal">
<h2>Shift categories</h2>
<p>Thousands of open shifts across the work you already know how to do.</p>
</div>
<div class="cats__grid" id="catGrid"></div>
</div>
</section>
<!-- HOW IT WORKS -->
<section class="how" id="how">
<div class="wrap">
<div class="section-head reveal">
<h2>How it works</h2>
<p>From sign-up to payout in three quick steps.</p>
</div>
<ol class="steps">
<li class="step reveal">
<div class="step__num">1</div>
<h3>Build your profile</h3>
<p>Add your skills, availability and certifications once. Verify your ID in minutes.</p>
</li>
<li class="step reveal">
<div class="step__num">2</div>
<h3>Grab a shift</h3>
<p>Browse open shifts near you, check the pay, and book the ones that fit your week.</p>
</li>
<li class="step reveal">
<div class="step__num">3</div>
<h3>Work & cash out</h3>
<p>Clock in with the app, finish your shift, and get paid instantly. Repeat.</p>
</li>
</ol>
</div>
</section>
<!-- DOWNLOAD -->
<section class="download" id="download">
<div class="wrap download__inner reveal">
<div class="download__copy">
<span class="eyebrow eyebrow--light">📱 Worker app</span>
<h2>Your next shift is one tap away.</h2>
<p>Get matched with shifts, clock in with a tap, message managers and cash out — all from your phone.</p>
<div class="download__btns">
<button class="store" data-store="App Store">
<span aria-hidden="true"></span>
<span class="store__t"><small>Download on the</small><b>App Store</b></span>
</button>
<button class="store" data-store="Google Play">
<span aria-hidden="true">▶</span>
<span class="store__t"><small>Get it on</small><b>Google Play</b></span>
</button>
</div>
<div class="rating">★★★★★ <span>4.8 · 52k ratings</span></div>
</div>
<div class="download__phone" aria-hidden="true">
<div class="phone">
<div class="phone__notch"></div>
<div class="phone__screen">
<div class="phone__hd">Today's shifts</div>
<div class="phone__card"><b>Picker · Riverbend Logistics</b><span>2pm–8pm · $19/hr</span><i>Apply</i></div>
<div class="phone__card"><b>Barista · Maple St Café</b><span>6am–11am · $17/hr</span><i>Apply</i></div>
<div class="phone__card"><b>Driver · QuickEats</b><span>5pm–10pm · $21/hr</span><i>Apply</i></div>
</div>
</div>
</div>
</div>
</section>
<!-- BUSINESS CTA -->
<section class="business" id="business">
<div class="wrap business__inner reveal">
<div>
<span class="eyebrow">🏢 For business</span>
<h2>Need staff this weekend? Fill shifts in hours.</h2>
<p>Post a shift and reach thousands of vetted, ready-to-work locals. Pay only for shifts that get covered.</p>
</div>
<div class="business__cta">
<form class="biz-form" id="bizForm">
<input type="email" id="bizEmail" placeholder="[email protected]" aria-label="Work email" required />
<button class="btn btn--primary" type="submit">Start hiring</button>
</form>
<small>No setup fees · Cancel anytime</small>
</div>
</div>
</section>
</main>
<footer class="foot">
<div class="wrap foot__inner">
<div class="foot__brand">
<a href="#" class="brand brand--light">
<span class="brand__mark" aria-hidden="true">
<svg viewBox="0 0 24 24" width="20" height="20" fill="none"><path d="M12 2l9 5.2v9.6L12 22l-9-5.2V7.2L12 2z" fill="#fff"/><path d="M12 7l4.5 2.6v5.2L12 17.4 7.5 14.8V9.6L12 7z" fill="var(--brand)"/></svg>
</span>
ShiftHive
</a>
<p>Flexible shift work, paid the same day.</p>
</div>
<nav class="foot__col"><h4>Workers</h4><a href="#categories">Find shifts</a><a href="#pay">Instant pay</a><a href="#download">Get the app</a></nav>
<nav class="foot__col"><h4>Business</h4><a href="#business">Post a shift</a><a href="#how">Pricing</a><a href="#business">Enterprise</a></nav>
<nav class="foot__col"><h4>Company</h4><a href="#top">About</a><a href="#top">Careers</a><a href="#top">Contact</a></nav>
</div>
<div class="wrap foot__bottom">
<span>© 2026 ShiftHive (fictional demo)</span>
<span>Privacy · Terms · Cookies</span>
</div>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Gig / Shift Work Landing
ShiftHive is a full marketing landing page for a gig and shift-work platform, designed mobile-first with a high-energy orange-and-teal identity and heavyweight Inter type. The sticky nav collapses into an animated hamburger drawer on small screens and gains a subtle shadow once you scroll. The hero leads with a live “shifts open right now” badge, a two-field search bar, quick-pick role chips, and a row of headline stats that count up the first time they scroll into view.
The right-hand hero card streams a live feed of nearby shifts, rotating a fresh role in every few seconds; each row is keyboard-focusable and saves on click. Further down, an instant-pay section animates a dark wallet widget — the balance counts up, a progress bar fills, and the cash-out button fires a confirmation toast. The shift categories grid, three-step how-it-works flow, app-download block with a stylized phone mock, and a business hiring form round out the page, all wrapped in an IntersectionObserver scroll-reveal.
All interactions are vanilla JavaScript with a small toast() helper, the layout reflows cleanly down to 360px, and prefers-reduced-motion disables the animations.
Illustrative UI only — fictional jobs & companies, not a real hiring platform.