Skip to content

Commit 7e7ac55

Browse files
Updates sponsors page and made things much more modular.
1 parent dbffc48 commit 7e7ac55

File tree

6 files changed

+58
-128
lines changed

6 files changed

+58
-128
lines changed

Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DEPENDENCIES
6161
jekyll-sitemap
6262

6363
RUBY VERSION
64-
ruby 2.6.0p0
64+
ruby 2.5.1p57
6565

6666
BUNDLED WITH
67-
2.0.2
67+
2.1.4

assets/images/sponsorLogos/caetra.png

7.44 KB
Loading

assets/images/sponsorLogos/cra.png

33 KB
Loading
54.7 KB
Loading
18.4 KB
Loading

sponsors.html

+56-126
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<br>
99
---
1010

11-
<!-- I'll make a nice function for this eventually -->
1211
<style>
1312
img {
1413
display: block;
@@ -17,136 +16,67 @@
1716
}
1817
</style>
1918

19+
{% assign tiers = "Diamond, Platinum, Gold, Silver, Educational" | split: ', ' %}
20+
{% for tier in tiers%}
2021
<div class="row" style="text-align: center">
21-
<h2 style="text-align:center">Diamond</h2>
22+
<h2 style="text-align:center">{{tier}}</h2>
2223
<br />
23-
{% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Diamond' %} {%
24-
assign link = sponsor.link %}
25-
<div
26-
class="col-lg-2 col-md-4 col-sm-3 col-xs-6"
27-
style="display: inline-block;float: none;"
28-
>
29-
<a href="{{ link }}" target="_blank">
30-
<img
31-
style="text-align:center"
32-
class="ritsec-thumbnail img-responsive"
33-
src="assets/images/sponsorLogos/{{ sponsor.image }}"
34-
alt="{{ sponsor.name }}"
35-
/>
36-
</a>
37-
</div>
38-
{% endif %} {% endfor %}
39-
</div>
24+
{% assign count = 0 %}
25+
{% for sponsor in site.data.sponsors %}
26+
{% if {{sponsor.tier}} == {{tier}} %}
27+
28+
{% assign link = sponsor.link %}
29+
{% assign remainder = {{count}} | modulo: 3 %}
30+
{% if remainder == 0 and count > 0 %}
31+
<br>
32+
{%endif%}
33+
{% assign count = count | plus: 1 %}
34+
<div
35+
class="col-lg-2 col-md-4 col-sm-3 col-xs-6"
36+
style="display: inline-block;float: none;"
37+
>
38+
<a href="{{ link }}" target="_blank">
39+
{% if sponsor.name == "Expel" or sponsor.name == "Security Risk Advisors" or sponsor.name
40+
== "Indeed" %}
41+
<img
42+
style="text-align:center; position: relative; top: -50px"
43+
class="ritsec-thumbnail img-responsive"
44+
src="assets/images/sponsorLogos/{{ sponsor.image }}"
45+
alt="{{ sponsor.name }}"
46+
/>
47+
{% elsif sponsor.name == "MITRE" %}
4048

41-
<div class="row" style="text-align: center">
42-
<h2 style="text-align:center">Platinum</h2>
43-
<br />
44-
{% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Platinum' %} {%
45-
assign link = sponsor.link %}
46-
<div
47-
class="col-lg-2 col-md-4 col-sm-3 col-xs-6"
48-
style="display: inline-block;float: none;"
49-
>
50-
<a href="{{ link }}" target="_blank">
51-
<img
52-
style="text-align:center"
53-
class="ritsec-thumbnail img-responsive"
54-
src="assets/images/sponsorLogos/{{ sponsor.image }}"
55-
alt="{{ sponsor.name }}"
56-
/>
57-
</a>
58-
</div>
59-
{% endif %} {% endfor %}
60-
</div>
61-
62-
<div class="row" style="text-align: center">
63-
<h2 style="text-align:center">Gold</h2>
64-
<br />
65-
{% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Gold' %} {%
66-
assign link = sponsor.link %}
67-
<div
68-
class="col-lg-2 col-md-4 col-sm-3 col-xs-6"
69-
style="display: inline-block;float: none;"
70-
>
71-
<a href="{{ link }}" target="_blank">
72-
{% if sponsor.name == "Expel" or sponsor.name == "Security Risk Advisors"
73-
%}
74-
75-
<img
76-
style="text-align:center; position: relative; top: -40px"
77-
class="ritsec-thumbnail img-responsive"
78-
src="assets/images/sponsorLogos/{{ sponsor.image }}"
79-
alt="{{ sponsor.name }}"
80-
/>
81-
{% else %}
82-
<img
83-
style="text-align:center"
84-
class="ritsec-thumbnail img-responsive"
85-
src="assets/images/sponsorLogos/{{ sponsor.image }}"
86-
alt="{{ sponsor.name }}"
87-
/>
88-
{% endif %}
89-
</a>
90-
</div>
91-
{% endif %} {% endfor %}
92-
</div>
49+
<img
50+
style="text-align:center; position: relative; top: -35px"
51+
class="ritsec-thumbnail img-responsive"
52+
src="assets/images/sponsorLogos/{{ sponsor.image }}"
53+
alt="{{ sponsor.name }}"
54+
/>
55+
{% elsif sponsor.name == "Caetra.io" %}
9356

