-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththai-restaurants.html
More file actions
300 lines (272 loc) · 13.9 KB
/
thai-restaurants.html
File metadata and controls
300 lines (272 loc) · 13.9 KB
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>10 Best Thai Restaurants in Kuala Lumpur (2025) - KL's Top Thai Food</title>
<meta name="description" content="Discover the 10 best Thai restaurants in Kuala Lumpur for 2025. Our expert guide covers the top spots for authentic Thai food in KL, from fine dining to street food classics.">
<meta name="keywords" content="best thai restaurants kuala lumpur, best thai food kl, top thai restaurants kl, thai restaurant recommendation kl, kuala lumpur thai food, authentic thai food kuala lumpur, Erawan, Gai by Darren Chin, Malai Thai Cuisine, KomPassion, La Moon, Baan 26, Boran, SOI 55, Heng Dee, Imperial Chakri Palace">
<!-- Canonical URL -->
<link rel="canonical" href="https://stickyricemango.waddat.com/thai-restaurants.html" />
<!-- Open Graph Tags -->
<meta property="og:title" content="10 Best Thai Restaurants in Kuala Lumpur (2025)" />
<meta property="og:description" content="Discover the 10 best Thai restaurants in Kuala Lumpur for 2025. Our expert guide covers the top spots for authentic Thai food in KL." />
<meta property="og:image" content="https://stickyricemango.waddat.com/mang_sticky_rice_plate.jpg" />
<meta property="og:url" content="https://stickyricemango.waddat.com/thai-restaurants.html" />
<meta property="og:type" content="article" />
<meta property="og:site_name" content="Mango Sticky Rice Kuala Lumpur" />
<!-- Twitter Card Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="10 Best Thai Restaurants in Kuala Lumpur (2025)" />
<meta name="twitter:description" content="Discover the 10 best Thai restaurants in Kuala Lumpur for 2025. Our expert guide covers the top spots for authentic Thai food in KL." />
<meta name="twitter:image" content="https://stickyricemango.waddat.com/mang_sticky_rice_plate.jpg" />
<!-- Theme Color -->
<meta name="theme-color" content="#FFF8E1">
<!-- Favicon -->
<link rel="icon" type="image/jpeg" href="mang_sticky_rice_kl_logo.jpg" />
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<!-- JSON-LD Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ItemList",
"name": "10 Best Thai Restaurants in Kuala Lumpur",
"description": "A curated list of the top 10 Thai restaurants in Kuala Lumpur, Malaysia, for 2025.",
"itemListElement": []
}
</script>
<style>
body {
font-family: 'Poppins', sans-serif;
background-color: #FEFBF6;
color: #3D405B;
}
.hero-section {
background-image: linear-gradient(to right, rgba(245, 245, 245, 0.9), rgba(245, 245, 245, 0.7)), url('fresh_mangos.jpg');
background-size: cover;
background-position: center;
}
.brand-gold { color: #F2CC8F; }
.brand-green { color: #81B29A; }
.brand-red { color: #E07A5F; }
.btn-primary {
background-color: #E07A5F;
color: #FFFFFF;
font-weight: 600;
transition: all 0.3s ease;
border-radius: 0.5rem;
box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
}
.btn-primary:hover {
background-color: #D46A4D;
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}
.header-sticky {
position: sticky;
top: 0;
z-index: 50;
background-color: rgba(254, 251, 246, 0.8);
backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-link {
font-weight: 500;
font-size: 0.95rem;
position: relative;
transition: color 0.3s;
}
.nav-link:hover {
color: #E07A5F;
}
.nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
background-color: #E07A5F;
transition: width 0.3s;
}
.nav-link:hover::after {
width: 100%;
}
.card {
background-color: white;
border-radius: 1rem;
box-shadow: 0 10px 25px rgba(61, 64, 91, 0.1);
transition: all 0.3s ease;
overflow: hidden;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(61, 64, 91, 0.15);
}
.section-title {
font-weight: 800;
color: #3D405B;
}
.hero-title {
font-weight: 800;
font-size: 3rem;
line-height: 1.2;
color: #3D405B;
}
@media (min-width: 768px) {
.hero-title {
font-size: 4.5rem;
}
}
</style>
</head>
<body class="text-gray-800">
<header class="py-4 header-sticky">
<div class="container mx-auto px-6 flex justify-between items-center">
<a href="/" class="flex items-center">
<img src="mang_sticky_rice_kl_logo.jpg" alt="Logo of Thai Mango Sticky Rice KL" class="h-14 w-auto mr-4 rounded-full shadow-md" loading="lazy">
<span class="font-bold text-2xl brand-red">Mango Sticky Rice Kuala Lumpur</span>
</a>
<nav class="hidden md:flex space-x-8">
<a href="/#about" class="nav-link text-gray-700">Our Story</a>
<a href="/#menu" class="nav-link text-gray-700">Menu</a>
<a href="/#locations" class="nav-link text-gray-700">Locations</a>
<a href="/#contact" class="nav-link text-gray-700">Contact</a>
</nav>
<div class="md:hidden">
<button id="menu-button" class="text-gray-700 focus:outline-none" aria-label="Toggle navigation menu" aria-expanded="false">
<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7"></path></svg>
</button>
</div>
</div>
<div id="mobile-menu" class="md:hidden hidden bg-white shadow-lg" aria-live="polite">
<a href="/#about" class="block px-6 py-4 text-gray-700 hover:bg-red-50 hover:text-brand-red transition duration-300">Our Story</a>
<a href="/#menu" class="block px-6 py-4 text-gray-700 hover:bg-red-50 hover:text-brand-red transition duration-300">Menu</a>
<a href="/#locations" class="block px-6 py-4 text-gray-700 hover:bg-red-50 hover:text-brand-red transition duration-300">Locations</a>
<a href="/#contact" class="block px-6 py-4 text-gray-700 hover:bg-red-50 hover:text-brand-red transition duration-300">Contact</a>
</div>
</header>
<main>
<section class="hero-section text-white py-20">
<div class="container mx-auto px-6 text-center">
<h1 class="hero-title mb-4" data-aos="fade-up">The Ultimate Guide to the Best Thai Restaurants in Kuala Lumpur</h1>
<p class="text-xl text-gray-600" data-aos="fade-up" data-aos-delay="200">Your 2025 list of the most authentic and delicious Thai food experiences in KL.</p>
</div>
</section>
<section id="restaurant-list" class="py-24 bg-white">
<div class="container mx-auto px-6">
<div id="restaurants-container" class="grid md:grid-cols-1 gap-12">
<!-- Restaurant cards will be injected here -->
</div>
</div>
</section>
</main>
<footer class="bg-gray-900 text-gray-300 py-12">
<div class="container mx-auto px-6 text-center">
<p class="mb-4 text-lg brand-red font-bold">Mango Sticky Rice Kuala Lumpur</p>
<p class="mb-4 text-sm">Authentic Thai Mango Sticky Rice in Kuala Lumpur.</p>
<p class="text-xs">© <span id="currentYear"></span> Mango Sticky Rice Kuala Lumpur. All Rights Reserved.</p>
</div>
</footer>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
duration: 800,
once: true,
});
// Mobile menu toggle
const menuButton = document.getElementById('menu-button');
const mobileMenu = document.getElementById('mobile-menu');
if (menuButton && mobileMenu) {
menuButton.addEventListener('click', () => {
const isExpanded = menuButton.getAttribute('aria-expanded') === 'true' || false;
menuButton.setAttribute('aria-expanded', !isExpanded);
mobileMenu.classList.toggle('hidden');
});
}
// Set current year in footer
const yearSpan = document.getElementById('currentYear');
if (yearSpan) {
yearSpan.textContent = new Date().getFullYear();
}
// Fetch and render restaurants
async function loadRestaurants() {
const container = document.getElementById('restaurants-container');
// Show loading state
container.innerHTML = '<p class="text-center text-gray-600 py-12">Loading restaurants...</p>';
try {
const response = await fetch('thai_restaurants_kl.json');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const restaurants = await response.json();
if (!Array.isArray(restaurants) || restaurants.length === 0) {
throw new Error('No restaurant data available');
}
const itemListSchema = document.querySelector('script[type="application/ld+json"]');
const itemList = JSON.parse(itemListSchema.textContent);
// Clear loading state
container.innerHTML = '';
restaurants.forEach((restaurant, index) => {
const card = document.createElement('div');
card.className = 'card flex flex-col md:flex-row items-center';
card.setAttribute('data-aos', 'fade-up');
const imagesHTML = restaurant.image_links.map((link, imgIndex) => {
if (imgIndex === 0) {
return `<img src="${link}" alt="Image of ${restaurant.name}" class="w-full h-96 object-cover" loading="lazy">`;
}
return '';
}).join('');
card.innerHTML = `
<div class="w-full md:w-1/3 flex-shrink-0">
${imagesHTML}
</div>
<div class="p-8 text-left md:w-2/3">
<h3 class="text-3xl font-bold mb-3 brand-red">${restaurant.name}</h3>
<p class="text-gray-600 mb-4"><strong>Location:</strong> ${restaurant.location}</p>
<p class="text-gray-600 mb-6">${restaurant.description}</p>
<a href="${restaurant.google_maps_link}" target="_blank" rel="noopener noreferrer" class="btn-primary py-3 px-8 text-base inline-flex items-center">
View on Google Maps
<svg class="w-4 h-4 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>
</a>
</div>
`;
container.appendChild(card);
// Add to JSON-LD
itemList.itemListElement.push({
"@type": "ListItem",
"position": index + 1,
"item": {
"@type": "Restaurant",
"name": restaurant.name,
"description": restaurant.description,
"address": {
"@type": "PostalAddress",
"streetAddress": restaurant.location
},
"image": restaurant.image_links,
"url": restaurant.google_maps_link
}
});
});
itemListSchema.textContent = JSON.stringify(itemList, null, 2);
} catch (error) {
// Remove console.error for production - show user-friendly message instead
container.innerHTML = `
<div class="text-center py-12">
<p class="text-red-500 mb-4 text-lg font-semibold">Unable to load restaurant information</p>
<p class="text-gray-600 mb-6">We're having trouble loading the restaurant list. Please refresh the page or try again later.</p>
<button onclick="location.reload()" class="btn-primary py-3 px-8 text-base">Refresh Page</button>
</div>
`;
}
}
document.addEventListener('DOMContentLoaded', loadRestaurants);
</script>
</body>
</html>