Skip to content

Commit 231dd3d

Browse files
committed
fix css
1 parent b6bd490 commit 231dd3d

2 files changed

Lines changed: 17 additions & 33 deletions

File tree

about/index.html

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
display: flex;
9494
flex-direction: column;
9595
gap: 16px;
96+
min-width: 0;
9697
}
9798

9899
.bio-text {
@@ -129,7 +130,8 @@
129130
}
130131

131132
.about-profile-img {
132-
flex: 1;
133+
flex: 0 0 280px;
134+
min-width: 280px;
133135
display: flex;
134136
justify-content: center;
135137
}
@@ -177,6 +179,8 @@
177179
.about-profile-img {
178180
order: -1;
179181
margin-bottom: 6px;
182+
flex: none;
183+
min-width: 0;
180184
}
181185

182186
.img-border img {
@@ -199,8 +203,7 @@
199203
}
200204
</style>
201205
<link rel="preload" href="/css/about.css" as="style">
202-
<link rel="stylesheet" href="/css/about.css" media="print" onload="this.media='all'">
203-
<noscript><link rel="stylesheet" href="/css/about.css"></noscript>
206+
<link rel="stylesheet" href="/css/about.css">
204207
</head>
205208
<body>
206209
<!-- About Page Schema -->
@@ -579,7 +582,7 @@ <h2><lottie-player src="/images/link.json" background="transparent" speed="1" cl
579582

580583
<div class="about-profile-img">
581584
<div class="img-border">
582-
<img src="/images/profile.svg" alt="Patrick Araujo profile avatar for backend software engineer and integration specialist" width="250" height="250" decoding="async">
585+
<img src="/images/profile.svg" alt="Patrick Araujo profile avatar for backend software engineer and integration specialist" width="250" height="250" loading="eager" fetchpriority="high" decoding="async">
583586
</div>
584587
</div>
585588
</div>
@@ -744,35 +747,11 @@ <h2><lottie-player src="/images/link.json" background="transparent" speed="1" cl
744747
loadDeferredScript('https://cdn.jsdelivr.net/npm/@lottiefiles/lottie-player@1.5.7/dist/lottie-player.js');
745748
};
746749

747-
const scheduleIdleLoad = function() {
748-
if ('requestIdleCallback' in window) {
749-
window.requestIdleCallback(load, { timeout: 3500 });
750-
} else {
751-
window.setTimeout(load, 3000);
752-
}
753-
};
754-
755-
if ('IntersectionObserver' in window) {
756-
const observer = new IntersectionObserver(function(entries) {
757-
if (entries.some(function(entry) { return entry.isIntersecting; })) {
758-
observer.disconnect();
759-
load();
760-
}
761-
}, { rootMargin: '200px 0px' });
762-
763-
document.querySelectorAll('lottie-player').forEach(function(node) {
764-
observer.observe(node);
765-
});
766-
767-
['scroll', 'pointerdown', 'keydown', 'touchstart'].forEach(function(eventName) {
768-
window.addEventListener(eventName, load, { once: true, passive: true });
769-
});
770-
771-
scheduleIdleLoad();
772-
return;
773-
}
750+
['scroll', 'pointerdown', 'keydown', 'touchstart'].forEach(function(eventName) {
751+
window.addEventListener(eventName, load, { once: true, passive: true });
752+
});
774753

775-
scheduleIdleLoad();
754+
window.setTimeout(load, 12000);
776755
}
777756

778757
function updateFooterYear() {
@@ -802,6 +781,7 @@ <h2><lottie-player src="/images/link.json" background="transparent" speed="1" cl
802781
document.body.classList.add('ready');
803782
updateSemester();
804783
updateFooterYear();
784+
document.addEventListener('DOMContentLoaded', updateFooterYear, { once: true });
805785
setupMenu();
806786
setupCursor();
807787
setupContacts();

css/about.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ body {
106106
display: flex;
107107
flex-direction: column;
108108
gap: 16px;
109+
min-width: 0;
109110
}
110111
.bio-text {
111112
font-size: 1.2rem;
@@ -146,7 +147,8 @@ body {
146147
color: #E0E0E0;
147148
}
148149
.about-profile-img {
149-
flex: 1;
150+
flex: 0 0 280px;
151+
min-width: 280px;
150152
display: flex;
151153
justify-content: center;
152154
}
@@ -287,6 +289,8 @@ body {
287289
.about-profile-img {
288290
order: -1;
289291
margin-bottom: 6px;
292+
flex: none;
293+
min-width: 0;
290294
}
291295

292296
.img-border img {

0 commit comments

Comments
 (0)