This commit is contained in:
Lars Nolden
2026-08-13 22:06:29 +02:00
parent 9806427b16
commit 2f09345ad3
9 changed files with 130 additions and 40 deletions
@@ -6,7 +6,8 @@ import consumptionRing from "@/assets/gebos/consumption-ring.svg"
import smokeAlarmAvif from "@/assets/gebos/smoke-alarm.avif"
import smokeAlarmWebp from "@/assets/gebos/smoke-alarm.webp"
import tealBars from "@/assets/gebos/teal-bars.svg"
import uviBadge from "@/assets/gebos/uvi-badge.svg"
import uviBadge from "@/assetAs/gebos/uvi-badge.svg"
import { AssetRender, renders } from ""
/**
* Homepage hero composition from the GebOS visual asset kit:
@@ -30,6 +31,11 @@ function HeroArt({ className }: { className?: string }) {
alt=""
className="absolute top-[12%] -right-[5%] z-0 w-[46%]"
/>
<AssetRender
render={renders.barChart}
alt=""
className="absolute top-[52%] left-[10%] w-[16%] scale-200"
/>
<picture>
<source srcSet={buildingAvif} type="image/avif" />
<img
@@ -38,7 +38,7 @@ function SiteFooter() {
<footer className="glass-navy inset-shadow-glass-slab shadow-glass-slab rounded-3xl text-white">
<Container className="grid gap-10 py-14 sm:grid-cols-2 lg:grid-cols-[1.2fr_1fr_1fr_1fr]">
<div>
<Logo inverse />
<Logo inverse mark="3d" markClassName="size-9" />
<p className="mt-4 max-w-xs text-sm leading-relaxed text-white/60">
Messdienstleistungen einfach gemacht von der vorkonfigurierten
Hardware bis zum laufenden Betrieb.
@@ -0,0 +1,48 @@
import * as React from "react"
import * as SwitchPrimitive from "@radix-ui/react-switch"
import { CheckIcon } from "lucide-react"
import { cn } from "@/lib/utils"
/**
* On/off switch. The lit track is the same teal glass as a primary button, at
* pill scale (`inset-shadow-glass-pill`); off it is a recessed navy pane. The
* thumb travels on the site's spring easing and carries the checkbox tick, so
* the state reads without relying on colour alone.
*/
function Switch({
className,
...props
}: React.ComponentProps<typeof SwitchPrimitive.Root>) {
return (
<SwitchPrimitive.Root
data-slot="switch"
className={cn(
"group peer inline-flex h-7 w-12 shrink-0 cursor-pointer items-center rounded-full p-0.5 transition-colors outline-none",
"focus-visible:ring-[3px] focus-visible:ring-ring/40",
"disabled:cursor-not-allowed disabled:opacity-50",
"data-[state=unchecked]:inset-shadow-xs data-[state=unchecked]:bg-navy/20 data-[state=unchecked]:hover:bg-navy/30",
"data-[state=checked]:glass-teal data-[state=checked]:inset-shadow-glass-pill data-[state=checked]:shadow-glass data-[state=checked]:bg-brand-600 data-[state=checked]:hover:glass-lit",
className
)}
{...props}
>
<SwitchPrimitive.Thumb
data-slot="switch-thumb"
className={cn(
"pointer-events-none flex size-6 items-center justify-center rounded-full bg-card ring-1 ring-navy/10",
"shadow-[0_1px_2px_rgb(19_41_60/0.2)]",
"transition-transform duration-300 ease-[cubic-bezier(0.34,1.16,0.42,1)] motion-reduce:transition-none",
"data-[state=unchecked]:translate-x-0 data-[state=checked]:translate-x-5"
)}
>
<CheckIcon
aria-hidden="true"
className="size-3.5 stroke-[3] text-primary opacity-0 transition-opacity duration-200 group-data-[state=checked]:opacity-100 motion-reduce:transition-none"
/>
</SwitchPrimitive.Thumb>
</SwitchPrimitive.Root>
)
}
export { Switch }