-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathHero.component.tsx
39 lines (36 loc) · 1009 Bytes
/
Hero.component.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import Image from 'next/image';
import Button from '../UI/Button.component';
/**
* Renders Hero section for Index page
* @function Hero
* @returns {JSX.Element} - Rendered component
*/
const Hero = () => (
<section className="relative w-full h-[60vh] overflow-hidden">
<div className="absolute inset-0">
<Image
src="/images/hero.jpg"
alt="Hero image"
fill
priority
className="object-cover object-center"
quality={90}
/>
<div className="absolute inset-0 bg-black bg-opacity-30" />
</div>
<div className="relative h-full container mx-auto flex items-center p-4 md:p-0">
<div className="max-w-xl">
<h1 className="text-3xl md:text-4xl lg:text-5xl font-light text-white mb-6">
Stripete Zig Zag Pute Sett
</h1>
<Button
href="/produkter"
variant="hero"
>
Se Utvalget
</Button>
</div>
</div>
</section>
);
export default Hero;