-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRestaurant1.html
153 lines (142 loc) · 7.75 KB
/
Restaurant1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="logo.png" >
<title>Restaurant Website</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="style1.css" />
</head>
<body>
<div class="main-nav">
<nav id="navbar">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#menu">Menu</a></li>
<li><a href="#gallery">Gallery</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</div>
<div id="home">
<div class="container">
<h1 style="text-align: center;
color: black; font-size: 3em; background-color: lightblue; border-radius: 2px; border-color: black; font-style:inherit;" >𝑭𝒐𝒐𝒅 𝑪𝒐𝒓𝒏𝒆𝒓</h1>
<a href="#booktable" class="book" style="justify-content: center; align-items: center; display: flex;">Book table</a>
</div>
</div>
<div id="menu">
<div class="container">
<h1 style="text-align: center;">Our Menu</h1>
<div id="initialItems" class="menu-items">
<a href="#" class="menu"><img src="food/roast.jpg" width="45px" style="align-items: center;"/><br/>Roastedchicken<br/>$100</a>
<a href="#" class="menu"><img src="food/65.avif" width="55px" style="align-items: center;"/><br/>Chicken 65<br/>$100</a>
<a href="#" class="menu"><img src="food/555.avif" width="55px" style="align-items: center;"/><br/>Chicken 555<br/>$100</a>
<a href="#" class="menu"><img src="food/biryani.avif" width="55px" style="align-items: center;"/><br/>Chicken biryani<br/>$100</a>
<a href="#" class="menu"><img src="food/burger.avif" width="55px" style="align-items: center;"/><br/>Chicken burger<br/>$100</a>
<a href="#" class="menu"><img src="food/lava cake.avif" width="55px" style="align-items: center;"/><br/>lava cake<br/>$100</a>
<a href="#" class="menu"><img src="food/lollipop.avif" width="55px" style="align-items: center;"/><br/>Chicken lollipop<br/>$100</a>
<a href="#" class="menu"><img src="food/noddles.avif" width="55px" style="align-items: center;"/><br/>Noddles <br/>$100</a>
</div>
<br/>
<div id="additionalItems" class="menu-items" style="display: none;">
<a href="#" class="menu"><img src="food/roast.jpg" width="45px" style="align-items: center;"/><br/>Roastedchicken<br/>$100</a>
<a href="#" class="menu"><img src="food/65.avif" width="55px" style="align-items: center;"/><br/>Chicken 65<br/>$100</a>
<a href="#" class="menu"><img src="food/555.avif" width="55px" style="align-items: center;"/><br/>Chicken 555<br/>$100</a>
<a href="#" class="menu"><img src="food/biryani.avif" width="55px" style="align-items: center;"/><br/>Chicken biryani<br/>$100</a>
<a href="#" class="menu"><img src="food/burger.avif" width="55px" style="align-items: center;"/><br/>Chicken burger<br/>$100</a>
<a href="#" class="menu"><img src="food/lava cake.avif" width="55px" style="align-items: center;"/><br/>lava cake<br/>$100</a>
<a href="#" class="menu"><img src="food/lollipop.avif" width="55px" style="align-items: center;"/><br/>Chicken lollipop<br/>$100</a>
<a href="#" class="menu"><img src="food/noddles.avif" width="55px" style="align-items: center;"/><br/>Noddles <br/>$100</a>
<a href="#" class="menu"><img src="food/roast.jpg" width="45px" style="align-items: center;"/><br/>Roastedchicken<br/>$100</a>
<a href="#" class="menu"><img src="food/65.avif" width="55px" style="align-items: center;"/><br/>Chicken 65<br/>$100</a>
<a href="#" class="menu"><img src="food/555.avif" width="55px" style="align-items: center;"/><br/>Chicken 555<br/>$100</a>
<a href="#" class="menu"><img src="food/biryani.avif" width="55px" style="align-items: center;"/><br/>Chicken biryani<br/>$100</a>
<a href="#" class="menu"><img src="food/burger.avif" width="55px" style="align-items: center;"/><br/>Chicken burger<br/>$100</a>
<a href="#" class="menu"><img src="food/lava cake.avif" width="55px" style="align-items: center;"/><br/>lava cake<br/>$100</a>
<a href="#" class="menu"><img src="food/lollipop.avif" width="55px" style="align-items: center;"/><br/>Chicken lollipop<br/>$100</a>
<a href="#" class="menu"><img src="food/noddles.avif" width="55px" style="align-items: center;"/><br/>Noddles <br/>$100</a>
</div>
<br/>
<div style="display: flex; justify-content: center;">
<button class="btn" onclick="loadMore()">Load More <i class="fas fa-angle-down"></i></button>
</div>
</div>
</div>
<div id="gallery">
<div class="container">
<h1 style="text-align: center;">Gallery</h1>
<div class="image-grid">
<!-- Image Gallery -->
<img src="Images/img1.jpg"/>
<img src="Images/img2.jpg"/>
<img src="Images/img3.jpg"/>
<img src="Images/img4.jpg"/>
<img src="Images/img5.jpg"/>
<img src="Images/img6.jpg"/>
<img src="Images/img7.jpg"/>
<img src="Images/img8.jpg"/>
<img src="Images/img9.jpg"/>
<img src="Images/img10.jpg"/>
<img src="Images/img11.jpg"/>
<img src="Images/img12.jpg"/>
</div>
</div>
<div id="contact">
<div class="container">
<h1 style="text-align: center; font-size: 3em;">Contact</h1>
<p style="text-align: center;">Mobile : 0001221033</p><br/>
<p style="text-align: center;">Address : 15 Florida Ave</p><br/>
<p style="text-align: center;">Email : [email protected]</p>
</div>
</div>
<div id="booktable">
<div class="container">
<h1 style="text-align: center; font-size: 3em;"><U>Book Table</U></h1>
<form style="text-align: center;">
<label>NAME : </label>
<input type="text" name="name" required /><br/><br/>
<label>CELL : </label>
<input type="tel" name="phone" placeholder="Ex: 123-45-6789" id="number" required /><br/><br/>
<button type="submit" class="sendbutton" onclick="book()">BOOK NOW</button>
</form>
</div>
<script>
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
</script>
<script>
function loadMore() {
var additionalItems = document.getElementById("additionalItems");
var loadMoreBtn = document.querySelector('.btn');
if (additionalItems.style.display === "none") {
additionalItems.style.display = "block";
loadMoreBtn.innerText = "Load Less";
} else {
additionalItems.style.display = "none";
loadMoreBtn.innerText = "Load More";
}
additionalItems.scrollIntoView({ behavior: "smooth" });
}
function book()
{
var booking=document.getElementById("number").value.trim();
if(booking!="")
{
alert("Your Table is booked your table number is 1.");
}
else
{
alert("Enter the details.");
}
}
</script>
</body>
</html>