|
38 | 38 | {% include 'shared/nav_hackathons.html' %}
|
39 | 39 | {% include 'shared/minihero.html' with h1='Hackathons' suppress_logo=0 position_h1_below_logo=True hide_rain=True %}
|
40 | 40 |
|
41 |
| - <div class="row justify-content-md-center"> |
42 |
| - <form action="//consensys.us11.list-manage.com/subscribe/post?u=947c9b18fc27e0b00fc2ad055&id=b1d45ffdfe" |
43 |
| - method="post" id="mc-embedded-subscribe-form" class="col-12 col-md-6 text-center white pb-5 px-5" name="mc-embedded-subscribe-form" target="_blank"> |
44 |
| - <label for="newsletter-input" class="text-uppercase">{% trans "Signup to get hackathon updates" %}</label> |
| 41 | + </div> |
| 42 | + |
| 43 | + <div class="container"> |
| 44 | + <div class="rounded row justify-content-md-center my-5" style="background-color:#0D0665;"> |
| 45 | + <form action="//consensys.us11.list-manage.com/subscribe/post?u=947c9b18fc27e0b00fc2ad055&id=b1d45ffdfe" method="post" id="mc-embedded-subscribe-form" class="col-12 col-md-6 text-center white pb-5 pt-4 px-5" name="mc-embedded-subscribe-form" target="_blank"> |
| 46 | + <label for="newsletter-input">{% trans "Subscribe to get Hackathon news upcoming hackathons!" %}</label> |
45 | 47 | <div class="form-row pt-1">
|
46 | 48 | <div class="col">
|
47 | 49 | <input name="EMAIL" id="newsletter-input" class="form-control" placeholder="Enter your email" required>
|
|
50 | 52 | </div>
|
51 | 53 | </form>
|
52 | 54 | </div>
|
53 |
| - </div> |
54 |
| - <div class="container-fluid"> |
55 |
| - </div> |
56 | 55 |
|
57 |
| - <div class="container"> |
58 |
| - <div id="tabs" class="row my-5"> |
| 56 | + <div id="tabs" class="row my-4"> |
59 | 57 | <div class="container">
|
60 | 58 | <ul class="nav nav-tabs mt-3" id="myTab" role="tablist">
|
61 |
| - <li class="nav-item"> |
62 |
| - <a class="nav-link nav-line active" href="#" data-href="{{ tabs.current.href }}" style="font-weight: 700;">{{ tabs.current.title }} <sup>({{ tabs.current.event_count }})</sup></a> |
63 |
| - </li> |
64 |
| - <li class="nav-item"> |
65 |
| - <a class="nav-link nav-line" href="#" data-href="{{ tabs.upcoming.href }}">{{ tabs.upcoming.title }} <sup>({{ tabs.upcoming.event_count }})</sup></a> |
66 |
| - </li> |
67 |
| - <li class="nav-item"> |
68 |
| - <a class="nav-link nav-line" href="#" data-href="{{ tabs.finished.href }}">{{ tabs.finished.title }} <sup>({{ tabs.finished.event_count }})</sup></a> |
69 |
| - </li> |
| 59 | + {% for title, hackathons in events.items %} |
| 60 | + <li class="nav-item"> |
| 61 | + <a class="nav-link nav-line {% if title == 'current' %}active{% endif %}" href="#" data-href="{{ title }}" style="{% if title == 'current' %}font-weight: 700;{% endif %}">{{ title|title }} ({{ hackathons|length }})</a> |
| 62 | + </li> |
| 63 | + {% endfor %} |
70 | 64 | </ul>
|
71 | 65 | </div>
|
72 | 66 | </div>
|
73 | 67 |
|
| 68 | + <div class="row my-4"> |
74 | 69 | {% for title, hackathons in events.items %}
|
75 | 70 | {% if hackathons|length %}
|
76 |
| - <div class="row my-5"> |
77 | 71 | {% for hackathon in hackathons %}
|
78 | 72 | <style>
|
79 | 73 | #{{hackathon.slug}} .card-img-top {
|
|
82 | 76 | </style>
|
83 | 77 |
|
84 | 78 |
|
85 |
| - <div class="col-xs-12 col-sm-6 col-lg-4"> |
| 79 | + <div class="col-xs-12 col-sm-6 col-lg-4 hackathon-list {{ title }} {% if title != 'current' %}hidden{% endif %}"> |
86 | 80 | <div class="card mb-5" id="{{hackathon.slug}}">
|
87 | 81 | {% firstof hackathon.logo_svg or hackathon.logo as logo %}
|
88 | 82 | {% if logo %}
|
@@ -115,9 +109,11 @@ <h5 class="card-title"><a href="{% url 'hackathon' hackathon.slug %}">{{ hackath
|
115 | 109 | </div>
|
116 | 110 | </div>
|
117 | 111 | {% endfor %}
|
118 |
| - </div> |
119 | 112 | {% endif %}
|
120 | 113 | {% endfor %}
|
| 114 | + </div> |
| 115 | + |
| 116 | + |
121 | 117 | </div>
|
122 | 118 | {% include 'shared/analytics.html' %}
|
123 | 119 | {% include 'shared/footer_scripts.html' %}
|
|
0 commit comments