Skip to content

Commit bf3c5e1

Browse files
authored
Merge pull request #89 from rubyuy/improve_show_styles
Improve meetup show styles
2 parents e3469cc + 195d584 commit bf3c5e1

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

_layouts/meetup.html

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<main>
99
<article id="view-meetup">
1010
<section>
11-
<h2>Host</h2>
11+
<h2>Host</h2>
1212
<a href="{{ site.data.companies[page.host].url }}">{{ site.data.companies[page.host].name }}</a>
1313
</section>
1414

@@ -20,8 +20,7 @@ <h2>Speakers</h2>
2020
<li>
2121
{% if site.data.people[speaker].github %}
2222
<a href="https://github.com/{{ site.data.people[speaker].github }}">
23-
<img src="https://github.com/{{ site.data.people[speaker].github }}.png?size=30" alt="{{ site.data.people[speaker].name }}" style="border-radius: 50%; width: 30px"/>
24-
{{ site.data.people[speaker].name }}
23+
<img src="https://github.com/{{ site.data.people[speaker].github }}.png?size=30" alt="{{ site.data.people[speaker].name }}" style="border-radius: 50%; width: 30px"/>{{ site.data.people[speaker].name }}
2524
</a>
2625
{% else %}
2726
{{ site.data.people[speaker].name }}
@@ -35,21 +34,23 @@ <h2>Speakers</h2>
3534
<section>
3635
<h2>Charlas</h2>
3736
{% for talk in page.talks %}
38-
{% assign speakers = "" | split: ',' %}
39-
{% for speaker in talk.speakers %}
40-
{% assign speakers = speakers | push: site.data.people[speaker].name %}
41-
{% endfor %}
42-
<h3><span>{{ talk.title }}</span> - {{ speakers | join: ", " }}</h3>
43-
<p>{{ talk.description }}<p>
37+
<div class="talk">
38+
{% assign speakers = "" | split: ',' %}
39+
{% for speaker in talk.speakers %}
40+
{% assign speakers = speakers | push: site.data.people[speaker].name %}
41+
{% endfor %}
42+
<h3><span>{{ talk.title }}</span> - {{ speakers | join: ", " }}</h3>
43+
<p>{{ talk.description }}<p>
4444

45-
{% if talk.recording %}
46-
<div class="keep-aspect-ratio">
47-
<iframe src="{{ talk.recording }}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
48-
{% endif %}
45+
{% if talk.recording %}
46+
<div class="keep-aspect-ratio">
47+
<iframe src="{{ talk.recording }}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
48+
{% endif %}
4949

50-
{% if talk.slides %}
51-
<iframe src="{{ talk.slides }}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe></br>
52-
{% endif %}
50+
{% if talk.slides %}
51+
<iframe src="{{ talk.slides }}" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe></br>
52+
{% endif %}
53+
</div>
5354
</div>
5455
{% endfor %}
5556
</section>

_sass/application.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body {
22
font-family: 'Syncopate', sans-serif;
3+
background-color: #F6EEEC;
34
}
45

56
h1 {

_sass/view_meetup.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
margin-top: 1.25rem;
1212
display: flex;
1313
flex-direction: column;
14+
margin-bottom: 3rem;
15+
16+
&:first-child {
17+
margin-top: 4rem;
18+
}
1419
}
1520

1621
a {
@@ -22,7 +27,7 @@
2227
font-weight: bold;
2328
font-size: 2.5rem;
2429
}
25-
30+
2631
h3 {
2732
margin-bottom: 1rem;
2833
font-size: 1.25rem;
@@ -47,4 +52,8 @@
4752
height: 100%;
4853
}
4954
}
55+
56+
.talk {
57+
margin-bottom: 2rem;
58+
}
5059
}

0 commit comments

Comments
 (0)