diff options
Diffstat (limited to 'frontend/site/projects/museum/app')
| -rw-r--r-- | frontend/site/projects/museum/app/revisions.js | 24 | ||||
| -rw-r--r-- | frontend/site/projects/museum/app/roadblock.css | 10 |
2 files changed, 30 insertions, 4 deletions
diff --git a/frontend/site/projects/museum/app/revisions.js b/frontend/site/projects/museum/app/revisions.js new file mode 100644 index 0000000..9aa66a7 --- /dev/null +++ b/frontend/site/projects/museum/app/revisions.js @@ -0,0 +1,24 @@ + +import { isMobile } from "app/utils" + +export default function reviseSite (graph) { + console.log(graph) + if (!isMobile) { + return graph + } + graph.pages['/last-museum/home'].tiles = ( + graph.pages['/last-museum/home'].tiles + .filter(tile => tile.type !== 'text') + ) + Object.keys(graph.pages).forEach(path => { + const page = graph.pages[path] + if (path.match("opoku")) { + page.tiles.forEach(tile => { + if (tile.type === 'image') { + tile.settings.scale /= 2 + } + }) + } + }) + return graph +} diff --git a/frontend/site/projects/museum/app/roadblock.css b/frontend/site/projects/museum/app/roadblock.css index 73102af..6b2cf40 100644 --- a/frontend/site/projects/museum/app/roadblock.css +++ b/frontend/site/projects/museum/app/roadblock.css @@ -1,15 +1,17 @@ .roadblock { - background: #111; - color: #ff790d; - position: absolute; - top: 0; left: 0; + position: fixed; + top: 0; + left: 0; width: 100vw; height: 100vh; + background: #111; + color: #ff790d; padding: 1rem 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; + z-index: 2; } .roadblock-byline { font-family: "Druk Wide"; |
