-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpartners.html
274 lines (233 loc) · 8.8 KB
/
partners.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
---
layout: default
title: Our Partners
permalink: /partners/
header-title: Our Partners
header-desc: "We are backed by a large network of academic institutions and our industrial partners. Especially, we receive strong support from the Technical University of Munich (TUM), whose president, Prof. Dr. Thomas F. Hofmann, is our project patron, and the Munich University of Applied Sciences (HM) with its highly practice-orientated programs."
header-image: /assets/images/robert-stump-bwpgwJesFhw-unsplash.jpg
header-image-height: 2000
header-image-width: 3000
scroll-link: "#list"
first-button: "<a href='/pitch/' class='btn btn--primary'>Become Partner</a>"
second-button: "<a href='#list' class='smoothscroll btn btn--stroke'>Learn More</a>"
---
<!-- clients
================================================== -->
<section id="list" class="s-clients">
<div class="row section-header" data-aos="fade-up">
<div class="col-full">
<h3 class="subhead">Our Partners</h3>
<h1 class="display-2">Elara Aerospace has been honored to partner up with these partners</h1>
</div>
</div>
<!-- end section-header -->
<style>
/* Popup CSS */
.popup {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1000; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0, 0, 0); /* Fallback color */
background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}
.popup-title {
color: black;
}
.popup-content {
background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* Additional styling for gallery */
.gallery img {
cursor: pointer;
margin: 10px;
width: 100px; /* Adjust size as needed */
width: 300px; /* Set width to 300px */
height: 300px; /* Set height to 300px */
}
</style>
<!-- Gallery Section -->
<div class="row clients-outer" data-aos="fade-up">
<div class="col-full">
{% assign grouped_companies = site.data.companies | group_by: "category" %} {% for category in grouped_companies %}
<h2>{{ category.name }}</h2>
<div class="responsive">
<div class="gallery">
{% for company in category.items %}
<img src="{{ company.logo }}" alt="{{ company.name }}" data-company="{{ company.name }}" data-info="{{ company.info }}" data-url="{{ company.url }}" class="company-logo" /> {% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>
<!-- Popup Section -->
<div id="popup" class="popup">
<div class="popup-content">
<span class="close">×</span>
<h2 class="popup-title" id="companyName"></h2>
<p id="companyInfo"></p>
<a id="companyLink" href="#" target="_blank" class="btn btn--primary">Visit Website</a>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const popup = document.getElementById("popup");
const closeBtn = document.querySelector(".close");
// Function to sanitize URL
function sanitizeUrl(url) {
const urlPattern = /^(?:https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,63})([\/\w .-]*)\/?$/;
return urlPattern.test(url) ? url : "#";
}
// Function to sanitize text content
function sanitizeText(text) {
const div = document.createElement("div");
div.textContent = text;
return div.innerHTML;
}
document.querySelectorAll(".company-logo").forEach((item) => {
item.addEventListener("click", function () {
const companyName = sanitizeText(this.getAttribute("data-company"));
const companyInfo = sanitizeText(this.getAttribute("data-info"));
const companyUrl = sanitizeUrl(this.getAttribute("data-url"));
document.getElementById("companyName").textContent = companyName;
document.getElementById("companyInfo").textContent = companyInfo;
document.getElementById("companyLink").href = companyUrl;
popup.style.display = "block";
});
});
closeBtn.onclick = function () {
popup.style.display = "none";
};
window.onclick = function (event) {
if (event.target == popup) {
popup.style.display = "none";
}
};
});
</script>
</section>
<!-- end s-clients -->
<!-- contact
================================================== -->
<style>
.contact-section {
background-color: #f9f9f9;
padding: 20px;
border: 1px solid #ddd;
max-width: 800px;
margin: 20px auto;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.contact-header {
text-align: center;
margin-bottom: 20px;
}
.contact-header h2 {
margin: 0;
color: #333;
}
.contact-people {
display: flex;
justify-content: space-between;
gap: 20px;
}
.contact-person {
background-color: #fff;
border-radius: 8px;
padding: 15px;
flex: 1;
text-align: center; /* Center-align content */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.contact-image img {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
}
.contact-info {
margin-top: 10px; /* Space between image and text */
}
.contact-info h3 {
margin: 5px 0;
font-size: 1.2em;
color: #444;
}
.contact-info a {
color: #007BFF;
text-decoration: none;
}
.contact-info a:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
.contact-people {
flex-direction: column; /* Stack contacts vertically on smaller screens */
gap: 15px;
}
}
</style>
<section id="contact" class="s-contact">
<div class="overlay"></div>
<div class="contact__line"></div>
<div class="row section-header" data-aos="fade-up">
<div class="col-full">
<h3 class="subhead">Contact Us</h3>
<h1 class="display-2 display-2--light">Interested in becoming a Partner?</h1>
</div>
</div>
<div class="row contact-content" data-aos="fade-up">
<div class="contact-section">
<div class="contact-header">
<h2>Sponsor Management</h2>
</div>
<div class="contact-people">
<!-- Contact Person #1 -->
<div class="contact-person">
<div class="contact-image">
<img src="/assets/images/team/tom-reinhardt.png" alt="Tom Luca Reinhardt">
</div>
<div class="contact-info">
<h3>Tom Luca Reinhardt</h3>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
<!-- Contact Person #2 -->
<div class="contact-person">
<div class="contact-image">
<img src="/assets/images/team/tobias-jäger.png" alt="Tobias Jäger">
</div>
<div class="contact-info">
<h3>Tobias Jäger</h3>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
</div>
</div>
</div>
<!-- end contact-primary -->
</div>
<!-- end contact-content -->
</section>
<!-- end s-contact -->