File size: 65,140 Bytes
40f6888 | 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 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Braid Station Norfolk | Glow From Within</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');
body {
font-family: 'Open Sans', sans-serif;
color: #333;
}
h1, h2, h3, h4 {
font-family: 'Playfair Display', serif;
}
.hero {
background: linear-gradient(rgba(250, 224, 228, 0.8), rgba(250, 224, 228, 0.8)), url('https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80');
background-size: cover;
background-position: center;
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.gallery-item {
transition: all 0.3s ease;
}
.gallery-item:hover {
transform: scale(1.02);
}
.login-modal, .upload-modal {
display: none;
position: fixed;
z-index: 100;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.4);
}
.modal-content {
background-color: #fefefe;
margin: 10% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 500px;
border-radius: 10px;
}
.dropzone {
border: 2px dashed #d1d5db;
border-radius: 6px;
padding: 20px;
text-align: center;
cursor: pointer;
transition: all 0.3s;
}
.dropzone:hover, .dropzone.dragover {
border-color: #f472b6;
background-color: #fdf2f8;
}
.admin-nav {
display: none;
}
.active-filter {
background-color: #f472b6;
color: white;
}
</style>
</head>
<body class="bg-rose-50">
<!-- Header/Navigation -->
<header class="bg-white shadow-md sticky top-0 z-50">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-spa text-3xl text-rose-400 mr-2"></i>
<h1 class="text-2xl font-bold text-rose-800">Braid Station Norfolk</h1>
</div>
<nav class="hidden md:flex space-x-8">
<a href="#home" class="text-rose-800 hover:text-rose-600 font-medium">Home</a>
<a href="#services" class="text-rose-800 hover:text-rose-600 font-medium">Services</a>
<a href="#gallery" class="text-rose-800 hover:text-rose-600 font-medium">Gallery</a>
<a href="#booking" class="text-rose-800 hover:text-rose-600 font-medium">Book Now</a>
<a href="#about" class="text-rose-800 hover:text-rose-600 font-medium">About Us</a>
<a href="#contact" class="text-rose-800 hover:text-rose-600 font-medium">Contact</a>
<button id="login-btn" class="text-rose-800 hover:text-rose-600 font-medium">Staff Login</button>
</nav>
<button class="md:hidden text-rose-800 text-2xl" id="mobile-menu-btn">
<i class="fas fa-bars"></i>
</button>
</div>
<!-- Mobile Menu -->
<div class="md:hidden hidden bg-white w-full py-4 px-4 shadow-md" id="mobile-menu">
<div class="flex flex-col space-y-4">
<a href="#home" class="text-rose-800 hover:text-rose-600 font-medium">Home</a>
<a href="#services" class="text-rose-800 hover:text-rose-600 font-medium">Services</a>
<a href="#gallery" class="text-rose-800 hover:text-rose-600 font-medium">Gallery</a>
<a href="#booking" class="text-rose-800 hover:text-rose-600 font-medium">Book Now</a>
<a href="#about" class="text-rose-800 hover:text-rose-600 font-medium">About Us</a>
<a href="#contact" class="text-rose-800 hover:text-rose-600 font-medium">Contact</a>
<button id="mobile-login-btn" class="text-rose-800 hover:text-rose-600 font-medium text-left">Staff Login</button>
</div>
</div>
<!-- Admin Navigation (hidden by default) -->
<div class="admin-nav bg-rose-800 text-white py-2 px-4">
<div class="container mx-auto flex justify-between items-center">
<span class="font-medium">Admin Dashboard</span>
<div class="flex space-x-4">
<button id="upload-btn" class="hover:text-rose-200">Upload Photos</button>
<button id="logout-btn" class="hover:text-rose-200">Logout</button>
</div>
</div>
</div>
</header>
<!-- Login Modal -->
<div id="login-modal" class="login-modal">
<div class="modal-content">
<span class="close-modal float-right text-2xl cursor-pointer">×</span>
<h2 class="text-2xl font-bold text-rose-800 mb-6">Staff Login</h2>
<form id="login-form">
<div class="mb-4">
<label for="email" class="block text-gray-700 mb-2">Email</label>
<input type="email" id="email" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-6">
<label for="password" class="block text-gray-700 mb-2">Password</label>
<input type="password" id="password" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<button type="submit" class="w-full bg-rose-600 text-white py-2 px-4 rounded-md hover:bg-rose-700 transition">Login</button>
<div class="mt-4 text-center">
<a href="#" class="text-rose-600 hover:underline">Forgot password?</a>
</div>
</form>
</div>
</div>
<!-- Upload Modal -->
<div id="upload-modal" class="login-modal">
<div class="modal-content">
<span class="close-upload-modal float-right text-2xl cursor-pointer">×</span>
<h2 class="text-2xl font-bold text-rose-800 mb-6">Upload New Photo</h2>
<form id="upload-form">
<div class="mb-4">
<div id="dropzone" class="dropzone">
<i class="fas fa-cloud-upload-alt text-4xl text-rose-400 mb-2"></i>
<p class="text-gray-600">Drag & drop your image here or click to browse</p>
<input type="file" id="file-input" class="hidden" accept="image/*">
</div>
<div id="preview-container" class="mt-4 hidden">
<img id="image-preview" class="max-h-48 mx-auto rounded-md">
</div>
</div>
<div class="mb-4">
<label for="image-title" class="block text-gray-700 mb-2">Title</label>
<input type="text" id="image-title" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="image-desc" class="block text-gray-700 mb-2">Description</label>
<textarea id="image-desc" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" rows="3"></textarea>
</div>
<div class="mb-4">
<label for="image-category" class="block text-gray-700 mb-2">Category</label>
<select id="image-category" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400">
<option value="hair">Hair</option>
<option value="nails">Nails</option>
<option value="makeup">Makeup</option>
<option value="spa">Spa</option>
<option value="skincare">Skincare</option>
</select>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Tags (comma separated)</label>
<input type="text" id="image-tags" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" placeholder="e.g., bridal, summer, gold">
</div>
<button type="submit" class="w-full bg-rose-600 text-white py-2 px-4 rounded-md hover:bg-rose-700 transition">Upload Photo</button>
</form>
</div>
</div>
<!-- Hero Section -->
<section id="home" class="hero min-h-screen flex items-center justify-center text-center px-4">
<div class="max-w-4xl mx-auto">
<h2 class="text-4xl md:text-6xl font-bold text-rose-800 mb-6">Glow From Within</h2>
<p class="text-xl md:text-2xl text-gray-700 mb-8">Experience luxury beauty services tailored just for you at Braid Station Norfolk</p>
<div class="flex flex-col sm:flex-row justify-center gap-4">
<a href="#booking" class="bg-rose-600 hover:bg-rose-700 text-white font-bold py-3 px-6 rounded-full transition duration-300">Book Now</a>
<a href="#services" class="bg-white hover:bg-gray-100 text-rose-600 font-bold py-3 px-6 rounded-full border border-rose-600 transition duration-300">Our Services</a>
</div>
</div>
</section>
<!-- Services Section -->
<section id="services" class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-rose-800 mb-12">Our Services</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Hair Services -->
<div class="service-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="h-48 overflow-hidden">
<img src="https://images.unsplash.com/photo-1595476108010-b4d1f102b1b1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1888&q=80" alt="Hair Services" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-rose-800 mb-2">Hair Services</h3>
<p class="text-gray-600 mb-4">From precision cuts to vibrant colors and luxurious treatments, we'll help you achieve your dream hair.</p>
<div class="mb-4">
<div class="flex justify-between py-2 border-b">
<span>Women's Cut & Style</span>
<span>$65+</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Color Services</span>
<span>$75+</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Extensions</span>
<span>$150+</span>
</div>
<div class="flex justify-between py-2">
<span>Special Occasion</span>
<span>$85+</span>
</div>
</div>
<a href="#booking" class="inline-block bg-rose-600 hover:bg-rose-700 text-white font-medium py-2 px-4 rounded-md transition duration-300">Book Now</a>
</div>
</div>
<!-- Nail Services -->
<div class="service-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="h-48 overflow-hidden">
<img src="https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1888&q=80" alt="Nail Services" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-rose-800 mb-2">Nail Services</h3>
<p class="text-gray-600 mb-4">Pamper your hands and feet with our luxurious manicures, pedicures, and nail art services.</p>
<div class="mb-4">
<div class="flex justify-between py-2 border-b">
<span>Classic Manicure</span>
<span>$35</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Gel Polish</span>
<span>$45</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Spa Pedicure</span>
<span>$55</span>
</div>
<div class="flex justify-between py-2">
<span>Nail Art</span>
<span>$10+</span>
</div>
</div>
<a href="#booking" class="inline-block bg-rose-600 hover:bg-rose-700 text-white font-medium py-2 px-4 rounded-md transition duration-300">Book Now</a>
</div>
</div>
<!-- Makeup Services -->
<div class="service-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="h-48 overflow-hidden">
<img src="https://images.unsplash.com/photo-1596462502278-27bfdc403348?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Makeup Services" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-rose-800 mb-2">Makeup Services</h3>
<p class="text-gray-600 mb-4">Professional makeup application for every occasion, from natural daytime looks to glamorous evening styles.</p>
<div class="mb-4">
<div class="flex justify-between py-2 border-b">
<span>Everyday Makeup</span>
<span>$65</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Special Occasion</span>
<span>$85</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Bridal Makeup</span>
<span>$120</span>
</div>
<div class="flex justify-between py-2">
<span>Makeup Lesson</span>
<span>$95</span>
</div>
</div>
<a href="#booking" class="inline-block bg-rose-600 hover:bg-rose-700 text-white font-medium py-2 px-4 rounded-md transition duration-300">Book Now</a>
</div>
</div>
</div>
<!-- Second Row of Services -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-8">
<!-- Spa Services -->
<div class="service-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="h-48 overflow-hidden">
<img src="https://images.unsplash.com/photo-1544161515-4ab6ce6db874?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Spa Services" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-rose-800 mb-2">Spa Services</h3>
<p class="text-gray-600 mb-4">Relax and rejuvenate with our selection of spa treatments designed to refresh both body and mind.</p>
<div class="mb-4">
<div class="flex justify-between py-2 border-b">
<span>Swedish Massage</span>
<span>$85/hr</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Hot Stone Massage</span>
<span>$110/hr</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Facials</span>
<span>$75+</span>
</div>
<div class="flex justify-between py-2">
<span>Body Treatments</span>
<span>$95+</span>
</div>
</div>
<a href="#booking" class="inline-block bg-rose-600 hover:bg-rose-700 text-white font-medium py-2 px-4 rounded-md transition duration-300">Book Now</a>
</div>
</div>
<!-- Skincare Services -->
<div class="service-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="h-48 overflow-hidden">
<img src="https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Skincare Services" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-rose-800 mb-2">Skincare Services</h3>
<p class="text-gray-600 mb-4">Achieve healthy, glowing skin with our customized facials and advanced skincare treatments.</p>
<div class="mb-4">
<div class="flex justify-between py-2 border-b">
<span>Basic Facial</span>
<span>$75</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Anti-Aging Treatment</span>
<span>$120</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Acne Treatment</span>
<span>$95</span>
</div>
<div class="flex justify-between py-2">
<span>Microdermabrasion</span>
<span>$110</span>
</div>
</div>
<a href="#booking" class="inline-block bg-rose-600 hover:bg-rose-700 text-white font-medium py-2 px-4 rounded-md transition duration-300">Book Now</a>
</div>
</div>
<!-- Bridal Packages -->
<div class="service-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
<div class="h-48 overflow-hidden">
<img src="https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Bridal Packages" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h3 class="text-xl font-bold text-rose-800 mb-2">Bridal Packages</h3>
<p class="text-gray-600 mb-4">Make your special day perfect with our comprehensive bridal beauty packages and trials.</p>
<div class="mb-4">
<div class="flex justify-between py-2 border-b">
<span>Bridal Hair & Makeup</span>
<span>$200</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Bridal Party Package</span>
<span>$150/person</span>
</div>
<div class="flex justify-between py-2 border-b">
<span>Trial Session</span>
<span>$95</span>
</div>
<div class="flex justify-between py-2">
<span>Full Day Package</span>
<span>$350+</span>
</div>
</div>
<a href="#booking" class="inline-block bg-rose-600 hover:bg-rose-700 text-white font-medium py-2 px-4 rounded-md transition duration-300">Book Now</a>
</div>
</div>
</div>
</div>
</section>
<!-- Gallery Section -->
<section id="gallery" class="py-16 bg-rose-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-rose-800 mb-12">Our Gallery</h2>
<!-- Gallery Filters -->
<div class="flex flex-wrap justify-center gap-2 mb-8">
<button class="filter-btn px-4 py-2 rounded-full bg-white text-rose-800 border border-rose-200 hover:bg-rose-100 transition active-filter" data-filter="all">All</button>
<button class="filter-btn px-4 py-2 rounded-full bg-white text-rose-800 border border-rose-200 hover:bg-rose-100 transition" data-filter="hair">Hair</button>
<button class="filter-btn px-4 py-2 rounded-full bg-white text-rose-800 border border-rose-200 hover:bg-rose-100 transition" data-filter="nails">Nails</button>
<button class="filter-btn px-4 py-2 rounded-full bg-white text-rose-800 border border-rose-200 hover:bg-rose-100 transition" data-filter="makeup">Makeup</button>
<button class="filter-btn px-4 py-2 rounded-full bg-white text-rose-800 border border-rose-200 hover:bg-rose-100 transition" data-filter="spa">Spa</button>
<button class="filter-btn px-4 py-2 rounded-full bg-white text-rose-800 border border-rose-200 hover:bg-rose-100 transition" data-filter="skincare">Skincare</button>
</div>
<!-- Gallery Grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6" id="gallery-grid">
<!-- Gallery items will be added dynamically via JavaScript -->
</div>
</div>
</section>
<!-- Booking Section -->
<section id="booking" class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-rose-800 mb-12">Book An Appointment</h2>
<div class="max-w-3xl mx-auto bg-rose-50 rounded-lg shadow-md overflow-hidden">
<div class="md:flex">
<div class="md:w-1/2 bg-rose-100 p-8">
<h3 class="text-xl font-bold text-rose-800 mb-4">Booking Information</h3>
<p class="text-gray-700 mb-6">Ready to pamper yourself? Fill out our booking form and we'll get back to you within 24 hours to confirm your appointment.</p>
<div class="mb-6">
<h4 class="font-bold text-rose-800 mb-2">Opening Hours</h4>
<div class="space-y-1">
<div class="flex justify-between">
<span>Monday - Friday</span>
<span>9:00 AM - 7:00 PM</span>
</div>
<div class="flex justify-between">
<span>Saturday</span>
<span>9:00 AM - 5:00 PM</span>
</div>
<div class="flex justify-between">
<span>Sunday</span>
<span>10:00 AM - 4:00 PM</span>
</div>
</div>
</div>
<div>
<h4 class="font-bold text-rose-800 mb-2">Contact Info</h4>
<div class="space-y-2">
<div class="flex items-center">
<i class="fas fa-map-marker-alt text-rose-600 mr-2"></i>
<span>123 Beauty Lane, Norfolk, VA 23510</span>
</div>
<div class="flex items-center">
<i class="fas fa-phone text-rose-600 mr-2"></i>
<span>(757) 555-1234</span>
</div>
<div class="flex items-center">
<i class="fas fa-envelope text-rose-600 mr-2"></i>
<span>info@braidstationnorfolk.com</span>
</div>
</div>
</div>
</div>
<div class="md:w-1/2 p-8">
<form id="booking-form">
<div class="mb-4">
<label for="booking-name" class="block text-gray-700 mb-2">Full Name</label>
<input type="text" id="booking-name" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="booking-email" class="block text-gray-700 mb-2">Email</label>
<input type="email" id="booking-email" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="booking-phone" class="block text-gray-700 mb-2">Phone Number</label>
<input type="tel" id="booking-phone" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="booking-service" class="block text-gray-700 mb-2">Service</label>
<select id="booking-service" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
<option value="">Select a service</option>
<option value="hair">Hair Services</option>
<option value="nails">Nail Services</option>
<option value="makeup">Makeup Services</option>
<option value="spa">Spa Services</option>
<option value="skincare">Skincare Services</option>
<option value="bridal">Bridal Packages</option>
</select>
</div>
<div class="mb-4">
<label for="booking-date" class="block text-gray-700 mb-2">Preferred Date</label>
<input type="date" id="booking-date" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="booking-time" class="block text-gray-700 mb-2">Preferred Time</label>
<input type="time" id="booking-time" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="booking-notes" class="block text-gray-700 mb-2">Special Requests</label>
<textarea id="booking-notes" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" rows="3"></textarea>
</div>
<button type="submit" class="w-full bg-rose-600 hover:bg-rose-700 text-white font-bold py-3 px-4 rounded-md transition duration-300">Submit Booking</button>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- About Us Section -->
<section id="about" class="py-16 bg-rose-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-rose-800 mb-12">About Us</h2>
<div class="max-w-4xl mx-auto">
<div class="md:flex items-center gap-8 mb-12">
<div class="md:w-1/2 mb-8 md:mb-0">
<img src="https://images.unsplash.com/photo-1580618672591-eb180b1a973f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80" alt="Our Salon" class="w-full h-auto rounded-lg shadow-md">
</div>
<div class="md:w-1/2">
<h3 class="text-2xl font-bold text-rose-800 mb-4">Our Story</h3>
<p class="text-gray-700 mb-4">Founded in 2015, Braid Station Norfolk began as a small boutique salon with a big vision: to create a space where beauty meets wellness, and every client leaves feeling confident and rejuvenated.</p>
<p class="text-gray-700">What started as a single-chair operation has grown into Norfolk's premier beauty destination, known for our exceptional service, talented team, and commitment to using only the highest quality products.</p>
</div>
</div>
<div class="mb-12">
<h3 class="text-2xl font-bold text-center text-rose-800 mb-8">Our Mission</h3>
<div class="bg-white p-8 rounded-lg shadow-md text-center max-w-3xl mx-auto">
<p class="text-gray-700 text-lg italic mb-6">"To enhance natural beauty through personalized services, foster confidence in our clients, and create a welcoming environment where everyone feels valued."</p>
<div class="flex flex-wrap justify-center gap-6">
<div class="flex items-center">
<i class="fas fa-heart text-rose-600 text-2xl mr-2"></i>
<span>Quality Products</span>
</div>
<div class="flex items-center">
<i class="fas fa-star text-rose-600 text-2xl mr-2"></i>
<span>Expert Stylists</span>
</div>
<div class="flex items-center">
<i class="fas fa-leaf text-rose-600 text-2xl mr-2"></i>
<span>Eco-Friendly</span>
</div>
<div class="flex items-center">
<i class="fas fa-smile text-rose-600 text-2xl mr-2"></i>
<span>Client Satisfaction</span>
</div>
</div>
</div>
</div>
<h3 class="text-2xl font-bold text-center text-rose-800 mb-8">Meet Our Team</h3>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Team Member 1 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden transition duration-300 hover:shadow-lg">
<div class="h-64 overflow-hidden">
<img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5cd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1888&q=80" alt="Sarah Johnson" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h4 class="text-xl font-bold text-rose-800 mb-1">Sarah Johnson</h4>
<p class="text-rose-600 font-medium mb-3">Master Stylist & Owner</p>
<p class="text-gray-700 mb-4">With over 15 years in the industry, Sarah specializes in precision cutting and balayage techniques.</p>
<div class="flex space-x-3">
<a href="#" class="text-rose-600 hover:text-rose-800"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-rose-600 hover:text-rose-800"><i class="fab fa-facebook"></i></a>
</div>
</div>
</div>
<!-- Team Member 2 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden transition duration-300 hover:shadow-lg">
<div class="h-64 overflow-hidden">
<img src="https://images.unsplash.com/photo-1551836022-d5d88e9218df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80" alt="Maria Garcia" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h4 class="text-xl font-bold text-rose-800 mb-1">Maria Garcia</h4>
<p class="text-rose-600 font-medium mb-3">Lead Esthetician</p>
<p class="text-gray-700 mb-4">Maria's facials and skincare treatments are transformative, using only organic, cruelty-free products.</p>
<div class="flex space-x-3">
<a href="#" class="text-rose-600 hover:text-rose-800"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-rose-600 hover:text-rose-800"><i class="fab fa-facebook"></i></a>
</div>
</div>
</div>
<!-- Team Member 3 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden transition duration-300 hover:shadow-lg">
<div class="h-64 overflow-hidden">
<img src="https://images.unsplash.com/photo-1580489944761-15a19d654956?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1961&q=80" alt="Taylor Smith" class="w-full h-full object-cover">
</div>
<div class="p-6">
<h4 class="text-xl font-bold text-rose-800 mb-1">Taylor Smith</h4>
<p class="text-rose-600 font-medium mb-3">Nail Technician & Makeup Artist</p>
<p class="text-gray-700 mb-4">Taylor's intricate nail art and flawless makeup applications make her a bridal client favorite.</p>
<div class="flex space-x-3">
<a href="#" class="text-rose-600 hover:text-rose-800"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-rose-600 hover:text-rose-800"><i class="fab fa-facebook"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center text-rose-800 mb-12">Contact Us</h2>
<div class="max-w-6xl mx-auto">
<div class="md:flex gap-8">
<div class="md:w-1/2 mb-8 md:mb-0">
<div class="bg-rose-50 p-6 rounded-lg shadow-md h-full">
<h3 class="text-xl font-bold text-rose-800 mb-4">Get In Touch</h3>
<form id="contact-form">
<div class="mb-4">
<label for="contact-name" class="block text-gray-700 mb-2">Name</label>
<input type="text" id="contact-name" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="contact-email" class="block text-gray-700 mb-2">Email</label>
<input type="email" id="contact-email" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="contact-subject" class="block text-gray-700 mb-2">Subject</label>
<input type="text" id="contact-subject" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" required>
</div>
<div class="mb-4">
<label for="contact-message" class="block text-gray-700 mb-2">Message</label>
<textarea id="contact-message" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-rose-400" rows="5" required></textarea>
</div>
<button type="submit" class="w-full bg-rose-600 hover:bg-rose-700 text-white font-bold py-3 px-4 rounded-md transition duration-300">Send Message</button>
</form>
</div>
</div>
<div class="md:w-1/2">
<div class="bg-rose-50 p-6 rounded-lg shadow-md h-full">
<h3 class="text-xl font-bold text-rose-800 mb-4">Our Location</h3>
<div class="mb-6">
<div class="h-64 bg-gray-200 rounded-lg overflow-hidden">
<!-- Google Maps iframe would go here -->
<div class="w-full h-full flex items-center justify-center bg-rose-100">
<i class="fas fa-map-marker-alt text-4xl text-rose-600"></i>
</div>
</div>
</div>
<div class="space-y-4">
<div class="flex items-start">
<i class="fas fa-map-marker-alt text-rose-600 mt-1 mr-3"></i>
<div>
<h4 class="font-bold text-gray-800">Address</h4>
<p class="text-gray-700">123 Beauty Lane<br>Norfolk, VA 23510</p>
</div>
</div>
<div class="flex items-start">
<i class="fas fa-phone text-rose-600 mt-1 mr-3"></i>
<div>
<h4 class="font-bold text-gray-800">Phone</h4>
<p class="text-gray-700">(757) 555-1234</p>
</div>
</div>
<div class="flex items-start">
<i class="fas fa-envelope text-rose-600 mt-1 mr-3"></i>
<div>
<h4 class="font-bold text-gray-800">Email</h4>
<p class="text-gray-700">info@braidstationnorfolk.com</p>
</div>
</div>
<div class="flex items-start">
<i class="fas fa-clock text-rose-600 mt-1 mr-3"></i>
<div>
<h4 class="font-bold text-gray-800">Hours</h4>
<p class="text-gray-700">
Mon-Fri: 9AM - 7PM<br>
Sat: 9AM - 5PM<br>
Sun: 10AM - 4PM
</p>
</div>
</div>
</div>
<div class="mt-6">
<h4 class="font-bold text-gray-800 mb-3">Follow Us</h4>
<div class="flex space-x-4">
<a href="#" class="bg-rose-600 hover:bg-rose-700 text-white w-10 h-10 rounded-full flex items-center justify-center transition duration-300">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="bg-rose-600 hover:bg-rose-700 text-white w-10 h-10 rounded-full flex items-center justify-center transition duration-300">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="bg-rose-600 hover:bg-rose-700 text-white w-10 h-10 rounded-full flex items-center justify-center transition duration-300">
<i class="fab fa-pinterest-p"></i>
</a>
<a href="#" class="bg-rose-600 hover:bg-rose-700 text-white w-10 h-10 rounded-full flex items-center justify-center transition duration-300">
<i class="fab fa-yelp"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Newsletter Section -->
<section class="py-12 bg-rose-800 text-white">
<div class="container mx-auto px-4 text-center">
<h2 class="text-2xl font-bold mb-4">Join Our Beauty Community</h2>
<p class="max-w-2xl mx-auto mb-6">Subscribe to our newsletter for exclusive offers, beauty tips, and the latest trends delivered straight to your inbox.</p>
<form class="max-w-md mx-auto flex">
<input type="email" placeholder="Your email address" class="flex-grow px-4 py-2 rounded-l-md focus:outline-none text-gray-800">
<button type="submit" class="bg-rose-600 hover:bg-rose-700 px-6 py-2 rounded-r-md transition duration-300">Subscribe</button>
</form>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-8">
<div class="container mx-auto px-4">
<div class="md:flex justify-between items-center">
<div class="mb-6 md:mb-0">
<div class="flex items-center">
<i class="fas fa-spa text-2xl text-rose-400 mr-2"></i>
<h2 class="text-xl font-bold">Braid Station Norfolk</h2>
</div>
<p class="mt-2 text-gray-400">Glow From Within</p>
</div>
<div class="grid grid-cols-2 md:grid-cols-3 gap-8">
<div>
<h3 class="text-lg font-bold mb-3">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#home" class="text-gray-400 hover:text-white transition">Home</a></li>
<li><a href="#services" class="text-gray-400 hover:text-white transition">Services</a></li>
<li><a href="#gallery" class="text-gray-400 hover:text-white transition">Gallery</a></li>
<li><a href="#booking" class="text-gray-400 hover:text-white transition">Booking</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-3">Information</h3>
<ul class="space-y-2">
<li><a href="#about" class="text-gray-400 hover:text-white transition">About Us</a></li>
<li><a href="#contact" class="text-gray-400 hover:text-white transition">Contact</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Privacy Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Terms of Service</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-3">Contact</h3>
<ul class="space-y-2">
<li class="flex items-center">
<i class="fas fa-map-marker-alt text-rose-400 mr-2"></i>
<span class="text-gray-400">123 Beauty Lane, Norfolk</span>
</li>
<li class="flex items-center">
<i class="fas fa-phone text-rose-400 mr-2"></i>
<span class="text-gray-400">(757) 555-1234</span>
</li>
<li class="flex items-center">
<i class="fas fa-envelope text-rose-400 mr-2"></i>
<span class="text-gray-400">info@braidstationnorfolk.com</span>
</li>
</ul>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 Braid Station Norfolk. All rights reserved.</p>
</div>
</div>
</footer>
<!-- JavaScript -->
<script>
// Sample gallery data (in a real app, this would come from a database)
const galleryData = [
{
id: 1,
title: "Balayage Highlights",
description: "Beautiful sun-kissed balayage on long layered cut",
category: "hair",
tags: ["balayage", "highlights", "blonde"],
imageUrl: "https://images.unsplash.com/photo-1559599101-f09722fb4948?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80"
},
{
id: 2,
title: "French Manicure",
description: "Classic french manicure with gel polish",
category: "nails",
tags: ["french", "manicure", "gel"],
imageUrl: "https://images.unsplash.com/photo-1604658243842-8258bcdac0a0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
},
{
id: 3,
title: "Bridal Makeup",
description: "Elegant bridal makeup with soft glam look",
category: "makeup",
tags: ["bridal", "makeup", "glam"],
imageUrl: "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1887&q=80"
},
{
id: 4,
title: "Hot Stone Massage",
description: "Relaxing hot stone massage therapy",
category: "spa",
tags: ["massage", "spa", "relaxation"],
imageUrl: "https://images.unsplash.com/photo-1544161515-4ab6ce6db874?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
},
{
id: 5,
title: "Hydrafacial Treatment",
description: "Revitalizing hydrafacial for glowing skin",
category: "skincare",
tags: ["facial", "skincare", "hydra"],
imageUrl: "https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
},
{
id: 6,
title: "Braided Updo",
description: "Elegant braided updo for special occasions",
category: "hair",
tags: ["braids", "updo", "formal"],
imageUrl: "https://images.unsplash.com/photo-1525507119028-ed4c629a60a3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1935&q=80"
},
{
id: 7,
title: "Nail Art Design",
description: "Creative nail art with floral patterns",
category: "nails",
tags: ["nailart", "floral", "design"],
imageUrl: "https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1888&q=80"
},
{
id: 8,
title: "Evening Glam Makeup",
description: "Dramatic evening makeup with smokey eyes",
category: "makeup",
tags: ["glam", "evening", "smokey"],
imageUrl: "https://images.unsplash.com/photo-1596462502278-27bfdc403348?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80"
}
];
// DOM Elements
const mobileMenuBtn = document.getElementById('mobile-menu-btn');
const mobileMenu = document.getElementById('mobile-menu');
const loginBtn = document.getElementById('login-btn');
const mobileLoginBtn = document.getElementById('mobile-login-btn');
const loginModal = document.getElementById('login-modal');
const closeModal = document.querySelector('.close-modal');
const loginForm = document.getElementById('login-form');
const uploadBtn = document.getElementById('upload-btn');
const uploadModal = document.getElementById('upload-modal');
const closeUploadModal = document.querySelector('.close-upload-modal');
const uploadForm = document.getElementById('upload-form');
const dropzone = document.getElementById('dropzone');
const fileInput = document.getElementById('file-input');
const previewContainer = document.getElementById('preview-container');
const imagePreview = document.getElementById('image-preview');
const galleryGrid = document.getElementById('gallery-grid');
const filterBtns = document.querySelectorAll('.filter-btn');
const adminNav = document.querySelector('.admin-nav');
const logoutBtn = document.getElementById('logout-btn');
const bookingForm = document.getElementById('booking-form');
const contactForm = document.getElementById('contact-form');
// Mobile Menu Toggle
mobileMenuBtn.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
});
// Login Modal
const openLoginModal = () => {
loginModal.style.display = 'block';
};
const closeLoginModal = () => {
loginModal.style.display = 'none';
};
loginBtn.addEventListener('click', openLoginModal);
mobileLoginBtn.addEventListener('click', openLoginModal);
closeModal.addEventListener('click', closeLoginModal);
// Close modal when clicking outside
window.addEventListener('click', (e) => {
if (e.target === loginModal) {
closeLoginModal();
}
if (e.target === uploadModal) {
closeUploadModal();
}
});
// Upload Modal
const openUploadModal = () => {
uploadModal.style.display = 'block';
};
const closeUploadModal = () => {
uploadModal.style.display = 'none';
// Reset form
uploadForm.reset();
previewContainer.classList.add('hidden');
};
uploadBtn.addEventListener('click', openUploadModal);
closeUploadModal.addEventListener('click', closeUploadModal);
// Drag and drop file upload
dropzone.addEventListener('click', () => {
fileInput.click();
});
fileInput.addEventListener('change', (e) => {
const file = e.target.files[0];
if (file) {
const reader = new FileReader();
reader.onload = (e) => {
imagePreview.src = e.target.result;
previewContainer.classList.remove('hidden');
};
reader.readAsDataURL(file);
}
});
dropzone.addEventListener('dragover', (e) => {
e.preventDefault();
dropzone.classList.add('dragover');
});
dropzone.addEventListener('dragleave', () => {
dropzone.classList.remove('dragover');
});
dropzone.addEventListener('drop', (e) => {
e.preventDefault();
dropzone.classList.remove('dragover');
const file = e.dataTransfer.files[0];
if (file && file.type.startsWith('image/')) {
fileInput.files = e.dataTransfer.files;
const reader = new FileReader();
reader.onload = (e) => {
imagePreview.src = e.target.result;
previewContainer.classList.remove('hidden');
};
reader.readAsDataURL(file);
}
});
// Login Form Submission
loginForm.addEventListener('submit', (e) => {
e.preventDefault();
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
// Simple validation (in a real app, this would check against a database)
if (email === 'admin@braidstation.com' && password === 'password123') {
// Show admin nav
adminNav.style.display = 'block';
// Close modal
closeLoginModal();
// Scroll to top
window.scrollTo(0, 0);
} else {
alert('Invalid credentials. Please try again.');
}
});
// Logout
logoutBtn.addEventListener('click', () => {
adminNav.style.display = 'none';
});
// Upload Form Submission
uploadForm.addEventListener('submit', (e) => {
e.preventDefault();
// Get form values
const title = document.getElementById('image-title').value;
const description = document.getElementById('image-desc').value;
const category = document.getElementById('image-category').value;
const tags = document.getElementById('image-tags').value.split(',').map(tag => tag.trim());
// In a real app, this would upload to a server
// For demo, we'll just add to our gallery data
if (fileInput.files.length > 0) {
const reader = new FileReader();
reader.onload = (e) => {
const newItem = {
id: galleryData.length + 1,
title,
description,
category,
tags,
imageUrl: e.target.result
};
galleryData.unshift(newItem); // Add to beginning of array
renderGalleryItems('all'); // Re-render gallery
closeUploadModal(); // Close modal
};
reader.readAsDataURL(fileInput.files[0]);
} else {
alert('Please select an image to upload');
}
});
// Gallery Filter
filterBtns.forEach(btn => {
btn.addEventListener('click', () => {
// Remove active class from all buttons
filterBtns.forEach(b => b.classList.remove('active-filter'));
// Add active class to clicked button
btn.classList.add('active-filter');
// Filter gallery
const filter = btn.dataset.filter;
renderGalleryItems(filter);
});
});
// Render Gallery Items
function renderGalleryItems(filter) {
galleryGrid.innerHTML = '';
const filteredItems = filter === 'all'
? galleryData
: galleryData.filter(item => item.category === filter);
filteredItems.forEach(item => {
const galleryItem = document.createElement('div');
galleryItem.className = 'gallery-item relative group overflow-hidden rounded-lg shadow-md';
galleryItem.dataset.category = item.category;
galleryItem.innerHTML = `
<div class="h-64 overflow-hidden">
<img src="${item.imageUrl}" alt="${item.title}" class="w-full h-full object-cover transition duration-300 group-hover:scale-110">
</div>
<div class="absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-40 transition duration-300 flex items-end p-4">
<div class="transform translate-y-10 group-hover:translate-y-0 transition duration-300">
<h3 class="text-white font-bold text-lg">${item.title}</h3>
<p class="text-gray-200 text-sm">${item.description}</p>
<div class="mt-2 flex flex-wrap gap-1">
${item.tags.map(tag => `<span class="bg-rose-600 text-white text-xs px-2 py-1 rounded-full">${tag}</span>`).join('')}
</div>
</div>
</div>
${adminNav.style.display === 'block' ?
`<button class="absolute top-2 right-2 bg-red-500 text-white p-2 rounded-full opacity-0 group-hover:opacity-100 transition duration-300 delete-btn" data-id="${item.id}">
<i class="fas fa-trash"></i>
</button>` : ''}
`;
galleryGrid.appendChild(galleryItem);
});
// Add delete event listeners if admin is logged in
if (adminNav.style.display === 'block') {
document.querySelectorAll('.delete-btn').forEach(btn => {
btn.addEventListener('click', (e) => {
e.stopPropagation();
const id = parseInt(btn.dataset.id);
deleteGalleryItem(id);
});
});
}
}
// Delete Gallery Item
function deleteGalleryItem(id) {
if (confirm('Are you sure you want to delete this item?')) {
const index = galleryData.findIndex(item => item.id === id);
if (index !== -1) {
galleryData.splice(index, 1);
renderGalleryItems(document.querySelector('.filter-btn.active-filter').dataset.filter);
}
}
}
// Booking Form Submission
bookingForm.addEventListener('submit', (e) => {
e.preventDefault();
alert('Thank you for your booking request! We will contact you shortly to confirm your appointment.');
bookingForm.reset();
});
// Contact Form Submission
contactForm.addEventListener('submit', (e) => {
e.preventDefault();
alert('Thank you for your message! We will get back to you soon.');
contactForm.reset();
});
// Initialize gallery on page load
document.addEventListener('DOMContentLoaded', () => {
renderGalleryItems('all');
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetId = this.getAttribute('href');
const targetElement = document.querySelector(targetId);
if (targetElement) {
window.scrollTo({
top: targetElement.offsetTop - 80,
behavior: 'smooth'
});
// Close mobile menu if open
if (!mobileMenu.classList.contains('hidden')) {
mobileMenu.classList.add('hidden');
}
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Jjumaa/braidnet" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |