hero-four
sv-blocks/hero-fourFreeBlock
Veil Hero component, variant Four.
Install it
npx shadcn@latest add https://sv-blocks.vercel.app/r/hero-four.jsonSource
1<script lang="ts">2 import Button from "$COMPONENTS$/ui/button/button.svelte";3 import { ProgressiveBlur } from "$COMPONENTS$/magic/progressive-blur";4 // Hero Header Component56 import { cn } from "$UTILS$";7 import Menu from "@lucide/svelte/icons/menu";8 import X from "@lucide/svelte/icons/x";9 import { scrollY } from "svelte/reactivity/window";10 import { Marquee } from "$COMPONENTS$/magic/marquee";1112 let menuItems = [13 { name: "Features", href: "#a" },14 { name: "Solution", href: "#a" },15 { name: "Pricing", href: "#a" },16 { name: "About", href: "#a" },17 ];18 let menuState = $state(false);19 let isScrolled = $derived.by(() => {20 if (scrollY.current !== undefined && scrollY.current > 50) {21 return true;22 }23 return false;24 });2526 export const GRADIENT_ANGLES = {27 top: 0,28 right: 90,29 bottom: 180,30 left: 270,31 };3233 type ProgressiveBlurProps = {34 direction?: keyof typeof GRADIENT_ANGLES;35 blurLayers?: number;36 class?: string;37 blurIntensity?: number;38 };3940 import {41 Beacon,42 Bolt,43 Cisco,44 Claude,45 Figma,46 FirebaseFull,47 Hulu,48 Spotify,49 SupabaseFull,50 VercelFull,51 } from "$LIB$/svgs";52</script>5354{@render header()}55<main class="overflow-x-hidden">56 <section>57 <div class="pt-12 pb-24 md:pb-32 lg:pt-44 lg:pb-56">58 <div class="relative mx-auto flex max-w-6xl flex-col px-6 lg:block">59 <div class="mx-auto max-w-lg text-center lg:ml-0 lg:w-1/2 lg:text-left">60 <h161 class="mt-8 max-w-2xl text-5xl font-medium text-balance md:text-6xl lg:mt-16 xl:text-7xl"62 >63 Ship 10x Faster with NS64 </h1>65 <p class="mt-8 max-w-2xl text-lg text-pretty">66 Highly customizable components for building modern websites and applications67 that look and feel the way you mean it.68 </p>6970 <div71 class="mt-12 flex flex-col items-center justify-center gap-2 sm:flex-row lg:justify-start"72 >73 <Button href="/" size="lg" class="px-5 text-base">Start Building</Button>74 <Button size="lg" variant="ghost" class="px-5 text-base" href="/">75 Request a demo76 </Button>77 </div>78 </div>79 </div>80 </div>81 </section>82 <section class="border-t bg-background pt-4 pb-16 md:pb-32">83 <div class="group relative m-auto max-w-6xl px-6">84 <div class="flex flex-col items-center md:flex-row">85 <div class="md:max-w-44 md:border-r md:pr-6">86 <p class="text-end text-sm">Powering the best teams</p>87 </div>88 <div class="relative py-6 **:fill-foreground md:w-[calc(100%-11rem)]">89 <Marquee>90// … truncated
What it pulls in
Other registry items
Files it writes
More from sv-blocks
All 64 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| call-to-action-fourcall-to-action-four | sv-blocks | Blocks | Free | no deps | |
| call-to-action-onecall-to-action-one | sv-blocks | Blocks | Free | no deps | |
| call-to-action-threecall-to-action-three | sv-blocks | Blocks | Free | no deps | |
| call-to-action-twocall-to-action-two | sv-blocks | Blocks | Free | no deps | |
| comparator-onecomparator-one | sv-blocks | Blocks | Free | no deps | |
| comparator-threecomparator-three | sv-blocks | Blocks | Free | no deps | |
| comparator-twocomparator-two | sv-blocks | Blocks | Free | no deps | |
| contact-onecontact-one | sv-blocks | Blocks | Free | no deps |
