Skip to content

Commit

Permalink
Added CTH Logo
Browse files Browse the repository at this point in the history
Fixed countdown
  • Loading branch information
DerCed committed Feb 16, 2024
1 parent 21475fe commit 8b85e38
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/assets/images/sponsors/CTH-logo-vertical_white.svg
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/LandingImage/Countdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import {useEffect, useState} from "react";

function Countdown() {

const [timeLeft, setTimeLeft] = useState(new Date(new Date(2024, 4, 5) - new Date()))
const [timeLeft, setTimeLeft] = useState(new Date(new Date(2024, 3, 5) - new Date()))

useEffect(() => {
const i = setInterval(() => {
setTimeLeft(new Date(new Date(2024, 4, 5) - new Date()))
setTimeLeft(new Date(new Date(2024, 3, 5) - new Date()))
}, 1000);
return () => clearInterval(i);
}, []); //dependency, if end changes remount
Expand Down
7 changes: 4 additions & 3 deletions src/components/Sponsors/Sponsors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Box, Container, Grid} from "@mui/material";
import ESchool from "../../assets/images/sponsors/trpnt_e-school-standalone-white_high.png"
import React from "react";
import HackHPIWrapper from "../Theme/HackHPIWrapper.jsx";
import ClimateTechHub from "../../assets/images/sponsors/CTH-logo-vertical_white.svg";

function Sponsors() {

Expand All @@ -10,9 +11,9 @@ function Sponsors() {
<Box sx={{ paddingBottom: 10}}>
<Container maxWidth={"xl"}>
<Grid container sx={{paddingTop: "5rem"}} justifyContent={"center"} spacing={10}>
{/*<Grid item>
<img src={Starwit.src} alt={"Logo of starwit"} style={{height: "5rem"}}/>
</Grid>*/}
<Grid item>
<img src={ClimateTechHub.src} alt={"Logo of Climate Tech Hub"} style={{height: "5rem"}}/>
</Grid>
<Grid item>
<img src={ESchool.src} alt={"Logo of E-Scool"} style={{height: "5rem"}}/>
</Grid>
Expand Down

0 comments on commit 8b85e38

Please sign in to comment.