Skip to content

Commit db75be3

Browse files
authored
Merge pull request #42 from WillNilges/willnilges/preseed-link
Set up website to grab and serve preseed
2 parents b83a398 + e1f0a01 commit db75be3

File tree

7 files changed

+123
-3
lines changed

7 files changed

+123
-3
lines changed

src/app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ def static_from_root():
100100
def credits():
101101
return flask.render_template('credits.html', contributors = contributors.contributors)
102102

103+
@app.route('/gamejam')
104+
def gamejam():
105+
return flask.render_template('gamejam.html')
106+
107+
@app.route('/preseed')
108+
def preseed():
109+
return flask.redirect('https://raw.githubusercontent.com/ComputerScienceHouse/Devcade-onboard/main/idiot/preseed.txt')
110+
103111
@app.errorhandler(Exception)
104112
def page404(e):
105113
eCode = 500

src/static/css/devcade.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,26 @@ u {
9393
background-color: var(--bg);
9494
}
9595

96+
#alertBar {
97+
position: absolute;
98+
top: 3em;
99+
left: 0;
100+
height: 3em;
101+
display: flex;
102+
justify-content: center;
103+
width: 100%;
104+
background-color: var(--csh-secondary);
105+
}
106+
107+
#alertBar > h1 {
108+
margin-top: 0px;
109+
}
110+
96111
#nav {
97112
align-items: center;
98113
color: white;
99114
width: 100%;
115+
margin-top: 3em;
100116
}
101117

102118
#nav .show {
@@ -159,6 +175,7 @@ img.header {
159175

160176
#bg {
161177
height: min(100vh, 400px);
178+
margin-top: 3em;
162179
}
163180

164181
.dropdown-toggle {
@@ -200,6 +217,33 @@ img.header {
200217
"e";
201218
}
202219

220+
#gamejamGrid {
221+
display: grid;
222+
grid-gap: 1em 1em;
223+
grid-template-columns: 1fr;
224+
grid-template-rows: auto;
225+
grid-template-areas:
226+
"a"
227+
"d"
228+
"c"
229+
"b"
230+
"e";
231+
}
232+
233+
#gamejam-flyer-wrapper {
234+
grid-area: a;
235+
display: flex;
236+
align-items: center;
237+
}
238+
239+
#gamejam-details-wrapper {
240+
grid-area: c;
241+
}
242+
243+
#about-gamejam-wrapper {
244+
grid-area: b;
245+
}
246+
203247
#about-devcade-wrapper {
204248
grid-area: a;
205249
}
@@ -405,6 +449,23 @@ a:hover {
405449
"c e";
406450
}
407451

452+
#gamejamGrid {
453+
grid-template-columns: 1fr 1fr;
454+
grid-template-rows: auto auto auto auto;
455+
grid-template-areas:
456+
"b a"
457+
"c a"
458+
"e e";
459+
}
460+
461+
#alertBar > h1 {
462+
margin-top: 20px;
463+
}
464+
465+
#nav {
466+
margin-top: 0px;
467+
}
468+
408469
.navbar-toggler-icon {
409470
display: none;
410471
}

src/static/files/GamejamFlyer.pdf

875 KB
Binary file not shown.

src/static/images/GamejamFlyer.png

1.15 MB
Loading

src/templates/gamejam.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{% extends "header.html" %} {% block headertext %}{%endblock%}
2+
{% block content %}
3+
4+
<div id="gamejamGrid">
5+
<div id="gamejam-flyer-wrapper" class="subcontent">
6+
<a href="{{ url_for('static', filename='files/GamejamFlyer.pdf') }}">
7+
<img style="width: 100%" src="{{ url_for('static', filename='images/GamejamFlyer.png') }}">
8+
</a>
9+
</div>
10+
<div id="about-gamejam-wrapper" class="subcontent">
11+
<h2>About the Gamejam</h2>
12+
<p>
13+
The Devcade team is hosting a week-long gamejam at <a target="_blank" href="https://www.rit.edu/magic/">
14+
RIT's MAGIC Center</a>! The event is open to all RIT students, regardless of major,
15+
and will consist of in-person working sessions, workshops, and seminars.
16+
</p>
17+
<p>
18+
You're encouraged to think outside of the box with your game! Some existing Devcade games include
19+
remakes of old arcade games, while some can be best classified as art projects. All are welcome to
20+
be submitted for the gamejam.
21+
</p>
22+
<p>
23+
Food will be provided for all in-person work sessions. Please fill out the below interst form if you
24+
plan on attending to let us know of any dietary restrictions you may have.
25+
</p>
26+
<p>
27+
There are $700 of prizes available to win, including an <i>Elgato StreamDeck+, Raspberry Pi 4Bs,
28+
a Wacom Drawing Tablet, Visa Prepaid Gift Cards, and many more</i>!
29+
</p>
30+
<p></p>
31+
<a class="btn btn-red" target="_blank" href="https://forms.gle/hkzAfMA8CDTy2Cn18">Interested in participating?</a>
32+
</div>
33+
<div id="gamejam-details-wrapper" class="subcontent">
34+
<h2>What do I need to know before attending?</h2>
35+
<p>
36+
If you plan on attending, please fill out the above interest form and we will reach out to you
37+
with further information! If you feel you need to reach out to us, send us an email at
38+
<a href="mailto:[email protected]">[email protected]</a>.
39+
</p>
40+
<p>
41+
All participants are required to build their games using either the
42+
<a target="_blank" href="https://www.monogame.net/">Monogame</a> framework (C#) or the
43+
<a target="_blank" href="https://bevyengine.org/">Bevy</a> engine (Rust). We will be presenting (and recording)
44+
seminars on the fundamentals and build processes of both.
45+
</p>
46+
</div>
47+
</div>
48+
49+
{% endblock %}

src/templates/header.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ <h1>Devcade</h1>
111111
</div>
112112
</div>
113113
</div>
114+
<div id="alertBar">
115+
<h1>We're hosting a week-long Gamejam open to all RIT students! <b><a href="/gamejam">Learn more</a></b></h1>
116+
</div>
114117
<div class="header">
115118
<img
116119
id="bg"

src/templates/home.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ <h2>Who are we?</h2>
3131
API and databases, some on the onboard software, and some on the physical design of the
3232
cabinet itself -- there really is something for everyone on this project.
3333
</p>
34-
<p>
35-
<a href="credits">Read more</a>
36-
</p>
34+
<p></p>
35+
<a class="btn btn-red" href="credits">Read more</a>
3736
</div>
3837
<div id="about-csh-wrapper" class="subcontent">
3938
<h2>What is CSH?</h2>

0 commit comments

Comments
 (0)