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.
- Loading branch information
1 parent
4d82d0c
commit 6c311f3
Showing
3 changed files
with
141 additions
and
2 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
app/townsquare/templates/townsquare/shared/bounty-card.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,56 @@ | ||
<div> | ||
<div class="townsquare_block-header accordion active my-1" data-target="hackathons"> | ||
Latest Bounties | ||
</div> | ||
<div id="latest-bounties" class="mb-4"> | ||
{% for bounty in latest_bounties|slice:":4" %} | ||
<div class="box-bounties-townsquare"> | ||
|
||
<div class="bountie townsquare" id="{{}}"> | ||
<div class="avatar-container col-1 justify-content-center hide_min_viewport"> | ||
<img src="https://gitcoin.co/dynamic/avatar/aragonone" class="avatar aragonone"> | ||
</div> | ||
|
||
<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 %} | ||
<p class="text-center bg-shade-0 mb-0 pb-3"> | ||
<a href="{% url 'explorer' %}" class="font-caption py-2" style="color: var(--link-color);">{% trans "Vew more bounties" %}</a> | ||
</p> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<div> | ||
<div class="townsquare_block-header my-1" data-target="upcoming_events"> | ||
Upcoming | ||
</div> | ||
<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 %} | ||
<p class="text-center bg-shade-0 mb-0 pb-3"> | ||
<a href="{% url 'get_hackathons' %}" class="font-caption py-2" style="color: var(--link-color);">{% trans "View more events" %}</a> | ||
</p> | ||
</div> | ||
</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