This repository was archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path_Layout.cshtml
More file actions
71 lines (69 loc) · 3.11 KB
/
_Layout.cshtml
File metadata and controls
71 lines (69 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer LayoutLocalizer
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Codidact - @ViewData["Title"]</title>
<link rel="stylesheet" href="https://unpkg.com/@@codidact/co-design@@0.5.0/dist/codidact.css" />
<link rel="stylesheet" href="~/css/site.css" />
</head>
<body>
<header class="header">
<div class="container header--container">
<div class="header--brand">
<a class="header--site-name" asp-area="" asp-page="/Index">Codidact</a>
</div>
<div class="header--menu">
<a class="header--item" href="#">@LayoutLocalizer["Questions_title"]</a>
<a class="header--item" href="#">@LayoutLocalizer["Tags_title"]</a>
<a class="header--item" href="#">@LayoutLocalizer["Users_title"]</a>
<div class="header--separator"></div>
@if (!User.Identity.IsAuthenticated)
{
<a class="header--item" asp-page="/Login">@LayoutLocalizer["Sign_in_button"]</a>
}
else
{
<form method="post" asp-page="/Logout">
<button class="header--item" type="submit">@LayoutLocalizer["Sign_out_button"]</button>
</form>
}
<a class="header--item" href="https://github.com/codidact/core">@LayoutLocalizer["On_github_button"]</a>
<a class="header--item is-mobile-menu is-complex" data-trigger-header-slide="#js-hms" href="#!">
<span class="header--menu-bars">
<span></span>
<span></span>
<span></span>
</span>
</a>
</div>
</div>
</header>
<aside class="header-slide" id="js-hms">
<a class="header-slide--item" href="#">@LayoutLocalizer["Questions_title"]</a>
<a class="header-slide--item" href="#">@LayoutLocalizer["Tags_title"]</a>
<a class="header-slide--item" href="#">@LayoutLocalizer["Users_title"]</a>
<div class="header-slide--separator"></div>
@if (User.Identity.IsAuthenticated)
{
<a class="header-slide--item" asp-page="/Logout">@LayoutLocalizer["Sign_out_button"]</a>
}
else
{
<a class="header-slide--item" asp-page="/Login">>@LayoutLocalizer["Sign_in_button"]</a>
}
<a class="header-slide--item" href="https://github.com/codidact/core">@LayoutLocalizer["On_github_button"]</a>
</aside>
<main class="container has-padding-4">
@RenderBody()
</main>
<footer class="has-padding-4 has-border-top-style-solid has-border-top-width-1 has-border-color-tertiary-050">
<div class="container">
© 2020 - Codidact - <a asp-page="/Privacy">@LayoutLocalizer["Privacy_button"]</a>
</div>
</footer>
<script src="~/scripts/site.js" asp-append-version="true" async></script>
</body>
</html>