Skip to content

Commit

Permalink
initial commit of sponsors page (#243)
Browse files Browse the repository at this point in the history
* initial commit of sponsors page

* change title

* spacing changes, button text change
  • Loading branch information
mike-ferguson authored Feb 16, 2024
1 parent 667711b commit 84fe649
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/templates/benchmarks/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h3 class=benefits_heading>Ready to Submit?</h3>
</div>
<div class="column">
<button onclick="location.href='../sponsors'" type="button" class="button simple_button" >Sponsors</button>
<button onclick="location.href='https://github.com/orgs/brain-score/people'" type="button" class="button simple_button" >Team</button>
<button onclick="location.href='https://github.com/orgs/brain-score/people'" type="button" class="button simple_button" >Contributors</button>
</div>
</div>
</div>
Expand Down
15 changes: 15 additions & 0 deletions benchmarks/templates/benchmarks/sponsors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% extends "benchmarks/components/app-view.html" %}
{% load static %}

{% block banner %}
<h1>Thank you to our sponsors</h1>
{% endblock %}

{% block content %}
<div class="box leaderboard-table-component full" style="display: flex; justify-content: center; align-items: center; height: 100%;">
<div class="columns is-flex-direction-column is-justify-content-center is-align-items-center">
<img class="sponsors quest" src="{% static "/benchmarks/img/sponsors/quest.png" %}" />
<img class="sponsors epfl" src="{% static "/benchmarks/img/sponsors/epfl.png" %}" />
</div>
</div>
{% endblock %}
1 change: 1 addition & 0 deletions benchmarks/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
path('community/join/slack', community.JoinSlack.as_view(), name="join_slack"),
path('community/join/mailing-list', community.JoinMailingList.as_view(), name="join_mailing_list"),
path('unsubscribe', functools.partial(community.Unsubscribe.as_view()), name='unsubscribe'),
path('sponsors/', user.Sponsors.as_view(), name='sponsors'),

# central profile page, constant across all Brain-Score domains
path('profile/', user.ProfileAccount.as_view(), name='default-profile'),
Expand Down
5 changes: 5 additions & 0 deletions benchmarks/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ class Landing(View):
def get(self, request):
return render(request, 'benchmarks/landing_page.html')

class Sponsors(View):

def get(self, request):
return render(request, 'benchmarks/sponsors.html')


class Tutorial(View):
tutorial_type = None
Expand Down
12 changes: 12 additions & 0 deletions static/benchmarks/css/landing_page.sass
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,18 @@ button.simple_button
.submission.example_invalid
width: 200%

.sponsors
width: 35%
margin: 2%

&.quest
margin-top: 4%

&.epfl
margin-right: 1%
margin-bottom: 6%
width: 30%



//mobile styling (below 768px)
Expand Down
Binary file added static/benchmarks/img/sponsors/epfl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/benchmarks/img/sponsors/quest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84fe649

Please sign in to comment.