diff --git a/src/events/hacktoberfest/components/registration.js b/src/events/hacktoberfest/components/registration.js
index 91bd48c..44dadb4 100644
--- a/src/events/hacktoberfest/components/registration.js
+++ b/src/events/hacktoberfest/components/registration.js
@@ -37,7 +37,7 @@ class Registration extends React.Component {
successText: '',
loading: false,
count: 0,
- slotsLeft: 200
+ slotsLeft: 250
}
this.handleNameChange = this.handleNameChange.bind(this);
this.handleEmailChange = this.handleEmailChange.bind(this);
@@ -91,7 +91,7 @@ class Registration extends React.Component {
getRegisteredCount = async() => {
const variables = {formID: 1}
const response = await dataFetch({ query: regquery, variables });
- this.setState({count: response.data.registrationForm.applicationsCount, slotsLeft: 200-response.data.registrationForm.applicationsCount})
+ this.setState({count: response.data.registrationForm.applicationsCount, slotsLeft: 250-response.data.registrationForm.applicationsCount})
}
componentDidMount() {
@@ -118,7 +118,7 @@ class Registration extends React.Component {
{this.state.count} Already Registered.
- {this.state.count < 200 ? <>{this.state.slotsLeft>=0 ? this.state.slotsLeft: 0} Slots Left.
>: Join the WaitList}
+ {this.state.count < 250 ? <>{this.state.slotsLeft>=0 ? this.state.slotsLeft: 0} Slots Left.
>: <> Join the WaitList
>}
Register Now
Sign up for the meet-up for free by filling up the form below,
diff --git a/src/events/hacktoberfest/index.js b/src/events/hacktoberfest/index.js
index aaa6ade..35884bd 100644
--- a/src/events/hacktoberfest/index.js
+++ b/src/events/hacktoberfest/index.js
@@ -1,4 +1,4 @@
-import React, { useState } from "react"
+import React from "react"
import './styles/style.sass'
import Header from './components/header'
@@ -13,7 +13,7 @@ const Hacktoberfest = () => {
<>
-
+
diff --git a/src/events/mlh-hack-day/components/countdown.js b/src/events/mlh-hack-day/components/countdown.js
new file mode 100644
index 0000000..5ebbb21
--- /dev/null
+++ b/src/events/mlh-hack-day/components/countdown.js
@@ -0,0 +1,67 @@
+import React, { Component } from 'react';
+
+class Countdown extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ days: 0,
+ hours: 0,
+ minutes: 0,
+ seconds: 0,
+ };
+ }
+
+ componentWillMount() {
+ this.getTimeUntil(this.props.deadline);
+ }
+
+ componentDidMount() {
+ setInterval(() => this.getTimeUntil(this.props.deadline), 1000);
+ }
+
+ leading(num) {
+ return num < 10 ? '0' + num : num;
+ }
+
+ getTimeUntil(deadline) {
+ const time = Date.parse(deadline) - Date.parse(new Date());
+ if(time < 0) {
+ this.setState({ days: 0, hours: 0, minutes: 0, seconds: 0 });
+
+ } else {
+ const seconds = Math.floor((time/1000)%60);
+ const minutes = Math.floor((time/1000/60)%60);
+ const hours = Math.floor((time/(1000*60*60))%24);
+ const days = Math.floor(time/(1000*60*60*24));
+
+ this.setState({ days, hours, minutes, seconds });
+ }
+
+ }
+
+ render() {
+ return(
+
+
+
+ {this.leading(this.state.days)}
+ Days
+
+
+ {this.leading(this.state.hours)}
+ Hours
+
+
+ {this.leading(this.state.minutes)}
+ Minutes
+
+
+ {this.leading(this.state.seconds)}
+ Seconds
+
+
+
+ );
+ }
+}
+export default Countdown;
\ No newline at end of file
diff --git a/src/events/mlh-hack-day/components/footer.js b/src/events/mlh-hack-day/components/footer.js
index 20f4a38..3e179c5 100644
--- a/src/events/mlh-hack-day/components/footer.js
+++ b/src/events/mlh-hack-day/components/footer.js
@@ -1,28 +1,23 @@
import React from "react"
-import { Link } from "gatsby"
+import Github from '../images/github.png'
+import MLH from "../images/mlh-logo-white.png"
-
-
-const Footer = () => (
-