-
Notifications
You must be signed in to change notification settings - Fork 518
/
404.cshtml
109 lines (93 loc) · 2.32 KB
/
404.cshtml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@inject IStringLocalizer<Resource> _localizer
@{
Layout = "layouts/_base.cshtml";
}
@section HeadMeta{
<style>
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #000;
background-color: #f8f9fa;
display: flex;
height: 100%;
}
p {
margin: 0;
}
.container {
width: 32rem;
max-width: 100%;
padding: 2rem;
margin: auto;
}
.title {
margin: 0 0 1rem;
font-weight: 500;
font-size: 2rem;
}
.message {
margin-bottom: 2rem;
font-size: 1.25rem;
color: #727272;
}
.button {
padding: 0 1.5rem 0 .75rem;
border-radius: .3rem;
display: inline-block;
background-color: #009e66;
color: #fff;
text-decoration: none;
font-size: .875rem;
font-weight: 500;
line-height: 2.5rem;
}
.button:hover {
background-color: #009460;
}
.button .icon {
vertical-align: middle;
}
@@media screen and (min-width:480px) {
.title {
font-size: 2.5rem;
font-weight: 700;
}
.message {
font-size: 1.5rem;
font-weight: 300;
}
.message .br {
display: block;
}
.button {
line-height: 2.75rem;
}
}
</style>
<title>@_localizer["page-not-found"]</title>
<meta name="description" content="@_localizer["page-not-found-message"]">
}
<main class="container">
<h1 class="title">@_localizer["page-not-found"]</h1>
<p class="message">@_localizer["page-not-found-message"]</p>
<p>
<a class="button" href="~/">
<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5a.5.5 0 0 1 .5.5z" />
</svg>
@_localizer["home"]
</a>
</p>
</main>