Skip to content

Commit cf9e9d2

Browse files
committed
head component added
1 parent f4059e5 commit cf9e9d2

File tree

8 files changed

+60
-71
lines changed

8 files changed

+60
-71
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
function Head({head,description}){
2+
return(
3+
<>
4+
<div className="Head">
5+
<h1 className="Head-title">{head}</h1>
6+
<p className="Head-description">{description}</p>
7+
</div>
8+
</>
9+
)
10+
}
11+
12+
export default Head;

src/Components/landingpage/hero.jsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1+
import Head from "./head";
2+
import Button from "./button";
3+
4+
15
function Hero(){
6+
7+
const description = <>
8+
A non-profit organization founded by group of tech-obsessed youngsters,<br /> concentrating on offering digital literacy programs and instructional tools to students
9+
</>
10+
211
return(
312
<>
413
<div className="hero">
14+
<div>
15+
<Head head={"Leaders are those who empower others"} description={description} />
16+
<Button buttontext={"Explore More"} buttonclass={"herobutton"} />
17+
</div>
18+
</div>
19+
{/* <div className="hero">
520
<div className='container'>
621
<div className="hero-text">
722
<h1>Leaders are those who empower others.</h1>
@@ -10,7 +25,7 @@ function Hero(){
1025
<button className="btn">Explore more&nbsp;<i className="fa-solid fa-arrow-right"></i>
1126
</button>
1227
</div></div>
13-
</div>
28+
</div> */}
1429
</>
1530
)
1631
}

src/Styles/App.css

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@
3939
}
4040

4141
.hero {
42-
margin-top: auto;
43-
width: 100%;
4442
min-height: 100vh;
4543
background: linear-gradient(rgba(8, 0, 58, 0.7019607843), rgba(8, 0, 58, 0.7019607843)), url(/herobg.png);
46-
/* background: url(/herobg.png); */
4744
background-size: cover;
4845
background-position: center;
4946
color: #fff;
@@ -52,35 +49,18 @@
5249
justify-content: center;
5350
}
5451

55-
.hero-text {
52+
.Head {
5653
text-align: center;
57-
max-width: 800px;
58-
}
59-
60-
.hero-text h1 {
61-
font-size: 60px;
62-
font-weight: 600;
6354
}
64-
65-
.hero-text p {
66-
max-width: 700px;
67-
margin: 10px auto 20px;
68-
line-height: 1.4;
69-
}
70-
71-
@media (max-width: 850px) {
72-
.hero-text h1 {
73-
font-size: 40px;
74-
}
55+
.Head-title {
56+
text-align: center;
57+
font-size: 2.5rem;
58+
font-family: "Poppins", sans-serif;
59+
color: white;
7560
}
76-
@media (max-width: 650px) {
77-
.hero-text h1 {
78-
font-size: 30px;
79-
max-width: 400px;
80-
margin: auto;
81-
}
82-
.hero-text p {
83-
font-size: 14px;
84-
margin: 15px auto 30px;
85-
}
61+
.Head-description {
62+
text-align: center;
63+
font-size: 1rem;
64+
font-family: "Poppins", sans-serif;
65+
color: white;
8666
}/*# sourceMappingURL=App.css.map */

src/Styles/App.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.herobutton{
2+
// display: none;
3+
}

src/Styles/LandingPage/_Head.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.Head{
2+
text-align: center;
3+
&-title{
4+
text-align: center;
5+
font-size: 2.5rem;
6+
font-family: $font;
7+
color: white;
8+
}
9+
&-description{
10+
text-align: center;
11+
font-size: 1rem;
12+
font-family: $font;
13+
color: white;
14+
}
15+
}

src/Styles/LandingPage/_Hero.scss

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
.hero {
2-
margin-top: auto;
3-
width: 100%;
42
min-height: 100vh;
53
background: linear-gradient(#08003ab3,#08003ab3),url(/herobg.png);
6-
/* background: url(/herobg.png); */
74
background-size: cover;
85
background-position: center;
96
color: #fff;
@@ -12,37 +9,3 @@
129
justify-content: center
1310
}
1411

15-
.hero-text {
16-
text-align: center;
17-
max-width: 800px
18-
}
19-
20-
.hero-text h1 {
21-
font-size: 60px;
22-
font-weight: 600
23-
}
24-
25-
.hero-text p {
26-
max-width: 700px;
27-
margin: 10px auto 20px;
28-
line-height: 1.4
29-
}
30-
31-
@media (max-width: 850px) {
32-
.hero-text h1 {
33-
font-size:40px
34-
}
35-
}
36-
37-
@media (max-width: 650px) {
38-
.hero-text h1 {
39-
font-size:30px;
40-
max-width: 400px;
41-
margin: auto
42-
}
43-
44-
.hero-text p {
45-
font-size: 14px;
46-
margin: 15px auto 30px
47-
}
48-
}

src/Styles/LandingPage/_Index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@import 'Navbar';
22
@import 'Hero';
3-
@import 'Button'
3+
@import 'Button';
4+
@import 'Head'

0 commit comments

Comments
 (0)