-
Notifications
You must be signed in to change notification settings - Fork 2
/
speaker_card_generator.html
130 lines (115 loc) · 3.27 KB
/
speaker_card_generator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
---
layout: plain
---
<style>
.card-wrap {
display: grid;
grid-template-columns: 440px 440px;
grid-auto-rows: 220px;
grid-gap: 40px;
padding: 40px;
}
.card {
background: linear-gradient(lavender,azure);
position: relative;
overflow: hidden;
}
.card-pic-wrap {
position: absolute;
top: 18px;
left: 18px;
width: 148px;
height: 148px;
border: 18px solid white;
overflow: hidden;
}
.card-text-wrap {
background: white;
position: absolute;
top: 54px;
left: 166px;
right: 0;
padding: 18px 18px 0;
z-index: 1;
}
.card-pic {
max-width: 100%;
display: block;
}
.card-name {
align-self: end;
font-family: 'Rubik Mono One', Rubik, sans-serif;
line-height: 1.3;
}
.card-title {
font-size: 0.7em;
line-height: 1.7;
}
.card::before {
content: '';
position: absolute;
width: 3em;
left: 400px;
top: 20px;
height: 1em;
font-size: 8px;
border-radius: 1em;
transform: rotate(-45deg);
border: 2px solid;
}
.card-noimg::after {
content: '';
position: absolute;
width: 3em;
left: 28px;
top: 46px;
height: 1em;
font-size: 40px;
border-radius: 1em;
transform: rotate(-45deg);
border: 20px solid;
}
.card-logo {
position: absolute;
top: 9px;
right: 44px;
font-size: 8px;
text-transform: uppercase;
width: 35px;
line-height: 1;
transform: rotate(90deg);
}
</style>
{% assign live_speakers = site.speakers | sort:'position' %}
<div class="card-wrap">
{% for speaker in live_speakers %}
<section class="card">
<div class="card-pic-wrap">
<img class="card-pic" src="{{ speaker.pic }}" alt="{{ speaker.name }}">
</div>
<div class="card-text-wrap">
<h2 class="card-name">{{ speaker.name }}</h2>
<p class="card-title">{{ speaker.talktitle }}</p>
</div>
<p class="card-logo">CSSConf Budapest 2019 Sept 25</p>
</section>
{% endfor %}
<section class="card card-noimg">
<svg width="250" height="250" viewBox="0 0 600 600" xmlns="http://www.w3.org/2000/svg" style="
position: relative;
left: -50px;
top: -30px;
opacity: .5;
">
<g transform="translate(200,300)">
<path d="M132.1,-158.1C168.5,-155.3,193.6,-113.2,190,-73.7C186.4,-34.2,154.1,2.7,141.5,47.4C129,92.2,136.2,144.8,115.9,167.5C95.6,190.3,47.8,183.1,14.7,162.9C-18.4,142.7,-36.8,109.4,-50.3,84.4C-63.8,59.5,-72.3,42.9,-87.4,22.3C-102.4,1.8,-124,-22.8,-123.4,-44.9C-122.9,-67.1,-100.2,-87,-76,-93.7C-51.7,-100.5,-25.9,-94.3,11,-109.4C47.8,-124.5,95.6,-160.9,132.1,-158.1Z" fill="#f05d5e"></path>
</g>
<path d="M117.9,-140.7C159.7,-131.8,205.4,-106.7,211.3,-72.5C217.2,-38.2,183.2,5.2,152.8,34.4C122.3,63.6,95.2,78.7,70.3,102.6C45.5,126.6,22.7,159.3,-2.5,162.8C-27.8,166.3,-55.6,140.6,-65.6,111.8C-75.6,83.1,-67.8,51.3,-80.8,23.4C-93.8,-4.5,-127.8,-28.5,-132.5,-52C-137.2,-75.5,-112.7,-98.4,-85.7,-112.2C-58.8,-125.9,-29.4,-130.5,4.3,-136.4C38,-142.3,76,-149.6,117.9,-140.7Z" fill="#f78da7" transform="translate(355,400)"></path>
</svg>
<div class="card-text-wrap">
<h2 class="card-name">CSSCONF BUDAPEST 2019</h2>
<p class="card-title">SEPT 25 @ Akvárium Klub</p>
</div>
<p class="card-logo">CSSConf Budapest 2019 Sept 25</p>
</section>
</div>