-
Notifications
You must be signed in to change notification settings - Fork 0
/
new_post.html
82 lines (72 loc) · 1.97 KB
/
new_post.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
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Upload New Post</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
text-align: center;
padding: 20px;
}
h1 {
color: #333;
}
#uploadPostForm {
background-color: white;
margin: 0 auto;
padding: 20px;
border-radius: 8px;
width: 300px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#uploadPostForm input[type="text"],
#uploadPostForm input[type="file"] {
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 4px;
border: 1px solid #ddd;
}
#uploadPostForm button {
width: 100%;
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
#uploadPostForm button:hover {
background-color: #0056b3;
}
#dashboardButton {
width: 200px;
padding: 10px;
background-color: #28a745;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
display: block;
margin: 20px auto;
}
#dashboardButton:hover {
background-color: #218838;
}
</style>
</head>
<body>
<h1>Upload New Post</h1>
<form id="uploadPostForm">
<input type="text" id="postCaption" placeholder="Caption"><br>
<input type="file" id="postImage" accept="image/*"><br>
<button type="submit">Upload Post</button>
</form>
<!-- Redirect to Dashboard Button -->
<button id="dashboardButton">Go to Dashboard</button>
<script src="new_post.js"></script>
</body>
</html>