Spaces:
Running
Running
Add 2 files
Browse files- index.html +73 -83
- prompts.txt +2 -1
index.html
CHANGED
|
@@ -11,6 +11,22 @@
|
|
| 11 |
background-image: url('https://images.unsplash.com/photo-1519046904884-53103b34b206?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
|
| 12 |
background-size: cover;
|
| 13 |
background-position: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
.admin-panel {
|
| 16 |
display: none;
|
|
@@ -209,6 +225,49 @@
|
|
| 209 |
</div>
|
| 210 |
</div>
|
| 211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
<!-- Language Selector -->
|
| 213 |
<div class="bg-gray-800 text-white py-2 px-4">
|
| 214 |
<div class="container mx-auto flex justify-end">
|
|
@@ -220,7 +279,12 @@
|
|
| 220 |
</div>
|
| 221 |
|
| 222 |
<!-- Header -->
|
| 223 |
-
<header class="custom-bg text-white">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
<div class="bg-black bg-opacity-60">
|
| 225 |
<div class="container mx-auto px-4 py-6">
|
| 226 |
<div class="flex justify-between items-center">
|
|
@@ -304,7 +368,12 @@
|
|
| 304 |
<!-- Main Content -->
|
| 305 |
<main>
|
| 306 |
<!-- Hero Section -->
|
| 307 |
-
<section id="home" class="py-20 custom-bg text-white">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 308 |
<div class="bg-black bg-opacity-60 py-16">
|
| 309 |
<div class="container mx-auto px-4 text-center">
|
| 310 |
<h2 class="text-5xl font-bold mb-6 en editable">Welcome to Our Community
|
|
@@ -328,7 +397,7 @@
|
|
| 328 |
</a>
|
| 329 |
<a href="#events" class="bg-transparent border-2 border-white hover:bg-white hover:text-black px-6 py-3 rounded-lg font-semibold text-lg en editable">Upcoming Events
|
| 330 |
<span class="edit-btn" onclick="openEditModal(this, 'hero-events-en')"><i class="fas fa-pencil"></i></span>
|
| 331 |
-
|
| 332 |
<a href="#events" class="bg-transparent border-2 border-white hover:bg-white hover:text-black px-6 py-3 rounded-lg font-semibold text-lg vi hidden-language editable">Sự kiện sắp tới
|
| 333 |
<span class="edit-btn" onclick="openEditModal(this, 'hero-events-vi')"><i class="fas fa-pencil"></i></span>
|
| 334 |
</a>
|
|
@@ -355,84 +424,5 @@
|
|
| 355 |
</div>
|
| 356 |
</div>
|
| 357 |
</div>
|
| 358 |
-
<div class="md:w-
|
| 359 |
-
<h3 class="text-2xl font-semibold mb-4 text-gray-800 en editable">Our Mission
|
| 360 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-mission-title-en')"><i class="fas fa-pencil"></i></span>
|
| 361 |
-
</h3>
|
| 362 |
-
<h3 class="text-2xl font-semibold mb-4 text-gray-800 vi hidden-language editable">Sứ mệnh
|
| 363 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-mission-title-vi')"><i class="fas fa-pencil"></i></span>
|
| 364 |
-
</h3>
|
| 365 |
-
<p class="text-gray-600 mb-4 en editable">Founded in 1995, the Vietnamese Cultural Association is dedicated to preserving and promoting Vietnamese heritage, language, and traditions among the Vietnamese diaspora and the wider community.
|
| 366 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-mission-p1-en')"><i class="fas fa-pencil"></i></span>
|
| 367 |
-
</p>
|
| 368 |
-
<p class="text-gray-600 mb-4 vi hidden-language editable">Được thành lập năm 1995, Hội Văn Hóa Việt Nam cam kết bảo tồn và quảng bá di sản, ngôn ngữ và truyền thống Việt Nam trong cộng đồng người Việt và cộng đồng rộng lớn hơn.
|
| 369 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-mission-p1-vi')"><i class="fas fa-pencil"></i></span>
|
| 370 |
-
</p>
|
| 371 |
-
<p class="text-gray-600 mb-6 en editable">We organize cultural events, language classes, and community services to foster understanding and appreciation of Vietnamese culture while supporting our members in their personal and professional development.
|
| 372 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-mission-p2-en')"><i class="fas fa-pencil"></i></span>
|
| 373 |
-
</p>
|
| 374 |
-
<p class="text-gray-600 mb-6 vi hidden-language editable">Chúng tôi tổ chức các sự kiện văn hóa, lớp học ngôn ngữ và dịch vụ cộng đồng để thúc đẩy sự hiểu biết và trân trọng văn hóa Việt Nam, đồng thời hỗ trợ thành viên phát triển cá nhân và nghề nghiệp.
|
| 375 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-mission-p2-vi')"><i class="fas fa-pencil"></i></span>
|
| 376 |
-
</p>
|
| 377 |
-
|
| 378 |
-
<h3 class="text-2xl font-semibold mb-4 text-gray-800 en editable">Our Values
|
| 379 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-values-title-en')"><i class="fas fa-pencil"></i></span>
|
| 380 |
-
</h3>
|
| 381 |
-
<h3 class="text-2xl font-semibold mb-4 text-gray-800 vi hidden-language editable">Giá trị cốt lõi
|
| 382 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-values-title-vi')"><i class="fas fa-pencil"></i></span>
|
| 383 |
-
</h3>
|
| 384 |
-
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
|
| 385 |
-
<div class="flex items-start">
|
| 386 |
-
<div class="bg-yellow-100 p-2 rounded-full mr-3">
|
| 387 |
-
<i class="fas fa-hands-helping text-yellow-600"></i>
|
| 388 |
-
</div>
|
| 389 |
-
<p class="text-gray-600 en editable">Community
|
| 390 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-value1-en')"><i class="fas fa-pencil"></i></span>
|
| 391 |
-
</p>
|
| 392 |
-
<p class="text-gray-600 vi hidden-language editable">Cộng đồng
|
| 393 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-value1-vi')"><i class="fas fa-pencil"></i></span>
|
| 394 |
-
</p>
|
| 395 |
-
</div>
|
| 396 |
-
<div class="flex items-start">
|
| 397 |
-
<div class="bg-yellow-100 p-2 rounded-full mr-3">
|
| 398 |
-
<i class="fas fa-book text-yellow-600"></i>
|
| 399 |
-
</div>
|
| 400 |
-
<p class="text-gray-600 en editable">Education
|
| 401 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-value2-en')"><i class="fas fa-pencil"></i></span>
|
| 402 |
-
</p>
|
| 403 |
-
<p class="text-gray-600 vi hidden-language editable">Giáo dục
|
| 404 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-value2-vi')"><i class="fas fa-pencil"></i></span>
|
| 405 |
-
</p>
|
| 406 |
-
</div>
|
| 407 |
-
<div class="flex items-start">
|
| 408 |
-
<div class="bg-yellow-100 p-2 rounded-full mr-3">
|
| 409 |
-
<i class="fas fa-history text-yellow-600"></i>
|
| 410 |
-
</div>
|
| 411 |
-
<p class="text-gray-600 en editable">Heritage
|
| 412 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-value3-en')"><i class="fas fa-pencil"></i></span>
|
| 413 |
-
</p>
|
| 414 |
-
<p class="text-gray-600 vi hidden-language editable">Di sản
|
| 415 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-value3-vi')"><i class="fas fa-pencil"></i></span>
|
| 416 |
-
</p>
|
| 417 |
-
</div>
|
| 418 |
-
<div class="flex items-start">
|
| 419 |
-
<div class="bg-yellow-100 p-2 rounded-full mr-3">
|
| 420 |
-
<i class="fas fa-handshake text-yellow-600"></i>
|
| 421 |
-
</div>
|
| 422 |
-
<p class="text-gray-600 en editable">Unity
|
| 423 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-value4-en')"><i class="fas fa-pencil"></i></span>
|
| 424 |
-
</p>
|
| 425 |
-
<p class="text-gray-600 vi hidden-language editable">Đoàn kết
|
| 426 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-value4-vi')"><i class="fas fa-pencil"></i></span>
|
| 427 |
-
</p>
|
| 428 |
-
</div>
|
| 429 |
-
</div>
|
| 430 |
-
|
| 431 |
-
<a href="#contact" class="inline-block bg-yellow-500 hover:bg-yellow-600 text-black px-6 py-2 rounded-lg font-semibold en editable">Contact Us
|
| 432 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-contact-btn-en')"><i class="fas fa-pencil"></i></span>
|
| 433 |
-
</a>
|
| 434 |
-
<a href="#contact" class="inline-block bg-yellow-500 hover:bg-yellow-600 text-black px-6 py-2 rounded-lg font-semibold vi hidden-language editable">Liên hệ
|
| 435 |
-
<span class="edit-btn" onclick="openEditModal(this, 'about-contact-btn-vi')"><i class="fas fa-pencil"></i></span>
|
| 436 |
-
</a>
|
| 437 |
-
</极
|
| 438 |
</html>
|
|
|
|
| 11 |
background-image: url('https://images.unsplash.com/photo-1519046904884-53103b34b206?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
|
| 12 |
background-size: cover;
|
| 13 |
background-position: center;
|
| 14 |
+
position: relative;
|
| 15 |
+
}
|
| 16 |
+
.bg-editor {
|
| 17 |
+
position: absolute;
|
| 18 |
+
bottom: 20px;
|
| 19 |
+
right: 20px;
|
| 20 |
+
background: rgba(0,0,0,0.7);
|
| 21 |
+
color: white;
|
| 22 |
+
padding: 5px 10px;
|
| 23 |
+
border-radius: 4px;
|
| 24 |
+
cursor: pointer;
|
| 25 |
+
display: none;
|
| 26 |
+
z-index: 10;
|
| 27 |
+
}
|
| 28 |
+
.custom-bg:hover .bg-editor {
|
| 29 |
+
display: block;
|
| 30 |
}
|
| 31 |
.admin-panel {
|
| 32 |
display: none;
|
|
|
|
| 225 |
</div>
|
| 226 |
</div>
|
| 227 |
|
| 228 |
+
<!-- Background Image Upload Modal -->
|
| 229 |
+
<div id="bgImageUploadModal" class="edit-modal hidden">
|
| 230 |
+
<div class="edit-modal-content">
|
| 231 |
+
<h3 class="text-xl font-bold mb-4 en">Change Background Image</h3>
|
| 232 |
+
<h3 class="text-xl font-bold mb-4 vi hidden-language">Thay đổi ảnh nền</h3>
|
| 233 |
+
<div class="mb-4">
|
| 234 |
+
<label class="block text-gray-700 mb-2 en">Background Image URL</label>
|
| 235 |
+
<label class="block text-gray-700 mb-2 vi hidden-language">Đường dẫn ảnh nền</label>
|
| 236 |
+
<input type="text" id="bgImageUrlInput" class="w-full px-3 py-2 border rounded" placeholder="https://example.com/background.jpg">
|
| 237 |
+
</div>
|
| 238 |
+
<div class="mb-4">
|
| 239 |
+
<label class="block text-gray-700 mb-2 en">Or upload file</label>
|
| 240 |
+
<label class="block text-gray-700 mb-2 vi hidden-language">Hoặc tải lên</label>
|
| 241 |
+
<input type="file" id="bgImageFileInput" class="w-full px-3 py-2 border rounded" accept="image/*">
|
| 242 |
+
</div>
|
| 243 |
+
<div class="mb-4">
|
| 244 |
+
<label class="block text-gray-700 mb-2 en">Background Position</label>
|
| 245 |
+
<label class="block text-gray-700 mb-2 vi hidden-language">Vị trí ảnh nền</label>
|
| 246 |
+
<select id="bgPositionSelect" class="w-full px-3 py-2 border rounded">
|
| 247 |
+
<option value="center">Center</option>
|
| 248 |
+
<option value="top">Top</option>
|
| 249 |
+
<option value="bottom">Bottom</option>
|
| 250 |
+
<option value="left">Left</option>
|
| 251 |
+
<option value="right">Right</option>
|
| 252 |
+
</select>
|
| 253 |
+
</div>
|
| 254 |
+
<div class="flex justify-between">
|
| 255 |
+
<button id="cancelBgImageUploadBtn" class="bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded en">
|
| 256 |
+
Cancel
|
| 257 |
+
</button>
|
| 258 |
+
<button id="cancelBgImageUploadBtn" class="bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded vi hidden-language">
|
| 259 |
+
Hủy
|
| 260 |
+
</button>
|
| 261 |
+
<button id="confirmBgImageUploadBtn" class="bg-yellow-500 hover:bg-yellow-600 text-black px-4 py-2 rounded en">
|
| 262 |
+
Update Background
|
| 263 |
+
</button>
|
| 264 |
+
<button id="confirmBgImageUploadBtn" class="bg-yellow-500 hover:bg-yellow-600 text-black px-4 py-2 rounded vi hidden-language">
|
| 265 |
+
Cập nhật nền
|
| 266 |
+
</button>
|
| 267 |
+
</div>
|
| 268 |
+
</div>
|
| 269 |
+
</div>
|
| 270 |
+
|
| 271 |
<!-- Language Selector -->
|
| 272 |
<div class="bg-gray-800 text-white py-2 px-4">
|
| 273 |
<div class="container mx-auto flex justify-end">
|
|
|
|
| 279 |
</div>
|
| 280 |
|
| 281 |
<!-- Header -->
|
| 282 |
+
<header class="custom-bg text-white" id="headerBg">
|
| 283 |
+
<div class="bg-editor" onclick="openBgImageUploadModal('headerBg')">
|
| 284 |
+
<i class="fas fa-image mr-1"></i>
|
| 285 |
+
<span class="en">Edit Background</span>
|
| 286 |
+
<span class="vi hidden-language">Sửa nền</span>
|
| 287 |
+
</div>
|
| 288 |
<div class="bg-black bg-opacity-60">
|
| 289 |
<div class="container mx-auto px-4 py-6">
|
| 290 |
<div class="flex justify-between items-center">
|
|
|
|
| 368 |
<!-- Main Content -->
|
| 369 |
<main>
|
| 370 |
<!-- Hero Section -->
|
| 371 |
+
<section id="home" class="py-20 custom-bg text-white" id="heroBg">
|
| 372 |
+
<div class="bg-editor" onclick="openBgImageUploadModal('heroBg')">
|
| 373 |
+
<i class="fas fa-image mr-1"></i>
|
| 374 |
+
<span class="en">Edit Background</span>
|
| 375 |
+
<span class="vi hidden-language">Sửa nền</span>
|
| 376 |
+
</div>
|
| 377 |
<div class="bg-black bg-opacity-60 py-16">
|
| 378 |
<div class="container mx-auto px-4 text-center">
|
| 379 |
<h2 class="text-5xl font-bold mb-6 en editable">Welcome to Our Community
|
|
|
|
| 397 |
</a>
|
| 398 |
<a href="#events" class="bg-transparent border-2 border-white hover:bg-white hover:text-black px-6 py-3 rounded-lg font-semibold text-lg en editable">Upcoming Events
|
| 399 |
<span class="edit-btn" onclick="openEditModal(this, 'hero-events-en')"><i class="fas fa-pencil"></i></span>
|
| 400 |
+
</a>
|
| 401 |
<a href="#events" class="bg-transparent border-2 border-white hover:bg-white hover:text-black px-6 py-3 rounded-lg font-semibold text-lg vi hidden-language editable">Sự kiện sắp tới
|
| 402 |
<span class="edit-btn" onclick="openEditModal(this, 'hero-events-vi')"><i class="fas fa-pencil"></i></span>
|
| 403 |
</a>
|
|
|
|
| 424 |
</div>
|
| 425 |
</div>
|
| 426 |
</div>
|
| 427 |
+
<div class="md:w-极
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 428 |
</html>
|
prompts.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
make the website in 2 languages english and Vietnamese
|
| 2 |
what is the admin login to edit the website
|
| 3 |
-
update to be able to edit upload change images
|
|
|
|
|
|
| 1 |
make the website in 2 languages english and Vietnamese
|
| 2 |
what is the admin login to edit the website
|
| 3 |
+
update to be able to edit upload change images
|
| 4 |
+
also update to be able to edit background images
|