Skip to content

Commit 5640804

Browse files
committed
Added sponsors image rows from yaml file
1 parent 647b75b commit 5640804

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

_data/sponsors.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- name: SolidWorks
2+
logo: https://upload.wikimedia.org/wikipedia/en/d/d2/SolidWorks_Logo.svg
3+
level: lazer
4+
website: https://www.solidworks.com/
5+
- name: Cito Medical
6+
logo: https://citomedical.com/wpd/wp-content/uploads/2020/12/cito-logo.jpg
7+
level: lazer
8+
website: https://citomedical.com

_layouts/sponsors.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,63 @@ <h2 class="title has-text-left is-size-2 has-text-weight-bold mgb-medium" style=
3030
</h2>
3131
</div>
3232

33+
<div class="sponsor-thing">
34+
{% for sponsor in site.data.sponsors %}
35+
{% if sponsor.level == "lazer" %}
36+
<a href="{{sponsor.website}}">
37+
<img src="{{sponsor.logo}}" alt="{{sponsor.name}}" style="width:25%">
38+
</a>
39+
{% endif %}
40+
{% endfor %}
41+
</div>
42+
3343
<div class="contents">
3444
<h2 class="title has-text-left is-size-2 has-text-weight-bold mgb-medium" style="color: var(--seahawk)">
3545
Diamond
3646
</h2>
3747
</div>
3848

49+
<div class="sponsor-thing">
50+
{% for sponsor in site.data.sponsors %}
51+
{% if sponsor.level == "diamond" %}
52+
<a href="{{sponsor.website}}">
53+
<img src="{{sponsor.logo}}" alt="{{sponsor.name}}" style="width:25%">
54+
</a>
55+
{% endif %}
56+
{% endfor %}
57+
</div>
58+
3959
<div class="contents">
4060
<h2 class="title has-text-left is-size-2 has-text-weight-bold mgb-medium" style="color: var(--gold)">
4161
Gold
4262
</h2>
4363
</div>
4464

65+
<div class="sponsor-thing">
66+
{% for sponsor in site.data.sponsors %}
67+
{% if sponsor.level == "gold" %}
68+
<a href="{{sponsor.website}}">
69+
<img src="{{sponsor.logo}}" alt="{{sponsor.name}}" style="width:25%">
70+
</a>
71+
{% endif %}
72+
{% endfor %}
73+
</div>
74+
4575
<div class="contents">
4676
<h2 class="title has-text-left is-size-2 has-text-weight-bold mgb-medium" style="color: var(--silver)">
4777
Silver
4878
</h2>
4979
</div>
80+
81+
<div class="sponsor-thing">
82+
{% for sponsor in site.data.sponsors %}
83+
{% if sponsor.level == "silver" %}
84+
<a href="{{sponsor.website}}">
85+
<img src="{{sponsor.logo}}" alt="{{sponsor.name}}" style="width:25%">
86+
</a>
87+
{% endif %}
88+
{% endfor %}
89+
</div>
5090
<p class="your-name-here">
5191
Want your name here?
5292
</p>

assets/css/style.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,14 @@ br { margin-bottom: 20px; }
14361436
}
14371437

14381438
#sponsors {
1439+
#sponsor-thing {
1440+
display: flex;
1441+
align-items: center;
1442+
.img {
1443+
display: block;
1444+
float: left;
1445+
}
1446+
}
14391447
.description {
14401448
text-align: justify;
14411449
}

0 commit comments

Comments
 (0)