-
Notifications
You must be signed in to change notification settings - Fork 0
/
Recipes.php
270 lines (191 loc) · 6.29 KB
/
Recipes.php
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?php
session_start();
?>
<!doctype html>
<html>
<head>
<title> Recipes Page </title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
html,body{
}
.bg{
background-image: url("img/pink.jpg");
/* Full height */
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
* {box-sizing: border-box;}
body {font-family: Verdana, sans-serif;}
.mySlides {display: none;
height:50%;
}
.slidey {vertical-align: middle;
height: 500px;
border-radius: 20px;
}
/* Slideshow container */
.slideshow-container {
max-width: 1000px;
position: relative;
margin: auto;
}
/* Caption text */
.text {
color: brown;
font-size: 25px;
padding: 8px 12px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
}
/* Number text (1/3 etc) */
.numbertext {
color: brown;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
/* The dots/bullets/indicators */
.dot {
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease;
}
.active {
background-color: #717171;
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
.text {font-size: 11px}
}
.images{
margin:100px;
padding:20px;
}
.imge {
margin-left: 70px;
margin-bottom: 40px;
border: 1px solid white;
border-radius: 20px;
}
footer
{
position: absolute;
bottom: -600px;
left: 30%;
height: 5%;
float: left;
font-size: 16px;
}
</style>
</head>
<body class="bg">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Sweets Recipes</a>
</div>
<ul class="nav navbar-nav">
<li ><a href="index.php" style="font-size: 17px;">Home</a></li>
<li class="active"><a href="Recipes.php" style="font-size: 17px;" >Recipes</a></li>
<li><a href="about.php" style="font-size: 17px;">About Us</a></li>
<li><a href="contact.php" style="font-size: 17px;" >Contact Us</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="welcome.php" style="font-size: 17px;"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
<li><a href="logout.php" style="font-size: 17px;"><span class="glyphicon glyphicon-log-in"></span> Logout</a></li>
</ul>
</div>
</nav>
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 3</div>
<img src="img/chocolate.jpg" style="width:100%" class="slidey">
<div class="text">Chocolate Cake</div>
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 3</div>
<img src="img/homemade.jpg" style="width:100%" class="slidey">
<div class="text">Home Made Cakes</div>
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 3</div>
<img src="img/g.jpeg" style="width:100%" class="slidey">
<div class="text">Chocolate Lava</div>
</div>
</div>
<br>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<div>
<p class="text"> Please Choose the recipe you like</p>
<figure class="images">
<a href="crossiant.php"> <img class="imge" src="img/cross.jpg" alt="Crossiant" title="Crossiant" width="180" height="180"/></a>
<a href="cupcake.php"> <img class="imge" src="img/cupcake.jpg" alt="CupCake" title="CupCake" width="180" height="180"/></a>
<a href="crepe.php"><img class="imge" src="img/crepe.jpg" alt="Crepe" title="Crepe" width="180" height="180"/></a>
<a href="fudge.php"><img class="imge" src="img/fudge.jpg" alt="Chocolate fudge cake" title="fudge cake" width="180" height="180"/></a>
<br>
<a href="swirl.php"><img class="imge" src="img/swirl.jpg" alt="Swirl cake" title="swirl cake" width="180" height="180"/></a>
<a href="mint.php"><img class="imge" src="img/pudding.jpg" alt="Chocolate Mint Pudding" title="Chocolate Mint Pudding" width="180" height="180"/></a>
<a href="muffin.php"><img class="imge" src="img/muffin.jpg" alt="Gingerbread Pear Muffins" title="Gingerbread Pear Muffins" width="180" height="180"/></a>
<a href="choco.php"><img class="imge" src="img/cookies.jpg" alt="Chocolate chip cookies" title="Chocolate chip cookies" width="180" height="180"/></a>
</figure>
<footer>
<p><small>Copyright © 2018 <a href="index.html">Sweets Website</a> All rights reserved | Website By <a target="_blank" href="[email protected]">Sarah Alm</a></small></p>
</footer>
</div>
<script>
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
setTimeout(showSlides, 2000); // Change image every 5 seconds
}
</script>
</body>
</html>