From eb5b5f883b0ba7aa1e43d50a01de5152c51027b2 Mon Sep 17 00:00:00 2001 From: vodofrede Date: Mon, 14 Nov 2022 17:44:28 +0100 Subject: [PATCH] init commit --- .gitignore | 0 LICENSE | 11 ++ README.md | 1 + src/assets/favicon.ico | Bin 0 -> 1150 bytes src/assets/localization.js | 23 ++++ src/assets/main.css | 209 +++++++++++++++++++++++++++++++++++++ src/index.html | 69 ++++++++++++ src/projects.html | 67 ++++++++++++ 8 files changed, 380 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 src/assets/favicon.ico create mode 100644 src/assets/localization.js create mode 100644 src/assets/main.css create mode 100644 src/index.html create mode 100644 src/projects.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5851ac4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,11 @@ +Copyright 2022 vodofrede + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..a63498c --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# CV / Projektside - palmoe.dk diff --git a/src/assets/favicon.ico b/src/assets/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..726ad4355dae23040bbfc2a837c08456c01fc8e2 GIT binary patch literal 1150 zcmb7^$!{Z75XKv64qTAtfVgmAj>&-t4uiNMxPUanB7zvP1Sj#5c(>bj+}`&s9y{%{ zm$9=s&LnX{_BhLA1Tz`|H~yv{MYzq4ZoRHo)vBtm-}hB3${TXuy{pLco-%(&QQlD$ zWlWZYB=TQejH1Z9*Dr0$z|(J_4hzIik|fXKWG^-HR~qG;5XEbar5CE$D0Q*=OON<| z^cNnCS5C5nDDm|KiGGCqu1aP*K;~(X#RCtm(HzE^o#x0+=hDvFjfGWNYtPJdF054c zy{Mfc*5xwpW*L7kLs;rW2Vo+E2-&?Lr993zSh;@rN^a^$(gR2?C zx)jI09F~1RYyeX!joNb&TJ@27>LWjN^Z3|C>%v6i)WTdNk5zg)meZIQ3z*6oek`Z? zI+bKHk>qnN$is9{{1`tJG^VQ|7FGikcD>Y&&G_n79M#86mGewjGW=3W@O`b1rPfB( zdwgcHbMNC%8GrB{#K`C8?d^LEOjGVvfzxD~>Oob9nh1 zk&MAN4c<}PTM4Z7tYAtoujeTZht&G}y!`WT_OAY7>--PK z?tj9>#0N~w_;C+%^nbTt2$%YqTR62zep+(F6nAybPOoXM{z_}(5WRaqI9p=;!#gN% zzQtEY5&e0B-t~;|C;VSo=!p)@)hy2QbWZg?Z>IHjY0zHk0=rTJDQaSRmc;vl3!`8@( zt&zgr$l)~NIGa()^9has;Wd@$#=rWDk`oYo^g!aa@fk z-d31US0%FI!P5*fr)x473o=_?QUfoAq32f9@lBQb(X{Ay3eQ><+e!iZYL2;Xjj47G r%SsXNRt(o>0{cc9|8@e)T7l@H%+{fXe@A9@ select.options[select.selectedIndex]; +const getCookie = key => (document.cookie.split("; ").findLast(c => c.startsWith(key)) ?? "=").split("=").reverse()[0]; +const setCookie = (key, value) => (document.cookie = `${key}=${value}; path=/; SameSite=Strict;`); + +function localize() { + let currentLang = getCookie("lang"); + if (!currentLang) { + setCookie("lang", LANGUAGES[0]); + currentLang = LANGUAGES[0]; + } + let langIndex = LANGUAGES.indexOf(currentLang) ?? 0; + document.getElementById("lang").selectedIndex = langIndex; + [...document.querySelectorAll("[lang]")].forEach( + elem => (elem.hidden = elem.lang != currentLang && !elem.classList.contains("no-localize")), + ); +} + +function setLocale(language) { + setCookie("lang", language); + localize(); +} diff --git a/src/assets/main.css b/src/assets/main.css new file mode 100644 index 0000000..3c1a27d --- /dev/null +++ b/src/assets/main.css @@ -0,0 +1,209 @@ +@media (prefers-color-scheme: light) { + :root { + --primary: white; + --secondary: white; + --border: grey; + --font-color: black; + --font-inverted: white; + --link-color: blue; + } +} + +@media (prefers-color-scheme: dark) { + :root { + --primary: #202020; + --secondary: #2b2b2b; + --border: darkgrey; + --font-color: white; + --font-inverted: black; + --link-color: tomato; + } +} + +html { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; + background-color: var(--primary); + box-sizing: border-box; +} + +@media (max-width: 899px) { + html { + font-size: 0.8rem; + } +} + +html * { + color: var(--font-color); + box-sizing: inherit; + margin: 0px; + padding: 0px; +} + +body { + display: flex; + flex-direction: column; + height: 100vh; +} + +body > * { + padding: 0 2%; +} + +@media (min-width: 900px) { + body > * { + padding: 0 15%; + } +} + +header { + text-align: center; +} + +main { + display: flex; + flex-direction: column; + margin-bottom: 5rem; +} + +footer { + display: flex; + justify-content: space-between; + + margin-top: auto; +} + +hr { + color: var(--border); + margin-top: 0.12rem; + margin-bottom: 0.3rem; +} + +span { + display: flex; + flex-flow: row nowrap; + justify-content: center; + align-items: center; + gap: 0.5rem; +} + +nav { + display: flex; + flex-flow: row nowrap; + justify-content: space-between; + align-items: center; +} + +nav div { + display: flex; + flex-flow: row nowrap; + justify-content: space-between; + align-items: center; + gap: 1rem; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-top: 1rem; + margin-bottom: 1.2rem; + + overflow-wrap: break-word; + word-wrap: break-word; + + line-height: 1.1; + font-weight: bold; +} + +p { + margin-top: 0rem; + margin-bottom: 1rem; +} + +a { + padding-right: 0px; + font-family: monospace; + text-decoration: underline solid var(--link-color) 10%; + text-underline-offset: 3.8px; +} +a:hover { + background-color: var(--link-color); + color: var(--font-inverted); +} + +ul { + padding-left: 1.4em; + margin-top: 0px; + margin-bottom: 2.5rem; +} + +li { + white-space: nowrap; + margin-bottom: 0.4em; +} + +table { + overflow-x: auto; + text-align: center; + width: 100%; + height: 100%; + border: 0.15rem solid var(--border); + border-radius: 0.5rem; + border-spacing: 0px; + overflow: scroll; + + background-color: var(--primary); +} + +table tbody, +table thead { + width: 100%; +} + +td, +th { + border-bottom: 1px dotted var(--border); + text-overflow: ellipsis; + padding: 0.4rem; + font-size: 0.9rem; +} + +th { + border-bottom: 1px solid var(--border); +} + +thead, +tbody { + margin: 0; + padding: 0; +} + +label { + display: inline-block; + user-select: none; + text-align: right; +} + +input { + width: auto; + color: black; +} + +select { + background-color: white; + border: 1px solid #777; + padding: 0.25em; + width: 100%; + color: black; +} + +select option { + overflow: hidden; + color: black; +} + +[hidden] { + display: none; +} diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..3ee0f38 --- /dev/null +++ b/src/index.html @@ -0,0 +1,69 @@ + + + + + + + Home | Frederik Palmø + + + + + + + + + + + + + + +
+ +
+

main content goes here

+
+ + + + diff --git a/src/projects.html b/src/projects.html new file mode 100644 index 0000000..de3a88c --- /dev/null +++ b/src/projects.html @@ -0,0 +1,67 @@ + + + + + + + Projects | Frederik Palmø + + + + + + + + + + + + + + +
+

Projects

+

Projekter

+
+ +
+

main content goes here

+
+ + + +