Files
blitzkit/packages/website-ue/src/components/HomeHero.astro
T

90 lines
1.7 KiB
Plaintext
Raw Normal View History

2025-12-19 21:25:55 -06:00
---
2026-01-08 20:02:24 -06:00
import { MagnifyingGlassIcon } from "@radix-ui/react-icons";
2026-01-08 20:39:44 -06:00
import { BlitzKitIcon } from "../icons/BlitzKit";
import { Code } from "./Code";
2025-12-19 22:23:03 -06:00
import { TextField } from "./TextField";
2026-01-08 20:02:24 -06:00
const strings = { home: { search: "test" } };
2025-12-19 21:25:55 -06:00
---
2026-01-03 13:29:15 -06:00
<style>
2025-12-19 21:25:55 -06:00
.home-hero {
2026-01-03 13:29:15 -06:00
display: flex;
flex-direction: column;
2026-01-08 20:39:44 -06:00
justify-content: end;
2026-01-03 13:29:15 -06:00
align-items: center;
2026-01-08 20:39:44 -06:00
padding: 0 var(--space-4);
position: relative;
2025-12-19 21:25:55 -06:00
2026-01-03 13:29:15 -06:00
.wallpaper {
2026-01-08 20:39:44 -06:00
position: absolute;
top: 0;
left: 0;
2026-01-03 13:29:15 -06:00
width: 100%;
2026-01-08 20:39:44 -06:00
height: calc(100% - var(--space-5) / 2);
z-index: -1;
2026-01-03 13:29:15 -06:00
background-image: url(/assets/home-hero.webp);
background-size: cover;
background-position: top;
2025-12-19 22:23:03 -06:00
2026-01-08 20:39:44 -06:00
.gradient {
2026-01-03 13:29:15 -06:00
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: var(--space-7);
2025-12-19 21:25:55 -06:00
2026-01-03 13:29:15 -06:00
width: 100%;
height: 100%;
background: linear-gradient(transparent, var(--gray-1));
2025-12-19 21:25:55 -06:00
}
2026-01-03 13:29:15 -06:00
}
2025-12-19 21:25:55 -06:00
2026-01-08 20:39:44 -06:00
.name {
margin: var(--space-6) 0;
.icon-wrapper {
position: relative;
width: var(--space-6);
height: var(--space-6);
.icon {
width: 100%;
height: 100%;
}
.version {
position: absolute;
top: 0;
right: 0;
transform: translateX(100%);
}
}
}
.text-field {
2026-01-03 13:29:15 -06:00
width: 100%;
2025-12-19 21:25:55 -06:00
}
}
</style>
<div class="home-hero">
2026-01-03 13:29:15 -06:00
<div class="wallpaper">
2026-01-08 20:39:44 -06:00
<div class="gradient"></div>
</div>
<div class="name">
<div class="icon-wrapper">
<BlitzKitIcon className="icon" />
<Code className="version">2.0</Code>
</div>
2025-12-19 21:25:55 -06:00
</div>
2026-01-03 13:29:15 -06:00
2026-01-08 20:02:24 -06:00
<TextField placeholder={strings.home.search}>
<MagnifyingGlassIcon />
</TextField>
2025-12-19 21:25:55 -06:00
</div>