forked from gitcoinco/web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Feature Hackathon's on Townsquare Experiment gitcoinco#6870
- Loading branch information
Showing
8 changed files
with
70 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 14 additions & 18 deletions
32
app/townsquare/templates/townsquare/shared/hackathons.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,43 @@ | ||
{% if hackathons|length %} | ||
<ul id=hackathons class="nav d-inline-block font-body mb-2"> | ||
{% for hackathon in hackathons|slice:":5" %} | ||
<div class="col-xs-12 col-md-9 col-lg-8 col-xl-5 mx-auto"> | ||
|
||
<div class="card flex-row flex-wrap mb-5" id="{{hackathon.slug}}"> | ||
|
||
<div class="card-header text-center col-3 col-sm-2 px-0 border-0 my-auto"> | ||
<div id="hackathons" class="mb-4 box-hackathons"> | ||
{% for hackathon in hackathon_tabs|slice:":5" %} | ||
<div class="box-hackathons-townsquare"> | ||
<div class="card flex-row" id="{{hackathon.slug}}"> | ||
<div class="card-header"> | ||
{% firstof hackathon.logo_svg or hackathon.logo as logo %} | ||
{% if logo %} | ||
<img class="hackathon-card-logo" src="{{MEDIA_URL}}{{logo}}" alt="Hackathon logo" /> | ||
{% else %} | ||
<div class="hackathon-card-logo text-center px-3 font-caption"> | ||
{{ hackathon.name }} | ||
{{ hackathon.title }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="card-body col-9 col-sm-8"> | ||
<div class="card-body"> | ||
<h5 class="font-subheader font-weight-semibold"> | ||
<a href="{% url 'hackathon' hackathon.slug %}" class="text-black" target="_blank" | ||
rel="noopener noreferrer"> | ||
{{ hackathon.name }} | ||
{{ hackathon.title }} | ||
</a> | ||
</h5> | ||
<div class="font-smaller-2"> | ||
<span class>From</span> | ||
<time class="font-weight-bold" | ||
datetime="{{ hackathon.start_date|date:'c' }}">{{ hackathon.start_date|date:"m/d/Y" }}</time> | ||
datetime="{{ hackathon.start_date|date:'c' }}">{{ hackathon.start|date:"m/d/Y" }}</time> | ||
<span>To</span> | ||
<time class="font-weight-bold" | ||
datetime="{{ hackathon.end_date|date:'c' }}">{{ hackathon.end_date|date:"m/d/Y" }}</time> | ||
datetime="{{ hackathon.end_date|date:'c' }}">{{ hackathon.end|date:"m/d/Y" }}</time> | ||
</div> | ||
<div class="mt-3 hackathon-actions"> | ||
{% if hackathon.end_date|timesince <= "1 min" %} | ||
{% if hackathon.end|timesince <= "1 min" %} | ||
<a href="{% url 'hackathon_onboard' hackathon.slug %}"> | ||
Join Hackathon > | ||
</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</ul> | ||
<a href="https://gitcoin.co/hackathon-list/">View all ></a> | ||
{% endif %} | ||
<a href="https://gitcoin.co/hackathon-list/" class="view-all">View all ></a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters