Skip to content

Commit 1209b09

Browse files
authored
Merge pull request #19 from NepTechTribe/new
Event Section Added
2 parents 7f8f990 + e27a5af commit 1209b09

File tree

13 files changed

+126
-111
lines changed

13 files changed

+126
-111
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import Title from "./title";
2+
import Container from "react-bootstrap/Container";
3+
import Row from "react-bootstrap/Row";
4+
import Col from "react-bootstrap/Col";
5+
import eventimg from "../../assets/LandingPage/pr-1.jpg";
6+
import Button from "./button";
7+
function Announcement() {
8+
const AnnouncementArray = [
9+
{
10+
title: "event title",
11+
image: eventimg,
12+
date: "2050",
13+
venue: "Google Meet",
14+
},
15+
{
16+
title: "event title",
17+
image: eventimg,
18+
date: "2050",
19+
venue: "Google Meet",
20+
},
21+
{
22+
title: "event title",
23+
image: eventimg,
24+
date: "2050",
25+
venue: "Google Meet",
26+
},
27+
{
28+
title: "event title",
29+
image: eventimg,
30+
date: "2050",
31+
venue: "Google Meet",
32+
},
33+
];
34+
35+
return (
36+
<>
37+
<Container className="Announcement">
38+
<Title title={"ANNOUNCEMENTS"} head={"Our Upcoming Events"} />
39+
<Row>
40+
{AnnouncementArray.map((item, index) => (
41+
<Col md={3} key={index} className="Announcement-individual">
42+
<img src={item.image} className="Announcement-individual__image" alt={`image of ${item.title}`} />
43+
<div style={{padding:'1rem 0rem'}}>
44+
<h2 className="Announcement-individual__title">{item.title}</h2>
45+
<h4 className="Announcement-individual__date">{item.date}</h4>
46+
<h4 className="Announcement-individual__venue">{item.venue}</h4>
47+
</div>
48+
<Button buttontext={"View More"} buttonclass={"eventbutton"} />
49+
</Col>
50+
))}
51+
</Row>
52+
</Container>
53+
</>
54+
);
55+
}
56+
57+
export default Announcement;

src/Components/landingpage/button.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
function Button({buttontext,buttonclass}){
1+
function Button({buttontext,buttonclass , buttoncontainer}){
22
return(
33
<>
4-
<div className="Button-container">
4+
<div className={buttoncontainer} >
55
<button className={buttonclass}>{buttontext}</button>
66
</div>
77
</>

src/Components/landingpage/hero.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Hero() {
1818
head={"Leaders are those who empower others"}
1919
description={description}
2020
/>
21-
<Button buttontext={"Explore More"} buttonclass={"herobutton"} />
21+
<Button buttontext={"Explore More"} buttonclass={"herobutton"} buttoncontainer={"Button-container"} />
2222
</div>
2323
</div>
2424
</>

src/Pages/Landingpage.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Navbar from "../Components/landingpage/Navbar";
22
import Hero from "../Components/landingpage/hero";
33
import AboutUs from "../Components/landingpage/about";
44
import Programs from "../Components/landingpage/programs";
5+
import Announcement from "../Components/landingpage/announcement";
56

67
function LandingPage(){
78
return(
@@ -10,6 +11,7 @@ function LandingPage(){
1011
<Hero/>
1112
<AboutUs/>
1213
<Programs/>
14+
<Announcement/>
1315
</>
1416
)
1517
}

src/Styles/App.css

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
.hero {
4444
min-height: 100vh;
45-
background: linear-gradient(rgba(60, 55, 94, 0.7019607843), rgba(70, 63, 111, 0.7019607843)), url(../../../public/herobg.png);
45+
background: linear-gradient(rgba(60, 55, 94, 0.7019607843), rgba(70, 63, 111, 0.7019607843)), url(/herobg.png);
4646
background-size: cover;
4747
background-position: center;
4848
color: #fff;
@@ -56,7 +56,7 @@
5656
justify-content: center;
5757
}
5858

59-
.herobutton {
59+
.herobutton, .eventbutton {
6060
height: 3rem;
6161
padding: 0.5rem 1rem;
6262
text-align: center;
@@ -67,11 +67,19 @@
6767
background-color: #000080;
6868
border: none;
6969
}
70-
.herobutton:hover {
70+
.herobutton:hover, .eventbutton:hover {
7171
color: #000080;
7272
background-color: white;
7373
}
7474

75+
.eventbutton {
76+
padding: 0rem;
77+
background-color: transparent;
78+
color: black;
79+
font-weight: 400;
80+
height: 1rem;
81+
}
82+
7583
.Head {
7684
text-align: center;
7785
color: white;
@@ -125,27 +133,28 @@
125133
font-family: "Poppins", sans-serif;
126134
font-style: italic;
127135
}
128-
.About-MissionVision__head, .About-values {
136+
.About-MissionVision__head, .Announcement-individual__title, .About-values {
129137
font-size: 1.25rem;
130138
font-weight: 500;
131139
color: #000080;
132140
}
133-
.About-MissionVision__description {
141+
.About-MissionVision__description, .Announcement-individual__venue {
134142
font-size: 15px;
135143
font-weight: 300;
136144
}
137145
.About-values {
138146
text-align: center;
139147
color: #000080;
140148
}
141-
.About-values__title {
149+
.About-values__title, .Announcement-individual__date {
142150
font-size: 1rem;
143151
font-weight: 400;
144152
}
145153

146154
.Program {
147155
position: relative;
148156
overflow: hidden;
157+
margin-bottom: 3rem;
149158
}
150159
.Program:hover .Program-caption {
151160
opacity: 1;
@@ -172,4 +181,17 @@
172181
.Program-icons {
173182
height: 3rem;
174183
width: 3rem;
184+
}
185+
186+
.Announcement-individual {
187+
padding: 1.5rem;
188+
overflow: hidden;
189+
}
190+
.Announcement-individual__image {
191+
height: 18rem;
192+
border-radius: 1rem;
193+
}
194+
.Announcement-individual__title {
195+
text-transform: capitalize;
196+
font-size: 1rem;
175197
}/*# 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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.Announcement{
2+
&-individual{
3+
padding: 1.5rem;
4+
overflow: hidden;
5+
&__image{
6+
height: 18rem;
7+
border-radius: 1rem;
8+
}
9+
&__title{
10+
@extend .About-MissionVision__head;
11+
text-transform: capitalize;
12+
font-size: 1rem;
13+
}
14+
&__date{
15+
@extend .About-values__title;
16+
}
17+
&__venue{
18+
@extend .About-MissionVision__description;
19+
}
20+
}
21+
}

src/Styles/LandingPage/_Button.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,13 @@
1818
background-color: white;
1919
}
2020
}
21+
22+
23+
.eventbutton{
24+
@extend .herobutton;
25+
padding: 0rem;
26+
background-color: transparent;
27+
color: black;
28+
font-weight: 400;
29+
height: 1rem;
30+
}

src/Styles/LandingPage/_Hero.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.hero {
22
min-height: 100vh;
3-
background: linear-gradient(#3c375eb3,#463f6fb3),url(../../../public/herobg.png);
3+
background: linear-gradient(#3c375eb3,#463f6fb3),url(/herobg.png);
44
background-size: cover;
55
background-position: center;
66
color: #fff;

src/Styles/LandingPage/_Index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
@import 'Head';
55
@import 'Title';
66
@import 'About';
7-
@import 'Program'
7+
@import 'Program';
8+
@import 'Announcement';

0 commit comments

Comments
 (0)