update for 2022

This commit is contained in:
ACM 2021-12-14 16:55:03 -05:00
parent 652160f352
commit a6eba51868
8 changed files with 48 additions and 15 deletions

6
.gitignore vendored
View file

@ -4,6 +4,12 @@ config_hackWPI.py
config.py config.py
# Created by https://www.gitignore.io/api/web,vim,git,macos,linux,bower,grunt,python,pycharm,windows,eclipse,webstorm,intellij,jetbrains,virtualenv,visualstudio,visualstudiocode # Created by https://www.gitignore.io/api/web,vim,git,macos,linux,bower,grunt,python,pycharm,windows,eclipse,webstorm,intellij,jetbrains,virtualenv,visualstudio,visualstudiocode
# Dev ENV Stuff
*.sql
sqldmp
.vscode/
### Bower ### ### Bower ###
bower_components bower_components
.bower-cache .bower-cache

View file

@ -55,6 +55,14 @@ def filesize_too_big(erro):
def server_error(): def server_error():
print("There was a server error... If you're having trouble registering, please email hack@wpi.edu with your details and what you did to break our site :P") print("There was a server error... If you're having trouble registering, please email hack@wpi.edu with your details and what you did to break our site :P")
@app.route('/sponsor')
def sponsorindex():
return render_template('home/sponsor/index.html', registration_open=REGISTRATION_OPEN)
@app.route('/sponsor/<path:path>')
def sponsor(path):
return send_from_directory('templates/home/sponsor', path)
@app.route('/') @app.route('/')
def root(): def root():
return render_template('home/index.html', registration_open=REGISTRATION_OPEN) return render_template('home/index.html', registration_open=REGISTRATION_OPEN)
@ -225,7 +233,10 @@ def register():
msg += 'Sorry! We have hit our registration capacity. You have been placed on the waitlist.\n' msg += 'Sorry! We have hit our registration capacity. You have been placed on the waitlist.\n'
msg += 'We will let you know if space opens up.\n' msg += 'We will let you know if space opens up.\n'
else: else:
msg += 'You are fully registered! You are guarenteed a spot at the hackathon. We will send you more info closer to the hackathon.\n' msg += 'You are fully registered! You are guarenteed a spot at the hackathon. Be sure to see the schedule at https://hack.wpi.edu. The opening ceremony is at 6:00 PM EST on Zoom at https://wpi.zoom.us/j/97135616505. Other zoom links will be sent through the slack.\n\n'
msg += 'In the meantime, make sure to join the Slack and DevPost!\n'
msg += 'http://bit.ly/hack21slack\n'
msg += 'https://hack-wpi-2021.devpost.com/\n'
send_email(session['mymlh']['email'], 'Hack@WPI - Thanks for applying', msg) send_email(session['mymlh']['email'], 'Hack@WPI - Thanks for applying', msg)
# Finally, send them to their dashboard # Finally, send them to their dashboard

File diff suppressed because one or more lines are too long

View file

