From ec4338c44791a2c62818b9f8cc92ffcc18b31fa3 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sat, 28 Nov 2026 15:07:54 -0600 Subject: [PATCH] home screen banner --- .vscode/settings.json | 1 + .../website/src/components/HomeHero.astro | 30 +++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c393af712..7303d2247 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -104,6 +104,7 @@ "gtag", "haha", "Herdbreaker", + "heros", "Hetz", "highp", "hocs", diff --git a/packages/website/src/components/HomeHero.astro b/packages/website/src/components/HomeHero.astro index b1a640116..4e6cea578 100644 --- a/packages/website/src/components/HomeHero.astro +++ b/packages/website/src/components/HomeHero.astro @@ -2,7 +2,6 @@ import { alias } from "@blitzkit/core"; import { MagnifyingGlassIcon } from "@radix-ui/react-icons"; import { api } from "../api/dynamic"; -import { resolveBranchName } from "../core/blitzkit/branches"; import { Heading } from "./Heading"; import { TextField } from "./TextField"; @@ -13,18 +12,31 @@ interface Props { const { locale } = Astro.props; const strings = await api.strings(locale); -const branchName = resolveBranchName(strings); -const isBranchNamed = branchName !== undefined; -// TODO: detect season -const season = "winter"; +// Meteorological seasons, starting at december +const SEASONS = ["winter", "spring", "summer", "fall"]; + +const month = new Date().getMonth(); +const season = SEASONS[Math.floor(((month + 1) % 12) / 3)]; ---