forked from amrit03b/TravelTales
-
Notifications
You must be signed in to change notification settings - Fork 0
/
write.html
87 lines (83 loc) · 3.68 KB
/
write.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
83
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Write Your Travel Journal</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<link rel="stylesheet" href="write.css">
</head>
<body>
<nav class="navbar bg-body-tertiary fixed-top pink-bg">
<div class="container-fluid d-flex justify-content-between align-items-center">
<a class="navbar-brand pink-text" href="index.html"><b>TravelTales:)</b></a>
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar"
aria-controls="offcanvasNavbar" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
<div class="offcanvas offcanvas-end pink-bg" tabindex="-1" id="offcanvasNavbar"
aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel" style="color: #C71585;">TravelTales:)</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="write.html">Start Writing</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="read.html">Read Journals</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Writing section -->
<main class="main-content d-flex flex-wrap">
<section class="writing-section">
<div class="container p-4">
<h2 class="writing-title mb-5">Write Your Travel Journal</h2>
<div class="writing-form">
<form id="journal-form"> <!-- Added the form element with the ID "journal-form" -->
<div class="form-group mb-3">
<label for="journalTitle">Title</label>
<input type="text" class="form-control" id="journalTitle" placeholder="Write a title for your journal"
required>
</div>
<div class="form-group mb-3">
<label for="journalContent">Content</label>
<textarea class="form-control" id="journalContent" rows="6"
placeholder="Start writing about your experiences" required></textarea>
</div>
<div class="form-group mb-3">
<label for="journalImage">Upload Image</label>
<input type="file" class="form-control" id="journalImage">
</div>
<div class="form-check mb-3">
<input type="checkbox" class="form-check-input" id="publicCheck">
<label class="form-check-label" for="publicCheck">Make Public</label>
</div>
<button type="submit" class="btn btn-primary btn-block" id="publishBtn">Publish</button>
</form>
</div>
</div>
</section>
<section class="publishing-options">
<div class="container">
<h3 class="publish-title p-3">Your TravelTales</h3>
<div id="publishedJournals" class="mx-5"></div>
</div>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
crossorigin="anonymous"></script>
<script src="write.js"></script>
</body>
</html>