Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events page created and a few changes here and there #9

Merged
merged 11 commits into from
Jun 5, 2024
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/Website.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/material_theme_project_new.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 117 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"react-icons": "^5.2.1",
"react-photo-album": "^2.4.0",
"react-scripts": "5.0.1",
"styled-components": "^6.1.11",
"swiper": "^11.1.4",
"tailwind-merge": "^2.3.0",
"web-vitals": "^2.1.4"
},
Expand Down
24 changes: 14 additions & 10 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
import React from 'react';
import Header from './components/header';
import Footer from './components/footer';
import Homepage from './pages/homepage';
import Events from './pages/events';
import Gallery from './pages/gallery';
import Projects from './pages/projects';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import SplashScreen from './components/ui/splashscreen';
import Team from "./pages/team";
import Blogs from "./pages/blogs";


function App() {
return (

<BrowserRouter><SplashScreen/>
<Header type={1} />
<Routes>
<Route path="/" element={<Homepage />}/>
<Route path="/events" element={<Events />}/>
<Route path="/gallery" element={<Gallery />}/>
<Route path="/projects" element={<Projects />}/>
</Routes>
<Footer /></BrowserRouter>
<BrowserRouter>
<SplashScreen/>
<Header type={1} />
<Routes>
<Route path="/" element={<Homepage />}/>
<Route path="/team" element={<Team />}/>
<Route path="/events" element={<Events />}/>
<Route path="/gallery" element={<Gallery />}/>
<Route path="/projects" element={<Projects />}/>
<Route path="/blogs" element={<Blogs />}/>
</Routes>
</BrowserRouter>
);
}

Expand Down
6 changes: 3 additions & 3 deletions src/components/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NavLink } from 'react-router-dom';
const Header = ({ type }) => {
return (
<header className={`w-full bg-gradient-to-b from-black to-slate-950 text-white p-4 shadow-md ${type ? "fixed top-0 left-0 z-50" : ""}`}>
<div className="px-10 py-4 px-7 flex justify-between items-center relative">
<div className="py-4 px-7 flex justify-between items-center relative">
<img src={logo} alt="IEEE Logo" className=" absolute h-12 w-12" />
<nav className="flex-1">
<ul className="flex justify-end space-x-16 text-slate-500 my-2 font-bold font-montserrat text-xl ">
Expand All @@ -20,7 +20,7 @@ const Header = ({ type }) => {
</li>
<li>
<NavLink
to='/events'
to='/team'
className="custom-underline hover:text-white "
activeClassName="link-activee"

Expand Down Expand Up @@ -59,7 +59,7 @@ const Header = ({ type }) => {
</li>
<li>
<NavLink
to="/gallery"
to="/blogs"
className="custom-underline hover:text-white"
activeClassName="link-activee"

Expand Down
Empty file removed src/components/temp.jsx
Empty file.
62 changes: 62 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,68 @@ div {
bottom: -2px; /* Adjust the distance from the text */
left: 0;
}

.link-activee {
color: white;
}

.events-container {
max-width: 124rem;
padding: 4rem 0;
margin: 0 auto;
}

.swiper-container {
height: 36rem;
padding: 2rem 0;
position: relative;
}

.swiper-slide {
width: 28rem;
height: 36rem;
position: relative;
}

.swiper-slide img {
width: 28rem;
height: 36rem;
border-radius: 1rem;
object-fit: cover;
}

.slider-controler {
position: relative;
bottom: 2rem;
display: flex;
align-items: center;
justify-content: center;
}

@media (max-width: 500px) {
.swiper-container {
height: 36rem;
}
.swiper-slide {
width: 28rem !important;
height: 36rem !important;
}
.swiper-slide img {
width: 28rem !important;
height: 36rem !important;
}
}

.swiper-pagination {
position: relative;
width: 15rem !important;
bottom: 1rem;
}

.swiper-pagination .swiper-pagination-bullet {
filter: drop-shadow(0px 8px 24px rgba(18, 28, 53, 0.1));
}

.swiper-pagination .swiper-pagination-bullet-active {
background: white;
}
Loading
Loading