Skip to content

Commit c13d9bc

Browse files
committed
Fix hero image
Replaced image and made text more visible
1 parent e83ec7e commit c13d9bc

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

components/Index/Hero.component.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ const Hero = () => {
66
<>
77

88
<section
9-
id="hero"
9+
id="hero"
1010
className="flex w-full pt-12 mx-auto mt-24 bg-right bg-cover md:pt-0 md:items-center"
1111
>
1212
<div className="container mx-auto">
1313
<div className="flex flex-col items-start justify-center w-full px-6 tracking-wide lg:w-1/2">
14-
<h1 className="my-4 text-2xl text-black">
15-
Stripete Zig Zag Jigsaw Pute Sett
14+
<h1 className="p-4 my-4 text-2xl text-white bg-black rounded-lg">
15+
Stripete Zig Zag Pute Sett
1616
</h1>
1717

1818
<a
19-
className="inline-block px-6 py-3 text-xl leading-relaxed uppercase border border-gray-600 border-solid hover:underline"
19+
className="inline-block px-6 py-3 text-xl leading-relaxed text-white uppercase bg-black rounded-lg hover:underline"
2020
href="#"
2121
>
22-
Kjøp Nå
22+
se utvalget
2323
</a>
2424
</div>
2525
</div>

public/images/hero.jpg

21.8 KB
Loading

styles/index.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
@tailwind components;
33

44
#hero {
5-
background-image: url('https://images.unsplash.com/photo-1422190441165-ec2956dc9ecc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80');
6-
/*max-width: 1050px;*/
7-
height: 24rem;
5+
/*background-image: url('https://images.unsplash.com/photo-1422190441165-ec2956dc9ecc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80');*/
6+
background-image: url("../public/images/hero.jpg");
7+
height:385px;
8+
/*height: 24rem;*/
89
}
910

1011
#mobile-menu {
@@ -23,10 +24,6 @@
2324
margin-top: -20px;
2425
}
2526

26-
#product-container {
27-
/* max-width: 1000px;*/
28-
}
29-
3027
/* Fix for annoying CSS bug with NavBar moving slightly on front page only */
3128
/*@media only screen and (min-width: 769px) {*/
3229

0 commit comments

Comments
 (0)