diff options
Diffstat (limited to 'Pages/Shared/_Layout.cshtml')
| -rw-r--r-- | Pages/Shared/_Layout.cshtml | 25 |
1 files changed, 25 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 |
