Skip to content

Commit 1fbbc45

Browse files
committed
add social tab in blog + landing image update
1 parent 39beafb commit 1fbbc45

22 files changed

+409
-94
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ collections:
6464
theses:
6565
output: true
6666
permalink: /theses/:path/
67+
social:
68+
output: true
69+
permalink: /social/:path/
6770

6871
# Set to `true` to show excerpts on the homepage.
6972
show_excerpts: true

_sass/main.scss

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ section:last-child::after {
5454
.image-container {
5555
text-align: center;
5656
margin-bottom: 20px;
57+
/* Allow image to break out of parent padding */
58+
margin-left: -20px;
59+
margin-right: -20px;
60+
overflow: visible;
5761
}
5862

5963
.homepage-content p {
@@ -302,4 +306,124 @@ pre {
302306
white-space: pre-wrap;
303307
word-wrap: break-word;
304308
font-size: 0.8em;
309+
}
310+
311+
/* Social Section - Photo Gallery */
312+
.social-section {
313+
margin-bottom: 60px;
314+
}
315+
316+
.social-grid {
317+
display: grid;
318+
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
319+
gap: 25px;
320+
padding: 0 20px;
321+
justify-items: center;
322+
}
323+
324+
.social-item {
325+
width: 100%;
326+
max-width: 320px;
327+
background: #fff;
328+
border-radius: 8px;
329+
overflow: hidden;
330+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
331+
transition: transform 0.3s ease, box-shadow 0.3s ease;
332+
}
333+
334+
.social-item:hover {
335+
transform: translateY(-5px);
336+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
337+
}
338+
339+
.social-item img {
340+
width: 100%;
341+
height: 220px;
342+
object-fit: cover;
343+
display: block;
344+
}
345+
346+
.social-caption {
347+
padding: 15px;
348+
}
349+
350+
.social-caption h4 {
351+
margin: 0 0 8px 0;
352+
font-size: 1.1em;
353+
}
354+
355+
.social-caption h4 a {
356+
color: #333;
357+
text-decoration: none;
358+
}
359+
360+
.social-caption h4 a:hover {
361+
color: $primary-color;
362+
}
363+
364+
.social-date {
365+
font-size: 0.85em;
366+
color: #888;
367+
margin: 5px 0;
368+
}
369+
370+
.social-location {
371+
font-size: 0.9em;
372+
color: #666;
373+
margin: 5px 0;
374+
}
375+
376+
/* Blog toggle buttons as header */
377+
.blog-toggle-header {
378+
display: flex;
379+
justify-content: center;
380+
gap: 20px;
381+
margin: 0 0 40px 0;
382+
padding: 20px 0;
383+
}
384+
385+
.toggle-btn {
386+
padding: 12px 35px;
387+
font-size: 1.3em;
388+
border: 2px solid $primary-color;
389+
background-color: #fff;
390+
color: $primary-color;
391+
border-radius: 25px;
392+
cursor: pointer;
393+
transition: all 0.3s ease;
394+
font-weight: 600;
395+
}
396+
397+
.toggle-btn:hover {
398+
background-color: lighten($primary-color, 45%);
399+
}
400+
401+
.toggle-btn.active {
402+
background-color: $primary-color;
403+
color: #fff;
404+
}
405+
406+
/* Blog posts section */
407+
.blog-posts {
408+
margin-bottom: 60px;
409+
}
410+
411+
.post-preview {
412+
margin-bottom: 30px;
413+
padding-bottom: 20px;
414+
border-bottom: 1px solid #eee;
415+
}
416+
417+
.post-preview:last-child {
418+
border-bottom: none;
419+
}
420+
421+
.read-more {
422+
color: $primary-color;
423+
text-decoration: none;
424+
font-weight: 500;
425+
}
426+
427+
.read-more:hover {
428+
text-decoration: underline;
305429
}

_sass/minima/_base.scss

Lines changed: 73 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,22 @@ html {
55
/**
66
* Reset some basic elements
77
*/
8-
body, h1, h2, h3, h4, h5, h6,
9-
p, blockquote, pre, hr,
10-
dl, dd, ol, ul, figure {
8+
body,
9+
h1,
10+
h2,
11+
h3,
12+
h4,
13+
h5,
14+
h6,
15+
p,
16+
blockquote,
17+
pre,
18+
hr,
19+
dl,
20+
dd,
21+
ol,
22+
ul,
23+
figure {
1124
margin: 0;
1225
padding: 0;
1326

@@ -24,9 +37,9 @@ body {
2437
background-color: $background-color;
2538
-webkit-text-size-adjust: 100%;
2639
-webkit-font-feature-settings: "kern" 1;
27-
-moz-font-feature-settings: "kern" 1;
28-
-o-font-feature-settings: "kern" 1;
29-
font-feature-settings: "kern" 1;
40+
-moz-font-feature-settings: "kern" 1;
41+
-o-font-feature-settings: "kern" 1;
42+
font-feature-settings: "kern" 1;
3043
font-kerning: normal;
3144
display: flex;
3245
min-height: 100vh;
@@ -39,9 +52,19 @@ body {
3952
/**
4053
* Set `margin-bottom` to maintain vertical rhythm
4154
*/
42-
h1, h2, h3, h4, h5, h6,
43-
p, blockquote, pre,
44-
ul, ol, dl, figure,
55+
h1,
56+
h2,
57+
h3,
58+
h4,
59+
h5,
60+
h6,
61+
p,
62+
blockquote,
63+
pre,
64+
ul,
65+
ol,
66+
dl,
67+
figure,
4568
%vertical-rhythm {
4669
margin-bottom: $spacing-unit * .5;
4770
}
@@ -55,7 +78,8 @@ hr {
5578
* `main` element
5679
*/
5780
main {
58-
display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
81+
display: block;
82+
/* Default value of `display` of `main` element is 'inline' in IE 11. */
5983
}
6084

6185

@@ -73,7 +97,7 @@ img {
7397
/**
7498
* Figures
7599
*/
76-
figure > img {
100+
figure>img {
77101
display: block;
78102
}
79103

@@ -86,13 +110,15 @@ figcaption {
86110
/**
87111
* Lists
88112
*/
89-
ul, ol {
113+
ul,
114+
ol {
90115
margin-left: $spacing-unit;
91116
}
92117

93118
li {
94-
> ul,
95-
> ol {
119+
120+
>ul,
121+
>ol {
96122
margin-bottom: 0;
97123
}
98124
}
@@ -102,7 +128,12 @@ li {
102128
/**
103129
* Headings
104130
*/
105-
h1, h2, h3, h4, h5, h6 {
131+
h1,
132+
h2,
133+
h3,
134+
h4,
135+
h5,
136+
h6 {
106137
font-weight: $base-font-weight;
107138
}
108139

@@ -148,7 +179,8 @@ blockquote {
148179
margin-bottom: 0;
149180
}
150181

151-
i, em {
182+
i,
183+
em {
152184
font-style: normal;
153185
}
154186
}
@@ -175,7 +207,7 @@ pre {
175207
padding: 8px 12px;
176208
overflow-x: auto;
177209

178-
> code {
210+
>code {
179211
border: 0;
180212
padding-right: 0;
181213
padding-left: 0;
@@ -256,18 +288,23 @@ table {
256288
color: $table-text-color;
257289
border-collapse: collapse;
258290
border: 1px solid $table-border-color;
291+
259292
tr {
260293
&:nth-child(even) {
261294
background-color: $table-zebra-color;
262295
}
263296
}
264-
th, td {
297+
298+
th,
299+
td {
265300
padding: ($spacing-unit * 33.3333333333 * .01) ($spacing-unit * .5);
266301
}
302+
267303
th {
268304
background-color: $table-header-bg-color;
269305
border: 1px solid $table-header-border;
270306
}
307+
271308
td {
272309
border: 1px solid $table-border-color;
273310
}
@@ -276,7 +313,7 @@ table {
276313
display: block;
277314
overflow-x: auto;
278315
-webkit-overflow-scrolling: touch;
279-
-ms-overflow-style: -ms-autohiding-scrollbar;
316+
-ms-overflow-style: -ms-autohiding-scrollbar;
280317
}
281318
}
282319

@@ -291,9 +328,12 @@ table {
291328

292329
/* Styling the header */
293330
.site-header .wrapper {
331+
max-width: 800px;
294332
display: flex;
295-
justify-content: space-between; /* Separate branding and navigation */
296-
align-items: center; /* Vertically align items */
333+
justify-content: space-between;
334+
/* Separate branding and navigation */
335+
align-items: center;
336+
/* Vertically align items */
297337
padding: 10px 20px;
298338
}
299339

@@ -304,13 +344,17 @@ table {
304344
}
305345

306346
.site-logo {
307-
height: 35px; /* Adjust the height of the logo as needed */
308-
margin-right: 10px; /* Space between logo and title */
309-
margin-left: 10px; /* Space between logo and title */
347+
height: 35px;
348+
/* Adjust the height of the logo as needed */
349+
margin-right: 10px;
350+
/* Space between logo and title */
351+
margin-left: 10px;
352+
/* Space between logo and title */
310353
}
311354

312355
.site-title {
313-
font-size: 1.5em; /* Adjust font size of the site title */
356+
font-size: 1.5em;
357+
/* Adjust font size of the site title */
314358
font-weight: bold;
315359
}
316360

@@ -334,7 +378,8 @@ table {
334378

335379
.footer-col p,
336380
.footer-col ul {
337-
margin: 0; /* Remove unnecessary margins */
381+
margin: 0;
382+
/* Remove unnecessary margins */
338383
}
339384

340385
.social-links {
@@ -351,7 +396,8 @@ table {
351396
.publication {
352397
display: flex;
353398
flex-direction: column;
354-
margin-bottom: 50px; /* Increase this value to add more space between publications */
399+
margin-bottom: 50px;
400+
/* Increase this value to add more space between publications */
355401
border-bottom: 1px solid #ddd;
356402
padding-bottom: 15px;
357403
}

0 commit comments

Comments
 (0)