Skip to content

Added Contributors page #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import requests
from io import BytesIO
from werkzeug.wsgi import FileWrapper
import contributors

@app.route('/')
# @login_required
Expand Down Expand Up @@ -90,6 +91,10 @@ def deleteGame(id):
def static_from_root():
return flask.send_from_directory(app.static_folder, flask.request.path[1:])

@app.route('/credits')
def credits():
return flask.render_template('credits.html', contributors = contributors.contributors)

@app.errorhandler(Exception)
def page404(e):
eCode = 500
Expand Down
82 changes: 82 additions & 0 deletions src/contributors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import hashlib

contributors = [
{
"name" : "Andrew Ebersole",
"link" : "",
"email" : hashlib.md5(b"andrewe@csh.rit.edu").hexdigest(),
"desc" : "Game Developer, First Year GDD"
},
{
"name" : "Noah Emke",
"link" : "https://noahemke.com",
"email" : hashlib.md5(b"mtft@csh.rit.edu").hexdigest(),
"desc" : "Devcade Team Lead, Third Year GDD"
},
{
"name" : "Will Lyons",
"link" : "",
"email" : hashlib.md5(b"lyons@csh.rit.edu").hexdigest(),
"desc" : "Game Developer, First Year GDD"
},
{
"name" : "Wilson McDade",
"link" : "https://wmcda.de",
"email" : hashlib.md5(b"mcdade@csh.rit.edu").hexdigest(),
"desc" : "Public Site Developer, Game Developer, Fourth Year CS"
},
{
"name" : "Willard Nilges",
"link" : "https://nilges.me/",
"email" : hashlib.md5(b"wilnil@csh.rit.edu").hexdigest(),
"desc" : "Backend Developer, Game Developer, Fifth Year CE"
},
{
"name" : "Joe O'Neil",
"link" : "",
"email" : hashlib.md5(b"joeneil@csh.rit.edu").hexdigest(),
"desc" : "Backend Developer, Game Developer, First Year CS"
},
{
"name" : "Ben Piro",
"link" : "",
"email" : hashlib.md5(b"bean@csh.rit.edu").hexdigest(),
"desc" : "API Lead Developer, Fourth Year CS"
},
{
"name" : "Dennis Santos-Sanchez",
"link" : "",
"email" : hashlib.md5(b"yozora@csh.rit.edu").hexdigest(),
"desc" : "Hardware Team, Third Year CE"
},
{
"name" : "Andrew Simonson",
"link" : "https://asimonson.com",
"email" : hashlib.md5(b"cinnamon@csh.rit.edu").hexdigest(),
"desc" : "Public Site Developer, Third Year CS"
},
{
"name" : "Ella Soccoli",
"link" : "https://esoccoli.me",
"email" : hashlib.md5(b"ella@csh.rit.edu").hexdigest(),
"desc" : "Game Developer, First Year GDD"
},
{
"name" : "Nathan Teall",
"link" : "",
"email" : hashlib.md5(b"st4r@csh.rit.edu").hexdigest(),
"desc" : "Onboard Team Lead, First Year SE"
},
{
"name" : "Alex Vasilcoiu",
"link" : "",
"email" : hashlib.md5(b"babysatan@csh.rit.edu").hexdigest(),
"desc" : "Art Team, First Year"
},
{
"name" : "Chris Wells",
"link" : "",
"email" : hashlib.md5(b"chrisp@csh.rit.edu").hexdigest(),
"desc" : "Hardware Team, First Year GDD"
}
]
8 changes: 8 additions & 0 deletions src/static/css/devcade.css
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ img.header {
border-radius: 10px;
}

.game-icon {
grid-area: icon;
width: 80%;
border-radius: 10px;
margin: auto;
border-radius: 10px;
}

.game-name {
grid-area: name;
}
Expand Down
37 changes: 14 additions & 23 deletions src/templates/credits.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,23 @@ <h2>Contributors</h2>
<p>Many people have contributed to the different aspects of the Devcade project. Listed below (alphabetically) are the names of those who contributed to the core of the project</p>
<div class="card-wrapper">
{% for i in range(0,contributors|length) %}
<div class="game-card" style="background-image: url({{ url_for('static', filename='images/csh_tilted.png') }})">
<img class="game-icon" src="https://www.gravatar.com/avatar/{{ contributors[i].email }}" />
<div class="game-name">
<div>
<h2>{{ contributors[i].name }}</h2>
<h3></h3>
{% if contributors[i].link != "" %}
<a href="{{ contributors[i].link }}">
{% endif %}
<div class="game-card" style="background-image: url({{ url_for('static', filename='images/csh_tilted.png') }})">
<img class="game-icon" src="https://www.gravatar.com/avatar/{{ contributors[i].email }}?d=identicon" />
<div class="game-name">
<div>
<h2>{{ contributors[i].name }}</h2>
<h3></h3>
</div>
</div>
<div class="game-desc"><div>{{ contributors[i].desc }}</div></div>
</div>
<div class="game-desc"><div></div></div>
</div>
{% if contributors[i].link != "" %}
</a>
{% endif %}

{% endfor %}
</div>
<ul>
<li>Andrew Ebersole</li>
<li>Noah Emke</li>
<li>Will Lyons</li>
<li>Wilson McDade</li>
<li>Willard Nilges</li>
<li>Joe O'Neil</li>
<li>Ben Piro</li>
<li>Dennis Santos Sanchez</li>
<li>Andrew Simonson</li>
<li>Ella Soccoli</li>
<li>Nathan Teall</li>
<li>Alex Vasilcoiu</li>
<li>Chris Wells</li>
</ul>
{% endblock %}
3 changes: 1 addition & 2 deletions src/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ <h1>Devcade</h1>

<div id="nav" class="dropped hidden">
<div class="item"><a href="/">Home</a></div>
<!-- <div class="item"><a href="/about">About</a></div> -->
<div class="item"><a href="/catalog">Catalog</a></div>
<div class="item"><a href="/catalog">Games</a></div>
{% if current_user.is_authenticated %}
<div class="item"><a href="/upload">Upload</a></div>
<div class="item" id="account">
Expand Down
2 changes: 1 addition & 1 deletion src/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2>Who are we?</h2>
cabinet itself -- there really is something for everyone on this project.
</p>
<p>

<a href="credits">Read more</a>
</p>
</div>
<div id="about-csh-wrapper" class="subcontent">
Expand Down