Skip to content

Commit d242e69

Browse files
authored
Merge pull request #280 from DaveTheBearMan/AlumniSponsors
Alumni sponsors
2 parents 760ac40 + c1a7549 commit d242e69

File tree

3 files changed

+82
-19
lines changed

3 files changed

+82
-19
lines changed

_data/sponsors.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
sections:
22
- title: Sponsors
33
description:
4+
buttons:
5+
- text: "Become a Sponsor"
6+
url: "assets/sponsorship.pdf"
47

58
tier:
69
# Titanium:
@@ -60,10 +63,6 @@ sections:
6063
image: /assets/images/sponsors/amex.png
6164
url: https://www.americanexpress.com/
6265

63-
- title: Sharad Khanna
64-
image: /assets/images/sponsors/sharad.jpg
65-
url: https://www.linkedin.com/in/khanna-sharad/
66-
6766
Silver:
6867
- title: Travelers Insurance
6968
image: /assets/images/sponsors/travelers.png
@@ -102,3 +101,16 @@ sections:
102101
image: /assets/images/sponsors/fortra-logo-forest-green.png
103102
url: https://fortra.com/
104103

104+
- title: Alumni Sponsors
105+
description:
106+
buttons:
107+
- text: "Learn About Sponsorship"
108+
url: "assets/sponsorship.pdf"
109+
- text: "Become an Alumni Sponsor"
110+
url: "https://tigers.rit.edu/site/Donation2?df_id=1960&mfc_pref=T&1960.donation=form1&set.SingleDesignee=2125"
111+
112+
tier:
113+
Gold:
114+
- title: Sharad Khanna
115+
image: /assets/images/sponsors/sharad.jpg
116+
url: https://www.linkedin.com/in/khanna-sharad/

_sass/pages/sponsors.scss

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,31 +96,34 @@
9696
text-overflow: ellipsis;
9797
}
9898

99+
.sponsor-buttons {
100+
display: flex;
101+
justify-content: center;
102+
gap: 1rem;
103+
margin: 1rem 0;
104+
flex-wrap: wrap;
105+
}
106+
99107
.sponsor-button {
100108
text-align: center;
101-
width: 8rem;
102-
margin: auto;
103-
padding: 0.5rem 0;
109+
width: 16rem;
110+
padding: 1rem;
104111
background-color: var(--card-color);
105112
border: 1px solid var(--border-color);
106113
border-radius: 6px;
107-
color: var(--text-color);
114+
color: #e69138;
108115
opacity: 0.85;
109116
text-decoration: none;
110117
transition: all 0.15s ease-in-out;
111-
font-size: 0.75rem;
118+
font-size: 1.25rem;
112119
line-height: 1rem;
113-
114-
&:hover {
115-
opacity: 1;
116-
}
120+
display: inline-flex;
121+
justify-content: center;
122+
align-items: center;
117123
}
118124

119-
.become-a-sponsor {
120-
font-size: 1.25rem;
121-
width: 16rem;
122-
padding: 1rem;
123-
color: #e69138;
125+
.sponsor-button:hover {
126+
opacity: 1;
124127
}
125128

126129
.sponsor-image-container {

pages/sponsors.html

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,55 @@
1010
<section class="sponsors-section">
1111
<div class="heading-title">{{ section.title }}</div>
1212
<div class="heading-description">{{ section.description }}</div>
13-
<a class="sponsor-button become-a-sponsor" href="assets/sponsorship.pdf"> Become a Sponsor </a>
13+
<div class="sponsor-buttons">
14+
{%- for button in section.buttons -%}
15+
<a class="sponsor-button" href="{{ button.url }}">
16+
{{ button.text }}
17+
</a>
18+
{%- endfor -%}
19+
</div>
20+
<div class="sponsors-container">
21+
<div class="sponsors-grid">
22+
{%- for tier in section.tier -%}
23+
<div class="sponsor-tier">
24+
<div class="sponsor-tier-title {{ tier[0] | downcase }}">
25+
{{ tier[0] }}
26+
</div>
27+
<div class="sponsor-tier-container">
28+
{%- for sponsor in tier[1] -%}
29+
<div class="sponsor">
30+
<div class="sponsor-image-container">
31+
<a class="sponsor-image-wrapper" href="{{ sponsor.url }}">
32+
<img src="{{ sponsor.image | relative_url }}" alt="sponsor-image" class="sponsor-image">
33+
</a>
34+
</div>
35+
<div class="sponsor-info">
36+
<a href="{{ sponsor.url }}" class="sponsor-title">{{ sponsor.title }}</a>
37+
</div>
38+
</div>
39+
{%- endfor-%}
40+
</div>
41+
</div>
42+
{%- endfor -%}
43+
</div>
44+
</div>
45+
</section>
46+
{%- endfor -%}
47+
</div>
48+
49+
{%- assign data = site.data.alumnisponsors -%}
50+
<div>
51+
{%- for section in data.sections -%}
52+
<section class="sponsors-section">
53+
<div class="heading-title">{{ section.title }}</div>
54+
<div class="heading-description">{{ section.description }}</div>
55+
<div class="sponsor-buttons">
56+
{%- for button in section.buttons -%}
57+
<a class="sponsor-button" href="{{ button.url }}">
58+
{{ button.text }}
59+
</a>
60+
{%- endfor -%}
61+
</div>
1462
<div class="sponsors-container">
1563
<div class="sponsors-grid">
1664
{%- for tier in section.tier -%}

0 commit comments

Comments
 (0)