Skip to content

Commit dba1132

Browse files
Merge pull request #94 from sneha-tech03/feature/code
Added Hero section
2 parents 8f51e88 + 3427bb0 commit dba1132

File tree

20 files changed

+188
-2
lines changed

20 files changed

+188
-2
lines changed

src/Images/Cloud.jpg

1.62 MB
Loading

src/Images/Corona.jpg

1 MB
Loading

src/Images/Cryptocurrency.jpg

2.63 MB
Loading

src/Images/Flowers.jpg

3.5 MB
Loading

src/Images/Food.jpg

1.08 MB
Loading

src/Images/Movie.jpg

1.96 MB
Loading

src/Images/Pets.jpg

3.86 MB
Loading

src/Images/Quiz.jpg

423 KB
Loading

src/Images/Space.jpg

1020 KB
Loading

src/components/HeroSection.jsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
import React from 'react';
3+
4+
5+
const HeroSection = ({ image, title, subtitle }) => {
6+
return (
7+
<section
8+
className="hero-section"
9+
style={{ backgroundImage: `url(${image})` }}
10+
>
11+
<div className="hero-overlay">
12+
<div className="hero-content">
13+
<h1 className="hero-title">{title}</h1>
14+
{subtitle && <p className="hero-subtitle">{subtitle}</p>}
15+
</div>
16+
</div>
17+
</section>
18+
);
19+
};
20+
21+
export default HeroSection;

0 commit comments

Comments
 (0)