Skip to content

Commit

Permalink
reorganizing directory; adding theme colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nrchtct committed Dec 18, 2023
1 parent 5b81fae commit 64c01d9
Show file tree
Hide file tree
Showing 104 changed files with 156 additions and 152 deletions.
174 changes: 87 additions & 87 deletions data.md → assets/data.md

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
29 changes: 29 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@font-face {
font-family: hkgrotesk;
src: url("./fonts/hkgrotesk-bold.woff") format("woff");
font-weight: bold;
}

@font-face {
font-family: hkgrotesk;
src: url("./fonts/hkgrotesk-regular.woff") format("woff");
font-weight: normal;
}

@font-face {
font-family: hkgrotesk;
src: url("./fonts/hkgrotesk-italic.woff") format("woff");
font-style: italic;
}

@font-face {
font-family: hkgrotesk;
src: url("./fonts/hkgrotesk-bolditalic.woff") format("woff");
font-style: italic;
font-weight: bold;
}

body {
font-family: hkgrotesk, sans-serif;
--theme-color: hsl(150, 50%, 50%);
}
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no" />


<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="burger.css">
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="src/style.css">
<!-- d3.js for parsing, structuring and displaying the data -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.5/d3.min.js"></script>
<!-- Marked for parsing the markdown -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- link-preview-js for getting the social graph previews -->
<!-- all scripts -->
<script src="js/scrolling.js"></script>
<script src="js/navigation.js"></script>
<script src="js/links.js"></script>
<script src="js/data.js"></script>

<script src="src/scrolling.js"></script>
<script src="src/navigation.js"></script>
<script src="src/links.js"></script>
<script src="src/data.js"></script>

<!-- adjust below fields for open graph previews -->
<title>Organigrams for/from the future</title>
<meta property="og:url" content="https://infovis.fh-potsdam.de/organigrams/">
<meta property="og:title" content="Organigrams for/from the future">
<meta property="og:description" content="Experimental design course on the visualization of organizational structures utilizing narration and exploration to encourage reflection and imagination about work and the economy. The course was held as a nomadic seminar at multiple locations in Berlin and Potsdam during the summer of 2023.">
<meta property="og:image" content="https://infovis.fh-potsdam.de/organigrams/assets/cover.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">


</head>

<body>
Expand Down Expand Up @@ -77,7 +77,7 @@
}
}
setFontSize();
fetch('data.md')
fetch('assets/data.md')
.then(data => data.text())
.then(text => {
let data = []
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions js/links.js → src/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function updateLinks(currentSession, cursorProgress, cursorDimensions) {
return currentSession.items
}
function drawLinks(items) {

let dpr = window.devicePixelRatio || 1;
let canvas = document.getElementById('links');
if (!canvas.getContext) return;
Expand All @@ -28,8 +27,8 @@ function drawLinks(items) {
ctx.scale(dpr, dpr);
ctx.clearRect(0, 0, w, h);

let root = getComputedStyle(document.body);
let lineColor = root.getPropertyValue('--background-content').trim();
let root = window.getComputedStyle(document.body);
let lineColor = root.getPropertyValue('--theme-color').trim();
ctx.strokeStyle = lineColor;

items.map(item => {
Expand Down
File renamed without changes.
File renamed without changes.
80 changes: 28 additions & 52 deletions style.css → src/style.css
Original file line number Diff line number Diff line change
@@ -1,51 +1,43 @@
@font-face {
font-family: hkgrotesk;
src: url("fonts/hkgrotesk-bold.woff") format("woff");
font-weight: bold;
}

@font-face {
font-family: hkgrotesk;
src: url("fonts/hkgrotesk-regular.woff") format("woff");
font-weight: normal;
}

@font-face {
font-family: hkgrotesk;
src: url("fonts/hkgrotesk-italic.woff") format("woff");
font-style: italic;
}

@font-face {
font-family: hkgrotesk;
src: url("fonts/hkgrotesk-bolditalic.woff") format("woff");
font-style: italic;
font-weight: bold;
}
/* Global styles*/
html {
scroll-behavior: smooth;
}
body {
touch-action: pan-x pan-y;
--background-menu: hsl(0, 0%, 100%);
--background: hsl(0, 0%, 94%);
--background-cursor: hsl(0, 0%, 88%);
--background-content: hsl(0, 0%, 82%);
--gray:hsl(0, 0%, 30%);
--primary: #000;
touch-action: pan-x pan-y;
--background-menu: color-mix(in srgb, var(--theme-color) 10%, hsl(0, 0%, 100%));
--background: color-mix(in srgb, var(--theme-color) 10%, hsl(0, 0%, 94%));
--background-cursor: color-mix(in srgb, var(--theme-color) 10%, hsl(0, 0%, 88%));
--background-content: color-mix(in srgb, var(--theme-color) 10%, hsl(0, 0%, 82%));
--font: #000;
--font-inverted: #fff;
--link: color-mix(in srgb, var(--theme-color) 60%, var(--font));;

margin: 0;
overflow-x: hidden;
font-family: hkgrotesk, sans-serif;
background-color: var(--background);
color: var(--font);
}

@media (prefers-color-scheme: dark) {
body, body.overlay{
--background-menu: color-mix(in srgb, var(--theme-color) 10%, hsl(0, 0%, 0%));
--background: color-mix(in srgb, var(--theme-color) 10%, hsl(0, 0%, 6%));
--background-cursor: color-mix(in srgb, var(--theme-color) 10%, hsl(0, 0%, 12%));
--background-content: color-mix(in srgb, var(--theme-color) 10%, hsl(0, 0%, 18%));
--font: #fff;
--font-inverted: #000;
--link: color-mix(in srgb, var(--theme-color) 60%, var(--font));;

}
footer img {
filter: invert(100%);
}
}


*::selection {
color: var(--background-menu);
background-color: var(--font);
color: var(--font-inverted);
background-color: var(--theme-color);
opacity: 1;
}

Expand Down Expand Up @@ -206,15 +198,15 @@ p {
a {
text-decoration:underline;
line-height: 0.1em;
color: var(--gray);
color: var(--link);
}
a:hover {
color: var(--font);
}

a[href^="#"] {
text-decoration: none;
border-bottom: .075em dashed var(--primary);
border-bottom: .075em dashed var(--link);
}
.left{
left: 5vw;
Expand Down Expand Up @@ -346,22 +338,6 @@ footer a:hover img, footer a:active img {
margin-right: 0;
}
}
@media (prefers-color-scheme: dark) {
body, body.overlay{
--background-menu: hsl(0, 0%, 0%);
--background: hsl(0, 0%, 6%);
--background-cursor: hsl(0, 0%, 12%);
--background-content: hsl(0, 0%, 18%);
--gray: hsl(0, 0%, 70%);
--primary: #fff;
--font: #fff;

}
footer img {
filter: invert(100%);
}

}

/* BURGER */

Expand Down

0 comments on commit 64c01d9

Please sign in to comment.