Skip to content

Commit

Permalink
Merge pull request #19 from Albatrozx11/main
Browse files Browse the repository at this point in the history
added events page
  • Loading branch information
jzf21 authored Oct 10, 2023
2 parents ab1228f + 9d9f0e7 commit c2c218f
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 7 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@600&display=swap"
rel="stylesheet"
/>
<title>Vite + React</title>
</head>
<body>
Expand Down
3 changes: 2 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ import About from "./components/About/About";
import Footer from "./components/Footer/Footer";
import Hero from "./components/Hero/Hero";
import Navbar from "./components/Navbar/Navbar";

import Events from "./components/Events/Events";
function App() {
return (
<>
<div>
<Navbar/>
<Hero />
<About />
<Events />
<Footer />
</div>
</>
Expand Down
20 changes: 20 additions & 0 deletions src/components/Events/Boxes.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from "react";
import "./Events.css";
const Boxes = () => {
return (
<div className=" bg-[#0C2445] box-cont ml-4 flex flex-col">
<div className="flex justify-center items-center my-6">
<div className="bg-[#E0E2E3] rounded inner-box "></div>
</div>
<div className="mx-8">
<h3 className="text-[#E6F4F4] text-[32px] font-semibold mb-1">TITLE</h3>
<p className="text-[#D9D9D9] text-[20px] ">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore{" "}
</p>
</div>
</div>
);
};

export default Boxes;
83 changes: 83 additions & 0 deletions src/components/Events/Events.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
h1 {
font-family: "Inter";
font-style: normal;
line-height: normal;
text-transform: uppercase;
}

.box-cont {
width: 360px;
height: 530px;
flex-shrink: 0;
border-radius: 7px;
}

.inner-box {
width: 300px;
height: 250px;
flex-shrink: 0;
}

h3 {
text-transform: uppercase;
font-family: Inter;
font-size: 36px;
font-style: normal;
line-height: normal;
}

.main-cont {
height: 1024px;
overflow: hidden;
}

p {
font-family: "Inter";
font-style: normal;
font-weight: 200;
line-height: normal;
text-transform: capitalize;
}

@media (max-width: 720px) {
.sub-cont {
flex-direction: column;
}

.main-cont {
height: max-content;
overflow: hidden;
}

.box-cont {
margin-bottom: 16px;
width: 55%;
height: 500px;
}

.inner-box {
width: 80%;
height: 230px;
}
}
@media (max-width: 520px) {
.sub-cont {
flex-direction: column;
}

.main-cont {
height: max-content;
overflow: hidden;
}

.box-cont {
margin-bottom: 16px;
width: 70%;
height: 500px;
}

.inner-box {
width: 80%;
height: 230px;
}
}
21 changes: 15 additions & 6 deletions src/components/Events/Events.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import './Events.css'

import "./Events.css";
import Boxes from "./Boxes";
const Events = () => {
return (
<div>Events</div>
)
}
<div className=" bg-[#E6F4F4] flex flex-col items-center main-cont">
<h1 className="text-[#041B3E] text-[76px] mt-20 font-semibold ">
EVENTS
</h1>
<div className="sub-cont flex mt-10 items-center">
<Boxes />
<Boxes />
<Boxes />
</div>
</div>
);
};

export default Events
export default Events;

0 comments on commit c2c218f

Please sign in to comment.