Skip to content

Commit

Permalink
Set up components for homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBoyRoy05 committed Nov 16, 2024
1 parent 546cef7 commit ac21e51
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import Page from "./Components/Page/Page"
import { Route, Routes } from "react-router-dom"
import Home from "./Pages/Home/Home"

function App() {

return (
<>
<Page></Page>
</>
<Routes>
<Route path="/new-site" element={<Home />} />
</Routes>
)
}

Expand Down
Binary file added src/Assets/Images/ds3_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/Components/Page/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const Navbar = () => {

return (
<div className="flex fixed w-full z-10 items-center">
<button className="text-[2rem] font-bold ml-6 p-4" onClick={() => navigate("/")}>
<img src={`${baseURL}/src/Assets/Images/big-logo-light.png`} alt="Logo" className="w-24" />
<button className="text-[2rem] font-bold ml-2 p-4 hover:rotate-[-180deg] duration-500" onClick={() => navigate("/")}>
<img src={`${baseURL}/src/Assets/Images/ds3_logo.png`} alt="Logo" className="w-12" />
</button>
<div className="flex flex-1 justify-end mr-2">
<button className={btnClass} onClick={() => navigate(`/about-me`)}>
Expand Down
9 changes: 9 additions & 0 deletions src/Pages/Home/AboutUs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const AboutUs = () => {
return (
<div>

</div>
)
}

export default AboutUs
9 changes: 9 additions & 0 deletions src/Pages/Home/Events.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Events = () => {
return (
<div>

</div>
)
}

export default Events
20 changes: 20 additions & 0 deletions src/Pages/Home/Home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import Page from "../../Components/Page/Page";
import AboutUs from "./AboutUs";
import Events from "./Events";
import Landing from "./Landing";
import Sponsers from "./Sponsers";
import Stats from "./Stats";

const Home = () => {
return (
<Page>
<Landing />
<AboutUs />
<Stats />
<Events />
<Sponsers />
</Page>
);
};

export default Home;
9 changes: 9 additions & 0 deletions src/Pages/Home/Landing.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Landing = () => {
return (
<div>

</div>
)
}

export default Landing
9 changes: 9 additions & 0 deletions src/Pages/Home/Sponsers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Sponsers = () => {
return (
<div>

</div>
)
}

export default Sponsers
9 changes: 9 additions & 0 deletions src/Pages/Home/Stats.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const Stats = () => {
return (
<div>

</div>
)
}

export default Stats
4 changes: 4 additions & 0 deletions src/Styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

.hero-text-shadow {
text-shadow: 0 5px 20px #0057ff33, 0 -5px 15px #ff5a0026, 0 0 30px #ffffff4d;
}

p, span, a {
@apply text-gray-400;
}
2 changes: 1 addition & 1 deletion src/Utils/info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const baseURL =
window.location.hostname != "localhost"
? "https://raw.githubusercontent.com/ucsdds3/new-site/main"
: "";
: "/new-site";

0 comments on commit ac21e51

Please sign in to comment.