forked from amrit03b/TravelTales
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
213 lines (186 loc) · 7.42 KB
/
index.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TravelTales</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous" />
<link rel="stylesheet" href="style.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="https://amrit03b.github.io/TravelTales/"> <b id="titled">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>
<!-- First section with background image -->
<section class="hero-section">
<div class="container-fluid hero-content">
<div class="row">
<div class="col-12 col-md-8 offset-md-2 text-center">
<h1 class="hero-title">Share Your Adventures</h1>
<p class="hero-subtitle">
Document your travel journeys with TravelTales:) <br />
Keep your memories alive and inspire others.
</p>
</div>
</div>
</div>
</section>
<!-- Second section with cards -->
<section class="cards-section">
<div class="row">
<div class="card">
<img src="images/card1.jpg" class="card-img-top" alt="Card 1" />
<div class="card-body">
<h5 class="card-title" id="cdtt">Write</h5>
<p class="card-text" id="cdt">
Start writing your travel experiences and make them immortal.
</p>
<a href="write.html" class="btn btn-primary">Start Journaling</a>
</div>
</div>
<div class="card">
<img src="images/card2.jpg" class="card-img-top" alt="Card 2" />
<div class="card-body">
<h5 class="card-title" id="cdtt">Read</h5>
<p class="card-text" id="cdt">
Read travel diaries written by others to get to know about
different places.
</p>
<a href="read.html" class="btn btn-primary">Read other's Journals</a>
</div>
</div>
</div>
</section>
<section class="">
<!-- Footer -->
<footer class="text-center text-white abc" style="background-color: #f599f2">
<!-- Grid container -->
<div class="container p-4 pb-0">
<!-- Section: CTA -->
<section class="">
<p class="d-flex justify-content-center align-items-center">
<span class="me-3">Register for Free</span>
<button type="button" id="registerButton" class="btn btn-outline-dark btn-rounded btnn"
onclick="location.href = 'login.html';">Sign Up/Login</button>
<!-- <button type="button" id="loginButton" class="btn btn-outline-dark btn-rounded ms-3 btnn"
onclick="toggleForm('sign-in')">Login</button> -->
</p>
</section>
</div>
</footer>
</section>
<!-- Sign Up Form -->
<div class="form-popup" id="sign-up">
<form class="form-container bg-light p-4 rounded">
<h1 class="mb-4">Sign up</h1>
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input type="text" class="form-control" id="name" placeholder="Enter Name" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" id="email" placeholder="Enter Email" required>
</div>
<div class="mb-3">
<label for="psw" class="form-label">Password</label>
<input type="password" class="form-control" id="psw" placeholder="Enter Password" required>
</div>
<div class="d-flex justify-content-center">
<button type="submit" class="btn btn-primary me-3">Sign Up</button>
<button type="button" class="btn btn-danger" onclick="closeForm('sign-up')">Close</button>
</div>
</form>
</div>
<!-- Login Form -->
<div class="form-popup" id="sign-in">
<form class="form-container bg-light p-4 rounded">
<h1 class="mb-4">Sign in</h1>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" id="email" placeholder="Enter Email" required>
</div>
<div class="mb-3">
<label for="psw" class="form-label">Password</label>
<input type="password" class="form-control" id="psw" placeholder="Enter Password" required>
</div>
<div class="d-flex justify-content-center">
<button type="submit" class="btn btn-primary me-3 buttton">Login</button>
<button type="button" class="btn btn-danger" onclick="closeForm('sign-in')">Close</button>
</div>
</form>
</div>
<!-- Section: CTA -->
</div>
<!-- Grid container -->
<!-- Copyright -->
<section id="title" class="gradient-background">
<div class="text-center p-3 footerr" style="color: white;
background-color: rgba(242, 97, 205, 0.2)">
<p>© 2023 Copyright:</p>
<a class="text-black" href="index.html">TravelTales:)</a>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</section>
<!-- End of .container -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
crossorigin="anonymous"></script>
<script>
function SignUp() {
document.getElementById("sign-up").style.display = "block";
}
function closeSignUp() {
document.getElementById("sign-up").style.display = "none";
}
function SignIn() {
closeSignUp();
document.getElementById("sign-in").style.display = "block";
}
function closeSignIn() {
document.getElementById("sign-in").style.display = "none";
}
function toggleForm(formId) {
var form = document.getElementById(formId);
if (form.style.display === "block") {
form.style.display = "none";
} else {
form.style.display = "block";
}
}
function closeForm(formId) {
document.getElementById(formId).style.display = "none";
}
</script>
</body>
</html>