-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
140 lines (140 loc) · 6.21 KB
/
index.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
<?php
session_start();
?>
<!--- thomas test 2 -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Rasai - Authentic ri Lankan Cuisine</title>
<link rel="icon" type="image/x-icon" href="/images/FaviconImage.png">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/header.css">
<link rel="stylesheet" href="css/footer.css">
</head>
<body>
<header class="site-header">
<img src="images/rasai_white.png" alt="Rasai Logo" class="logo index-logo"> <!-- Ensure the correct image source -->
<div class="container">
<div class="menu-toggle" id="menu-toggle">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
</div>
</header>
<nav class="main-nav" id="main-nav">
<ul class="nav-list">
<li class="nav-item"><a class="nav-link" href="index.php">Home</a></li>
<hr>
<li class="nav-item"><a class="nav-link" href="menu.php">Menu</a></li>
<hr>
<li class="nav-item"><a class="nav-link" href="about.php">About</a></li>
<hr>
<li class="nav-item"><a class="nav-link" href="contact.php">Contact</a></li>
<hr class="space">
<li class="nav-title">Rasai Members</li>
<?php
if (isset($_SESSION['username'])) {
// Display "My Account" link and"Logout" link when there is a stored username in the session
if ($_SESSION['username'] == "admin") {
// If the username is "admin", redirect to admin.php
?>
<li class="nav-item"><a class="nav-link" href="admin.php">My Account</a></li>
<?php
} else {
// For other users, continue to user.php
?>
<li class="nav-item"><a class="nav-link" href="user.php">My Account</a></li>
<?php
}
?>
<li class="nav-item" id="user-logout-btn"><a class="nav-link" href="index.php">Logout</a></li>
<?php
} else {
// Display "Login" and "Register" links only when there is no stored username in the session
?>
<li class="nav-item"><a class="nav-link" href="login.php">Login</a></li>
<li class="nav-item"><a class="nav-link" href="registration.php">Register</a></li>
<?php
}
?>
</ul>
</nav>
<main>
<section id="home">
<div class="video-container">
<iframe
src="https://www.youtube.com/embed/bCWd9ywjOKw?autoplay=1&mute=1&loop=1&playlist=bCWd9ywjOKw&enablejsapi=1"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen>
</iframe>
</div>
<div class="text-box">
<h1>Welcome to Rasai</h1>
<p>Rasai in Sinhalese means “tasty.” It reflects the authenticity, the richness, and the vibrancy of Sri Lanka’s diverse culinary traditions. Complex and vibrant, Sri Lankan cuisine is well known for its combination of herbs and spices and is centered around many varieties of rice. Coconut milk, oil and pulp also play a significant role in the cuisine, as is preserved fish. A hub in the historic oceanic Silk Road, contact with foreign traders brought new food items and cultural influences in addition to the local traditions of the country's ethnic groups, all of which have helped shape the cuisine of Sri Lanka. I have a passion for preparing authentic and traditional Sri Lankan meals, through trialing different combination of spices to bring out the best flavours of meat, seafood and vegetables. I am inspired to share my Sri Lankan heritage and culture through authentic dishes from my homeland.</p>
</div>
<div class="gallery-container">
<div class="responsive">
<div class="gallery">
<a target="_blank" href="images/Food1.jpg">
<img src="images/Food1.jpg" alt="Cinque Terre">
</a>
</div>
</div>
<div class="responsive">
<div class="gallery">
<a target="_blank" href="images/Food2.jpg">
<img src="images/Food2.jpg" alt="Forest">
</a>
</div>
</div>
<div class="responsive">
<div class="gallery">
<a target="_blank" href="images/Food3.jpg">
<img src="images/Food3.jpg" alt="Northern Lights">
</a>
</div>
</div>
<div class="responsive">
<div class="gallery">
<a target="_blank" href="images/Food4.jpg">
<img src="images/Food4.jpg" alt="Mountains">
</a>
</div>
</div>
<div class="clearfix"></div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="container">
<div>
<div class="footer-bottom">
© 2024, Rasai NZ ||
<a href="privacypolicy.php" class="footer-button">Privacy Policy</a>
<a href="termsofservice.php" class="footer-button">Terms of Service</a>
</div>
</div>
<div class="footer-social">
<div class="social-links">
<a href="https://facebook.com" target="_blank" class="fa fa-facebook"></a>
<a href="https://instagram.com" target="_blank" class="fa fa-instagram"></a>
<a href="https://twitter.com" target="_blank" class="fa fa-twitter"></a>
</div>
</div>
</div>
</footer>
</body>
<script src="js/rasi.js"></script>
<script src="js/navigationham.js"></script>
<script src="js/contactform.js"></script>
<script src="js/emailverify.js"></script>
<script src="js/index.js"></script>
</body>
</html>