diff --git a/frontend/src/App.js b/frontend/src/App.js index 858fca8..e51050d 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -25,9 +25,7 @@ const About = React.lazy(() => import('./components/LandingPages/About/About')); const Events = React.lazy(() => import('./components/LandingPages/Events/Events') ); -const Admin = React.lazy(() => - import('./components/DashBoard/Admin/Admin') -); +const Admin = React.lazy(() => import('./components/DashBoard/Admin/Admin')); const Team = React.lazy(() => import('./components/LandingPages/Team/Team')); const Sponsors = React.lazy(() => import('./components/LandingPages/Sponsors/Sponsors') @@ -63,7 +61,9 @@ const Home = React.lazy(() => import('./components/DashBoard/Home/Home')); const Registration = React.lazy(() => import('./components/DashBoard/Registration/Registration') ); -const Document = React.lazy(() => import('./components/DashBoard/Document/Document')); +const Document = React.lazy(() => + import('./components/DashBoard/Document/Document') +); const Profile = React.lazy(() => import('./components/DashBoard/Profile/Profile') @@ -80,10 +80,10 @@ const HomePage = React.lazy(() => const Footer1 = React.lazy(() => import('./components/LandingPages/Contact/Contact.js') ); -const Matches =React.lazy(()=> +const Matches = React.lazy(() => import('./components/LandingPages/matches/matches') ); -const Espardha =React.lazy(()=> +const Espardha = React.lazy(() => import('./components/LandingPages/Espardha/Espardha') ); @@ -111,7 +111,7 @@ function App() { } > - }> @@ -141,7 +141,6 @@ function App() { element={ }> - } /> @@ -172,7 +171,7 @@ function App() { } /> - + }> - + } /> @@ -272,25 +271,25 @@ function App() { } /> - + }> - + } - /> - }> - - - } - /> + /> + }> + + + } + /> - {/* }> @@ -299,14 +298,14 @@ function App() { } /> */} - }> - - - } - /> + }> + + + } + /> } /> - + } /> - {/* */} @@ -372,4 +370,4 @@ function App() { ); } -export default App; \ No newline at end of file +export default App; diff --git a/frontend/src/components/LandingPages/Gallery/Gallery.js b/frontend/src/components/LandingPages/Gallery/Gallery.js index 39f9a04..6ae580e 100644 --- a/frontend/src/components/LandingPages/Gallery/Gallery.js +++ b/frontend/src/components/LandingPages/Gallery/Gallery.js @@ -6,27 +6,13 @@ import 'react-responsive-carousel/lib/styles/carousel.min.css'; import { Modal, ModalHeader, ModalBody } from 'reactstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; -// import GalleryModal from '../GalleryModal/GalleryModal'; -// import Background_gallery from '/images/bg/bg_football.png'; - const Gallery = () => { - // const gallery_bg={ - // backgroundImage: "url(" + { Background_gallery } + ")", - // backgroundAttachment: "fixed", - // backgroundPosition: "center", - // backgroundSize: "cover" - // } const [modal, setModal] = useState(false); const toggle = () => setModal(!modal); const [item, setItem] = useState(0); - // const changeIndex=(index)=>{ - // console.log("changeIndex",index); - // setItem(index) - // }; const [check, setCheck] = useState(false); useEffect(() => { - // console.log('useEffect', check); if (check) { if (!modal) { toggle(); @@ -63,7 +49,6 @@ const Gallery = () => { - {/*
*/}
Opening Ceremony diff --git a/frontend/src/components/LandingPages/Guests/SliderGuests.js b/frontend/src/components/LandingPages/Guests/SliderGuests.js index b76cca4..e8467d0 100644 --- a/frontend/src/components/LandingPages/Guests/SliderGuests.js +++ b/frontend/src/components/LandingPages/Guests/SliderGuests.js @@ -6,10 +6,6 @@ import 'owl.carousel/dist/assets/owl.theme.default.css'; const SliderGuests = () => { return ( - //
- // SliderGuests - //
-
@@ -40,8 +36,6 @@ const SliderGuests = () => { autoplay center={true} className="mine_slider_guests" - // stagePadding={500} - // margin="1px" >
@@ -58,20 +52,6 @@ const SliderGuests = () => {
- {/*
-
-
-
-

- Salute to all organisers for such dedication and - determination. -

-

Sushil Kumar (Wrestler)

- 2010 World Title winner -
-
-
*/} -
diff --git a/frontend/src/components/LandingPages/Header/Header.js b/frontend/src/components/LandingPages/Header/Header.js index a914d55..96c80f0 100644 --- a/frontend/src/components/LandingPages/Header/Header.js +++ b/frontend/src/components/LandingPages/Header/Header.js @@ -14,14 +14,12 @@ import { FaTwitter, } from 'react-icons/fa'; import styles from './Header.module.css'; -// import { isMobile } from 'react-device-detect'; import { useMediaQuery } from 'react-responsive'; function Header() { const [open, setOpen] = useState(false); const [navbar, setNavbar] = useState(false); const isMobile = useMediaQuery({ maxWidth: 993}); - //const [home,setHome]=useState(true); const [active,setActive]=useState(false); useEffect(() => { @@ -106,15 +104,7 @@ function Header() { onClick={() => { setOpen(false); }} - // style={({ isActive }) => { - // return { - // color: isActive - // ? '#6db549' - // : navbar - // ? '#000' - // : 'rgba(255, 255, 255, 0.9)', - // }; - // }} + style={({ isActive }) => { return { @@ -139,16 +129,7 @@ function Header() { onClick={() => { setOpen(false); }} - // style={({ isActive }) => { - // return { - // color - // // : isActive - // // ? '#6db549' - // : navbar - // ? '#000' - // : 'rgba(255, 255, 255, 0.9)', - // }; - // }} + style={({ isActive }) => { if(isActive){setActive(true)} return { @@ -208,16 +189,6 @@ function Header() { onClick={() => { setOpen(false); }} - // style={({ isActive }) => { - // return { - // color - // // : isActive - // // ? '#6db549' - // : navbar - // ? '#000' - // : 'rgba(255, 255, 255, 0.9)', - // }; - // }} style={({ isActive }) => {if(isActive){setActive(true)} return { color: isMobile @@ -241,16 +212,6 @@ function Header() { onClick={() => { setOpen(false); }} - // style={({ isActive }) => { - // return { - // color - // // : isActive - // // ? '#6db549' - // : navbar - // ? '#000' - // : 'rgba(255, 255, 255, 0.9)', - // }; - // }} style={({ isActive }) => {if(isActive){setActive(true)} return { color: isMobile @@ -266,58 +227,7 @@ function Header() { ESPARDHA - {/* - { - setOpen(false); - }} - style={{ - color: isMobile - ? '#000' - : navbar - ? '#000' - : 'rgba(255, 255, 255, 0.9)', - }} - > - RuleBook - - */} - {/* - { - setOpen(false); - }} - // style={({ isActive }) => { - // return { - // color - // // : isActive - // // ? '#6db549' - // : navbar - // ? '#000' - // : 'rgba(255, 255, 255, 0.9)', - // }; - // }} - style={({ isActive }) => { - return { - color: isMobile - ? '#000' - : navbar - ? '#000' - : 'rgba(255, 255, 255, 0.9)', - borderBottom:isMobile?'1px solid black': isActive ? '3px solid red' : null, - }; - }} - smooth - > - Guests - - */} + { - // return { - // color - // // :isActive - // // ? '#6db549' - // : navbar - // ? '#000' - // : 'rgba(255, 255, 255, 0.9)', - // borderBottom:isActive - // ? "3px solid red;", - // }; - // }} style={({ isActive }) => {if(isActive){setActive(true)} return { color: isMobile @@ -354,38 +252,7 @@ function Header() { Sponsors - {/* - { - setOpen(false); - }} - // style={({ isActive }) => { - // return { - // color: isActive - // ? '#6db549' - // : navbar - // ? '#000' - // : 'rgba(255, 255, 255, 0.9)', - // }; - // }} - style={({ isActive }) => {if(isActive){setActive(true)} - return { - color: isMobile - ? '#000' - : navbar - ? '#000' - : 'rgba(255, 255, 255, 0.9)', - borderBottom:isMobile?'1px solid black': isActive ? '3px solid red' : null, - }; - }} - smooth - > - Teams - - */} + { setInterval(() => { setStartDate(new Date());//checking everyhour so that when date changes it updates diff --git a/frontend/src/components/LandingPages/Home/HomePage/Home.js b/frontend/src/components/LandingPages/Home/HomePage/Home.js index 35c6c2b..b82205d 100644 --- a/frontend/src/components/LandingPages/Home/HomePage/Home.js +++ b/frontend/src/components/LandingPages/Home/HomePage/Home.js @@ -2,32 +2,27 @@ import React from 'react'; import './Home.css'; import Mid from '../MiddleSection/MiddleSection'; import Carousel from '../Carousel/Carouselhp'; -import CountdownTimer from '../Countdown/Countdown' +import CountdownTimer from '../Countdown/Countdown'; /*import Foot from '../HomeBottom/HomeBottom';*/ // import Footer from '../Footer/Footer'; function App() { - return ( - -
-
- - +
+
+ +
+
+
+ + {/*
*/}
-
- -
- - {/*
*/} -
-
- {/**/} - -
+
+ {/**/} +
- +
); } diff --git a/frontend/src/components/LandingPages/Home/MiddleSection/MiddleSection.js b/frontend/src/components/LandingPages/Home/MiddleSection/MiddleSection.js index 433efc0..9231290 100644 --- a/frontend/src/components/LandingPages/Home/MiddleSection/MiddleSection.js +++ b/frontend/src/components/LandingPages/Home/MiddleSection/MiddleSection.js @@ -1,39 +1,47 @@ -import React from 'react' -import './MiddleSection.css' +import React from 'react'; +import './MiddleSection.css'; import { NavHashLink } from 'react-router-hash-link'; // import Date1 from '../DaysLeft/DaysLeft'; import Day_remaining from '../Images/whatsappimage3.png'; function Mid() { return (
-
-
SPARDHA 2024
-
MOULDING CHAMPIONS
-
Annual sports festival of IIT (BHU) under the Games and Sports Council.
+
+ SPARDHA 2024
+
MOULDING CHAMPIONS
+
+
+ Annual sports festival of IIT (BHU) under the Games and Sports + Council. +
- - - - - - + + + + + {' '} + +
-
+
{/*
{Date1()}
*/} -
- Day_remaining +
+ Day_remaining
{/*
Day Remaining
*/}
- ) + ); } export default Mid; diff --git a/frontend/src/components/LandingPages/HomeSlider/HomeSlider.js b/frontend/src/components/LandingPages/HomeSlider/HomeSlider.js index a72a3b0..b6950c1 100644 --- a/frontend/src/components/LandingPages/HomeSlider/HomeSlider.js +++ b/frontend/src/components/LandingPages/HomeSlider/HomeSlider.js @@ -19,17 +19,32 @@ function HomeSlider() { >
-
+
-
+
{/* Rankers */} - + {/* Iitian Traders */} @@ -40,15 +55,6 @@ function HomeSlider() {

IIT (BHU), Varanasi

- {/*
- - Rankers - - - - Iitian Traders - -
*/}

@@ -79,7 +85,7 @@ function HomeSlider() {
@@ -99,17 +105,32 @@ function HomeSlider() {
-
+
-
+
{/* Rankers */} - + {/* Iitian Traders */} @@ -132,7 +153,7 @@ function HomeSlider() { className="text-overflow-center home-spardha-subheading" style={{ color: '#fdcc07' }} > - 13th - 15th october + 13th - 15th october

@@ -158,8 +179,8 @@ function HomeSlider() {
REGISTER / LOGIN @@ -178,17 +199,32 @@ function HomeSlider() {
-
+
-
+
{/* Rankers */} - + {/* Iitian Traders */} @@ -211,7 +247,7 @@ function HomeSlider() { className="text-overflow-center home-spardha-subheading" style={{ color: '#fdcc07' }} > - 13th - 15th october + 13th - 15th october
@@ -238,10 +274,10 @@ function HomeSlider() {
- REGISTER / LOGIN + REGISTER / LOGIN
@@ -257,17 +293,32 @@ function HomeSlider() {
-
+
-
+
{/* Rankers */} - + {/* Iitian Traders */} @@ -317,10 +368,10 @@ function HomeSlider() {
- REGISTER / LOGIN + REGISTER / LOGIN
diff --git a/frontend/src/components/LandingPages/LandingPages.js b/frontend/src/components/LandingPages/LandingPages.js index d287bc6..749362c 100644 --- a/frontend/src/components/LandingPages/LandingPages.js +++ b/frontend/src/components/LandingPages/LandingPages.js @@ -11,9 +11,7 @@ function LandingPages() { {/* */} {/*