Skip to content

Commit

Permalink
remove this commit to make website visible
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthGupta2510 committed May 17, 2024
1 parent dc94e54 commit 867d5c9
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 243 deletions.
93 changes: 48 additions & 45 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,93 +4,96 @@ import React, { useEffect } from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";

// fs imports
import Login from "./pages/admin/Login";
import Dashboard from "./pages/admin/Dashboard/Dashboard";
import ContactUs from "./pages/ContactUs/ContactUs";
// import Login from "./pages/admin/Login";
// import Dashboard from "./pages/admin/Dashboard/Dashboard";
// import ContactUs from "./pages/ContactUs/ContactUs";
import Home from "./pages/Homepage/Home";
import NotFound from "./pages/NotFound";
import PrivateRoute from "./routes/PrivateRoute";
// import NotFound from "./pages/NotFound";
// import PrivateRoute from "./routes/PrivateRoute";
import Contacts from "./pages/Contacts/Contacts";
import Awards from "./pages/Awards/Awards";
import Societies from "./pages/Societies/Societies";
// import Awards from "./pages/Awards/Awards";
// import Societies from "./pages/Societies/Societies";
import Events from "./pages/Events/Events";
import ScrollToTop from "./components/ScrollToTop";
import Gallery from "./pages/Gallery/Gallery";
import FAQ from "./pages/FAQ/FAQ";
import Tech from "./pages/Committees/2021/Tech";
import Sports from "./pages/Committees/2021/Sports";
import Welfare from "./pages/Committees/2021/Welfare";
import Socult from "./pages/Committees/2021/Socult";
import AOS from "aos";
// import ScrollToTop from "./components/ScrollToTop";
// import Gallery from "./pages/Gallery/Gallery";
// import FAQ from "./pages/FAQ/FAQ";
// import Tech from "./pages/Committees/2021/Tech";
// import Sports from "./pages/Committees/2021/Sports";
// import Welfare from "./pages/Committees/2021/Welfare";
// import Socult from "./pages/Committees/2021/Socult";
// import AOS from "aos";
import "aos/dist/aos.css";
import Elections from "./pages/Elections/Elections";
import ElectionCandidates from "./pages/Elections/ElectionCandidates";
import CertifGen from "./pages/admin/CertificateGenerator/CertifGen";
import EventsUpdatePage from "./pages/admin/DataUpdate/EventsUpdatePage";
import Nominations from "./pages/Nominations/Nominations";
import LiveScoreboard from "./pages/LiveScoreboard/LiveScoreboard";
import Results from "./pages/Results/Results";
// import Elections from "./pages/Elections/Elections";
// import ElectionCandidates from "./pages/Elections/ElectionCandidates";
// import CertifGen from "./pages/admin/CertificateGenerator/CertifGen";
// import EventsUpdatePage from "./pages/admin/DataUpdate/EventsUpdatePage";
// import Nominations from "./pages/Nominations/Nominations";
// import LiveScoreboard from "./pages/LiveScoreboard/LiveScoreboard";
// import Results from "./pages/Results/Results";
import ViewCertificate from "./pages/certifgen/ViewCertificate";

