diff --git a/index.html b/index.html index fa657ea..1bcf4ab 100644 --- a/index.html +++ b/index.html @@ -7,4 +7,7 @@
+ diff --git a/src/display.js b/src/display.js index f5ec5d3..61b0c32 100644 --- a/src/display.js +++ b/src/display.js @@ -149,13 +149,6 @@ export class Display { ); target.appendChild(field) - if (state.items.filter(i => i.state != 'face-up').length == 0) { - const a = document.createElement('a') - a.className = 'continue' - a.innerText = 'fertig' - a.href = '/end' - target.appendChild(a) - } if (state.show !== null) { const data = state.items[state.show] const name = data.name @@ -173,9 +166,6 @@ export class Display { `) target.appendChild(wrapper) } - if (state.special) { - target.appendChild(modal(state.special)) - } const dd = new diffDOM.DiffDOM() const diff = dd.diff(this.target, target) diff --git a/src/index.js b/src/index.js index a03089b..cba1b79 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import {Display} from './display.js' -import {intro, outro, sources} from './texts.js' +import intro from './intro.js' const state = {items: [], show: null, links: [] } @@ -21,13 +21,6 @@ class Actions { } reset() { state.show = null - state.special = null - } - end() { - state.special = outro - } - sources() { - state.special = sources } link(from, to) { if (from == to) return false @@ -45,11 +38,9 @@ const dispatch = target => { if (target.action) { ret = actions[target.action](target.from, target.to) } else { - const match = target.match(/\/([^/]+)(?:\/([^/]+))?/) - if (match && match.length > 1 && Object.hasOwnProperty.call(Actions.prototype, match[2])) { + const match = target.match(/\/([^/]+)\/([^/]+)/) + if (match && Object.hasOwnProperty.call(Actions.prototype, match[2])) { ret = actions[match[2]](match[1]) - } else if (match&& Object.hasOwnProperty.call(Actions.prototype, match[1])) { - ret = actions[match[1]]() } else actions.reset() } display.render(state) diff --git a/src/intro.js b/src/intro.js new file mode 100644 index 0000000..3dc3c52 --- /dev/null +++ b/src/intro.js @@ -0,0 +1,7 @@ +export default `

Memory des Prekariats.

+

+Unsichere Arbeits- und Lebensverhältnisse haben viele Gesichter. In diesem Spiel ist es eure Aufgabe, ihr geteiltes Leid aufzudecken. Klickt dafür auf die Symbole und lernt die historischen und heutigen Figuren des Prekariats kennen. Durch das Zusammenziehen der Kreise entdeckt ihr, was die Vergangenheit mit der Gegenwart verknüpft. +

+

+Ein Netzwerk der Prekären entsteht. +

` diff --git a/src/texts.js b/src/texts.js deleted file mode 100644 index a874bbd..0000000 --- a/src/texts.js +++ /dev/null @@ -1,45 +0,0 @@ -export const intro = ` -

Memory des Prekariats.

-

-Unsichere Arbeits- und Lebensverhältnisse haben viele Gesichter. In diesem Spiel ist es eure Aufgabe, ihr geteiltes Leid aufzudecken. Klickt dafür auf die Symbole und lernt die historischen und heutigen Figuren des Prekariats kennen. Durch das Zusammenziehen der Kreise entdeckt ihr, was die Vergangenheit mit der Gegenwart verknüpft. -

-

-Ein Netzwerk der Prekären entsteht. -

` -export const outro = `
Aufgrund dieser Konkurrenz, die mitunter genauso rüde ist wie diejenige der Unternehmen untereinander, kommt es zu einem regelrechten Kampf aller gegen alle, der sämtliche Werte der Solidarität und Menschlichkeit zunichte macht, [...].
- -

Bourdieu, Pierre (1998): Prekarität ist überall. In: Gegenfeuer. Wortmeldungen im Dienste des Widerstands gegen die neoliberale Invasion. Konstanz.

-
-

Memory des Prekariats.

-

Ein Projekt von

Isabell von Falkenhausen
Adrian Heine
Roman Huber

-

Im Rahmen des Hackathon

Coding Precarity
der Staatsbibliothek zu Berlin

-

Quelltext: git

-

Hinweise und Textquellen

-
-` - -export const sources = `

Die im Spiel gezeigten Figuren sind keine real existierenden Personen. Ihre Geschichten basieren jedoch auf historischen Texten sowie zeitgenössischen Studien und Berichten. Im Folgenden können Sie die Textenquellen, der jeweiligen Figuren einsehen.

-
-Gretchen: 1 - -Rehka: 1 - -Wiebke: 1 - -Julius: 1, 2 - -Karlotta: 1 - -Tobias: 1, 2 - -Martin: 1, 2 - -Heinrich: 1 - -Jarosław: 1, 2 - -Gertrude: 1 - -Elena: 1 - -Hans: 1
` diff --git a/style.css b/style.css index 1a42833..5ecc453 100644 --- a/style.css +++ b/style.css @@ -13,6 +13,8 @@ body { margin: 0; font-family: "Fell"; hyphens: auto; + display: flex; + flex-direction: column; height: 100%; width: 100%; } @@ -26,6 +28,7 @@ body { position: relative; box-sizing: border-box; padding: 1em; + flex: 1; } .items { @@ -98,15 +101,13 @@ a.fullview { max-width: 75vh; background-color: #006680; padding: 1em; + color: white; border-radius: 20px; border: 5px solid #1a1c1c; box-sizing: border-box; display: flex; flex-direction: column; } -.fullview > div, .fullview a { - color: white; -} @media (max-width: 30em) { .fullview > div { padding: 0.5em; @@ -123,7 +124,7 @@ a.fullview { box-sizing: border-box; } -header, .work { +header { font-family: "Fell Sc"; } @@ -166,7 +167,6 @@ blockquote { quotes: "\201C""\201D""\2018""\2019"; /* Otherwise the :before is larger than the blockquote and creates a scrollbar in the parent */ min-height: 4em; - color: black; } blockquote:before { color: #1a1c1c66; @@ -178,38 +178,7 @@ blockquote:before { margin-top: 2.5rem; } -.continue { - position: absolute; - right: 0; - bottom: 0; - padding: 0.5rem 1rem; - font-size: 2rem; - border-radius: 20px; - margin: 0.5rem; - background: #D66C00; - border: 3px solid #1a1c1c; - display: block; - cursor: pointer; - transform: scale(1); - animation: pulse 1s infinite alternate; - text-decoration: none; - color: black; -} - -@keyframes pulse { - from { - transform: scale(0.9); - } - to { - transform: scale(1); - } -} - -.continue:hover { - background-color: #f39a3f; - animation: none; -} - -.sources a { - font-family: Fell Sc; +aside { + float: right; + padding: 1em; }