Skip to content

Commit 4f7e139

Browse files
Added flag pages
1 parent 42b1ea7 commit 4f7e139

File tree

2 files changed

+38
-34
lines changed

2 files changed

+38
-34
lines changed

content/flags/_index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ Unlisted Thoughts has a particular interest in flags.
1313
<img src="/images/flags/unlisted_flags/Flag_All_Peters.svg" alt="">
1414
<span>Collection of Unlisted Flags</span>
1515
</a>
16-
1716
<a href="/flags/crazy_flags/" class="pill-flags">
1817
<img src="/images/flags/crazy_flags/Flag_Elephant.svg" alt="">
1918
<span>Collection of Crazy Flag Ideas</span>
2019
</a>
21-
2220
<a href="/flags/insane_flags/" class="pill-flags">
2321
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Algerian_flag_%28Barbary_ensign_with_the_an_Berberian_head%29.svg" alt="">
2422
<span>Collection of Insane Flags</span>
@@ -27,6 +25,12 @@ Unlisted Thoughts has a particular interest in flags.
2725

2826
<br>
2927

28+
<div class="banner-wrapper">
29+
<img class="banner-gif" src="/images/spin.gif" alt="">
30+
</div>
31+
32+
<br>
33+
3034
<div class="banner-wrapper">
3135
<img class="banner-gif" src="/images/spin.gif" alt="">
3236
</div>

static/css/custom.css

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -238,81 +238,81 @@ body.page-not-found .mw7 {
238238
/* ------------FLAGS------------- */
239239
/* ----------------------------- */
240240

241+
/* container */
241242
.pill-web-links {
242243
display: flex;
243244
flex-direction: column;
244-
gap: 0.5rem;
245+
gap: 0.6rem;
245246
}
246247

248+
/* card */
247249
.pill-flags {
248250
position: relative;
249-
display: flex;
250-
align-items: center;
251-
justify-content: center;
252-
251+
display: block;
253252
width: 100%;
254-
height: 300px;
253+
height: 260px;
255254
border-radius: 6px;
256255
overflow: hidden;
257256
text-decoration: none;
257+
background: #000; /* fallback while image loads */
258258
}
259259

260-
/* the flag image fills the banner */
260+
/* background image layer */
261261
.pill-flags img {
262262
position: absolute;
263-
inset: 0;
263+
top: 0;
264+
left: 0;
264265
width: 100%;
265266
height: 100%;
266267
object-fit: cover;
267268
}
268269

269-
/* dark overlay */
270-
.pill-flags::before {
270+
/* overlay (does NOT darken text) */
271+
.pill-flags::after {
271272
content: "";
272273
position: absolute;
273274
inset: 0;
274275
background: rgba(0,0,0,0.35);
275-
z-index: 1;
276276
}
277277

278-
/* text on top */
278+
/* centered text */
279279
.pill-flags span {
280-
position: relative;
281-
z-index: 2;
280+
position: absolute;
281+
inset: 0;
282+
display: flex;
283+
align-items: center;
284+
justify-content: center;
285+
282286
color: #fff;
283-
font-weight: 600;
284-
font-size: 3rem;
287+
font-weight: 700;
288+
font-size: 2.2rem;
285289
text-align: center;
290+
padding: 0 1rem;
286291

287-
-webkit-text-stroke: 1.5px rgba(0,0,0,0.9);
292+
/* crisp readable stroke */
293+
-webkit-text-stroke: 1.5px #000;
288294
paint-order: stroke fill;
289-
text-shadow:
290-
0 0 2px rgba(0,0,0,0.9),
291-
0 0 4px rgba(0,0,0,0.7);
295+
296+
z-index: 2;
292297
}
293298

299+
/* hover */
294300
.pill-flags:hover {
295-
transform: translateY(-1px);
296-
box-shadow: 0 2px 6px rgba(0,0,0,0.25);
301+
transform: translateY(-2px);
302+
box-shadow: 0 4px 10px rgba(0,0,0,0.35);
297303
}
298304

305+
/* banner */
299306
.banner-wrapper {
300307
background: #000;
301-
width: 100%;
302-
padding: 0; /* remove if you want spacing */
303-
display: flex;
304-
justify-content: center; /* horizontal center */
305-
align-items: center; /* vertical center (if height set) */
308+
text-align: center;
306309
}
307310

308311
.banner-gif {
309-
display: block; /* removes bottom gap */
312+
display: block;
310313
max-width: 100%;
311314
height: auto;
312-
}
313-
314-
.banner-gif {
315-
height: 300px;
315+
margin: 0 auto;
316316
}
317317

318318
/* ----------------------------- */

0 commit comments

Comments
 (0)