-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbook.html
113 lines (101 loc) · 2.62 KB
/
book.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>book-table</title>
<style>
#book-table {
padding: 40px 0;
background-color: #f8f8f8;
}
.book-table-content {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.book-table-form {
flex: 0 0 100%;
padding: 0 20px;
margin-bottom: 20px;
}
.book-table-image {
flex: 0 0 100%;
text-align: center;
}
.book-table-image img {
max-width: 100%;
height: auto;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
font-weight: bold;
}
input,
button {
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
width: 100%;
}
button {
background-color: #333;
color: #fff;
cursor: pointer;
}
button:hover {
background-color: #888;
}
/* Responsive Styles */
@media screen and (min-width: 768px) {
.book-table-form {
flex: 0 0 50%;
}
.book-table-image {
flex: 0 0 50%;
}
}
</style>
</head>
<body>
<section id="book-table">
<div class="containerr">
<div class="book-table-content">
<div class="book-table-form">
<h2 class="section-title">Book a Table</h2>
<form>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
</div>
<div class="form-group">
<label for="date">Date:</label>
<input type="date" id="date" name="date" required>
</div>
<div class="form-group">
<label for="time">Time:</label>
<input type="time" id="time" name="time" required>
</div>
<div class="form-group">
<label for="guests">Number of Guests:</label>
<input type="number" id="guests" name="guests" min="1" required>
</div>
<button type="submit">Submit</button>
</form>
</div>
<div class="book-table-image">
<img src="sp9.jpeg" alt="Book Table">
</div>
</div>
</div>
</section>
</body>
</html>