ShadcnUI Vaults

Back to Blocks

Hero with Image

Unknown Block

UnknownComponent

Hero with Image

Hero section with stunning background image

Preview

Full width desktop view

Code

hero-2.tsx
1"use client";
2
3import { Button } from "@/components/ui/button";
4import { ArrowRight, Star } from "lucide-react";
5
6export function HeroBlock2() {
7  return (
8    <section className="relative w-full py-20 md:py-32 overflow-hidden">
9      {/* Background Image */}
10      <div className="absolute inset-0 z-0">
11        <img
12          src="https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=1200"
13          alt="Hero background"
14          className="w-full h-full object-cover"
15        />
16        <div className="absolute inset-0 bg-black/50" />
17      </div>
18
19      {/* Content */}
20      <div className="relative z-10 container mx-auto px-4 md:px-6">
21        <div className="flex flex-col items-center space-y-8 text-center text-white">
22          <div className="flex items-center gap-2 bg-white/10 backdrop-blur-sm rounded-full px-4 py-2">
23            <Star className="h-4 w-4 text-yellow-400" />
24            <span className="text-sm">Trusted by 50,000+ companies</span>
25          </div>
26
27          <div className="space-y-4 max-w-4xl">
28            <h1 className="text-4xl font-bold tracking-tighter sm:text-5xl md:text-6xl lg:text-7xl">
29              Transform Your
30              <span className="text-yellow-400"> Digital </span>
31              Presence
32            </h1>
33            <p className="mx-auto max-w-2xl text-lg text-white/90 md:text-xl">
34              Elevate your brand with cutting-edge design and powerful
35              functionality. Join thousands of successful businesses already
36              using our platform.
37            </p>
38          </div>
39
40          <div className="flex flex-col sm:flex-row gap-4">
41            <Button
42              size="lg"
43              className="gap-2 px-8 bg-white text-black hover:bg-white/90"
44            >
45              Start Free Trial
46              <ArrowRight className="h-4 w-4" />
47            </Button>
48            <Button
49              variant="outline"
50              size="lg"
51              className="gap-2 px-8 border-white text-white hover:bg-white/10"
52            >
53              Learn More
54            </Button>
55          </div>
56        </div>
57      </div>
58    </section>
59  );
60}

Dependencies

External Libraries

lucide-react

Shadcn/UI Components

button

LICENSE

MIT License

Copyright (c) 2025 Aldhaneka

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Shadcn Vaults Project (CC BY-NC 4.0 with Internal Use Exception)

All user-submitted components in the '/blocks' directory are licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0),
with the following clarification and exception:

You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material

Under these conditions:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
- NonCommercial — You may NOT use the material for commercial redistribution, resale, or monetization.

🚫 You MAY NOT:
- Sell or redistribute the components individually or as part of a product (e.g. a UI kit, template marketplace, SaaS component library)
- Offer the components or derivative works in any paid tool, theme pack, or design system

✅ You MAY:
- Use the components in internal company tools, dashboards, or applications that are not sold as products
- Remix or adapt components for private or enterprise projects
- Use them in open-source non-commercial projects

This license encourages sharing, learning, and internal innovation — but prohibits using these components as a basis for monetized products.

Full license text: https://creativecommons.org/licenses/by-nc/4.0/

By submitting a component, contributors agree to these terms.

Contributors

Ramiro Godoy@milogodoy

Review Form Block

Aldhaneka@Aldhanekaa

Project Creator

For questions about licensing, please contact the project maintainers.