-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmincreate.ejs
More file actions
100 lines (89 loc) · 2.07 KB
/
Copy pathadmincreate.ejs
File metadata and controls
100 lines (89 loc) · 2.07 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Your Memory Post</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body and page background */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
padding: 20px;
margin: 0;
}
/* Navigation Bar */
nav {
background-color: #333;
padding: 10px 20px;
text-align: center;
margin-bottom: 20px;
}
nav a {
color: white;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
font-size: 16px;
}
nav a:hover {
color: #f4f4f9;
text-decoration: underline;
}
/* Form styles */
form {
max-width: 500px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
form input, form button {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
form button {
background-color: #333;
color: white;
cursor: pointer;
}
form button:hover {
background-color: #555;
}
/* Add some space between sections */
h1, h2, p {
text-align: center;
margin-bottom: 20px;
}
</style>
</head>
<body>
<nav>
<a href="/">Home</a>
<a href="/login">Login</a>
<a href="/register">Register</a>
<a href="/crypto">Crypto Rank</a>
</nav>
<h1>Create a New Memory Post</h1>
<form action="/admin/create" method="POST" enctype="multipart/form-data">
<input type="text" name="title" placeholder="Title" required>
<br><br>
<textarea name="content" placeholder="Content" required></textarea>
<br><br>
<input type="file" name="image" required>
<br><br>
<button type="submit">Create Post</button>
</form>
</body>
</html>