diff --git a/css/app.css b/css/app.css index 02802f4..beeffa2 100644 --- a/css/app.css +++ b/css/app.css @@ -37,3 +37,54 @@ .font-ubuntu { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Ubuntu", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; } + +.grid-container { + display: grid; + grid-template-columns: 1fr; + grid-template-rows: 1fr; + gap: 2em 2em; + grid-auto-flow: row; + grid-template-areas: + "wrapper"; +} + +.wrapper { + display: grid; + grid-template-columns: 1fr; + grid-template-rows: repeat(3, 1fr); + gap: 2em 2em; + grid-auto-flow: row; + grid-template-areas: + "grid-header" + "grid-main" + "grid-footer"; + grid-area: wrapper; +} + +.grid-header { + grid-area: grid-header; +} + +.grid-main { + display: grid; + grid-template-columns: 30% 1fr; + grid-template-rows: 1fr; + gap: 2em 2em; + grid-auto-flow: row; + grid-template-areas: + "input-container output-wrapper"; + grid-area: grid-main; +} + +.input-container { + grid-area: input-container; +} + +.output-wrapper { + grid-area: output-wrapper; +} + +.grid-footer { + grid-area: grid-footer; +} + diff --git a/index.php b/index.php index ec8c09e..3543738 100644 --- a/index.php +++ b/index.php @@ -62,49 +62,8 @@ require_once "env.php"; -
-
Copied!
-
Failed to copy
-
-

Batch Color Converter

-

Click a particular cell in the table with HSL, RGB, or hex to copy that value.

- - - -
-
- -
-
- - - - - - - - - - - - - - - - - - -
PreviewHex(a)RGB(a)HSL(a)
Error with {{ color.raw }} -
-
{{ color.hex }}
{{ color.rgb }}
{{ color.hsl }}
-
-
-
-
-
- You can take a look at this terrible code over on my git server. -
+ + - diff --git a/js/app.js b/js/app.js index 59597ad..51d316a 100644 --- a/js/app.js +++ b/js/app.js @@ -1,5 +1,5 @@ const clipboard = navigator.clipboard; - +// TODO: review convertion methods let app = new Vue({ el: '#app',