-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
233 lines (209 loc) · 9.61 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>main page</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="owl.carousel.min.css">
<link rel="stylesheet" href="slider_style.css">
<script>
function btn1() {
window.open("buy.html", "_self") // here javascript is being used
}
function btn2() {
window.open("sell.html", "_self") // here javascript is being used
}
</script>
</head>
<body>
<main>
<div class="navcontainer">
<div class="logo">
<img src="img/BOOKIES LOGO.png" alt="" width="50px" height="50PX">
</div>
<div class="ab">
<div class="home">
<a href="index.html" style="color: black;text-decoration: none;">Home</a>
</div>
<div class="contact">
<a href="index.html#contact" style="color: black;text-decoration: none;">Contact Us</a>
</div>
<div class="about">
<a href="about.html" style="color: black;text-decoration: none;">About</a>
</div>
</div>
<div class="login">
<button id="loginbtn" onclick="window.location.href='login page/#.html';">login</button>
</div>
</div>
</main>
<!-- navbar section -->
<!-- ************************************************************************************
***************************************************************************************** -->
<!-- main section -->
<div class="buysell">
<div class="image"><img src="img/Charco Education.png" alt="book" height="300px" id="img">
</div>
<div class="head">
<div class="heading">
<h1><b>An Affordable <br> Book Store</b></h1>
</div>
<div class="text1">
<p>Secondhand books had so much life in them. They'd lived, <br> sometimes in many homes, or maybe just one. <br>
Theyd been on airplanes, <br> traveled to sunny beaches, <br> or crowded into a backpack and taken high up on <br>
a mountain where the air thinned !!!.</p>
</div>
<div class="button">
<button onclick="btn1()" class="btn1" id="buy">BUY</button>
<button onclick="btn2()" class="btn1" id="sell">SELL</button>
</div>
</div>
</div>
<hr>
<!-- main section -->
<!-- ************************************************************************************
***************************************************************************************** -->
<!-- how it works section -->
<div>
<div>
<h1 style="font-size: 50px; text-align:center; color:rgb(9, 24, 65);">How it works</h1>
</div>
<div class="howitworks1">
<div class="listaBook">
<h3>List a Book</h3>
<p>Users who want to sell there Books can list there books on our website</p>
</div>
<div class="listabookIMG">
<img src="img/Book Lovers.png" alt="image" height="150px">
</div>
</div>
<div class="howitworks1">
<div class="listabookIMG">
<img src="img/Search on web.png" alt="image" height="150px">
</div>
<div class="listaBook">
<h3>Find your book</h3>
<p>Users in need of books can explore</p>
</div>
</div>
<div class="howitworks1">
<div class="listaBook">
<h3>Order your Book</h3>
<p>If the book is available in our database the Order will be placed</p>
</div>
<div class="listabookIMG">
<img src="img/Group 3.png" alt="image" height="150px">
</div>
</div>
</div>
<hr>
<!-- how it works section -->
<!-- ************************************************************************************
***************************************************************************************** -->
<!-- slider section -->
<section id="slider" class="pt-5">
<h1 class="heading1" style="font-size:50px;color:black;margin-top: 70px;margin-bottom: 50px;"><b>Select Your
Favourite</b></h1>
<div class="container">
<div class="slider" style="margin-top: 50px;margin-bottom: 40px;">
<div class="owl-carousel">
<div class="slider-card">
<div class="d-flex justify-content-center align-items-center mb-4">
<img src="img/download-removebg-preview.png" alt="">
</div>
<h5 class="text-centers"><b>1.The Subtle Art of Not Giving a F*ck</b></h5>
<p class="text-center">RS 250</p>
</div>
<div class="slider-card">
<div class="d-flex justify-content-center align-items-center mb-4">
<img src="img/download-removebg-preview.png" alt="">
</div>
<h5 class="text-centers">
<b>2.The Subtle Art of Not Giving a F*ck</b>
</h5>
<p class="text-centers">
RS 250
</p>
</div>
<div class="slider-card">
<div class="d-flex justify-content-center align-items-center mb-4">
<img src="img/download-removebg-preview.png" alt="">
</div>
<h5 class="text-centers"><b>3.The Subtle Art of Not Giving a F*ck</b></h5>
<p class="text-center">Rs 250</p>
</div>
<div class="slider-card">
<div class="d-flex justify-content-center align-items-center mb-4">
<img src="img/download-removebg-preview.png" alt="">
</div>
<h5 class="text-centers"><b>4.The Subtle Art of Not Giving a F*ck</b></h5>
<p class="text-center">Rs 250</p>
</div>
<div class="slider-card">
<div class="d-flex justify-content-center align-items-center mb-4">
<img src="img/download-removebg-preview.png" alt="">
</div>
<h5 class="text-centers"><b>5.The Subtle Art of Not Giving a F*ck</b></h5>
<p class="text-center">Rs 250</p>
</div>
</div>
</div>
</div>
<hr>
</section>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"></script>
<script src="owl.carousel.min.js"></script>
<script src="script.js"></script>
<!-- slider section -->
<!-- ************************************************************************************
***************************************************************************************** -->
<!-- contact section -->
<div id="contact" class="container">
<h1 id="c1">Connect with us</h1>
<div class="contact-box">
<div class="contact-left">
<form method="post" name="google-sheet">
<div class="input-row">
<div class="input-group">
<label for="fName">Name</label>
<input type="text" placeholder="Name" name="Name">
</div>
<div class="input-group">
<label for="fName">Phone</label>
<input type="tel" placeholder="Phone Number" name="Phone Number">
</div>
</div>
<div class="input-row">
<div class="input-group">
<label for="Email">Email</label>
<input type="email" placeholder="Email Address" name="Email">
</div>
<div class="input-group">
<label>Subject</label>
<input type="text" placeholder="Subject" name="subjet">
</div>
</div>
<label>Message</label>
<textarea rows="6" placeholder="Your Message" name="message"></textarea>
<input type="submit" value="Submit">
</form>
</div>
</div>
</div>
<hr>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbyGcyvoW929BKFk3SBqUC4QUZWmsXA7txhs-hTXEqQj6bRhnMgjaU-PLaamIfVYCI-0Lw/exec'
const form = document.forms['google-sheet']
form.addEventListener('submit', e => {
e.preventDefault()
fetch(scriptURL, { method: 'POST', body: new FormData(form) })
.then(response => alert("Thanks for Contacting us..! We Will Contact You Soon..."))
.catch(error => console.error('Error!', error.message))
})
</script>
</body>
</html>