-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateBlog.html
More file actions
65 lines (53 loc) · 2.04 KB
/
CreateBlog.html
File metadata and controls
65 lines (53 loc) · 2.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Blog</title>
<link rel="stylesheet" href="CreateBlog.css">
</head>
<body>
<header>
<nav class="navbar">
<div class="navdiv">
<div class="logo">
<a href="HomePage.html">
<img src="assets/logo.png" alt="Logo">
</a>
</div>
<ul>
<li><a href="HomePage.html">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</nav>
</header>
<main class="blog-container">
<h2>Create Your Blog</h2>
<form id="blogForm">
<label for="blogTitle">Title:</label>
<input type="text" id="blogTitle" placeholder="Enter your blog title" required>
<label for="blogContent">Write your blog:</label>
<textarea id="blogContent" placeholder="Start writing here..." required></textarea>
<!-- <label for="blogImage">Upload an image:</label> -->
<label for="imageUpload">Upload an image:</label>
<input type="file" id="imageUpload" accept="image/*">
<!-- <input type="file" id="blogImage" accept="image/*"> -->
<div class="image-preview">
<img id="previewImage" src="" alt="Image Preview" style="display: none;">
</div>
<button type="submit" class="submit-button">Submit Blog</button>
</form>
<!-- <div id="previewSection" class="preview">
<h3>Preview:</h3>
<h4 id="previewTitle"></h4>
<p id="previewContent"></p> -->
</div>
</main>
<footer>
<p>© 2025 Your Website | All rights reserved.</p>
</footer>
<script src="CreateBlog.js"></script>
</body>
</html>