diff --git a/public/s/css/w0bm.css b/public/s/css/w0bm.css index 43f6044..eff95e0 100644 --- a/public/s/css/w0bm.css +++ b/public/s/css/w0bm.css @@ -278,32 +278,39 @@ html[theme="paper"] .navbar-brand { background: transparent; } +div.search { + display: grid; +} + div.sbt { display: grid; grid-template-columns: 1fr auto; - grid-column: 2; - grid-row: 1; align-content: center; } -#sbtForm { - -} - #sbtButton { visibility: hidden; } #sbtInput { - background: #00000021; - box-shadow: -1px -1px 0px #252525; - border: inset 1px #0000001c; + background: #00000021; + box-shadow: -1px -1px 0px #252525; + border: inset 1px #0000001c; + padding: revert; + box-shadow: inset 0px 0px 5px 1px #0000005e; + width: 100%; } - .navigation-links { display: grid; grid-row: 1; grid-column: 2; grid-template-columns: auto auto 1fr; } + +.navigation-links-guest, ol { + margin: 5px; + margin-block-start: 0; + margin-block-end: 0; + padding-inline-start: 0; +} \ No newline at end of file diff --git a/public/s/img/missing.png b/public/s/img/missing.png new file mode 100644 index 0000000..efc5b2f Binary files /dev/null and b/public/s/img/missing.png differ diff --git a/src/index.mjs b/src/index.mjs index ceda4a9..b785212 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -66,7 +66,7 @@ process.on('unhandledRejection', err => { req.session = false; if(req.url.pathname.match(/^\/(s|b|t|ca)\//)) return; - req.theme = req.cookies.theme || 'atmos'; + req.theme = req.cookies.theme || 'amoled'; req.fullscreen = req.cookies.fullscreen || 0; if(req.cookies.session) { @@ -110,7 +110,7 @@ process.on('unhandledRejection', err => { db({ user_id: +user[0].id, mode: user[0].mode ?? 0, - theme: req.session.theme ?? 'atmos', + theme: req.session.theme ?? 'amoled', fullscreen: req.session.fullscreen || 0 }, 'user_id', 'mode', 'theme', 'fullscreen') } diff --git a/views/snippets/navbar.html b/views/snippets/navbar.html index be48ddc..9e21ff4 100644 --- a/views/snippets/navbar.html +++ b/views/snippets/navbar.html @@ -1,117 +1,80 @@ @if(session) - @else -@if(url.pathname === "/" || url.pathname.startsWith("/p/")) - + +@endif \ No newline at end of file