function App() {
useEffect(() => {
AOS.init();
}, []);
// useEffect(() => {
// AOS.init();
// }, []);
return (
<Router>
<ScrollToTop>
{/* <ScrollToTop> */}
<Switch>
{/* Admin Routes */}
<Route exact path="/login" component={Login} />
{/* <Route exact path="/login" component={Login} />
<PrivateRoute exact path="/admin" component={Dashboard} />
<PrivateRoute exact path="/admin/certificate" component={CertifGen} />
<PrivateRoute
exact
path="/admin/events"
component={EventsUpdatePage}
/>
/> */}
{/* Homepage Routes */}
<Route exact path="/" component={Home} />
<Route exact path="/committees/tech" component={Tech} />
{/* <Route exact path="/committees/tech" component={Tech} />
<Route exact path="/committees/sports" component={Sports} />
<Route exact path="/committees/welfare" component={Welfare} />
<Route exact path="/committees/socult" component={Socult} />
<Route exact path="/societies" component={Societies} />
<Route exact path="/societies" component={Societies} /> */}
{/* Events Route */}
<Route exact path="/events" component={Events} />
{/* <Route exact path="/events" component={Events} /> */}
{/* Results Routes */}
<Route exact path="/results/gc" component={Results} />
<Route exact path="/results/interiit" component={Results} />
{/* <Route exact path="/results/gc" component={Results} />
<Route exact path="/results/interiit" component={Results} /> */}
{/* Awards Route */}
<Route exact path="/awards" component={Awards} />
{/* <Route exact path="/awards" component={Awards} /> */}
{/* Contacts Routes */}
<Route exact path="/contacts" component={Contacts} />
{/* <Route exact path="/contacts" component={Contacts} /> */}
{/* ContactUs Route */}
<Route exact path="/ContactUs" component={ContactUs} />
{/* <Route exact path="/ContactUs" component={ContactUs} /> */}

{/* Election Routes */}
{/* <Route exact path="/elections" component={Elections} />
<Route exact path="/elections/candidates" component={ElectionCandidates} /> */}
{/* <Route exact path="/nominations" component={Nominations} /> */}
{/* <Route exact path="/elections" component={Elections} /> */}

{/* Nominations Route */}
<Route exact path="/nominations" component={Nominations} />

{/* FAQ Route */}
<Route exact path="/faq" component={FAQ} />
{/* <Route exact path="/faq" component={FAQ} /> */}

{/* Certifgen2.0 Route */}
<Route exact path="/certifgen/view/:id" component={ViewCertificate} />

{/* 404 - Not Found Route */}
{/* <Route component={NotFound} /> */}

{/* Live Scoreboard Route */}
{/* <Route exact path="/livescoreboard" component={LiveScoreboard} /> */}
{/* Live Scoreboard Route */}
{/* <Route exact path="/livescoreboard" component={LiveScoreboard} /> */}

{/* <Route
exact
path="/elections/candidates"
component={ElectionCandidates}
/> */}

{/* Other Routes */}
{/*<Route exact path="/gallery" component={Gallery} /> */}
</Switch>
</ScrollToTop>
{/* </ScrollToTop> */}
</Router>
);
}
Expand Down
69 changes: 42 additions & 27 deletions src/pages/Homepage/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,50 @@ import AboutUs from "./AboutUs/AboutUs";
import CommitteesHome from "./Committee/CommitteesHome";
import Societies from "./Societies/Societies";
import Greet from "./Greet";
import { BorderWidth } from "react-bootstrap-icons";

export default function Home() {
document.title = "Home | TSG";
// document.title = "Home | TSG";
document.title = "502 Bad Gateway";

return (
// <Layout>
// <div className={Styles.backgroundImage}>
// <div className={Styles.textOverlay}>
// <div className={Styles.kgpSvg}>
// <img
// src="/data/media/images/general/gymkhanaLogo.png"
// alt="KGP Logo"
// />
// </div>
// <div className={Styles.greetMessage}>
// <Greet />
// </div>
// </div>
// </div>
// <div>
// {/* About Us Section */}
// <AboutUs />

return (
<Layout>
<div className={Styles.backgroundImage}>
<div className={Styles.textOverlay}>
<div className={Styles.kgpSvg}>
<img
src="/data/media/images/general/gymkhanaLogo.png"
alt="KGP Logo"
/>
</div>
<div className={Styles.greetMessage}>
<Greet />
</div>
</div>
</div>
<div>
{/* About Us Section */}
<AboutUs />

{/* Committees Section */}
<CommitteesHome />
// {/* Committees Section */}
// <CommitteesHome />

{/* Socities Section */}
<Societies />
</div>
</Layout>
);
// {/* Socities Section */}
// <Societies />
// </div>
// </Layout>
<div
style={{
width: "100vw",
height: "100vh",
backgroundColor: "white",
}}
>
<center>
<h1 style={{color: "black", fontFamily: "sans serif", fontWeight: "bold", paddingTop: "10px", paddingBottom: "8px", fontSize: "32px", marginBottom: "0px"}}>502 Bad Gateway</h1>
</center>
<hr style={{display: "block", borderWidth: "1px", opacity: "1"}} />
<center style={{fontFamily: "sans serif", fontSize: "16px"}}>nginx</center>
</div>
);
}
4 changes: 4 additions & 0 deletions src/pages/certifgen/ViewCertificate.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
h1 {
color: #f1c40f;
}

@media only screen and (min-width:725px){
.certificateimage {
text-align: center;
Expand Down
Loading

0 comments on commit 867d5c9

Please sign in to comment.