-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
329 lines (284 loc) · 10.9 KB
/
index.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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
---
layout: default
title: Operation PEACCE Robotics
bg: light
txt: dark
---
<style>
.header-row {
background-image: url("{{site.data.index.banner.image-url}}");
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center {{site.data.index.banner.image-align}} !important;
width: 100%;
min-height:25rem;
height: calc(33vw - 1vh);
/* background-position: {{site.data.index.banner.image-align}}; */
}
#header-row-text {
height:100%;
width:100%;
}
#header-row-text h1 {
text-shadow: 5px 5px 4px #000000;
font-size:calc(100% + 5vw);
}
#header-row-text h2 {
text-shadow: 5px 5px 4px #000000;
font-size:calc(100% + 1vw);
}
.body {
background-color: aliceblue!important;
}
</style>
<script>
{% for item in site.alerts %}
showAlert({header:"{{item.header}}", message:"{{item.message}}", class:"{{item.class}}"});
{% endfor %}
</script>
<!-- for facebook integration -->
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v16.0" nonce="B0ihQ3ct"></script>
<script src="/assets/js/googleCalendar.js"></script>
<div class="container-fluid m-0 p-0 banner">
<div class="header-row">
<div id="header-row-text" class="row pr-0 align-items-center text-light">
<div class="d-block text-center mx-auto">
<h1 class="font-weight-bold col pr-0">{{site.data.index.banner.header}}</h1>
<h2 class="font-weight-normal col">{{site.data.index.banner.subheader}}</h2>
</div>
</div>
</div>
<div class="header-text-area bg-light text-dark" style="width: 100%; border:1px solid rgba(0,0,0,.125);">
<div class="text-center pt-5 pb-5">
<h1 style="font-size:calc(100% + 2vw);">{{site.data.index.subbanner.text}}</h1>
<h3 style="font-size:calc(100% + 0.5vw);">{{ site.data.index.subbanner.subtext}}</h3>
<!-- <br> -->
<!-- <h1 class="text-center pt-5">What We do... and what <strong>You</strong> can learn</h1> -->
<div class="row">
<div class="col-md-3 col-sm-6">
<div class="mu-why-us-single">
<a href="{{"/committee/cad" | absolute_url}}" class="text-dark">
<div class="my-why-us-single-icon">
<i class="fa fa-desktop" aria-hidden="true"></i>
</div>
<h3>C.A.D</h3>
</div>
</a>
</div>
<div class="col-md-3 col-sm-6">
<a href="{{"/committee/programming" | absolute_url}}" class="text-dark">
<div class="my-why-us-single-icon">
<i class="fa fa-code" aria-hidden="true"></i>
</div>
<h3>Programming</h3>
</a>
</div>
<div class="col-md-3 col-sm-6">
<a href="{{"/committee/electrical" | absolute_url}}" class="text-dark">
<div class="my-why-us-single-icon">
<i class="fa fa-plug" aria-hidden="true"></i>
</div>
<h3>Electrical</h3>
</a>
</div>
<div class="col-md-3 col-sm-6">
<a href="{{"/committee/public-relations" | absolute_url}}" class="text-dark">
<div class="my-why-us-single-icon">
<i class="fa fa-suitcase" aria-hidden="true"></i>
</div>
<h3>Public Relations</h3>
</a>
</div>
<br>
<!-- <div class="w-100 pt-5 d-inline-flex justify-content-around">
<button class="btn btn-lg btn-outline-primary">Button 1</button>
<button class="btn btn-lg btn-outline-primary">Button 2</button>
</div> -->
</div>
</div>
</div>
</div>
<br>
<div class="container-fluid">
{% include currentlyCompetingBanner.html %}
</div>
<br>
<div class="container-fluid">
{% for item in site.data.index.content %}
<div class="row p-md-3 p-sm-0">
<div class="col">
<div class="d-block">
<div class="h1 d-inline-block text-sm-center text-left" style="font-family: 'BankGothicBold', sans-serif;">{{item.header | markdownify}}
</div>
<img class="d-inline-block" src="{{item.glyph}}" style=" max-height: 50px; padding-left: 10px;">
</div>
<h4>{{item.content | markdownify }}</h4>
</div>
<div class="col-md"><img class="rounded img-fluid mx-auto d-block" src="{{item.image}}" style="width:500px"></div>
</div>
<br>
{% endfor %}
{% assign robot = site.robots | where_exp: "item", "item.title != 'Current Season'" | last %}
<div class="row p-md-3 p-sm-0">
<div class="col">
<div class="d-block">
<h1 style="font-family: 'BankGothicBold', sans-serif;">Latest Robot: {{robot.robotName}}</h1>
</div>
<h4>{{robot.content | markdownify }}</h4>
<a class="btn btn-primary mb-3" href="{{robot.url}}">See more</a>
</div>
<div class="col-md">
<img class="rounded img-fluid mx-auto d-block" src="{{robot.thumbnail}}" style="max-width:500px; width: 100%; height: auto;">
</div>
</div>
</div>
<br>
<div class="container-fluid mx-auto">
<!-- 4 Cards in between text and sponsors -->
<div class="card-deck justify-content-center text-dark text-center">
<div class="card bg-light">
<div class="card-body text-center pb-1">
<p class="card-title">History</p>
</div>
<div id="demo" class="carousel slide pb-4" data-ride="carousel">
<div class="carousel-item active">
<img src="/assets/images/PeacceLogoTieDyeWhiteText.svg" class="img-rounded" style="width:100%; height:15rem; object-fit: contain;">
<div class="carousel-caption">
<h3>{{item.header}}</h3>
</div>
</div>
<div class="carousel-inner">
{% for item in site.robots %}
{% if item.thumbnail and item.thumbnail != "" %}
<div class="carousel-item">
<img src="{{item.thumbnail}}" class="img-rounded" style="width:fit-content; height: fit-content; max-height: 55vh; min-height: 55vh; object-fit: contain;">
<div class="carousel-caption" style="background-color: rgba(240, 240, 240, 0.384);">
<h3 style="text-shadow: 5px; -webkit-text-stroke: 0.05rem; -webkit-text-stroke-color: black; font-size: 5vh;">{{item.title}}</h3>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<br>
<!-- Maybe if we ever do outreach we can use this -->
<!-- <div class="card">
<div class="card-body text-center">
<p class="card-title">Outreach</p>
</div>
</div> -->
<br>
<div class="card bg-light">
<div class="card-body text-center">
<p class="card-title">Latest Post</p>
<div style="overflow: hidden; height:100%; max-height: 55vh; width: 100%;">
<div class="fb-page" style=" clip: auto;" data-href="https://www.facebook.com/PEACCE" data-tabs="timeline" data-small-header="true" data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="false"><blockquote cite="https://www.facebook.com/PEACCE" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/PEACCE">Operation P.E.A.C.C.E. Robotics</a></blockquote></div>
</div>
</div>
</div>
<br>
<div class="card bg-light">
<div class="card-body text-center">
<p class="card-title">Next Event</p>
<h2 id="nextEvent">None Found</h2>
<div id="calendarBoxButtons" style="display: none;">
<h2 id="startTime"><i class="fa fa-calendar"></i></h2>
<h2 id="location"><i class="fa fa-map-marker"></i></h2>
<a id="goToCalendar" href="" class="btn btn-outline-primary"><i class="fa fa-calendar-plus-o"></i> Open in Google Calendar</a>
</div>
<script>
async function updateBox() {
event = await getNextEvent()
// console.log(event);
date = await getEventDate(event)
topBarNotifier = {
"header": `Next Event: ${event.summary}`,
"message": `Please join us on ${date.toLocaleString()}`,
"class": "light"
}
updateHomePageEventBox(event)
showAlert(topBarNotifier)
}
updateBox()
// const nextNonRecurringEvent = getNextNonRecurringEvent()
// const nextEvent = getNextEvent()
// if (nextNonRecurringEvent === null || nextNonRecurringEvent === undefined) {
// updateHomePageEventBox(nextEvent)
// } else {
// updateHomePageEventBox(nextNonRecurringEvent)
// }
// document.getElementById('nextEvent').innerText += event
</script>
<!-- {% for post in site.posts limit:1 %}
<a href="{{post.url}}" class="text-dark"><h3>{{post.title}}</h3> <br> {{ post.content | truncatewords: 60 }}</a>
{% endfor %} -->
</div>
</div>
<br>
</div>
</div>
<br>
<br>
<div class="container-fluid">
<h1 class=" text-center ">Thank you to our generous sponsors</h1>
<div class="logo-area justify-content-center text-dark">
{% for item in site.data.sponsors.sponsors %}
{% if item.sponsortier == "Title" or item.sponsortier == "Platinum" %}
{% if item.hidden == false %}
<div class="sponsorlogo">
{% if item.isNameOnly == false %}
<img src="{{item.image}}">
<div class="pt-2">
<p>{{item.sponsortier | upcase}} SPONSOR</p>
<p><b>{{item.name}}</b></p>
</div>
{% else %}
<h1>{{item.name}}</h1>
<div class="pt-2 nameOnlyBottom">
<p>{{item.sponsortier | upcase}} SPONSOR</p>
</div>
{% endif %}
</div>
{% endif %}
{% endif %}
{% endfor %}
<div class="sponsorlogo">
<h1 class="h2">And Many More
<br>
<a href="{{"/sponsors.html" | absolute_url}}" class="btn btn-outline-primary btn-lg text-center mt-4">See more info</a>
</h1>
</div>
</div>
</div>
<!-- <flex class="sponsorlogo logo-item">
<div style="width: 300px; height: 225px;"><img class="sponsorlogo" id="logo" src="assets/images/4h-logo.svg" style="padding-top:20%; height: 200px;"></div>
<p><b>PRINCIPLE SPONSOR</b> <br> Hartford Country 4H </p>
</flex> -->
</div>
<!-- <style>
/* The hero image */
.hero-image {
/* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/assets/images/bannerTemplate.png");
/* Set a specific height */
height: 50%;
/* Position and center the image to scale nicely on all screens */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
/* Place text in the middle of the image */
.hero-text {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
}
</style> -->
<!-- for competing banner -->