Skip to content

Commit 28c853b

Browse files
committed
updated style of newssection, publications and thumbnails, mobile version for all included image of about me
1 parent 73e243a commit 28c853b

File tree

4 files changed

+59
-274
lines changed

4 files changed

+59
-274
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ defaults:
9393
path: "_pages"
9494
type: posts
9595
values:
96-
layout: single
96+
layout: single
9797
# - scope:
9898
# path: "assets"
9999
# values:

_layouts/welcome.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@ <h2>Updates</h2>
5555

5656
<!-- Publications -->
5757
<section id="publications">
58-
<h2>Publications</h2>
58+
<h2>Research</h2>
5959

6060
<div class="publications-preview">
6161
{% assign latest_pubs = site.publications | reverse %}
6262
{% for publication in latest_pubs limit:5 %}
6363
<div class="publication-block">
6464
{% assign base_link = publication.external_link | default: publication.permalink %}
6565
{% assign image = base_link | append: publication.image %}
66-
<div class="publication-thumbnail">
67-
<a href="{{ base_link }}">
68-
<img src="{{ image }}" alt="{{ publication.title }}">
69-
</a>
70-
</div>
66+
<a href="{{ base_link }}">
67+
<div class="publication-thumbnail"
68+
style="background-image: url('{{ image }}')">
69+
</div>
70+
</a>
7171

7272
<div class="publication-data">
7373
<h3 class="publication-title">

_sass/custom.scss

Lines changed: 52 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
/* Make the about section text smaller */
6666
#about {
67-
font-size: 0.7rem; /* default is ~1rem, reduce a bit */
67+
font-size: 0.8rem; /* default is ~1rem, reduce a bit */
6868
line-height: 1.5; /* keep it readable */
6969
color: #333; /* optional: softer black */
7070
}
@@ -93,18 +93,20 @@
9393

9494
@media (max-width: 600px) {
9595
.about-photo-wrapper {
96-
float: none;
97-
width: 60%;
98-
height: auto;
99-
margin: 0 auto 1rem auto;
96+
float: right; /* ✅ keep on the right */
97+
width: 150px; /* smaller square on mobile */
98+
height: 150px; /* force square */
99+
margin: 0 0 0.75rem 0.75rem; /* tighter margin */
100100
}
101+
101102
.about-photo {
102-
height: auto !important;
103-
object-position: center top !important;
103+
width: 100% !important;
104+
height: 100% !important;
105+
object-fit: cover;
106+
object-position: center top; /* keep face/head visible */
104107
}
105108
}
106109

107-
108110
.welcome-name {
109111
font-size: 2.5rem; /* very large */
110112
font-weight: 400; /* bold */
@@ -115,7 +117,6 @@
115117

116118
}
117119

118-
/* Scrollable container */
119120
/* Scrollable container */
120121
.news-scroll {
121122
max-height: 300px; /* adjust height */
@@ -169,58 +170,68 @@
169170
line-height: 1.4;
170171
}
171172

172-
/* Optional: mobile stacking */
173+
/* Optional: mobile tweaks */
173174
@media (max-width: 600px) {
174175
.news-list li {
175-
flex-direction: column;
176-
border-bottom: 1px solid #eee;
176+
flex-direction: row; /* ✅ keep side-by-side */
177+
align-items: flex-start; /* date aligns with top of text */
177178
}
179+
178180
.news-date {
179-
margin-bottom: 0.25rem;
181+
flex: 0 0 45px; /* slightly narrower on small screens */
182+
margin-right: 0.5rem; /* smaller gap */
183+
padding-left: 5px; /* reduce padding */
184+
font-size: 0.65rem; /* shrink text */
185+
}
186+
187+
.news-text {
188+
font-size: 0.75rem; /* shrink news text slightly */
189+
line-height: 1.3;
180190
}
181191
}
182192

193+
183194
.publications-preview .publication-block {
184-
display: grid;
185-
grid-template-columns: 80px 1fr; /* thumbnail column + text column */
186-
column-gap: 1rem;
187-
align-items: start; /* top-aligns image with first line of text */
195+
display: flex;
196+
gap: 1rem;
197+
align-items: flex-end; /* 🔑 aligns image with first line of text */
188198
padding: 0.5rem 0;
199+
flex-wrap: nowrap; /* keep image + text side by side */
200+
margin-bottom: 1.5rem;
189201
}
190202

191-
.publication-thumbnail img {
192-
width: 80px;
193-
height: 80px;
194-
object-fit: cover;
203+
.publication-thumbnail {
204+
width: 100px;
205+
height: 100px;
206+
background-size: cover; /* crop to fill */
207+
background-position: center;
195208
border-radius: 4px;
209+
flex-shrink: 0;
210+
padding: 0.5rem 0;
196211
}
197212

198213
.publication-data {
199214
font-size: 0.85rem;
200215
line-height: 1.3;
216+
min-width: 200px;
201217
}
202218

203-
.publication-title a {
204-
font-size: 0.9rem;
205-
font-weight: 600;
206-
color: #111;
207-
text-decoration: none;
208-
}
209-
210-
.publication-title a:hover {
211-
text-decoration: underline;
212-
}
213219

214-
.publication-venue,
215-
.publication-authors {
216-
font-size: 0.8rem;
217-
color: #555;
218-
}
220+
/* 📱 Mobile adjustments */
221+
@media (max-width: 768px) {
222+
.publication-block {
223+
align-items: flex-start; /* align image top with text top */
224+
}
219225

220-
/* Mobile stacking */
221-
@media (max-width: 600px) {
222-
.publications-preview .publication-block {
223-
grid-template-columns: 1fr; /* stack image above text */
224-
row-gap: 0.5rem;
226+
.publication-thumbnail {
227+
width: 80px; /* smaller square for mobile */
228+
height: 80px;
225229
}
226230
}
231+
232+
.pub-more {
233+
font-size: 0.9rem; /* slightly smaller than normal text */
234+
line-height: 1.4; /* good readability */
235+
margin-top: 1rem; /* spacing from above section */
236+
text-align: left; /* keep alignment consistent */
237+
}

0 commit comments

Comments
 (0)