-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathblog.html
More file actions
340 lines (308 loc) · 13.1 KB
/
blog.html
File metadata and controls
340 lines (308 loc) · 13.1 KB
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
330
331
332
333
334
335
336
337
338
339
340
---
layout: main
title: Blog
---
<!-- Header -->
<header style="background: linear-gradient(135deg, #ff69b4 0%, #1a1a1a 100%); color: #fff; padding: 100px 0; text-align: center; position: relative; overflow: hidden;">
<div style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('/img/logos/wics_logo.png') center/contain no-repeat; opacity: 0.1;"></div>
<div class="container" style="position: relative; z-index: 2; padding-top: 40px;">
<h1 style="font-size: 3.5rem; font-weight: bold; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3);">Blog</h1>
<p style="font-size: 1.3rem; margin-bottom: 30px;">Stay updated with our latest news, events, and stories.</p>
<div style="width: 80px; height: 4px; background: #ff69b4; margin: 0 auto; border-radius: 2px;"></div>
<div style="margin-top: 25px;">
<a href="#academic" class="btn btn-primary btn-sm" style="margin: 0 6px;">Academic</a>
<a href="#professional" class="btn btn-primary btn-sm" style="margin: 0 6px;">Professional</a>
<a href="#community" class="btn btn-primary btn-sm" style="margin: 0 6px;">Community</a>
</div>
</div>
</header>
<!-- Posts Section -->
<section id="news" style="padding: 100px 0; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading" style="font-size: 2.5rem; margin-bottom: 20px; color: #1a1a1a;">Latest Posts</h2>
<div style="width: 60px; height: 3px; background: #ff69b4; margin: 0 auto 30px; border-radius: 2px;"></div>
<h3 class="section-subheading text-muted" style="font-size: 1.1rem; margin-bottom: 60px;">Read about our community, events, and the amazing work of women in computer science.</h3>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<!-- Academic Section -->
<div id="academic" class="blog-section" style="margin-bottom: 80px;">
<div class="section-header" style="text-align: center; margin-bottom: 50px;">
<h3 style="color: #ff69b4; font-size: 2rem; font-weight: bold; margin-bottom: 15px;">
<i class="fa fa-graduation-cap" style="margin-right: 10px;"></i>Academic
</h3>
<div style="width: 40px; height: 2px; background: #ff69b4; margin: 0 auto; border-radius: 1px;"></div>
</div>
{% assign academic_posts = site.posts %}
{% assign academic_count = 0 %}
{% for post in academic_posts %}
{% assign is_academic = false %}
{% for category in post.categories %}
{% if category == "academic" %}
{% assign is_academic = true %}
{% endif %}
{% endfor %}
{% if is_academic %}
{% unless post.title == "Computers, Assemble!" or post.title == "CME Group Tech Talk about Challenges in Low-Latency Trading" or post.title == "Grace Hopper Convention 2016" %}
{% assign modulo = academic_count | modulo: 3 %}
{% if modulo == 0 %}
<div class="row">
{% endif %}
<div class="col-sm-4" style="margin-bottom: 30px;">
<div class="panel panel-info" style="border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); height: 100%;">
<div class="panel-heading" style="background-color: #ff69b4; color: #fff; border-radius: 8px 8px 0 0;">
<h3 class="panel-title">
<a class="post-link" target="_blank" href="{{ post.url | prepend: site.baseurl }}" style="color: #fff;">
{{ post.title }}
</a>
<p class="panel-date" style="margin-top: 10px; font-size: 0.9rem; color: #fff;">{{ post.date | date: "%b %-d, %Y" }}</p>
</h3>
</div>
<div class="panel-body" style="padding: 10px;">
<div class="post-content">{{ post.content | truncatehtml | truncatewords: 50 }}</div>
<a class="post-link read-more-link" target="_blank" href="{{ post.url | prepend: site.baseurl }}" style="color: #ff69b4;">
<read more>
</a>
</div>
</div>
</div>
{% assign academic_count = academic_count | plus: 1 %}
{% assign modulo = academic_count | modulo: 3 %}
{% if modulo == 0 %}
</div>
{% endif %}
{% endunless %}
{% endif %}
{% endfor %}
{% assign remainder = academic_count | modulo: 3 %}
{% if remainder != 0 %}
</div>
{% endif %}
</div>
<!-- Professional Section -->
<div id="professional" class="blog-section" style="margin-bottom: 80px;">
<div class="section-header" style="text-align: center; margin-bottom: 50px;">
<h3 style="color: #ff69b4; font-size: 2rem; font-weight: bold; margin-bottom: 15px;">
<i class="fa fa-briefcase" style="margin-right: 10px;"></i>Professional
</h3>
<div style="width: 40px; height: 2px; background: #ff69b4; margin: 0 auto; border-radius: 1px;"></div>
</div>
{% assign professional_posts = site.posts %}
{% assign professional_count = 0 %}
{% for post in professional_posts %}
{% assign is_professional = false %}
{% for category in post.categories %}
{% if category == "professional" %}
{% assign is_professional = true %}
{% endif %}
{% endfor %}
{% if is_professional %}
{% unless post.title == "Computers, Assemble!" or post.title == "CME Group Tech Talk about Challenges in Low-Latency Trading" or post.title == "Grace Hopper Convention 2016" %}
{% assign modulo = professional_count | modulo: 3 %}
{% if modulo == 0 %}
<div class="row">
{% endif %}
<div class="col-sm-4" style="margin-bottom: 30px;">
<div class="panel panel-info" style="border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); height: 100%;">
<div class="panel-heading" style="background-color: #ff69b4; color: #fff; border-radius: 8px 8px 0 0;">
<h3 class="panel-title">
<a class="post-link" target="_blank" href="{{ post.url | prepend: site.baseurl }}" style="color: #fff;">
{{ post.title }}
</a>
<p class="panel-date" style="margin-top: 10px; font-size: 0.9rem;">{{ post.date | date: "%b %-d, %Y" }}</p>
</h3>
</div>
<div class="panel-body" style="padding: 10px;">
<div class="post-content">{{ post.content | truncatehtml | truncatewords: 50 }}</div>
<a class="post-link read-more-link" target="_blank" href="{{ post.url | prepend: site.baseurl }}" style="color: #ff69b4;">
<read more>
</a>
</div>
</div>
</div>
{% assign professional_count = professional_count | plus: 1 %}
{% assign modulo = professional_count | modulo: 3 %}
{% if modulo == 0 %}
</div>
{% endif %}
{% endunless %}
{% endif %}
{% endfor %}
{% assign rem2 = professional_count | modulo: 3 %}
{% if rem2 != 0 %}
</div>
{% endif %}
</div>
<!-- Community Section -->
<div id="community" class="blog-section" style="margin-bottom: 80px;">
<div class="section-header" style="text-align: center; margin-bottom: 50px;">
<h3 style="color: #ff69b4; font-size: 2rem; font-weight: bold; margin-bottom: 15px;">
<i class="fa fa-users" style="margin-right: 10px;"></i>Community
</h3>
<div style="width: 40px; height: 2px; background: #ff69b4; margin: 0 auto; border-radius: 1px;"></div>
</div>
{% assign community_posts = site.posts %}
{% assign community_count = 0 %}
{% for post in community_posts %}
{% assign is_community = false %}
{% for category in post.categories %}
{% if category == "community" %}
{% assign is_community = true %}
{% endif %}
{% endfor %}
{% if is_community %}
{% assign modulo = community_count | modulo: 3 %}
{% if modulo == 0 %}
<div class="row">
{% endif %}
<div class="col-sm-4" style="margin-bottom: 30px;">
<div class="panel panel-info" style="border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); height: 100%;">
<div class="panel-heading" style="background-color: #ff69b4; color: #fff; border-radius: 8px 8px 0 0;">
<h3 class="panel-title">
<a class="post-link" target="_blank" href="{{ post.url | prepend: site.baseurl }}" style="color: #fff;">
{{ post.title }}
</a>
<p class="panel-date" style="margin-top: 10px; font-size: 0.9rem; color: #fff;">{{ post.date | date: "%b %-d, %Y" }}</p>
</h3>
</div>
<div class="panel-body" style="padding: 10px;">
<div class="post-content">{{ post.content | truncatehtml | truncatewords: 50 }}</div>
<a class="post-link read-more-link" target="_blank" href="{{ post.url | prepend: site.baseurl }}" style="color: #ff69b4;">
<read more>
</a>
</div>
</div>
</div>
{% assign community_count = community_count | plus: 1 %}
{% assign modulo = community_count | modulo: 3 %}
{% if modulo == 0 %}
</div>
{% endif %}
{% endif %}
{% endfor %}
{% assign rem3 = community_count | modulo: 3 %}
{% if rem3 != 0 %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>
<style>
.blog-post-card:hover {
transform: translateY(-10px);
box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.post-link:hover {
color: #1e90ff !important;
}
.btn-primary:hover {
background-color: #e55aa0 !important;
border-color: #e55aa0 !important;
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(255,105,180,0.4);
}
.btn-outline-primary:hover {
background-color: #ff69b4 !important;
border-color: #ff69b4 !important;
color: #fff !important;
transform: translateY(-2px);
}
.category-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.category-icon:hover {
transform: scale(1.1);
transition: transform 0.3s ease;
}
.newsletter-signup:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.newsletter-icon:hover {
transform: scale(1.1);
transition: transform 0.3s ease;
}
.tag {
transition: all 0.3s ease;
}
.tag:hover {
background: #ff69b4 !important;
color: #fff !important;
transform: translateY(-2px);
}
</style>
<style>
.post-content img {
max-width: 100%;
height: auto;
max-height: 300px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
margin: 20px 0;
display: block;
margin-left: auto;
margin-right: auto;
}
.post-content img:hover {
transform: scale(1.02);
transition: transform 0.3s ease;
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
</style>
<!-- Back to Top Button -->
<button id="backToTop" class="back-to-top-btn" onclick="scrollToTop()" style="display: none;">
<i class="fa fa-arrow-up"></i>
</button>
<style>
.back-to-top-btn {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background-color: #ff69b4;
color: #fff;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 18px;
box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
transition: all 0.3s ease;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.back-to-top-btn:hover {
background-color: #e55aa0;
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}
.back-to-top-btn:active {
transform: translateY(-1px);
}
</style>
<script>
// Show/hide back to top button based on scroll position
window.addEventListener('scroll', function() {
const backToTopBtn = document.getElementById('backToTop');
if (window.pageYOffset > 300) {
backToTopBtn.style.display = 'flex';
} else {
backToTopBtn.style.display = 'none';
}
});
// Smooth scroll to top function
function scrollToTop() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
}
</script>