From 23d392c2f7a744d38a369f8bc91cfd0f215f82b0 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 29 Mar 2019 22:09:16 +0900 Subject: Working on the design --- gerboweb/static/style.css | 241 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 241 insertions(+) create mode 100644 gerboweb/static/style.css (limited to 'gerboweb/static') diff --git a/gerboweb/static/style.css b/gerboweb/static/style.css new file mode 100644 index 0000000..975c7f2 --- /dev/null +++ b/gerboweb/static/style.css @@ -0,0 +1,241 @@ + +:root { + --c-blue1: #19aeff; + --c-blue2: #0084c8; + --c-blue3: #005c94; + --c-red1: #ff4141; + --c-red2: #dc0000; + --c-red3: #b50000; + --c-orange1: #ffff3e; + --c-orange2: #ff9900; + --c-orange3: #ff6600; + --c-brown1: #ffc022; + --c-brown2: #b88100; + --c-brown3: #804d00; + --c-green1: #ccff42; + --c-green2: #9ade00; + --c-green3: #009100; + --c-purple1: #f1caff; + --c-purple2: #d76cff; + --c-purple3: #ba00ff; + --c-metallic1: #bdcdd4; + --c-metallic2: #9eabb0; + --c-metallic3: #364e59; + --c-metallic4: #0e232e; + --c-grey1: #ffffff; + --c-grey2: #cccccc; + --c-grey3: #999999; + --c-grey4: #666666; + --c-grey5: #2d2d2d; + + --cg1: #003018; + --cg2: #006130; + --cg3: #00964a; + --cg4: #00d167; + --cg5: #4cffa4; + --cg6: #b7ffda; + --cg7: #e1fff0; +} + +body { + font-family: 'Helvetica', 'Arial', sans-serif; + color: var(--c-metallic4); + display: flex; + flex-direction: row; + justify-content: center; + margin: 0; + background-color: hsl(10 10% 97%); +} + +.layout-container { + flex-basis: 55em; + flex-shrink: 1; + flex-grow: 0; + padding: 3em; + background-color: white; +} + +div.flash-success { + background-color: var(--c-green1); + color: hsl(80 20% 20%); + text-shadow: 0 0 2px var(--c-green1); + border-radius: 5px; + margin: 1em; + padding-left: 3em; + padding-right: 3em; + padding-top: 2em; + padding-bottom: 2em; +} + +div.flash-success::before { + content: "Success!"; + display: block; + font-weight: bold; + font-size: 16pt; + margin-right: 1em; + margin-bottom: 0.5em; +} + +div.desc { + margin-top: 5em; + margin-bottom: 7em; +} + +div.loading-message { + text-align: center; + margin-top: 2em; +} + +.steps { + display: flex; + flex-direction: column; +} + +.step { + display: flex; + flex-direction: row; + align-items: flex-start; + justify-content: center; + flex-wrap: wrap; + width: 100%; + padding-top: 20px; +} + +.step > .description { + flex-basis: 20em; + flex-shrink: 0; + flex-grow: 0; + margin-left: 20px; + + overflow-wrap: break-word; + word-wrap: break-word; + hyphens: auto; + text-align: justify; +} + +.step > .description > h2 { + text-align: right; + margin-top: 0 +} + +.step > .controls { + flex-grow: 1; + flex-shrink: 1; + display: flex; + flex-direction: column; + align-items: stretch; + margin-right: 20px; + margin-left: 20px; + + padding: 1em; + + background-color: hsl(210 40% 97%); + border-radius: 5px; +} + +input.reset-button { + background-color: var(--c-red1); + color: var(--c-grey1); + text-shadow: 0 0 2px var(--c-red3); + border: 0; + border-radius: 5px; + padding: 0.5em 1em 0.5em 1em; +} + +input.submit-button { + background-color: var(--c-green2); + color: hsl(80 20% 20%); + text-shadow: 0 0 2px var(--c-green1); + font-weight: bold; + margin-left: 1em; + border: 0; + border-radius: 5px; + padding: 0.5em 1em 0.5em 1em; +} + +.controls > .form-controls { + margin-bottom: 1em; +} + +.controls > .submit-buttons { + margin-top: 1em; + text-align: right; +} + +.controls > .download-controls { + padding: 1em; + margin-bottom: 1em; + display: flex; + flex-direction: column; + align-items: center; +} + +a.output-download:link, a.output-download:hover, a.output-download:visited, a.output-download:active { + font-size: 30pt; + font-weight: bold; + color: var(--c-metallic4); + text-shadow: 0.5px 0.5px 0.5px var(--c-metallic2); +} + +.preview-images { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: flex-start; + justify-content: space-around; +} + +.preview { + width: 200px; + height: 200px; + border-radius: 5px; + display: flex; + justify-content: center; + align-items: center; +} + +a.overlay:link, a.overlay:hover, a.overlay:visited, a.overlay:active { + text-align: center; + font-size: 30pt; + font-weight: bold; + color: var(--c-metallic4); + text-shadow: 0.5px 0.5px 0.5px var(--c-metallic2); +} + +/* Spinner from https://loading.io/css/ */ +.lds-ring { + display: inline-block; + position: relative; + width: 64px; + height: 64px; +} +.lds-ring div { + box-sizing: border-box; + display: block; + position: absolute; + width: 51px; + height: 51px; + margin: 6px; + border: 6px solid var(--c-metallic4); + border-radius: 50%; + animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; + border-color: var(--c-metallic4) transparent transparent transparent; +} +.lds-ring div:nth-child(1) { + animation-delay: -0.45s; +} +.lds-ring div:nth-child(2) { + animation-delay: -0.3s; +} +.lds-ring div:nth-child(3) { + animation-delay: -0.15s; +} +@keyframes lds-ring { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} + -- cgit From 6b4eac36d6ff46881b26a36556a07280ccd69783 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 30 Mar 2019 04:01:03 +0900 Subject: gerboweb: Initial design revision --- gerboweb/static/bg.jpg | Bin 0 -> 331765 bytes gerboweb/static/bg10.jpg | Bin 0 -> 177533 bytes gerboweb/static/sample1.jpg | Bin 0 -> 299841 bytes gerboweb/static/sample2.jpg | Bin 0 -> 251440 bytes gerboweb/static/sample3.jpg | Bin 0 -> 171160 bytes gerboweb/static/style.css | 149 ++++++++++++++++++++++++++++++++++++-------- 6 files changed, 124 insertions(+), 25 deletions(-) create mode 100644 gerboweb/static/bg.jpg create mode 100644 gerboweb/static/bg10.jpg create mode 100644 gerboweb/static/sample1.jpg create mode 100644 gerboweb/static/sample2.jpg create mode 100644 gerboweb/static/sample3.jpg (limited to 'gerboweb/static') diff --git a/gerboweb/static/bg.jpg b/gerboweb/static/bg.jpg new file mode 100644 index 0000000..94856fc Binary files /dev/null and b/gerboweb/static/bg.jpg differ diff --git a/gerboweb/static/bg10.jpg b/gerboweb/static/bg10.jpg new file mode 100644 index 0000000..9d14fd3 Binary files /dev/null and b/gerboweb/static/bg10.jpg differ diff --git a/gerboweb/static/sample1.jpg b/gerboweb/static/sample1.jpg new file mode 100644 index 0000000..948da6f Binary files /dev/null and b/gerboweb/static/sample1.jpg differ diff --git a/gerboweb/static/sample2.jpg b/gerboweb/static/sample2.jpg new file mode 100644 index 0000000..ef47bd4 Binary files /dev/null and b/gerboweb/static/sample2.jpg differ diff --git a/gerboweb/static/sample3.jpg b/gerboweb/static/sample3.jpg new file mode 100644 index 0000000..780c080 Binary files /dev/null and b/gerboweb/static/sample3.jpg differ diff --git a/gerboweb/static/style.css b/gerboweb/static/style.css index 975c7f2..ede89d4 100644 --- a/gerboweb/static/style.css +++ b/gerboweb/static/style.css @@ -35,30 +35,61 @@ --cg5: #4cffa4; --cg6: #b7ffda; --cg7: #e1fff0; + + --cr1: #300900; + --cr2: #611200; + --cr3: #961c00; + --cr4: #d12700; + --cr5: #ff6e4c; + --cr6: #ffc5b7; + --cr7: #ffe7e1; + + --cb1: #001b30; + --cb2: #003761; + --cb3: #005596; + --cb4: #0076d1; + --cb5: #4cb1ff; + --cb6: #b7e0ff; + --cb7: #e1f2ff; + --cb8: #f5fbff; } body { font-family: 'Helvetica', 'Arial', sans-serif; - color: var(--c-metallic4); + color: var(--cb1); display: flex; flex-direction: row; justify-content: center; margin: 0; - background-color: hsl(10 10% 97%); + background-color: var(--cb8); } .layout-container { flex-basis: 55em; flex-shrink: 1; flex-grow: 0; - padding: 3em; + padding: 45px; background-color: white; } +div.header { + background-image: url("/static/bg10.jpg"); + background-position: center; + background-size: cover; + background-repeat: no-repeat; + display: flex; + margin-left: -45px; + margin-right: -45px; + margin-bottom: 3em; + padding-left: 3em; + padding-right: 3em; + text-shadow: 1px 1px 1px black; +} + div.flash-success { - background-color: var(--c-green1); - color: hsl(80 20% 20%); - text-shadow: 0 0 2px var(--c-green1); + background-color: var(--cg6); + color: var(--cg1); + text-shadow: 0 0 2px var(--cg7); border-radius: 5px; margin: 1em; padding-left: 3em; @@ -79,6 +110,13 @@ div.flash-success::before { div.desc { margin-top: 5em; margin-bottom: 7em; + + overflow-wrap: break-word; + word-wrap: break-word; + hyphens: auto; + text-align: justify; + + color: white; } div.loading-message { @@ -89,6 +127,7 @@ div.loading-message { .steps { display: flex; flex-direction: column; + counter-reset: step; } .step { @@ -99,6 +138,29 @@ div.loading-message { flex-wrap: wrap; width: 100%; padding-top: 20px; + position: relative; + margin-bottom: 1em; + margin-top: 2em; +} + +.step > .description::before { + counter-increment: step; + content: counter(step); + + font-weight: 700; + font-size: 30px; + text-align: center; + border-radius: 50%; + background-color: var(--cg5); + + display: block; + position: absolute; + top: 15px; + left: 0; + width: 60px; + + line-height: 50px; + padding-top: 10px; } .step > .description { @@ -115,7 +177,9 @@ div.loading-message { .step > .description > h2 { text-align: right; - margin-top: 0 + margin-top: 0; + padding-left: 60px; + height: 60px; } .step > .controls { @@ -124,28 +188,28 @@ div.loading-message { display: flex; flex-direction: column; align-items: stretch; - margin-right: 20px; - margin-left: 20px; + margin-right: 1em; + margin-left: 1em; padding: 1em; - background-color: hsl(210 40% 97%); + background-color: var(--cb8); border-radius: 5px; } input.reset-button { - background-color: var(--c-red1); - color: var(--c-grey1); - text-shadow: 0 0 2px var(--c-red3); + background-color: var(--cr4); + color: white; + text-shadow: 0 0 2px var(--cr1); border: 0; border-radius: 5px; padding: 0.5em 1em 0.5em 1em; } input.submit-button { - background-color: var(--c-green2); - color: hsl(80 20% 20%); - text-shadow: 0 0 2px var(--c-green1); + background-color: var(--cg4); + color: var(--cg1); + text-shadow: 0 0 2px var(--cg7); font-weight: bold; margin-left: 1em; border: 0; @@ -173,8 +237,8 @@ input.submit-button { a.output-download:link, a.output-download:hover, a.output-download:visited, a.output-download:active { font-size: 30pt; font-weight: bold; - color: var(--c-metallic4); - text-shadow: 0.5px 0.5px 0.5px var(--c-metallic2); + color: var(--cb1); + text-shadow: 0.5px 0.5px 0.5px var(--cb6); } .preview-images { @@ -185,21 +249,56 @@ a.output-download:link, a.output-download:hover, a.output-download:visited, a.ou justify-content: space-around; } -.preview { +a.preview:link, a.preview:hover, a.preview:visited, a.preview:active { + text-decoration: none; width: 200px; height: 200px; border-radius: 5px; + margin: 1em; display: flex; justify-content: center; align-items: center; + background-color: var(--cb3); + background-blend-mode: multiply; + background-size: contain; + background-repeat: no-repeat; + background-position: 50% 50%; + box-shadow: 1px 1px 5px 1px #001b304d; } -a.overlay:link, a.overlay:hover, a.overlay:visited, a.overlay:active { +.overlay { text-align: center; - font-size: 30pt; + font-size: 50pt; font-weight: bold; - color: var(--c-metallic4); - text-shadow: 0.5px 0.5px 0.5px var(--c-metallic2); + color: var(--cg4); + mix-blend-mode: screen; +} + +.sample-images { + text-align: center; +} + +.sample-images > h1 { + color: white; + padding-top: 5px; + line-height: 70px; + /* background-image: linear-gradient(to top right, var(--cg5), var(--cg6)); */ + + background-image: url("/static/bg10.jpg"); + background-position: center; + background-size: cover; + background-repeat: no-repeat; + + margin-left: -45px; + margin-right: -45px; + margin-top: 3em; + text-shadow: 1px 1px 1px black; +} + +.sample-images > img { + width: 300px; + height: 300px; + margin: 1em; } /* Spinner from https://loading.io/css/ */ @@ -216,10 +315,10 @@ a.overlay:link, a.overlay:hover, a.overlay:visited, a.overlay:active { width: 51px; height: 51px; margin: 6px; - border: 6px solid var(--c-metallic4); + border: 6px solid var(--cb1); border-radius: 50%; animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; - border-color: var(--c-metallic4) transparent transparent transparent; + border-color: var(--cb1) transparent transparent transparent; } .lds-ring div:nth-child(1) { animation-delay: -0.45s; -- cgit From 6ece0619029687f0c63f4d1423e64733ba7d93aa Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 31 Mar 2019 04:08:39 +0900 Subject: gerboweb: Fixup playbook to run from fresh install --- gerboweb/static/style.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gerboweb/static') diff --git a/gerboweb/static/style.css b/gerboweb/static/style.css index ede89d4..eb926dc 100644 --- a/gerboweb/static/style.css +++ b/gerboweb/static/style.css @@ -159,8 +159,7 @@ div.loading-message { left: 0; width: 60px; - line-height: 50px; - padding-top: 10px; + line-height: 60px; } .step > .description { -- cgit From bd146dd1636116680f7d9a4e1a85adc3d803a7c5 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 31 Mar 2019 21:52:12 +0900 Subject: gerboweb: Add favicon --- gerboweb/static/favicon-1024.png | Bin 0 -> 555502 bytes gerboweb/static/favicon-128.png | Bin 0 -> 30221 bytes gerboweb/static/favicon-16.png | Bin 0 -> 1040 bytes gerboweb/static/favicon-256.png | Bin 0 -> 87765 bytes gerboweb/static/favicon-32.png | Bin 0 -> 2945 bytes gerboweb/static/favicon-48.png | Bin 0 -> 5850 bytes gerboweb/static/favicon-512.png | Bin 0 -> 243219 bytes gerboweb/static/favicon-64.png | Bin 0 -> 9566 bytes gerboweb/static/favicon.png | Bin 0 -> 549230 bytes 9 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 gerboweb/static/favicon-1024.png create mode 100644 gerboweb/static/favicon-128.png create mode 100644 gerboweb/static/favicon-16.png create mode 100644 gerboweb/static/favicon-256.png create mode 100644 gerboweb/static/favicon-32.png create mode 100644 gerboweb/static/favicon-48.png create mode 100644 gerboweb/static/favicon-512.png create mode 100644 gerboweb/static/favicon-64.png create mode 100644 gerboweb/static/favicon.png (limited to 'gerboweb/static') diff --git a/gerboweb/static/favicon-1024.png b/gerboweb/static/favicon-1024.png new file mode 100644 index 0000000..ed33689 Binary files /dev/null and b/gerboweb/static/favicon-1024.png differ diff --git a/gerboweb/static/favicon-128.png b/gerboweb/static/favicon-128.png new file mode 100644 index 0000000..8bdefac Binary files /dev/null and b/gerboweb/static/favicon-128.png differ diff --git a/gerboweb/static/favicon-16.png b/gerboweb/static/favicon-16.png new file mode 100644 index 0000000..4164370 Binary files /dev/null and b/gerboweb/static/favicon-16.png differ diff --git a/gerboweb/static/favicon-256.png b/gerboweb/static/favicon-256.png new file mode 100644 index 0000000..364a3bb Binary files /dev/null and b/gerboweb/static/favicon-256.png differ diff --git a/gerboweb/static/favicon-32.png b/gerboweb/static/favicon-32.png new file mode 100644 index 0000000..f46cf2b Binary files /dev/null and b/gerboweb/static/favicon-32.png differ diff --git a/gerboweb/static/favicon-48.png b/gerboweb/static/favicon-48.png new file mode 100644 index 0000000..c9a8c19 Binary files /dev/null and b/gerboweb/static/favicon-48.png differ diff --git a/gerboweb/static/favicon-512.png b/gerboweb/static/favicon-512.png new file mode 100644 index 0000000..10b2234 Binary files /dev/null and b/gerboweb/static/favicon-512.png differ diff --git a/gerboweb/static/favicon-64.png b/gerboweb/static/favicon-64.png new file mode 100644 index 0000000..76279e2 Binary files /dev/null and b/gerboweb/static/favicon-64.png differ diff --git a/gerboweb/static/favicon.png b/gerboweb/static/favicon.png new file mode 100644 index 0000000..a22a3a7 Binary files /dev/null and b/gerboweb/static/favicon.png differ -- cgit