diff options
Diffstat (limited to 'Pages/Shared')
| -rw-r--r-- | Pages/Shared/_Layout.cshtml | 25 | ||||
| -rw-r--r-- | Pages/Shared/_Layout.cshtml.css | 18 |
2 files changed, 43 insertions, 0 deletions
diff --git a/Pages/Shared/_Layout.cshtml b/Pages/Shared/_Layout.cshtml new file mode 100644 index 0000000..be445cc --- /dev/null +++ b/Pages/Shared/_Layout.cshtml @@ -0,0 +1,25 @@ +@{ + ViewBag.Title ??= "HyperBooru"; + ViewBag.ContentScroll ??= true; + ViewBag.ContentMargin ??= "30px"; +} + +<!DOCTYPE html> + +<html> +<head> + <meta name="viewport" content="width=device-width"/> + <link rel="stylesheet" type="text/css" href="/styles/global.css"/> + <link rel="stylesheet" type="text/css" href="@(nameof(HyperBooru)).styles.css"/> + <title>@ViewBag.Title</title> +</head> + <body> + <div id="navbar"> + <a href="/">Home</a> + <a href="/tags">Tags</a> + </div> + <div id="content" style="overflow:@(ViewBag.ContentScroll ? "auto" : "hidden");margin:@(ViewBag.ContentMargin ?? "0");"> + @RenderBody() + </div> + </body> +</html>
\ No newline at end of file diff --git a/Pages/Shared/_Layout.cshtml.css b/Pages/Shared/_Layout.cshtml.css new file mode 100644 index 0000000..5b2ba65 --- /dev/null +++ b/Pages/Shared/_Layout.cshtml.css @@ -0,0 +1,18 @@ +div#navbar { + background: var(--col-navbar-bg); + box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 10px; +} + +div#navbar > a { + display: inline-block; + padding: 20px 20px 20px 20px; +} + +div#navbar > a:hover { + background: rgba(255, 255, 255, 0.4); +} + +div#navbar > a:active { + background: #fff; + color: var(--col-navbar-bg); +}
\ No newline at end of file |
