Spaces:
Running
Running
Download style.css from idormoy/focus_buddy: direct link, hf CLI and curl.
- Browser
- Download file 7.69 kB
-
https://huggingface.co/spaces/idormoy/focus_buddy/resolve/main/style.css
- Command line
-
hf download hf://spaces/idormoy/focus_buddy/style.css
-
curl -L -o style.css https://huggingface.co/spaces/idormoy/focus_buddy/resolve/main/style.css
7.69 kB
| /* Focus Buddy landing page. | |
| Self-contained: no external fonts or assets, so it renders offline and inside | |
| the Hugging Face Space sandbox. */ | |
| :root { | |
| --bg: #0f1020; | |
| --bg-soft: #191a33; | |
| --card: #1e1f3d; | |
| --border: #2e3060; | |
| --text: #ececf5; | |
| --muted: #a3a3c2; | |
| --accent: #8b7cf6; | |
| --accent-2: #f472b6; | |
| --radius: 14px; | |
| } | |
| * { | |
| box-sizing: border-box; | |
| } | |
| body { | |
| margin: 0; | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; | |
| line-height: 1.6; | |
| } | |
| a { | |
| color: var(--accent); | |
| } | |
| code { | |
| font-family: ui-monospace, SFMono-Regular, Menlo, monospace; | |
| font-size: 0.9em; | |
| } | |
| .hero { | |
| padding: 4rem 1.5rem 3rem; | |
| text-align: center; | |
| background: radial-gradient(120% 100% at 50% 0%, #2a2358 0%, var(--bg) 70%); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .app-icon { | |
| font-size: 3.5rem; | |
| line-height: 1; | |
| } | |
| .hero h1 { | |
| margin: 0.6rem 0 0.4rem; | |
| font-size: clamp(2rem, 6vw, 3rem); | |
| background: linear-gradient(90deg, var(--accent), var(--accent-2)); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| } | |
| .tagline { | |
| margin: 0 auto; | |
| max-width: 34rem; | |
| color: var(--muted); | |
| font-size: 1.1rem; | |
| } | |
| .pill-row { | |
| display: flex; | |
| flex-wrap: wrap; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| margin-top: 1.5rem; | |
| } | |
| .pill { | |
| padding: 0.3rem 0.85rem; | |
| border: 1px solid var(--border); | |
| border-radius: 999px; | |
| background: var(--bg-soft); | |
| color: var(--muted); | |
| font-size: 0.85rem; | |
| } | |
| .container { | |
| max-width: 64rem; | |
| margin: 0 auto; | |
| padding: 2rem 1.5rem 3rem; | |
| display: grid; | |
| /* Without this the implicit column is auto-sized to max-content, so an | |
| auto-fit grid inside a card can never be told to collapse and the whole | |
| document grows wider than the viewport. */ | |
| grid-template-columns: minmax(0, 1fr); | |
| gap: 1.25rem; | |
| } | |
| .card { | |
| background: var(--card); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| padding: 1.5rem; | |
| } | |
| .card h2 { | |
| margin-top: 0; | |
| font-size: 1.25rem; | |
| } | |
| .habit-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); | |
| gap: 1rem; | |
| margin-top: 1.25rem; | |
| } | |
| .habit { | |
| display: grid; | |
| gap: 0.25rem; | |
| padding: 1rem; | |
| background: var(--bg-soft); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| } | |
| .habit-icon { | |
| font-size: 1.6rem; | |
| } | |
| .habit span:last-child { | |
| color: var(--muted); | |
| font-size: 0.9rem; | |
| } | |
| pre { | |
| overflow-x: auto; | |
| padding: 1rem; | |
| background: #0b0b18; | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| } | |
| pre code { | |
| color: #d7d7ee; | |
| } | |
| .comment { | |
| color: #6f6f95; | |
| } | |
| .fine { | |
| color: var(--muted); | |
| font-size: 0.9rem; | |
| } | |
| .flow { | |
| display: flex; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| gap: 0.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .step { | |
| padding: 0.4rem 0.75rem; | |
| background: var(--bg-soft); | |
| border: 1px solid var(--border); | |
| border-radius: 8px; | |
| font-size: 0.9rem; | |
| } | |
| .arrow { | |
| color: var(--accent); | |
| } | |
| .footer { | |
| padding: 2rem 1.5rem; | |
| text-align: center; | |
| color: var(--muted); | |
| border-top: 1px solid var(--border); | |
| font-size: 0.9rem; | |
| } | |
| .bench { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin: 16px 0 6px; | |
| font-size: 0.95rem; | |
| } | |
| .bench th, | |
| .bench td { | |
| text-align: left; | |
| padding: 8px 10px; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .bench th { | |
| font-size: 0.78rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| color: var(--muted); | |
| font-weight: 600; | |
| } | |
| .bench tr:last-child td { | |
| border-bottom: 0; | |
| } | |
| .bench tr.win td { | |
| font-weight: 600; | |
| color: var(--accent); | |
| } | |
| .bench th:nth-child(n + 2), | |
| .bench td:nth-child(n + 2) { | |
| text-align: right; | |
| white-space: nowrap; | |
| } | |
| /* --- hero art -------------------------------------------------------- */ | |
| .hero-art { | |
| display: block; | |
| width: 100%; | |
| max-width: 440px; | |
| margin: 0 auto 22px; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); | |
| } | |
| .pill.strong { | |
| border-color: var(--accent); | |
| color: var(--text); | |
| background: color-mix(in srgb, var(--accent) 18%, transparent); | |
| } | |
| /* --- demo video ------------------------------------------------------ */ | |
| .demo { | |
| display: block; | |
| width: 100%; | |
| max-width: 380px; | |
| margin: 4px auto 14px; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| background: #000; | |
| } | |
| /* --- the cost comparison --------------------------------------------- */ | |
| .card.highlight { | |
| border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); | |
| } | |
| .cost-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); | |
| gap: 14px; | |
| margin-top: 16px; | |
| } | |
| .cost { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| padding: 16px; | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| background: var(--bg-soft); | |
| } | |
| .cost-label { | |
| font-size: 0.78rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.06em; | |
| color: var(--muted); | |
| font-weight: 600; | |
| } | |
| .cost-value { | |
| font-size: 1.7rem; | |
| font-weight: 700; | |
| line-height: 1.1; | |
| } | |
| .cost-value.ok { | |
| color: #4ade80; | |
| } | |
| .cost-note { | |
| font-size: 0.86rem; | |
| color: var(--muted); | |
| } | |
| /* --- inline tags on the habit cards ---------------------------------- */ | |
| .tag { | |
| align-self: flex-start; | |
| margin-top: 4px; | |
| font-size: 0.7rem; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| padding: 2px 8px; | |
| border-radius: 20px; | |
| border: 1px solid var(--border); | |
| color: var(--muted); | |
| } | |
| .tag.ok { | |
| color: #4ade80; | |
| border-color: color-mix(in srgb, #4ade80 45%, transparent); | |
| } | |
| .bench .dim { | |
| color: var(--muted); | |
| font-weight: 400; | |
| } | |
| .card h3 { | |
| font-size: 1rem; | |
| margin: 22px 0 6px; | |
| } | |
| /* Steps where a model may appear. Dashed because neither is load-bearing. */ | |
| .step.optional { | |
| border-style: dashed; | |
| border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); | |
| color: var(--text); | |
| } | |
| .step.optional em { | |
| display: block; | |
| font-size: 0.72rem; | |
| font-style: normal; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| color: var(--muted); | |
| } | |
| /* Hero demo: the first thing on the page. */ | |
| .hero-demo { | |
| display: block; | |
| width: 100%; | |
| max-width: 330px; | |
| margin: 0 auto 10px; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--border); | |
| background: #000; | |
| box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); | |
| } | |
| .hero-caption { | |
| margin: 0 auto 24px; | |
| font-size: 0.88rem; | |
| color: var(--muted); | |
| } | |
| /* --- two-column hero: words on the left, the demo on the right ------- */ | |
| .hero-grid { | |
| max-width: 64rem; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: minmax(0, 1fr) minmax(0, 340px); | |
| gap: 2.5rem; | |
| align-items: center; | |
| text-align: left; | |
| } | |
| .hero-grid .app-icon { | |
| margin-bottom: 0.4rem; | |
| } | |
| .hero-grid .tagline, | |
| .hero-grid .pill-row { | |
| margin-left: 0; | |
| margin-right: 0; | |
| justify-content: flex-start; | |
| } | |
| .hero-media { | |
| margin: 0; | |
| } | |
| .hero-grid .hero-demo { | |
| max-width: 100%; | |
| margin-bottom: 10px; | |
| } | |
| .hero-grid .hero-caption { | |
| margin: 0; | |
| text-align: center; | |
| } | |
| /* Stack on anything narrow, video first so it still leads on a phone. */ | |
| @media (max-width: 820px) { | |
| .hero-grid { | |
| grid-template-columns: minmax(0, 1fr); | |
| gap: 1.6rem; | |
| text-align: center; | |
| } | |
| .hero-grid .pill-row { | |
| justify-content: center; | |
| } | |
| .hero-grid .tagline { | |
| margin-inline: auto; | |
| max-width: 100%; | |
| } | |
| .hero-media { | |
| order: -1; | |
| } | |
| .hero-grid .hero-demo { | |
| max-width: 300px; | |
| margin-inline: auto; | |
| } | |
| } | |
| /* Tables carry nowrap numbers; let them scroll in place rather than widen the | |
| page, which on a phone pushed every centred block off to the right. */ | |
| .table-scroll { | |
| overflow-x: auto; | |
| -webkit-overflow-scrolling: touch; | |
| } | |
| /* Narrow screens: nothing may exceed the viewport. */ | |
| @media (max-width: 820px) { | |
| .habit-grid { | |
| grid-template-columns: minmax(0, 1fr); | |
| } | |
| .cost-grid { | |
| grid-template-columns: minmax(0, 1fr); | |
| } | |
| } | |