|
2 | 2 | --- |
3 | 3 | <div class="navigation__content container-fluid"> |
4 | 4 | <picture> |
5 | | - <source srcset="static/images/title_photo/title_glass_building_480x270.jpg 480w, |
6 | | - static/images/title_photo/title_glass_building_960x540.jpg 960w, |
7 | | - static/images/title_photo/title_glass_building_1334x750.jpg 1334w, |
8 | | - static/images/title_photo/title_glass_building_1920x1080.jpg 1920w, |
9 | | - static/images/title_photo/title_glass_building_2562x1442.jpg 2562w, |
10 | | - static/images/title_photo/title_glass_building_3840x2160.jpg 3840w" |
11 | | - media="(orientation: landscape)" |
12 | | - sizes="100vw"> |
13 | | - <source srcset="static/images/title_photo/title_glass_building_750x1334.jpg 750w, |
14 | | - static/images/title_photo/title_glass_building_1080x1920.jpg 1080w, |
15 | | - static/images/title_photo/title_glass_building_1125x2436.jpg 1125w, |
16 | | - static/images/title_photo/title_glass_building_1242x2436.jpg 1242w, |
17 | | - static/images/title_photo/title_glass_building_1442x2562.jpg 1442w" |
18 | | - media="(orientation: portrait)" |
19 | | - sizes="100vw"> |
| 5 | + <!--<source srcset="static/images/title_photo/title_glass_building_480x270.jpg 480w,--> |
| 6 | + <!--static/images/title_photo/title_glass_building_960x540.jpg 960w,--> |
| 7 | + <!--static/images/title_photo/title_glass_building_1334x750.jpg 1334w,--> |
| 8 | + <!--static/images/title_photo/title_glass_building_1920x1080.jpg 1920w,--> |
| 9 | + <!--static/images/title_photo/title_glass_building_2562x1442.jpg 2562w,--> |
| 10 | + <!--static/images/title_photo/title_glass_building_3840x2160.jpg 3840w"--> |
| 11 | + <!--media="(orientation: landscape)"--> |
| 12 | + <!--sizes="100vw">--> |
| 13 | + <!--<source srcset="static/images/title_photo/title_glass_building_750x1334.jpg 750w,--> |
| 14 | + <!--static/images/title_photo/title_glass_building_1080x1920.jpg 1080w,--> |
| 15 | + <!--static/images/title_photo/title_glass_building_1125x2436.jpg 1125w,--> |
| 16 | + <!--static/images/title_photo/title_glass_building_1242x2436.jpg 1242w,--> |
| 17 | + <!--static/images/title_photo/title_glass_building_1442x2562.jpg 1442w"--> |
| 18 | + <!--media="(orientation: portrait)"--> |
| 19 | + <!--sizes="100vw">--> |
20 | 20 | <img class="navigation__background-img" |
21 | | - src="static/images/title_photo/title_glass_building_960x540.jpg" |
| 21 | + src="static/images/title_photo/Python_Sprints_title_2048x1152px.jpg" |
22 | 22 | alt="Python Sprints Title Image"> |
23 | 23 | </picture> |
24 | 24 |
|
@@ -55,7 +55,7 @@ <h2 class="navigation__subtitle">All About Open Source</h2> |
55 | 55 | <h2 class="upcoming__title">Events</h2> |
56 | 56 | </div> |
57 | 57 | </div> |
58 | | - <div class="upcoming__content row with-padding-x"> |
| 58 | + <div class="upcoming__content row"> |
59 | 59 | {% assign current_date = "" %} |
60 | 60 | {% for post in posts %} |
61 | 61 | {% include get_host_sponsor.html event = post %} |
@@ -87,7 +87,7 @@ <h2 class="upcoming__event-subtitle"> {{ post.subtitle }}</h2> |
87 | 87 | </p> |
88 | 88 | </div> |
89 | 89 | </div> |
90 | | - <div class="col-6 no-padding-x text-right"> |
| 90 | + <div class="col-6 no-padding-x text-right my-auto"> |
91 | 91 | <a class="upcoming__button btn" href="{{ post.url }}"> |
92 | 92 | <i class="upcoming__button-icon fas fa-info-circle"></i> |
93 | 93 | </a> |
@@ -127,82 +127,31 @@ <h2 class="chapters__title">Chapters</h2> |
127 | 127 | </div> |
128 | 128 | </div> |
129 | 129 | <div class="chapters__card-container row"> |
130 | | - <div class="col-12"> |
131 | | - <div class="chapters__card-columns card-columns"> |
132 | | - <div class="chapters__card-main card"> |
133 | | - <div class="chapters__card-header card-header"> |
134 | | - <h2 class="chapters__card-title">London Python Sprints</h2> |
135 | | - </div> |
136 | | - <div class="card-block"> |
137 | | - <p class="chapters__card-paragraph"> |
138 | | - <span class="chapters__flag flag-icon flag-icon-gb"></span> |
139 | | - London, United Kingdom |
140 | | - </p> |
141 | | - </div> |
142 | | - <div class="row"> |
143 | | - <div class="col-12 text-center"> |
144 | | - <a class="chapters__card-button btn" href="https://www.meetup.com/Python-Sprints/"> |
145 | | - <i class="chapters__card-icon fab fa-meetup"></i> |
146 | | - </a> |
147 | | - </div> |
148 | | - </div> |
149 | | - </div> |
150 | | - <div class="chapters__card-main card"> |
151 | | - <div class="chapters__card-header card-header"> |
152 | | - <h2 class="chapters__card-title">Szczecin Data Workouts</h2> |
153 | | - </div> |
154 | | - <div class="card-block"> |
155 | | - <p class="chapters__card-paragraph"> |
156 | | - <span class="chapters__flag flag-icon flag-icon-pl"></span> |
157 | | - Szczecin, Poland |
158 | | - </p> |
159 | | - </div> |
160 | | - <div class="row"> |
161 | | - <div class="col-12 text-center"> |
162 | | - <a class="chapters__card-button btn btn-primary btn-lg text-center" href="https://www.meetup.com/Python-Sprints/"> |
163 | | - <i class="chapters__card-icon fab fa-meetup"></i> |
164 | | - </a> |
165 | | - </div> |
| 130 | + {% for chapter in site.chapters %} |
| 131 | + <div class="chapters__card-main col-12"> |
| 132 | + <div class="row"> |
| 133 | + <div class="col-12"> |
| 134 | + <h2 class="chapters__card-title">{{ chapter.title }}</h2> |
166 | 135 | </div> |
167 | 136 | </div> |
168 | | - <div class="chapters__card-main card"> |
169 | | - <div class="chapters__card-header card-header"> |
170 | | - <h2 class="chapters__card-title">Pydata New York</h2> |
171 | | - </div> |
172 | | - <div class="card-block"> |
| 137 | + <div class="row"> |
| 138 | + <div class="col-6 d-flex align-items-center"> |
173 | 139 | <p class="chapters__card-paragraph"> |
174 | | - <span class="chapters__flag flag-icon flag-icon-us"></span> |
175 | | - New York, United States |
| 140 | + <span class="chapters__flag flag-icon flag-icon-{{ chapter.country_code }}"></span> |
| 141 | + {{ chapter.address }} |
176 | 142 | </p> |
177 | 143 | </div> |
178 | | - <div class="row"> |
179 | | - <div class="col-12 text-center"> |
180 | | - <a class="chapters__card-button btn btn-primary btn-lg text-center" href="https://www.meetup.com/Python-Sprints/"> |
181 | | - <i class="chapters__card-icon fab fa-meetup"></i> |
182 | | - </a> |
183 | | - </div> |
184 | | - </div> |
185 | | - </div> |
186 | | - <div class="chapters__card-main card"> |
187 | | - <div class="chapters__card-header card-header"> |
188 | | - <h2 class="chapters__card-title">Pydata Madrid</h2> |
189 | | - </div> |
190 | | - <div class="card-block"> |
191 | | - <p class="chapters__card-paragraph"> |
192 | | - <span class="chapters__flag flag-icon flag-icon-es"></span> |
193 | | - Madrid, Spain |
194 | | - </p> |
195 | | - </div> |
196 | | - <div class="row"> |
197 | | - <div class="col-12 text-center"> |
198 | | - <a class="chapters__card-button btn btn-primary btn-lg text-center" href="https://www.meetup.com/Python-Sprints/"> |
199 | | - <i class="chapters__card-icon fab fa-meetup"></i> |
200 | | - </a> |
201 | | - </div> |
| 144 | + <div class="col-6 text-center"> |
| 145 | + <a class="chapters__card-button btn" href="{{ chapter.url }}"> |
| 146 | + <i class="chapters__card-icon fas fa-info-circle"></i> |
| 147 | + </a> |
202 | 148 | </div> |
203 | 149 | </div> |
| 150 | + {% unless forloop.last %} |
| 151 | + <hr class="upcoming__divider"> |
| 152 | + {% endunless %} |
204 | 153 | </div> |
205 | | - </div> |
| 154 | + {% endfor %} |
206 | 155 | </div> |
207 | 156 | </div> |
208 | 157 | </div> |
|
0 commit comments