fix(ui): remove the white flash, the dead 501-900px breakpoint and the mobile scroll hijack
Measured on the live build (headless Chrome, 4 viewports):
- first paint was blank white for ~1.5 s and the right pane was empty until t=3.5 s
-> inline html{background} in index.html + theme-color, matching both palettes
- 501-900 px still rendered the desktop component: panes 231 px wide with 7,726 px of
resume content -> the stacked mobile component now owns everything up to 900 px
- mobile scrolled itself to the bottom on every typing tick (scrollY 611 at rest),
hiding the resume the reader was on -> removed; the panel sits in normal flow
- the thank panel's translateZ(-200px) pulled it ~32 px up over the editor panes
-> rotateX(-10deg) only, measured gap now +3 px instead of -32 px
- prefers-reduced-motion reduced: render the finished page instead of 10 s of typing
- 'www.hoelee.com & linkd' was autolinked as http:// -> explicit https link
- resume pane had a 9 px phantom horizontal scrollbar (vertical bar measured into
scrollWidth) -> overflow-y auto / overflow-x hidden
This commit is contained in:
1 parent
ae0856e34e
commit
7f8ac893d0
5 files changed
+38
-9
No files matched your search
@@ -16,6 +16,15 @@
|
||||
<meta name="twitter:title" content="Mr Hoelee — Senior Full-Stack, DevOps & AI Systems Engineer">
|
||||
<meta name="twitter:description" content="Interactive animated resume of Lee Teong Hoe — Senior Full-Stack, DevOps & AI Systems Engineer.">
|
||||
<title>Mr Hoelee — Senior Full-Stack, DevOps & AI Systems Engineer</title>
|
||||
<!-- First paint: match the animation's own palette so the page never flashes white
|
||||
before the synthetic stylesheet has been typed in. Keep these in sync with
|
||||
src/config/profile.js (desktopStyles / mobileStyles html{background}). -->
|
||||
<style>
|
||||
html { background: #004040; color: #dedede; }
|
||||
@media (max-width: 900px) { html { background: #002b36; } }
|
||||
body { margin: 0; }
|
||||
</style>
|
||||
<meta name="theme-color" content="#004040" />
|
||||
<link rel="icon" type="image/x-icon" href="./favicon.ico">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
|
||||
</head>
|
||||
|
||||
+10
@@ -37,6 +37,16 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// Respect the OS "reduce motion" setting: render the finished page immediately
|
||||
// instead of animating ~10 s of typing.
|
||||
const reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
||||
if (reduce) {
|
||||
this.currentStyle = this.styleFull
|
||||
this.currentMarkdown = this.fullMarkdown
|
||||
this.enableHtml = true
|
||||
this.currentThankMarkdown = this.thanksMarkdown
|
||||
return
|
||||
}
|
||||
this.makeResume()
|
||||
},
|
||||
methods: {
|
||||
|
||||
+12
-4
@@ -31,6 +31,15 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// Respect the OS "reduce motion" setting: render the finished page immediately.
|
||||
const reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
||||
if (reduce) {
|
||||
this.currentStyle = this.styleFull
|
||||
this.currentMarkdown = this.fullMarkdown
|
||||
this.enableHtml = true
|
||||
this.currentThankMarkdown = this.thanksMarkdown
|
||||
return
|
||||
}
|
||||
this.makeResume()
|
||||
},
|
||||
methods: {
|
||||
@@ -108,10 +117,9 @@
|
||||
const showThanks = () => {
|
||||
if (this.currentThankMarkdown.length < length) {
|
||||
this.currentThankMarkdown = this.thanksMarkdown.substring(0, Math.min(length, this.currentThankMarkdown.length + cpt))
|
||||
this.$nextTick(() => {
|
||||
// Keep the newly revealed thanks section in view as it grows.
|
||||
window.scrollTo(0, document.body.scrollHeight)
|
||||
})
|
||||
// No auto-scroll while typing: yanking the page to the bottom on every tick
|
||||
// moved the resume the reader was looking at out of view. The panel sits in
|
||||
// normal flow right below the resume, so the reader reaches it by scrolling.
|
||||
setTimeout(showThanks, interval)
|
||||
} else {
|
||||
resolve()
|
||||
|
||||
@@ -44,7 +44,7 @@ Selected Projects
|
||||
- Keygate Offline Software Licensing Engine — Standalone cryptographic licensing engine using Ed25519 signatures, machine hardware fingerprinting (CPU, BIOS, motherboard UUID), and anti-tamper counters with zero phone-home requirement.
|
||||
- Digi Kedai AI Customer-Service Agent — Telegram customer-service agent in TypeScript behind an OmniRoute model gateway, with persistent user memory (mem0), tool calling and automated payment-webhook verification, running in production on the platform above.
|
||||
- Property Platform with Loan Calculator (jomcarirumah.com) — Live property-agency site on WordPress with a custom repayment and instalment calculator that pre-qualifies buyers instead of funnelling them into a contact form.
|
||||
- www.hoelee.com & linkd — Modern Astro 5 SSG personal hub (0 KB client JavaScript, Lighthouse mobile score 99, 0ms TBT) backed by linkd, a lightweight Node.js SQLite WAL shortlink engine with Authentik SSO admin.
|
||||
- [www.hoelee.com](https://www.hoelee.com) & linkd — Modern Astro 5 SSG personal hub (0 KB client JavaScript, Lighthouse mobile score 99, 0ms TBT) backed by linkd, a lightweight Node.js SQLite WAL shortlink engine with Authentik SSO admin.
|
||||
- Self-Hosted Local AI Stack — GPU-passthrough Windows 11 VM on unRaid running LM Studio / llama.cpp (Qwen GGUF) for local inference, ComfyUI for image generation and whisper.cpp for speech-to-text, plus a mem0 + OmniRoute + pgvector memory and RAG stack in Docker.
|
||||
- Published Technical Blog (blog.hoelee.com) — 15+ posts in English and Chinese, each written out of something that actually happened: a CodeIgniter 4 migration from IIS to OpenLiteSpeed, page-by-page verification of a generated 19-page PDF, RDP brute-force hardening, a self-hosted speech-to-text server.
|
||||
- Client Enterprise Systems & Web Builds — Delivered 30+ production websites and business systems for SME, NGO, and e-commerce clients across full lifecycles (requirements, architecture, code, deployment, ongoing maintenance).
|
||||
@@ -184,7 +184,7 @@ html{
|
||||
width: calc(50vw - 1em); height: 70vh;
|
||||
border: 1px solid;
|
||||
background: rgb(200,200,200); color: #222;
|
||||
overflow: auto;
|
||||
overflow-y: auto; overflow-x: hidden;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
-webkit-transform: rotateY(-10deg) translateZ(-100px);
|
||||
@@ -308,8 +308,8 @@ html{
|
||||
overflow: visible;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
-webkit-transform: rotateX(-10deg) translateZ(-200px);
|
||||
transform: rotateX(-10deg) translateZ(-200px);
|
||||
-webkit-transform: rotateX(-10deg);
|
||||
transform: rotateX(-10deg);
|
||||
}
|
||||
|
||||
/* keep horizontal scrolling off; allow vertical scroll when short */
|
||||
|
||||
+3
-1
@@ -3,5 +3,7 @@ import App from './App.vue'
|
||||
import Mobile from './Mobile.vue'
|
||||
|
||||
const width = document.documentElement.clientWidth
|
||||
const app = createApp(width > 500 ? App : Mobile)
|
||||
// Below ~900px the two fixed 50vw desktop panes squeeze the resume into a 230-360px
|
||||
// column (measured), so tablets and landscape phones get the stacked mobile component.
|
||||
const app = createApp(width > 900 ? App : Mobile)
|
||||
app.mount('#app')
|
||||
Reference in new issue
Block a user