From bab9e803724a0eac680d6f30a84856d390791ea3 Mon Sep 17 00:00:00 2001 From: chimchooree Date: Wed, 13 Jul 2022 12:38:55 -0500 Subject: [PATCH] working --- src/index.py | 2 +- src/static/css/index.css | 62 ++++++++++++++++++++++++---------- src/static/img/nav/buffer.png | Bin 0 -> 143 bytes src/static/img/nav/home.png | Bin 1731 -> 323 bytes src/views/nav.tpl | 39 +++++---------------- 5 files changed, 54 insertions(+), 49 deletions(-) create mode 100644 src/static/img/nav/buffer.png diff --git a/src/index.py b/src/index.py index 5861619..f371840 100644 --- a/src/index.py +++ b/src/index.py @@ -65,4 +65,4 @@ def temp(): ## Main ## if __name__ == '__main__': - run(host='127.0.0.1', port=9001) + run(host='127.0.0.1', port=9090) diff --git a/src/static/css/index.css b/src/static/css/index.css index 6b8c510..72672fc 100755 --- a/src/static/css/index.css +++ b/src/static/css/index.css @@ -9,11 +9,22 @@ a { text-decoration: none; } +img { + height: auto; + width: 100%; +} +/*@media (min-width: 1000px) { +.nav-grid { + max-height: 1%: +} +.nav-left,.nav-right { + width: 0px; +}*/ .grid { display: grid; grid-template-columns: auto 60% auto; - grid-template-rows: 5% 15% 50% 20%; + grid-template-rows: 2% 18% 50% 20%; grid-column-gap: 0px; grid-row-gap: 0px; } @@ -45,27 +56,41 @@ a { color: #FBDAEC; } .nav-grid { - grid-area: 2 / 2 / 3 / 3; + grid-area: 2 / 2 / 3 / 3; + background-color: white; display: flex; flex-direction:row; - justify-content:flex-end; display: grid; - grid-template-columns: auto repeat(5, 1fr) auto; - grid-template-rows: 90px; - grid-column-gap: 17px; + grid-template-columns: minmax(0%,15%) repeat(5, 1fr) minmax(0%,15%); + grid-column-gap: 0px; grid-row-gap: 0px; - align-items: end; justify-items: center; } + .nav-left { + grid-area: 1 / 1 / 2 / 2; + background-color: fuchsia; + min-height: 61px;} + .nav-right { + grid-area: 1 / 7 / 2 / 8; + background-color: fuchsia; + min-height: 61px;} .nav-home { + background-color: red; grid-area: 1 / 2 / 2 / 3; - padding-bottom: 3px; - position: relative; + min-height: 61px; } - .nav-blessfrey { grid-area: 1 / 3 / 2 / 4; } - .nav-lemonland { grid-area: 1 / 4 / 2 / 5; } - .nav-diary { grid-area: 1 / 5 / 2 / 6; } - .nav-about { grid-area: 1 / 6 / 2/ 7; } + .nav-blessfrey { grid-area: 1 / 3 / 2 / 4; + background-color: yellow; + min-height: 61px;} + .nav-lemonland { grid-area: 1 / 4 / 2 / 5; + min-height: 61px; + background-color: green; } + .nav-diary { grid-area: 1 / 5 / 2 / 6; + background-color: blue; + min-height: 61px;} + .nav-about { grid-area: 1 / 6 / 2/ 7; + background-color: purple; + min-height: 61px;} .nav-link { /*position: absolute; top: 45%; @@ -86,6 +111,12 @@ a { -1px 2px 1px black, -1px 0 1px black; } +#nav-button img { + height: 100%; + width: 100%; + /*min-height: 61px; + min-width: 38px; */ +} .content-grid { grid-area: 3 / 2 / 4 / 3; @@ -114,8 +145,3 @@ a { overflow: hidden; box-shadow: 0 100vh 0 100vh black; } - -#poltics { - height: auto; - width: 100%; -} diff --git a/src/static/img/nav/buffer.png b/src/static/img/nav/buffer.png new file mode 100644 index 0000000000000000000000000000000000000000..e89fba2acbe32e1c51a356b0dd601fd46c6a8acd GIT binary patch literal 143 zcmeAS@N?(olHy`uVBq!ia0vp^OMuvkgAGXDTv2-uNO2Z;L>4nJ=qZCRW5rVYGN7QN xr;B4q#jUpo4H<#FLkqt8zs+Y`0Avyg?lG)PVqnbKT-OHD;OXk;vd$@?2>{AL8tec7 literal 0 HcmV?d00001 diff --git a/src/static/img/nav/home.png b/src/static/img/nav/home.png index 97144d7472c857a21211cf22c3a73117c17c1c50..f373cbfb90d2aef590f6b1a4385ba1b9f68b2b9c 100644 GIT binary patch literal 323 zcmeAS@N?(olHy`uVBq!ia0vp^OMuvkgAGXDTv2-uNO2Z;L>4nJ=qZCRW5rVYGN9mB zPZ!6Kid%2*T5`2G2sm7PqqmqY!N>fXC<|gxPxzdLXW=Le--geZ)w{YIi`?p`pKd!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