-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
203 lines (188 loc) · 6.02 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
---
layout: default
---
{% assign about = site.data.copy.global[0] %}
{% assign welcome = site.data.copy.global[1] %}
<div class="container my-5">
<div class="row">
<!-- WELCOME HEADER -->
<h1>{{ welcome.welcome }}</h1>
<hr class="large" />
</div>
<div>
<div class="row">
<div class="col-md-6">
<!-- RECENT UPDATES WIDGET -->
<h2 class="my-5">Recent Updates</h2>
{% for post in site.posts limit:3 %}
<div class="col-12">
<h6 class="my-0 text-black-tint-2">{{ post.date | date: "%b %-d, %Y" }}</h6>
<a class="my-0 article-link" href="{{ post.url }}">{{ post.title }}</a>
<p>{{ post.short_description }}</p>
</div>
{% endfor %}
</div>
<div class="col-md-6">
<!-- BAMAZON PICTURE -->
<!-- <a href="https://drive.google.com/uc?export=view&id=1W_Sv9NhEzTJJvElQ1IMJThk_QC3CTwsj">
<img src="assets/images/frontpage-thumb.jpeg" width="90%" height="auto" alt="Several Birmingham DSA members standing holding a Vote Unition sign" />
</a> -->
<style>
.slideshow {
background-color: lightgray;
position: relative;
width: 100%;
aspect-ratio: 4 / 3 !important;
margin: auto;
overflow: hidden;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
}
.slideshow div.slide {
flex-flow: column nowrap;
justify-content: center;
align-items: center;
background-color: lightgray;
margin: auto;
}
.slideshow div img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
margin: auto !important;
}
.slideshow a.previous,
.slideshow a.next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -22px;
color: white !important;
/* 1px black text outline */
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
font-weight: bold;
font-size: 2rem;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
.previous {
left: 0;
border-radius: 0 3px 3px 0;
}
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.previous:hover,
.next:hover {
background-color: rgba(0, 0, 0, 0.8);
}
</style>
<div class="slideshow">
<div class="slide">
<img src="/assets/images/slideshow/1.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/2.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/3.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/4.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/5.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/7.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/8.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/9.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/11.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/12.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/13.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/14.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/15.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/16.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/17.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/18.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/19.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/20.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/21.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/22.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/23.webp">
</div>
<div class="slide">
<img src="/assets/images/slideshow/24.webp">
</div>
<a class="previous" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<script>
let slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("slide");
if (n > slides.length) { slideIndex = 1 }
if (n < 1) { slideIndex = slides.length }
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slides[slideIndex - 1].style.display = "flex";
}
// Automatically change slides every ten seconds.
setInterval(function () {
plusSlides(1);
}, 10000);
</script>
</div>
</div>
</div>
</div>