commit eb5b5f883b0ba7aa1e43d50a01de5152c51027b2 Author: vodofrede Date: Mon Nov 14 17:44:28 2022 +0100 init commit 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 0000000..726ad43 Binary files /dev/null and b/src/assets/favicon.ico differ diff --git a/src/assets/localization.js b/src/assets/localization.js new file mode 100644 index 0000000..24bb76f --- /dev/null +++ b/src/assets/localization.js @@ -0,0 +1,23 @@ +const LANGUAGES = ["en-gb", "da-dk"]; + +const selected = select => 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

+
+ + + +