diff --git a/src/run-web.html b/src/run-web.html new file mode 100644 index 0000000..7d86e72 --- /dev/null +++ b/src/run-web.html @@ -0,0 +1 @@ +uw8-run
\ No newline at end of file diff --git a/web/build-run-web b/web/build-run-web new file mode 100755 index 0000000..cc0cc6d --- /dev/null +++ b/web/build-run-web @@ -0,0 +1,2 @@ +#!/bin/bash +rm -rf .parcel-cache && yarn parcel build src/run-web.html && cp dist/run-web.html ../src/ diff --git a/web/src/run-web.css b/web/src/run-web.css new file mode 100644 index 0000000..ca6d48e --- /dev/null +++ b/web/src/run-web.css @@ -0,0 +1,46 @@ +html, body, canvas { + padding: 0; + margin: 0; + background-color: #202024; +} + +html { + height: 100%; +} + +body { + height: 100%; + display: grid; + grid-template-rows: 1fr; +} + +#screen { + align-self: center; + justify-self: center; + image-rendering: pixelated; + border: 4px solid #303040; +} + +#message { + position: absolute; + width: calc(100% - 16px); + background-color: rgba(0, 0, 0, 0.4); + color: #c64; + padding: 8px; + font: bold 12pt sans-serif; + z-index: 2; +} + +@media (min-width: 648px) and (min-height: 488px) { + #screen { + width: 640px; + height: 480px; + } +} + +@media (min-width: 968px) and (min-height: 728px) { + #screen { + width: 960px; + height: 720px; + } +} diff --git a/web/src/run-web.html b/web/src/run-web.html index 666cf0e..9799736 100644 --- a/web/src/run-web.html +++ b/web/src/run-web.html @@ -3,10 +3,14 @@ uw8-run + - + +