Skip to content

Commit 6172a14

Browse files
committed
Fixed main page
1 parent f02099e commit 6172a14

4 files changed

Lines changed: 43 additions & 2 deletions

File tree

images/.DS_Store

0 Bytes
Binary file not shown.

images/home-background.jpg

51.3 KB
Loading

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<script>
1919
(function () {
20-
const DURATION = 100; // keep in sync with --fade-duration
20+
const DURATION = 220; // keep in sync with --fade-duration (220ms)
2121

2222
// Mark page as ready (fade in)
2323
function ready() {
@@ -60,7 +60,7 @@
6060
});
6161
})();
6262
</script>
63-
<body>
63+
<body class="home">
6464
<!-- ==================== HEADER ==================== -->
6565
<header class="thin-header">
6666
<div class="header-bar">

styles/default.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,45 @@ body.is-fading { opacity: 0; }
267267
/* Respect reduced motion */
268268
@media (prefers-reduced-motion: reduce) {
269269
body { transition: none !important; opacity: 1 !important; }
270+
}
271+
272+
/* ========== HOME PAGE BACKGROUND IMAGE ========== */
273+
body.home {
274+
position: relative;
275+
overflow-x: hidden;
276+
}
277+
278+
body.home::before {
279+
content: "";
280+
position: fixed;
281+
top: 50%;
282+
left: 50%;
283+
width: clamp(44vmin, 60vmin, 78vmin);
284+
height: clamp(44vmin, 60vmin, 78vmin);
285+
transform: translate(-50%, -50%);
286+
background-image: url("../images/home-background.jpg"); /* adjust extension if needed */
287+
background-size: cover;
288+
background-position: center;
289+
border-radius: 50%;
290+
opacity: 0.60; /* subtle fade */
291+
filter: blur(1.5px); /* slight blur for softness */
292+
box-shadow:
293+
0 0 0 2px rgba(255, 255, 255, 0.04) inset, /* subtle inner ring */
294+
0 0 140px rgba(0, 0, 0, 0.45); /* soft outer glow */
295+
z-index: -1;
296+
pointer-events: none;
297+
}
298+
299+
main,
300+
footer {
301+
position: relative;
302+
z-index: 1;
303+
}
304+
305+
@media (max-width: 640px) {
306+
body.home::before {
307+
width: clamp(56vmin, 70vmin, 84vmin);
308+
height: clamp(56vmin, 70vmin, 84vmin);
309+
opacity: 0.18;
310+
}
270311
}

0 commit comments

Comments
 (0)