diff --git a/frontend/src/app/NavBar.tsx b/frontend/src/app/NavBar.tsx index bb0362b..89c7386 100644 --- a/frontend/src/app/NavBar.tsx +++ b/frontend/src/app/NavBar.tsx @@ -61,13 +61,14 @@ export class NavBar extends Component
;
; - return
+ return ( +
club-logo
-
+
@@ -78,8 +79,9 @@ export class NavBar extends Component
+
-
; + ); } } diff --git a/frontend/src/app/hacks/Body.tsx b/frontend/src/app/hacks/Body.tsx index 69deeb5..3a6d4e2 100644 --- a/frontend/src/app/hacks/Body.tsx +++ b/frontend/src/app/hacks/Body.tsx @@ -20,8 +20,6 @@ export function Body()
Registration is closed! - - We are still looking for Mentors: register now!
diff --git a/frontend/src/app/hacks/Timer.tsx b/frontend/src/app/hacks/Timer.tsx index a5f7345..961ec08 100644 --- a/frontend/src/app/hacks/Timer.tsx +++ b/frontend/src/app/hacks/Timer.tsx @@ -33,7 +33,9 @@ export class Timer extends Component protected TimeDifference: number; public Tick(): void - { + { + this.UpdateTimeStamp() + setInterval(()=> { this.UpdateTimeStamp(); if(this.TimeDifference > 0) @@ -46,8 +48,8 @@ export class Timer extends Component minutes: number = Math.floor((this.TimeDifference % 3600) / 60), hours: number = Math.floor((this.TimeDifference % 86400) / 3600), days: number = Math.floor(this.TimeDifference / (3600 * 24)); - - this.setState({CurrentTimeStamp: new TimeStamp(days, hours, minutes, seconds)}); + + this.setState({CurrentTimeStamp: new TimeStamp(days, hours, minutes, seconds)} ); } public UNSAFE_componentWillMount() { @@ -57,15 +59,20 @@ export class Timer extends Component render() { - return
- {this.state.CurrentTimeStamp.Days}d {this.state.CurrentTimeStamp.Hours}h {this.state.CurrentTimeStamp.Minutes}m {this.state.CurrentTimeStamp.Seconds}s + return
+ {this.state.CurrentTimeStamp.Days}d {this.state.CurrentTimeStamp.Hours}h {this.state.CurrentTimeStamp.Minutes}m {this.state.CurrentTimeStamp.Seconds}s
} constructor(props: TimerProps) { super(props); + + // I can't figure out how to fix the server time right now, SORRY RISHIT + let date = new Date(); + date.setHours(date.getHours()-7); - this.TimeDifference = Math.abs((this.props.EndTime.valueOf() - new Date().valueOf())) / 1000; + this.TimeDifference = Math.abs((this.props.EndTime.valueOf() - date.valueOf())) / 1000; + //this.TimeDifference = Math.abs((this.props.EndTime.valueOf() - new Date().valueOf())) / 1000; } } \ No newline at end of file diff --git a/frontend/src/app/hacks/schedule/Body.tsx b/frontend/src/app/hacks/schedule/Body.tsx index c7e5a32..5cc6973 100644 --- a/frontend/src/app/hacks/schedule/Body.tsx +++ b/frontend/src/app/hacks/schedule/Body.tsx @@ -4,10 +4,11 @@ import {SocialIcons} from "@/app/SocialIcons"; export function Body() { return
+
Schedule
- +