-
-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New Box Hackathon Feature on Townsquare (#6898)
* add: Feature Hackathon on townsquare #6870 * add: click on name hackathon #6870 * fixed: design features on hackthon box #6870 * re-indent Co-authored-by: Aditya Anand M C <[email protected]>
- Loading branch information
1 parent
0e4eeb3
commit de3cad7
Showing
6 changed files
with
118 additions
and
3 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
44 changes: 44 additions & 0 deletions
44
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<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"> | ||
<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>From</span> | ||
<time class="font-weight-bold" 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:"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 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