Revert "fix(ui): flat readable document, ~3s pacing, skip + replay controls"
This reverts commit a20a79c855.
This commit is contained in:
1 parent
a20a79c855
commit
11af512022
6 files changed
+26
-205
No files matched your search
@@ -68,4 +68,3 @@ NUL
|
||||
# .netlify/
|
||||
# .vercel/
|
||||
.codegraph/
|
||||
YT-Banner-Hoelee/
|
||||
+10
-71
@@ -1,10 +1,8 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<button v-if="animating" class="skip-btn" type="button" @click="finishAll">Skip animation →</button>
|
||||
<button v-else class="skip-btn replay-btn" type="button" @click="replay">↻ Replay animation</button>
|
||||
<div id="content">
|
||||
<StyleEditor ref="styleEditor" :code="currentStyle"></StyleEditor>
|
||||
<ResumeEditor ref="resumeEditor" :markdown="currentMarkdown" :enableHtml="enableHtml" :settled="!animating"></ResumeEditor>
|
||||
<ResumeEditor ref="resumeEditor" :markdown="currentMarkdown" :enableHtml="enableHtml"></ResumeEditor>
|
||||
</div>
|
||||
<div id="foot">
|
||||
<ThankEditor ref="thankEditor" :markdown="currentThankMarkdown" :enableHtml="enableHtml"></ThankEditor>
|
||||
@@ -35,53 +33,23 @@
|
||||
enableHtml: false,
|
||||
htmlShown: false,
|
||||
thanksShown: false,
|
||||
animating: true,
|
||||
cancelled: false,
|
||||
styleFull: profile.desktopStyles.join('')
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// Show the finished page immediately for anyone who asked for less motion
|
||||
// or who has already sat through the animation once.
|
||||
// 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
|
||||
let seen = false
|
||||
try { seen = window.localStorage.getItem('hoelee_cv_seen') === '1' } catch (e) { seen = false }
|
||||
if (reduce || seen) {
|
||||
this.finishAll()
|
||||
return
|
||||
}
|
||||
this.makeResume().then(() => {
|
||||
try { window.localStorage.setItem('hoelee_cv_seen', '1') } catch (e) { /* private mode */ }
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// Jump straight to the finished state: used by the skip button, reduced
|
||||
// motion, and repeat visitors.
|
||||
finishAll() {
|
||||
this.cancelled = true
|
||||
if (reduce) {
|
||||
this.currentStyle = this.styleFull
|
||||
this.currentMarkdown = this.fullMarkdown
|
||||
this.currentThankMarkdown = this.thanksMarkdown
|
||||
this.enableHtml = true
|
||||
this.htmlShown = true
|
||||
this.thanksShown = true
|
||||
this.animating = false
|
||||
},
|
||||
// Replay is the only way back to the animation once it has been seen.
|
||||
replay() {
|
||||
this.cancelled = false
|
||||
this.currentStyle = ''
|
||||
this.currentMarkdown = ''
|
||||
this.currentThankMarkdown = ''
|
||||
this.enableHtml = false
|
||||
this.htmlShown = false
|
||||
this.thanksShown = false
|
||||
this.animating = true
|
||||
try { window.localStorage.removeItem('hoelee_cv_seen') } catch (e) { /* ignore */ }
|
||||
this.makeResume().then(() => {
|
||||
try { window.localStorage.setItem('hoelee_cv_seen', '1') } catch (e) { /* ignore */ }
|
||||
})
|
||||
},
|
||||
this.currentThankMarkdown = this.thanksMarkdown
|
||||
return
|
||||
}
|
||||
this.makeResume()
|
||||
},
|
||||
methods: {
|
||||
makeResume: async function () {
|
||||
// Both editors appear (background + borders), then the CSS types in the
|
||||
// left pane. During this the right pane is NOT blank: the resume editor
|
||||
@@ -96,7 +64,6 @@
|
||||
await this.typeStyleRemaining()
|
||||
await this.showThanks()
|
||||
await this.progressivelyShowThanks()
|
||||
this.animating = false
|
||||
},
|
||||
typeStyleUpToMarker(marker) {
|
||||
return new Promise((resolve) => {
|
||||
@@ -138,7 +105,6 @@
|
||||
const total = this.styleFull.length
|
||||
const step = this.increment(total)
|
||||
const tick = () => {
|
||||
if (this.cancelled) return resolve()
|
||||
if (this.currentStyle.length < total) {
|
||||
step()
|
||||
setTimeout(tick, this.interval)
|
||||
@@ -151,7 +117,6 @@
|
||||
progressivelyShowStylePartial(target, resolve) {
|
||||
const step = this.increment(target)
|
||||
const tick = () => {
|
||||
if (this.cancelled) return resolve()
|
||||
if (this.currentStyle.length < target) {
|
||||
step()
|
||||
setTimeout(tick, this.interval)
|
||||
@@ -182,7 +147,6 @@
|
||||
const interval = this.interval
|
||||
const cpt = this.charsPerTick
|
||||
const showThanks = () => {
|
||||
if (this.cancelled) return resolve()
|
||||
if (this.currentThankMarkdown.length < length) {
|
||||
this.currentThankMarkdown = this.thanksMarkdown.substring(0, Math.min(length, this.currentThankMarkdown.length + cpt))
|
||||
const prevChar = this.currentThankMarkdown[this.currentThankMarkdown.length - 2]
|
||||
@@ -208,31 +172,6 @@
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.skip-btn {
|
||||
position: fixed;
|
||||
top: .75em;
|
||||
right: 1em;
|
||||
z-index: 20;
|
||||
padding: .45em .9em;
|
||||
font: inherit;
|
||||
font-size: .85rem;
|
||||
color: #d7efe8;
|
||||
background: rgba(0, 32, 32, .85);
|
||||
border: 1px solid rgba(215, 239, 232, .45);
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.replay-btn {
|
||||
opacity: .6;
|
||||
}
|
||||
|
||||
.skip-btn:hover,
|
||||
.skip-btn:focus-visible {
|
||||
background: rgba(0, 48, 48, .95);
|
||||
border-color: #d7efe8;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
+9
-60
@@ -1,9 +1,7 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<button v-if="animating" class="skip-btn" type="button" @click="finishAll">Skip animation →</button>
|
||||
<button v-else class="skip-btn replay-btn" type="button" @click="replay">↻ Replay animation</button>
|
||||
<StyleEditor ref="styleEditor" :code="currentStyle"></StyleEditor>
|
||||
<ResumeEditor ref="resumeEditor" :markdown="currentMarkdown" :enableHtml="enableHtml" :settled="!animating"></ResumeEditor>
|
||||
<ResumeEditor ref="resumeEditor" :markdown="currentMarkdown" :enableHtml="enableHtml"></ResumeEditor>
|
||||
<ThankEditor ref="thankEditor" :markdown="currentThankMarkdown" :enableHtml="enableHtml"></ThankEditor>
|
||||
</div>
|
||||
</template>
|
||||
@@ -29,54 +27,27 @@
|
||||
currentMarkdown: '',
|
||||
currentThankMarkdown: '',
|
||||
enableHtml: false,
|
||||
animating: true,
|
||||
cancelled: false,
|
||||
styleFull: profile.mobileStyles.join('')
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// Finished page immediately for reduced motion or a repeat visit.
|
||||
// Respect the OS "reduce motion" setting: render the finished page immediately.
|
||||
const reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
||||
let seen = false
|
||||
try { seen = window.localStorage.getItem('hoelee_cv_seen') === '1' } catch (e) { seen = false }
|
||||
if (reduce || seen) {
|
||||
this.finishAll()
|
||||
return
|
||||
}
|
||||
this.makeResume().then(() => {
|
||||
try { window.localStorage.setItem('hoelee_cv_seen', '1') } catch (e) { /* private mode */ }
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
finishAll() {
|
||||
this.cancelled = true
|
||||
if (reduce) {
|
||||
this.currentStyle = this.styleFull
|
||||
this.currentMarkdown = this.fullMarkdown
|
||||
this.currentThankMarkdown = this.thanksMarkdown
|
||||
this.enableHtml = true
|
||||
this.animating = false
|
||||
},
|
||||
// Replay is the only way back to the animation once it has been seen.
|
||||
replay() {
|
||||
this.cancelled = false
|
||||
this.currentStyle = ''
|
||||
this.currentMarkdown = ''
|
||||
this.currentThankMarkdown = ''
|
||||
this.enableHtml = false
|
||||
this.htmlShown = false
|
||||
this.thanksShown = false
|
||||
this.animating = true
|
||||
try { window.localStorage.removeItem('hoelee_cv_seen') } catch (e) { /* ignore */ }
|
||||
this.makeResume().then(() => {
|
||||
try { window.localStorage.setItem('hoelee_cv_seen', '1') } catch (e) { /* ignore */ }
|
||||
})
|
||||
},
|
||||
this.currentThankMarkdown = this.thanksMarkdown
|
||||
return
|
||||
}
|
||||
this.makeResume()
|
||||
},
|
||||
methods: {
|
||||
makeResume: async function () {
|
||||
await this.typeStyleUpToMarker('/* Start writing resume */')
|
||||
await this.showHtml()
|
||||
await this.typeStyleRemaining()
|
||||
await this.progressivelyShowThanks()
|
||||
this.animating = false
|
||||
},
|
||||
typeStyleUpToMarker(marker) {
|
||||
return new Promise((resolve) => {
|
||||
@@ -104,7 +75,6 @@
|
||||
const total = this.styleFull.length
|
||||
const step = this.increment(total)
|
||||
const tick = () => {
|
||||
if (this.cancelled) return resolve()
|
||||
if (this.currentStyle.length < total) {
|
||||
step()
|
||||
setTimeout(tick, this.interval)
|
||||
@@ -117,7 +87,6 @@
|
||||
progressivelyShowStylePartial(target, resolve) {
|
||||
const step = this.increment(target)
|
||||
const tick = () => {
|
||||
if (this.cancelled) return resolve()
|
||||
if (this.currentStyle.length < target) {
|
||||
step()
|
||||
setTimeout(tick, this.interval)
|
||||
@@ -146,7 +115,6 @@
|
||||
const interval = this.interval
|
||||
const cpt = this.charsPerTick
|
||||
const showThanks = () => {
|
||||
if (this.cancelled) return resolve()
|
||||
if (this.currentThankMarkdown.length < length) {
|
||||
this.currentThankMarkdown = this.thanksMarkdown.substring(0, Math.min(length, this.currentThankMarkdown.length + cpt))
|
||||
// No auto-scroll while typing: yanking the page to the bottom on every tick
|
||||
@@ -178,23 +146,4 @@
|
||||
*{
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.skip-btn {
|
||||
position: fixed;
|
||||
top: .6em;
|
||||
right: .75em;
|
||||
z-index: 20;
|
||||
padding: .4em .8em;
|
||||
font: inherit;
|
||||
font-size: .8rem;
|
||||
color: #d7efe8;
|
||||
background: rgba(0, 32, 32, .85);
|
||||
border: 1px solid rgba(215, 239, 232, .45);
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.replay-btn {
|
||||
opacity: .6;
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="resumeEditor" :class="{htmlMode:enableHtml}" ref="container" :aria-live="settled ? 'polite' : 'off'" tabindex="0">
|
||||
<div class="resumeEditor" :class="{htmlMode:enableHtml}" ref="container">
|
||||
<div v-if="enableHtml" v-html="result"></div>
|
||||
<pre v-else>{{result}}</pre>
|
||||
</div>
|
||||
@@ -8,7 +8,7 @@
|
||||
<script>
|
||||
import { marked } from 'marked'
|
||||
export default {
|
||||
props: ['markdown', 'enableHtml', 'settled'],
|
||||
props: ['markdown', 'enableHtml'],
|
||||
name: 'ResumeEditor',
|
||||
computed: {
|
||||
result: function () {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="styleEditor" ref="container" aria-hidden="true">
|
||||
<div class="styleEditor" ref="container">
|
||||
<div class="code" v-html="codeInStyleTag"></div>
|
||||
<pre class="" v-html="highlightedCode"></pre>
|
||||
</div>
|
||||
|
||||
+4
-70
@@ -9,7 +9,7 @@ export default {
|
||||
// Effective speed = typingSpeed / charsPerTick. Lower delay = faster;
|
||||
// higher charsPerTick = fewer setTimeout hops = much faster and smoother.
|
||||
typingSpeed: 1,
|
||||
charsPerTick: 18,
|
||||
charsPerTick: 5,
|
||||
|
||||
// Resume content in Markdown
|
||||
resumeMarkdown: `Mr. Hoelee (Lee Teong Hoe)
|
||||
@@ -31,7 +31,7 @@ Core Skills
|
||||
- Languages: PHP, Java, Python, JavaScript, TypeScript, SQL, Bash, Solidity
|
||||
- Backend & APIs: Spring Boot, CodeIgniter 4, Node.js, REST API Architecture, Webhooks, Queue & Worker Patterns, Cron Loops, Transactional Email (Postfix/Dovecot/DKIM)
|
||||
- Databases & Storage: PostgreSQL (pgvector), MySQL / MariaDB, MySQL Master/Replica, SQLite (WAL mode), Redis, NocoDB
|
||||
- DevOps & Infrastructure: Docker, Docker Compose, Portainer, Traefik (custom bot filter, automated ACME TLS), Nginx, Cloudflare / Cloudflare Tunnel, Linux (Debian/Ubuntu), Synology DSM, unRaid, Gitea Actions CI/CD, restic automated backups, Prometheus / Grafana / cAdvisor monitoring
|
||||
- DevOps & Infrastructure: Docker, Docker Compose, Portainer, Traefik (custom bot filter, automated ACME TLS), Nginx, Cloudflare / Cloudflare Tunnel, Linux (Debian/Ubuntu), Synology DSM, unRaid, Gitea Actions CI/CD, restic automated backups, Prometheus / Grafana / cAdvisor monitoring, Tor hidden-service publishing
|
||||
- AI & Autonomous Agents: Hermes Agent, Model Context Protocol (MCP), OpenAI API, LLM Integration, OmniRoute gateway, n8n, fal.ai / FLUX.1 Kontext image compositing, OCR receipt verification, Local LLM Inference (LM Studio, llama.cpp GGUF, Qwen MoE), ComfyUI, whisper.cpp STT
|
||||
- Security & Identity: Authentik (OIDC / OAuth2 SSO), Passbolt, Ed25519 Cryptography, Fail2ban, Secret Management
|
||||
- Frontend: JavaScript, TypeScript, Vue 3 + Vite, Astro, React (component practice), HTML5/CSS3, Responsive UI
|
||||
@@ -93,6 +93,7 @@ Currently Exploring
|
||||
----
|
||||
- Solidity and smart-contract development (ERC-20 / ERC-721 with Foundry and Hardhat) — self-directed exploration.
|
||||
- Autonomous Agent runtimes, tool protocols (MCP), and local MoE model orchestration.
|
||||
- Tor hidden-service (onion) publishing, so the same public services stay reachable when the clearnet path does not.
|
||||
|
||||
|
||||
`,
|
||||
@@ -117,7 +118,7 @@ I'm open to Senior Full-Stack, Platform / DevOps, and AI Systems Engineering rol
|
||||
Where I deliver immediate value:
|
||||
* Full-stack application architecture (Java Spring Boot, PHP CodeIgniter, TypeScript, Vue 3, PostgreSQL, SQLite WAL)
|
||||
* Autonomous AI Agents & agentic workflows (Hermes Agent, MCP, OmniRoute, n8n, fal.ai, OCR, local GPU inference)
|
||||
* Self-hosted infrastructure & DevOps (Docker, Linux, Traefik, authentik SSO, CI/CD, Prometheus/Grafana, restic, Cloudflare Tunnel)
|
||||
* Self-hosted infrastructure & DevOps (Docker, Linux, Traefik, authentik SSO, CI/CD, Prometheus/Grafana, restic, Cloudflare Tunnel / Tor egress)
|
||||
* Legacy system modernization, reliability hardening, and operational automation
|
||||
|
||||
`,
|
||||
@@ -316,54 +317,6 @@ body{
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
`,
|
||||
`/*
|
||||
* Readability pass (2026-11-13 review): a 70vh inner-scroll box hid 77% of the
|
||||
* resume behind a nested scrollbar and broke Ctrl+F / native print. The page
|
||||
* scrolls now and only the code pane stays pinned while it types.
|
||||
*/
|
||||
#content{
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
height: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
#foot{
|
||||
min-height: 0;
|
||||
}
|
||||
.styleEditor{
|
||||
position: sticky;
|
||||
top: .5em;
|
||||
flex: 0 0 calc(50vw - 1em);
|
||||
height: auto;
|
||||
max-height: 85vh;
|
||||
margin: .5em 0 .5em .5em;
|
||||
overflow: auto;
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
.resumeEditor{
|
||||
position: static;
|
||||
flex: 0 0 calc(50vw - 1em);
|
||||
height: auto;
|
||||
max-height: none;
|
||||
margin: .5em .5em .5em 0;
|
||||
overflow: visible;
|
||||
}
|
||||
.resumeEditor > div{
|
||||
padding-bottom: .5em;
|
||||
max-width: 100%;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.thankEditor{
|
||||
min-height: 0;
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
.thankEditor > div{
|
||||
max-width: 68ch;
|
||||
margin: 0 auto;
|
||||
}
|
||||
`],
|
||||
|
||||
mobileStyles: [
|
||||
@@ -526,24 +479,5 @@ html, body {
|
||||
overflow-y: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* Readability pass (2026-11-13 review): the code pane was eating 47vh above the
|
||||
* CV and the resume sat in a 48.5vh inner-scroll box (11% visible on a phone).
|
||||
* The code pane is a 100px live strip now; the document itself scrolls.
|
||||
*/
|
||||
.styleEditor{
|
||||
height: 12vh;
|
||||
max-height: 100px;
|
||||
overflow: auto;
|
||||
}
|
||||
.resumeEditor{
|
||||
height: auto;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
}
|
||||
.thankEditor{
|
||||
overflow: visible;
|
||||
}
|
||||
`]
|
||||
}
|
||||
Reference in new issue
Block a user