-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.html
74 lines (69 loc) · 2.12 KB
/
view.html
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
<!-- Add Material Design CSS -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@material-ui/core@4.11.3/dist/css/material-ui.min.css">
<style>
body {
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
}
/* Use Material Design color palette */
:root {
--primary-color: #1976d2;
--secondary-color: #f50057;
}
.page {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: var(--primary-color);
}
.container {
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: white;
margin-bottom: 20px;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
textarea {
width: 100%;
height: 400px;
resize: none;
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
font-size: 16px;
}
input[type="submit"] {
margin-top: 10px;
padding: 10px 20px;
font-size: 16px;
background-color: var(--primary-color);
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: var(--secondary-color);
}
</style>
<div class="page">
<h1>Viewing {{.Title}}</h1>
<form action="/edit/{{.Title}}" method="POST">
<div><textarea readonly name="changed" rows="20" cols="80">{{printf "%s" .Body}}</textarea></div>
<div><input type="submit" value="Edit"></div>
</form>
</div>