94-
<div class="row" style="text-align: center">
95-
<h2 style="text-align:center">Silver</h2>
96-
<br />
97-
{% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Silver' %} {%
98-
assign link = sponsor.link %}
99-
<div
100-
class="col-lg-2 col-md-4 col-sm-3 col-xs-6"
101-
style="display: inline-block;float: none;"
102-
>
103-
<a href="{{ link }}" target="_blank">
104-
<img
105-
class="ritsec-thumbnail img-responsive center-block"
106-
src="assets/images/sponsorLogos/{{ sponsor.image }}"
107-
alt="{{ sponsor.name }}"
108-
/>
109-
</a>
110-
</div>
111-
{% endif %} {% endfor %}
57+
<img
58+
style="text-align:center; position: relative; top: -60px"
59+
class="ritsec-thumbnail img-responsive"
60+
src="assets/images/sponsorLogos/{{ sponsor.image }}"
61+
alt="{{ sponsor.name }}"
62+
/>
63+
{% elsif sponsor.name == "Charles River Associates" %}
64+
<img
65+
style="text-align:center; position: relative; top: -25px; width: 200%; height: 200%;"
66+
class="ritsec-thumbnail img-responsive"
67+
src="assets/images/sponsorLogos/{{ sponsor.image }}"
68+
alt="{{ sponsor.name }}"
69+
/>
70+
{% else %}
71+
<img
72+
class="ritsec-thumbnail img-responsive center"
73+
src="assets/images/sponsorLogos/{{ sponsor.image }}"
74+
alt="{{ sponsor.name }}"
75+
/>
76+
{%endif%}
77+
</a>
11278
</div>
113-
114-
<div class="row" style="text-align: center">
115-
<h2 style="text-align:center">Bronze</h2>
116-
<br />
117-
{% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Bronze' %} {%
118-
assign link = sponsor.link %}
119-
<div
120-
class="col-lg-2 col-md-4 col-sm-3 col-xs-6"
121-
style="display: inline-block;float: none;"
122-
>
123-
<a href="{{ link }}" target="_blank">
124-
<img
125-
class="ritsec-thumbnail img-responsive center"
126-
src="assets/images/sponsorLogos/{{ sponsor.image }}"
127-
alt="{{ sponsor.name }}"
128-
/>
129-
</a>
130-
</div>
13179
{% endif %} {% endfor %}
13280
</div>
81+
{% endfor %}
13382

134-
<div class="row" style="text-align: center">
135-
<h2 style="text-align:center">Educational</h2>
136-
<br />
137-
{% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Educational' %}
138-
{% assign link = sponsor.link %}
139-
<div
140-
class="col-lg-2 col-md-4 col-sm-3 col-xs-6"
141-
style="display: inline-block;float: none;"
142-
>
143-
<a href="{{ link }}" target="_blank">
144-
<img
145-
class="ritsec-thumbnail img-responsive center"
146-
src="assets/images/sponsorLogos/{{ sponsor.image }}"
147-
alt="{{ sponsor.name }}"
148-
/>
149-
</a>
150-
</div>
151-
{% endif %} {% endfor %}
152-
</div>

0 commit comments

Comments
 (0)