diff --git a/src/App.vue b/src/App.vue index ba4f923..de635b1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,14 +8,13 @@ import PlaygroundView from '@/components/PlaygroundView.vue' const routes: { [index: string]: Component } = { '/': HomeView, - play: PlaygroundView, + '/play': PlaygroundView, } const currentPath = ref(window.location.hash) window.addEventListener('hashchange', () => { currentPath.value = window.location.hash - console.log(currentPath.value) }) diff --git a/src/assets/main.css b/src/assets/main.css index 87e175d..8ec87e6 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,21 +1,30 @@ +:root { + --bg-color: #141414; + --fg-color: #ff00ff; + --fg-color-header: #00ffff; + --fg-color-link: #ffff40; + --fg-color-link-visited: #ff8040; +} + html, body { - font-family: monospace; - background: black; - color: #ff00ff; + font-family: 'Courier New', monospace; + background: var(--bg-color); + color: var(--fg-color); font-size: 12pt; margin: auto; padding: 0.5em; } -input, button { - font: inherit; + font-family: 'Courier New', monospace; + margin: 0.5em 0; + padding: 0.5em 0.75em; } progress::-webkit-progress-bar, progress::-moz-progress-bar { - background: #ff00ff; + background: var(--fg-color); } h1, @@ -24,13 +33,26 @@ h3, h4, h5, h6 { - color: #00ffff; + margin: 0 0 0.25em; + color: var(--fg-color-header); } a { - color: #4040ff; + color: var(--fg-color-link); } a:visited { - color: #ff4040; + color: var(--fg-color-link-visited); +} + +section { + margin-top: 2em; +} + +section h2, +h3, +h4, +h5, +h6 { + border-bottom: 2px solid color(from var(--fg-color-header) srgb r g b / 30%); } diff --git a/src/components/BlinkingText.vue b/src/components/BlinkingText.vue index ce7dc8c..01b7c96 100644 --- a/src/components/BlinkingText.vue +++ b/src/components/BlinkingText.vue @@ -1,20 +1,20 @@ diff --git a/src/components/DiskReader.vue b/src/components/DiskReader.vue index c9f7328..523b455 100644 --- a/src/components/DiskReader.vue +++ b/src/components/DiskReader.vue @@ -1,12 +1,22 @@ - + diff --git a/src/components/HexDump.vue b/src/components/HexDump.vue index c25e968..8c483e7 100644 --- a/src/components/HexDump.vue +++ b/src/components/HexDump.vue @@ -10,6 +10,10 @@ const hexDump = computed(() => { let offset = 0 const total = buffer.byteLength + if (total === 0) { + return ''.padEnd(80, ' ') + } + while (offset < total) { const values = [offset.toString(16).padStart(8, '0')] const asciiValues: string[] = [] @@ -77,6 +81,7 @@ pre { height: 20rem; max-height: 20rem; background: rgba(255, 255, 255, 0.15); + color: #c0c0c0; border: 1px solid rgba(255, 255, 255, 0.3); } diff --git a/src/components/HomeView.vue b/src/components/HomeView.vue index 5474a6b..fa2cb70 100644 --- a/src/components/HomeView.vue +++ b/src/components/HomeView.vue @@ -3,15 +3,29 @@ - + diff --git a/src/components/NotFoundView.vue b/src/components/NotFoundView.vue index fc55fec..c19c1d1 100644 --- a/src/components/NotFoundView.vue +++ b/src/components/NotFoundView.vue @@ -2,7 +2,7 @@