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.
add upcoming feature and tags gitcoinco#6870
- Loading branch information
1 parent
0dbd833
commit fc9b280
Showing
5 changed files
with
86 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<div id="upcoming-events" class="mb-4"> | ||
{% for hackathon in upcoming_events|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"> | ||
<a href="{% url 'hackathon_onboard' hackathon.slug %}"> {{ hackathon.title }} </a> | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
<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.title }} | ||
</a> | ||
</h5> | ||
<div class="font-smaller-2"> | ||
<span class="tag-hackathon">Hackathon</span> | ||
<time class="font-weight-bold" | ||
datetime="{{ hackathon.start_date|date:'c' }}">{{ hackathon.start|date:"m/d/Y" }}</time> | ||
<span>-</span> | ||
<time class="font-weight-bold" | ||
datetime="{{ hackathon.end_date|date:'c' }}">{{ hackathon.end|date:"m/d/Y" }}</time> | ||
</div> | ||
<div class="mt-1 hackathon-actions"> | ||
{% if hackathon.end|timesince <= "1 min" %} | ||
<a href="{% url 'hackathon_onboard' hackathon.slug %}"> | ||
Join Hackathon > | ||
</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
<a href="https://gitcoin.co/hackathon-list/" class="view-all">View more events</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