Skip to content

Commit 7f8f990

Browse files
authored
Merge pull request #18 from NepTechTribe/new
Program section added
2 parents cb95e23 + d02fc44 commit 7f8f990

File tree

11 files changed

+133
-2
lines changed

11 files changed

+133
-2
lines changed

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"bootstrap-icons": "^1.11.3",
1515
"react": "^18.3.1",
1616
"react-bootstrap": "^2.10.4",
17+
"react-bootstrap-icons": "^1.11.4",
1718
"react-dom": "^18.3.1",
1819
"react-helmet-async": "^2.0.5",
1920
"react-router-dom": "^6.26.2",
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import Title from "./title";
2+
import img1 from '../../assets/LandingPage/pr-1.jpg';
3+
import img2 from '../../assets/LandingPage/pr-2.jpg';
4+
import img3 from '../../assets/LandingPage/pr-3.jpg';
5+
import Container from "react-bootstrap/Container";
6+
import Row from "react-bootstrap/Row";
7+
import Col from "react-bootstrap/Col";
8+
import { PeopleFill, Activity,PersonRaisedHand } from "react-bootstrap-icons";
9+
10+
function Programs(){
11+
const ProgramArray = [
12+
{
13+
image : img1,
14+
icon:PeopleFill,
15+
title:"Social Skill Development"
16+
17+
},
18+
{
19+
image : img2,
20+
icon:Activity,
21+
title:"Personal Growth"
22+
23+
},
24+
{
25+
image : img3,
26+
icon:PersonRaisedHand,
27+
title:"Public Speaking"
28+
29+
}
30+
]
31+
32+
return(
33+
<>
34+
<Container>
35+
<Title title={"Our Programs"} head={"What We Offer"} />
36+
<Row>
37+
{ProgramArray.map((program , index) => (
38+
<Col md={4} className="Program">
39+
<img src={program.image} alt="Image for program" />
40+
<div className="Program-caption">
41+
{program.icon && <program.icon className="Program-icons"/>}
42+
<p>{program.title}</p>
43+
</div>
44+
</Col>
45+
))}
46+
</Row>
47+
</Container>
48+
</>
49+
)
50+
}
51+
52+
export default Programs;

src/Pages/Landingpage.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import Navbar from "../Components/landingpage/Navbar";
22
import Hero from "../Components/landingpage/hero";
33
import AboutUs from "../Components/landingpage/about";
4+
import Programs from "../Components/landingpage/programs";
45

56
function LandingPage(){
67
return(
78
<>
89
<Navbar/>
910
<Hero/>
1011
<AboutUs/>
12+
<Programs/>
1113
</>
1214
)
1315
}

src/Styles/App.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,35 @@
141141
.About-values__title {
142142
font-size: 1rem;
143143
font-weight: 400;
144+
}
145+
146+
.Program {
147+
position: relative;
148+
overflow: hidden;
149+
}
150+
.Program:hover .Program-caption {
151+
opacity: 1;
152+
padding-top: 0;
153+
}
154+
.Program:hover img {
155+
opacity: 0.5;
156+
}
157+
.Program-caption {
158+
position: absolute;
159+
top: 5rem;
160+
left: 0;
161+
bottom: 0;
162+
right: 0;
163+
display: flex;
164+
align-items: center;
165+
justify-content: center;
166+
flex-direction: column;
167+
color: #000080;
168+
cursor: pointer;
169+
opacity: 0;
170+
transition: 0.4s;
171+
}
172+
.Program-icons {
173+
height: 3rem;
174+
width: 3rem;
144175
}/*# 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.

src/Styles/LandingPage/_Index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
@import 'Button';
44
@import 'Head';
55
@import 'Title';
6-
@import 'About'
6+
@import 'About';
7+
@import 'Program'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.Program {
2+
position: relative;
3+
overflow: hidden;
4+
&:hover {
5+
.Program-caption {
6+
opacity: 1;
7+
padding-top: 0;
8+
} img{
9+
opacity: 0.5;
10+
}
11+
}
12+
&-caption {
13+
position: absolute;
14+
top: 5rem;
15+
left: 0;
16+
bottom: 0;
17+
right: 0;
18+
display: flex;
19+
align-items: center;
20+
justify-content: center;
21+
flex-direction: column;
22+
color: #000080 ;
23+
cursor: pointer;
24+
opacity: 0;
25+
transition: 0.4s;
26+
}
27+
&-icons{
28+
height: 3rem;
29+
width: 3rem;
30+
}
31+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)