diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..4f69547 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,1100 @@ + + + + + + + diff --git a/src/App_Backup.vue b/src/App_Backup.vue new file mode 100644 index 0000000..591a031 --- /dev/null +++ b/src/App_Backup.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/src/assets/base.css b/src/assets/base.css new file mode 100644 index 0000000..8816868 --- /dev/null +++ b/src/assets/base.css @@ -0,0 +1,86 @@ +/* color palette from */ +:root { + --vt-c-white: #ffffff; + --vt-c-white-soft: #f8f8f8; + --vt-c-white-mute: #f2f2f2; + + --vt-c-black: #181818; + --vt-c-black-soft: #222222; + --vt-c-black-mute: #282828; + + --vt-c-indigo: #2c3e50; + + --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); + --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); + --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); + --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); + + --vt-c-text-light-1: var(--vt-c-indigo); + --vt-c-text-light-2: rgba(60, 60, 60, 0.66); + --vt-c-text-dark-1: var(--vt-c-white); + --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); +} + +/* semantic color variables for this project */ +:root { + --color-background: var(--vt-c-white); + --color-background-soft: var(--vt-c-white-soft); + --color-background-mute: var(--vt-c-white-mute); + + --color-border: var(--vt-c-divider-light-2); + --color-border-hover: var(--vt-c-divider-light-1); + + --color-heading: var(--vt-c-text-light-1); + --color-text: var(--vt-c-text-light-1); + + --section-gap: 160px; +} + +@media (prefers-color-scheme: dark) { + :root { + --color-background: var(--vt-c-black); + --color-background-soft: var(--vt-c-black-soft); + --color-background-mute: var(--vt-c-black-mute); + + --color-border: var(--vt-c-divider-dark-2); + --color-border-hover: var(--vt-c-divider-dark-1); + + --color-heading: var(--vt-c-text-dark-1); + --color-text: var(--vt-c-text-dark-2); + } +} + +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + font-weight: normal; +} + +body { + min-height: 100vh; + color: var(--color-text); + background: var(--color-background); + transition: + color 0.5s, + background-color 0.5s; + line-height: 1.6; + font-family: + Inter, + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + Oxygen, + Ubuntu, + Cantarell, + 'Fira Sans', + 'Droid Sans', + 'Helvetica Neue', + sans-serif; + font-size: 15px; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} diff --git a/src/assets/colors_generation.js b/src/assets/colors_generation.js new file mode 100644 index 0000000..5f0dfc8 --- /dev/null +++ b/src/assets/colors_generation.js @@ -0,0 +1,60 @@ +/* eslint-disable no-unused-vars */ + + +function generateDifferentColors(x) { + const colors = []; + const step = 360 / x; // Calculate the step size for hue + + for (let i = 0; i < x; i++) { + const hue = i * step; + const saturation = 50; // You can adjust saturation and lightness as needed + const lightness = 50; // for your desired color appearance + + // Convert HSL to RGB + const rgbColor = hslToRgb(hue / 360, saturation / 100, lightness / 100); + + // Convert RGB to HEX + const hexColor = rgbToHex(rgbColor[0], rgbColor[1], rgbColor[2]); + + colors.push(hexColor); + } + + return colors; + } + + function hslToRgb(h, s, l) { + let r, g, b; + + if (s === 0) { + r = g = b = l; // Achromatic + } else { + const hueToRgb = (p, q, t) => { + if (t < 0) t += 1; + if (t > 1) t -= 1; + if (t < 1 / 6) return p + (q - p) * 6 * t; + if (t < 1 / 2) return q; + if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6; + return p; + }; + + const q = l < 0.5 ? l * (1 + s) : l + s - l * s; + const p = 2 * l - q; + + r = hueToRgb(p, q, h + 1 / 3); + g = hueToRgb(p, q, h); + b = hueToRgb(p, q, h - 1 / 3); + } + + return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)]; + } + + function rgbToHex(r, g, b) { + return `#${(1 << 24 | r << 16 | g << 8 | b).toString(16).slice(1).toUpperCase()}`; + } + + //const numberOfColors = 10; // Change this to the number of colors you want + //const differentColors = generateDifferentColors(numberOfColors); + //console.log(differentColors); + + + module.exports = generateDifferentColors; \ No newline at end of file diff --git a/src/assets/datensatz_gold_rush_koordinaten.csv b/src/assets/datensatz_gold_rush_koordinaten.csv new file mode 100644 index 0000000..7f468fe --- /dev/null +++ b/src/assets/datensatz_gold_rush_koordinaten.csv @@ -0,0 +1,21 @@ +x;y +2;3 +3;6 +4;7 +5;6 +6;5 +9;8 +2;15 +10;17 +11;16 +12;15 +13;18 +16;3 +21;1 +18;15 +19;12 +20;14 +22;13 +22;15 +23;12 +24;14 diff --git a/src/assets/karte_gold_rush (Kopie).png b/src/assets/karte_gold_rush (Kopie).png new file mode 100644 index 0000000..b3e2e30 Binary files /dev/null and b/src/assets/karte_gold_rush (Kopie).png differ diff --git a/src/assets/karte_gold_rush.png b/src/assets/karte_gold_rush.png new file mode 100644 index 0000000..22fce85 Binary files /dev/null and b/src/assets/karte_gold_rush.png differ diff --git a/src/assets/logo.png b/src/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/src/assets/logo.png differ diff --git a/src/assets/logo.svg b/src/assets/logo.svg new file mode 100644 index 0000000..7565660 --- /dev/null +++ b/src/assets/logo.svg @@ -0,0 +1 @@ + diff --git a/src/assets/main.css b/src/assets/main.css new file mode 100644 index 0000000..e8667cd --- /dev/null +++ b/src/assets/main.css @@ -0,0 +1,35 @@ +@import './base.css'; + +#app { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + + font-weight: normal; +} + +a, +.green { + text-decoration: none; + color: hsla(160, 100%, 37%, 1); + transition: 0.4s; +} + +@media (hover: hover) { + a:hover { + background-color: hsla(160, 100%, 37%, 0.2); + } +} + +@media (min-width: 1024px) { + body { + display: flex; + place-items: center; + } + + #app { + display: grid; + grid-template-columns: 1fr 1fr; + padding: 0 2rem; + } +} diff --git a/src/assets/stadtplan_dortmund.png b/src/assets/stadtplan_dortmund.png new file mode 100644 index 0000000..328aaed Binary files /dev/null and b/src/assets/stadtplan_dortmund.png differ diff --git a/src/assets/transparent_pixel.png b/src/assets/transparent_pixel.png new file mode 100644 index 0000000..399a8b5 Binary files /dev/null and b/src/assets/transparent_pixel.png differ diff --git a/src/assets/weiss_pixel.png b/src/assets/weiss_pixel.png new file mode 100644 index 0000000..ebaa59a Binary files /dev/null and b/src/assets/weiss_pixel.png differ diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue new file mode 100644 index 0000000..879051a --- /dev/null +++ b/src/components/HelloWorld.vue @@ -0,0 +1,58 @@ + + + + + + diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..01433bc --- /dev/null +++ b/src/main.js @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './App.vue' + +createApp(App).mount('#app')