From dd0957f70087ed581d5a9bea5353b12e431bb9d8 Mon Sep 17 00:00:00 2001 From: b1ek Date: Thu, 9 Mar 2023 23:40:29 +1000 Subject: [PATCH] add bolerplate resume page --- public/static/ui/load.gif | Bin 0 -> 4046 bytes public/static/ui/resume.css | 24 ++++++++++++++++++++++++ routes/pages.js | 6 +++++- view/page/resume.pug | 13 +++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 public/static/ui/load.gif create mode 100644 public/static/ui/resume.css create mode 100644 view/page/resume.pug diff --git a/public/static/ui/load.gif b/public/static/ui/load.gif new file mode 100644 index 0000000000000000000000000000000000000000..90b1a7110ee0e9a7012e5598b9bd00df5e4b6163 GIT binary patch literal 4046 zcmc)NdsI{R0SEACYrEMg>)O3^#f#cfi=typti5z|f>euPr|O(~G$fZ;!Xp=wKtci` z?+1Z|nH}z)&w39sr;A0MHA-004LI-M@Pe z+y(dV0`TCA@dsak2VndG@E@e9BLuuaj@`X$>y|&pMucy8W&v?N3yku^}nh7A!A zEeG0#9_EngTz2?-3D8bz65W4pC(2}SP#$y`WkFmnH=Ipe!}MRnLZJ}i2H5{}1IT}D ziI0a^jQ2Uo95%$Fv+1mCdJ+@@K`{vsIbk=H#im1?WCk1JGC0X-7UwZ03UOHs4xI^Q z&{^pWHk*Mm{irXWU9gxGOzK9LaQuY3L00EzJaxL#(bVkqnOjKdxu8rtzd&#W z@4kAiC*%AdVs?M{QQ!3&{oDS!C6G1YoFn6%wU1kO)bDpcw34?cHgMy^6QYtmIo-^l zpo|s)`IE(;{p*bIck9OglPi|&V5CTuDk@DySarpi-eAN6j)BZE#-7_7ba8Lk+eSS5 z85?y`W8-{sT<6e`R7e^9s$L*K7Ru!LO4Uwo2C_)2Q)Bv=bULarSkx8@CdXO-v16{c4{{F{XOVDz)`W?_DH%{?9$d0r;ZRjSCs)l#_( zS%~S?MpLXtBt{mMmYJQ#OnS1=np5r)gw@tnaZaQjJK5wpb-KBw^^7+%7!;d7=^t0evNN_;PM<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 0000000..1cf4ccd --- /dev/null +++ b/public/static/ui/resume.css @@ -0,0 +1,24 @@ +div#resume_js_app { + background: #303030; + width:640px; + height:480px; + border: 1px solid #e1e1e1; + font-family: monospace; + box-shadow: 0 2px 4px #30303060; + padding: 10px 8px; + color: #e1e1e1; + + position: fixed; + top:50%;left:50%; + transform: translate(-50%, -50%); +} +div#resume_js_app * { + padding: 0; margin: 0; +} +div#resume_js_app p.js_loading_indicator { + position: relative; + top: 50%; left: 50%; + transform: translate(-50%, -50%); + width: fit-content; + text-align: center; +} \ No newline at end of file diff --git a/routes/pages.js b/routes/pages.js index 4bfddf2..19e2b09 100644 --- a/routes/pages.js +++ b/routes/pages.js @@ -4,7 +4,11 @@ async function services(req, res) { res.template('page/services.pug'); } +async function resume(req, res) { + res.template('page/resume.pug'); +} module.exports = (router) => { - router.get('/services', handler(services)) + router.get('/services', handler(services)) + router.get('/resume', handler(resume)) } \ No newline at end of file diff --git a/view/page/resume.pug b/view/page/resume.pug new file mode 100644 index 0000000..8620ced --- /dev/null +++ b/view/page/resume.pug @@ -0,0 +1,13 @@ +extends ../layout/main.pug +block root + - var title = 'Resume' + link(rel='stylesheet' href='/static/ui/resume.css') + +block content + h2 My online resume + hr + div(id='resume_js_app') + p(class='js_loading_indicator') + | JS is loading. Please hold on... + br + img(src='/static/ui/load.gif' style='border-radius:6px;margin-top:6px') \ No newline at end of file