Skip to content

Commit

Permalink
Fix: Updated image urls for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBoyRoy05 committed Nov 13, 2024
1 parent 7fcd7cb commit 546cef7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<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" />
<title>DS3 @ UCSD</title>
</head>
Expand Down
3 changes: 2 additions & 1 deletion src/Components/Page/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { FaDiscord, FaGithub, FaLinkedinIn } from "react-icons/fa6";
import { SiGmail } from "react-icons/si";
import { baseURL } from "../../Utils/info";

const Footer = () => {
const btnClass =
Expand All @@ -8,7 +9,7 @@ const Footer = () => {
return (
<div className="border-t border-[--border-color] flex py-8 bg-[#181818]">
<div className="flex flex-col flex-1 gap-3 items-center">
<img src="src\Assets\Images\big-logo-light.png" alt="DS3 Logo" className="w-40" />
<img src={`${baseURL}/src/Assets/Images/big-logo-light.png`} alt="DS3 Logo" className="w-40" />
<div className="flex flex-col gap-2 items-center text-sm font-medium">
<span>© 2024 Data Science Student Society, All Rights Reserved</span>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/Components/Page/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useNavigate } from "react-router-dom";
import { baseURL } from "../../Utils/info";

const Navbar = () => {
const navigate = useNavigate();
Expand All @@ -8,7 +9,7 @@ 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="src\Assets\Images\big-logo-light.png" alt="Logo" className="w-24" />
<img src={`${baseURL}/src/Assets/Images/big-logo-light.png`} alt="Logo" className="w-24" />
</button>
<div className="flex flex-1 justify-end mr-2">
<button className={btnClass} onClick={() => navigate(`/about-me`)}>
Expand Down
3 changes: 2 additions & 1 deletion src/Components/Page/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import "simplebar-react/dist/simplebar.min.css";
import SimpleBar from "simplebar-react";
import Navbar from "./Navbar";
import Footer from "./Footer";
import { baseURL } from "../../Utils/info";

interface PageProps {
children?: React.ReactNode;
Expand All @@ -16,7 +17,7 @@ const Page = ({ children }: PageProps) => {
<>
<h2 className="text-white text-center hero-text-shadow mt-10 mb-10 text-[3.75vw]">Coming Soon</h2>
<img
src={`/src/Assets/Images/Sleepy_Bear.png`}
src={`${baseURL}/src/Assets/Images/Sleepy_Bear.png`}
alt="Under Construction"
className="bear mt-24 w-[42vw]"
/>
Expand Down
4 changes: 4 additions & 0 deletions src/Utils/info.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const baseURL =
window.location.hostname != "localhost"
? "https://raw.githubusercontent.com/ucsdds3/new-site/main"
: "";

0 comments on commit 546cef7

Please sign in to comment.