forked from pycontw/pycon.tw
-
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 sponsors' logo in index page
* include _inlcudes/sponsors.html in index.html * Add new sponsors.html * Update popup card border, close icon style, link-to-website btn style * Add grid style to sponsors logos
- Loading branch information
Showing
5 changed files
with
139 additions
and
114 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,66 @@ | ||
{% load i18n %} | ||
|
||
<section class="index-partners" data-controller="mediaPopup"> | ||
|
||
<article class="container"> | ||
|
||
{% for name, section in sponsor_sections %} | ||
<div class="grid-layout"> | ||
{% for sponsor in section %} | ||
<div class="partner-container"> | ||
<span class={{sponsor.level_en_name}}>{{ name }}</span> | ||
<a href="{{ sponsor.website_url|default:'#' }}" target="_blank" rel="noopener" | ||
data-target="mediaPopup.presenter" data-action="mediaPopup#open"> | ||
{% if sponsor.logo %} | ||
<img src="{{ sponsor.logo.url }}" alt="{{ sponsor.name }}"> | ||
{% else %} | ||
<span>{{ sponsor.name }}</span> | ||
{% endif %} | ||
</a> | ||
<div class="popup" data-target="mediaPopup.popup"> | ||
<div class="click-to-close" style="height:100%;width:100%" data-action="click->mediaPopup#close"></div> | ||
<div class="card"> | ||
<button class="popup-close" data-action="mediaPopup#close"> | ||
<span></span> | ||
<span></span> | ||
</button> | ||
<div class="card-content"> | ||
{% if sponsor.website_url %} | ||
<a href="{{ sponsor.website_url }}" target="_blank" rel="noopener" class="logo"> | ||
{% if sponsor.logo %} | ||
<img src="{{ sponsor.logo.url }}" alt="{{ sponsor.name }}"> | ||
{% else %} | ||
<span>{{ sponsor.name }}</span> | ||
{% endif %} | ||
</a> | ||
{% elif sponsor.logo %} | ||
<span class="logo"> | ||
<img src="{{ sponsor.logo.url }}" alt="{{ sponsor.name }}"> | ||
</span> | ||
{% endif %} | ||
<div class="text"> | ||
<article> | ||
<h4 class="name"> | ||
<span>{{ sponsor.name }}</span> | ||
</h4> | ||
<hr class="horizontal-rule"/> | ||
<section class="description">{{ sponsor.intro|linebreaks }}</section> | ||
{% if sponsor.website_url %} | ||
<a class="link-to-website" href="{{ sponsor.website_url }}" target="_blank" rel="noopener"> | ||
<span>{%trans 'Redirect to official website' %}</span> | ||
</a> | ||
{% endif %} | ||
</article> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% endfor %} | ||
|
||
</article> | ||
</section> | ||
|
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