@ -5,8 +5,9 @@ html {
} }
body { body {
background-color: #00BEBB; background-color: #003049;
font-family: "Krungthep"; font-family: 'Montserrat', sans-serif;
font-size: 1.1rem;
color: #eee; color: #eee;
position: relative; position: relative;
min-height: 100%; min-height: 100%;
@ -113,7 +114,12 @@ label {
nav { nav {
line-height: normal !important; line-height: normal !important;
font-family: "Jost", sans-serif;
font-weight: 700;
} }
/*
.navbar-brand {
} */
.footer-nav { .footer-nav {
position: absolute; position: absolute;

View file

@ -55,9 +55,15 @@
<h2>You are fully registered! We look forward to seeing you!</h2> <h2>You are fully registered! We look forward to seeing you!</h2>
Let us know if you have any questions by sending them to <a href="mailto:hack@wpi.edu">hack@wpi.edu</a> Let us know if you have any questions by sending them to <a href="mailto:hack@wpi.edu">hack@wpi.edu</a>
<br> <br>
<br>
Forgot to upload your resume while registering? No worries, submit it below. Forgot to upload your resume while registering? No worries, submit it below.
</div> </div>
<div class="row center justify-content-center" style="background-color: #EE6E73; padding: 20;"> <div class="row center justify-content-center">
<h5>Make sure to join the Discord and enter your shirt size below!</h5>
<p>(Please note that due to COVID-19 constraints, we can't guarantee that all participants will receive Hack@WPI t-shirts this year but we are trying to find a way!)</p>
<a href="https://https://discord.gg/TUKc6sDXU4" style="margin: 5px;" class="btn btn-lg btn-primary btn-invert">Discord</a>
</div>
<div class="row center justify-content-center" style="background-color: #974355; padding: 20; margin-left: 20; margin-right: 20;">
<form method="get" action="/shirtpost"> <form method="get" action="/shirtpost">
<br> <br>
<p><b>Optional Info:</b></p> <p><b>Optional Info:</b></p>

View file

@ -19,7 +19,7 @@
<nav class="navbar navbar-inverse sticky-top navbar-expand"> <nav class="navbar navbar-inverse sticky-top navbar-expand">
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<a class="navbar-brand" href="/">HACK@WPI</a> <a class="navbar-brand" href="/">Hack@WPI</a>
</div> </div>
<ul class="nav justify-content-end"> <ul class="nav justify-content-end">
<!-- <li class="nav-item"> <!-- <li class="nav-item">

@ -1 +1 @@
Subproject commit 9ab381e6bded7cdd74cdca9606fa9f49e15449d1 Subproject commit e8a2ed7bc93b4cf0f8ce6a6606ac8e2eb946bc24

View file

@ -2,20 +2,20 @@
<link href="../static/css/materialize.min.css" rel="stylesheet"> <link href="../static/css/materialize.min.css" rel="stylesheet">
<style> <style>
a{ a{
color:darkblue; color: skyblue;
} }
</style> </style>
<div style="height: 100%;"> <div style="height: 100%;">
<div id="registration-banner" class="parallax-container valign-wrapper"> <div id="registration-banner" class="parallax-container valign-wrapper">
<div class="section"> <div class="section">
<h2 class="header center black-text text-darken-2">Registration</h2> <h3 class="header center text-darken-2">Registration</h3>
</div> </div>
<div class="parallax"><img src="../static/img/background1.jpg" alt="background"></div> <div class="parallax"><img src="../static/img/background1.jpg" alt="background"></div>
</div> </div>
<div class="container"> <div class="container">
<div class="container"> <div class="container">
<Center><h1>Hi {{ name }}, just a few more steps!</h1></Center> <Center><h2>Hi {{ name }}, just a few more steps!</h2></Center>
<div class="section"> <div class="section" style="background-color: #974355; padding: 20px;">
<form method="post" action="/register" enctype="multipart/form-data"> <form method="post" action="/register" enctype="multipart/form-data">
<div> <div>
<p><b>If you'd like, add your resume to send to sponsors... </b></p> <p><b>If you'd like, add your resume to send to sponsors... </b></p>
@ -29,7 +29,8 @@
</div> </div>
</div> </div>
</div> </div>
<p>By registering & attending, you agree to the following policies:</p> <p><i>No worries if you don't have one on hand, you can come back and upload it later via the Hack@WPI dashboard!</i></p>
<p>Please take a moment to review the following policies and check all the boxes below so we can finalize your registration:</p>
<p> <p>
<center><a href="/tos">Hack@WPI's Terms and Conditions</a></center> <center><a href="/tos">Hack@WPI's Terms and Conditions</a></center>
</p> </p>
@ -47,7 +48,10 @@
<center><a href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">MLH's Code of Conduct</a></center> <center><a href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">MLH's Code of Conduct</a></center>
</p> </p>
<br> <br>
<input type="checkbox" name="tos" id="checkboxid" required><label for="checkboxid"><b style="color:white;">Do you agree with these Rules?</b></label> <input type="checkbox" name="tos" id="checkboxid" required><label for="checkboxid"><b style="color:white;">*I have read and agree to the Hack@WPI Terms and Conditions</b></label>
<input type="checkbox" name="mlh1" id="checkboxid1" required><label for="checkboxid1"><b style="color:white;">*I have read and agree to the MLH Code of Conduct</b></label>
<input type="checkbox" name="mlh2" id="checkboxid2" required><label for="checkboxid2"><b style="color:white;">*I authorize you to share my application/registration information with Major League Hacking for event administration, ranking, and MLH administration in-line with the MLH Privacy Policy. I further agree to the terms of both the MLH Contest Terms and Conditions and the MLH Privacy Policy.</b></label>
<input type="checkbox" name="mlh3" id="checkboxid3" required><label for="checkboxid3"><b style="color:white;">*I authorize MLH to send me pre- and post-event information emails, which contain free credit and opportunities from their partners.</b></label>
<br><br> <br><br>
<center><input name="submit" class="btn btn-lg btn-primary btn-invert" type="submit" value="Submit"/></center> <center><input name="submit" class="btn btn-lg btn-primary btn-invert" type="submit" value="Submit"/></center>
</form> </form>