Spaces:
Running
Running
Download index.html from Oloud/anycoder-fd923279: direct link, hf CLI and curl.
- Browser
- Download file 24.6 kB
-
https://huggingface.co/spaces/Oloud/anycoder-fd923279/resolve/main/index.html
- Command line
-
hf download hf://spaces/Oloud/anycoder-fd923279/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Oloud/anycoder-fd923279/resolve/main/index.html
24.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Discover Bali | The Island of Gods</title> | |
| <!-- Importing Google Fonts --> | |
| <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=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet"> | |
| <!-- Importing FontAwesome for Icons --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| /* --- CSS VARIABLES & RESET --- */ | |
| :root { | |
| --primary-color: #FF7F50; /* Coral */ | |
| --secondary-color: #FFD700; /* Gold */ | |
| --dark-bg: #1a1a1a; | |
| --light-bg: #f9f9f9; | |
| --text-color: #333; | |
| --text-light: #f4f4f4; | |
| --font-heading: 'Playfair Display', serif; | |
| --font-body: 'Poppins', sans-serif; | |
| --transition: all 0.3s ease; | |
| --shadow: 0 10px 30px rgba(0,0,0,0.1); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| html { | |
| scroll-behavior: smooth; | |
| } | |
| body { | |
| font-family: var(--font-body); | |
| color: var(--text-color); | |
| line-height: 1.6; | |
| background-color: var(--light-bg); | |
| overflow-x: hidden; | |
| } | |
| a { | |
| text-decoration: none; | |
| color: inherit; | |
| } | |
| ul { | |
| list-style: none; | |
| } | |
| img { | |
| max-width: 100%; | |
| display: block; | |
| } | |
| /* --- HEADER & NAVIGATION --- */ | |
| header { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| z-index: 1000; | |
| padding: 1rem 5%; | |
| transition: var(--transition); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| header.scrolled { | |
| background: rgba(255, 255, 255, 0.95); | |
| backdrop-filter: blur(10px); | |
| box-shadow: 0 2px 20px rgba(0,0,0,0.05); | |
| padding: 0.8rem 5%; | |
| } | |
| .logo { | |
| font-family: var(--font-heading); | |
| font-size: 1.8rem; | |
| font-weight: 700; | |
| color: var(--text-light); | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| header.scrolled .logo { | |
| color: var(--dark-bg); | |
| } | |
| .logo i { | |
| color: var(--secondary-color); | |
| } | |
| nav ul { | |
| display: flex; | |
| gap: 2rem; | |
| } | |
| nav a { | |
| color: var(--text-light); | |
| font-weight: 500; | |
| font-size: 0.95rem; | |
| position: relative; | |
| transition: var(--transition); | |
| } | |
| header.scrolled nav a { | |
| color: var(--dark-bg); | |
| } | |
| nav a::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -5px; | |
| left: 0; | |
| width: 0; | |
| height: 2px; | |
| background: var(--primary-color); | |
| transition: var(--transition); | |
| } | |
| nav a:hover::after { | |
| width: 100%; | |
| } | |
| .hamburger { | |
| display: none; | |
| cursor: pointer; | |
| color: var(--text-light); | |
| font-size: 1.5rem; | |
| } | |
| header.scrolled .hamburger { | |
| color: var(--dark-bg); | |
| } | |
| /* --- HERO SECTION --- */ | |
| .hero { | |
| height: 100vh; | |
| width: 100%; | |
| background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), | |
| url('https://picsum.photos/seed/bali-beach/1920/1080.jpg'); | |
| background-size: cover; | |
| background-position: center; | |
| background-attachment: fixed; /* Parallax effect */ | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| text-align: center; | |
| color: var(--text-light); | |
| padding: 0 1rem; | |
| position: relative; | |
| } | |
| .hero-content { | |
| max-width: 800px; | |
| opacity: 0; | |
| transform: translateY(30px); | |
| animation: fadeInUp 1s ease forwards 0.5s; | |
| } | |
| .hero h1 { | |
| font-family: var(--font-heading); | |
| font-size: 4rem; | |
| margin-bottom: 1rem; | |
| line-height: 1.1; | |
| text-shadow: 2px 2px 10px rgba(0,0,0,0.3); | |
| } | |
| .hero p { | |
| font-size: 1.2rem; | |
| margin-bottom: 2rem; | |
| font-weight: 300; | |
| text-shadow: 1px 1px 5px rgba(0,0,0,0.3); | |
| } | |
| .btn { | |
| display: inline-block; | |
| padding: 12px 35px; | |
| background: var(--primary-color); | |
| color: white; | |
| border-radius: 50px; | |
| font-weight: 600; | |
| transition: var(--transition); | |
| border: 2px solid var(--primary-color); | |
| cursor: pointer; | |
| } | |
| .btn:hover { | |
| background: transparent; | |
| color: white; | |
| transform: translateY(-3px); | |
| box-shadow: 0 10px 20px rgba(255, 127, 80, 0.3); | |
| } | |
| .btn-outline { | |
| background: transparent; | |
| border: 2px solid white; | |
| margin-left: 1rem; | |
| } | |
| .btn-outline:hover { | |
| background: white; | |
| color: var(--dark-bg); | |
| } | |
| /* --- SECTIONS COMMON --- */ | |
| section { | |
| padding: 5rem 10%; | |
| } | |
| .section-header { | |
| text-align: center; | |
| margin-bottom: 4rem; | |
| } | |
| .section-header h2 { | |
| font-family: var(--font-heading); | |
| font-size: 2.5rem; | |
| margin-bottom: 1rem; | |
| color: var(--dark-bg); | |
| } | |
| .section-header span { | |
| display: block; | |
| width: 60px; | |
| height: 4px; | |
| background: var(--primary-color); | |
| margin: 0 auto; | |
| border-radius: 2px; | |
| } | |
| /* --- DESTINATIONS GRID --- */ | |
| .destinations-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .card { | |
| background: white; | |
| border-radius: 15px; | |
| overflow: hidden; | |
| box-shadow: var(--shadow); | |
| transition: var(--transition); | |
| position: relative; | |
| group: card; | |
| } | |
| .card:hover { | |
| transform: translateY(-10px); | |
| box-shadow: 0 20px 40px rgba(0,0,0,0.15); | |
| } | |
| .card-img { | |
| height: 250px; | |
| width: 100%; | |
| object-fit: cover; | |
| transition: transform 0.5s ease; | |
| } | |
| .card:hover .card-img { | |
| transform: scale(1.1); | |
| } | |
| .card-content { | |
| padding: 1.5rem; | |
| position: relative; | |
| background: white; | |
| z-index: 2; | |
| } | |
| .card-title { | |
| font-family: var(--font-heading); | |
| font-size: 1.5rem; | |
| margin-bottom: 0.5rem; | |
| display: flex; | |
| justify-content: space-between; | |
| } | |
| .card-rating { | |
| color: var(--secondary-color); | |
| font-size: 0.9rem; | |
| } | |
| .card-desc { | |
| color: #666; | |
| font-size: 0.9rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .card-price { | |
| font-size: 1.2rem; | |
| font-weight: 700; | |
| color: var(--primary-color); | |
| margin-bottom: 1rem; | |
| display: block; | |
| } | |
| .card-link { | |
| font-weight: 600; | |
| color: var(--dark-bg); | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| transition: var(--transition); | |
| } | |
| .card-link:hover { | |
| color: var(--primary-color); | |
| gap: 0.8rem; | |
| } | |
| /* --- GALLERY SECTION --- */ | |
| .gallery { | |
| background: var(--dark-bg); | |
| color: var(--text-light); | |
| } | |
| .gallery .section-header h2 { | |
| color: var(--text-light); | |
| } | |
| .gallery-grid { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| grid-template-rows: repeat(2, 250px); | |
| gap: 1rem; | |
| } | |
| .gallery-item { | |
| position: relative; | |
| overflow: hidden; | |
| border-radius: 10px; | |
| cursor: pointer; | |
| } | |
| .gallery-item img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| transition: transform 0.5s ease; | |
| } | |
| .gallery-overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0,0,0,0.4); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| opacity: 0; | |
| transition: var(--transition); | |
| } | |
| .gallery-overlay i { | |
| font-size: 2rem; | |
| color: white; | |
| } | |
| .gallery-item:hover img { | |
| transform: scale(1.1); | |
| } | |
| .gallery-item:hover .gallery-overlay { | |
| opacity: 1; | |
| } | |
| /* Span adjustments for masonry feel */ | |
| .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; } | |
| .gallery-item:nth-child(4) { grid-column: span 2; } | |
| /* --- CONTACT SECTION --- */ | |
| .contact-container { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 4rem; | |
| background: white; | |
| border-radius: 20px; | |
| box-shadow: var(--shadow); | |
| overflow: hidden; | |
| } | |
| .contact-info { | |
| flex: 1; | |
| padding: 3rem; | |
| background: var(--primary-color); | |
| color: white; | |
| min-width: 300px; | |
| } | |
| .contact-info h3 { | |
| font-family: var(--font-heading); | |
| font-size: 2rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .info-item { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 1rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .info-item i { | |
| font-size: 1.2rem; | |
| margin-top: 5px; | |
| } | |
| .contact-form { | |
| flex: 1.5; | |
| padding: 3rem; | |
| min-width: 300px; | |
| } | |
| .form-group { | |
| margin-bottom: 1.5rem; | |
| } | |
| .form-group label { | |
| display: block; | |
| margin-bottom: 0.5rem; | |
| font-weight: 500; | |
| } | |
| .form-control { | |
| width: 100%; | |
| padding: 12px; | |
| border: 1px solid #ddd; | |
| border-radius: 8px; | |
| font-family: inherit; | |
| transition: var(--transition); | |
| } | |
| .form-control:focus { | |
| outline: none; | |
| border-color: var(--primary-color); | |
| box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1); | |
| } | |
| textarea.form-control { | |
| resize: vertical; | |
| min-height: 120px; | |
| } | |
| /* --- FOOTER --- */ | |
| footer { | |
| background: #111; | |
| color: #888; | |
| padding: 3rem 10% 1rem; | |
| text-align: center; | |
| } | |
| .footer-links { | |
| margin-bottom: 2rem; | |
| } | |
| .footer-links a { | |
| margin: 0 10px; | |
| font-size: 0.9rem; | |
| transition: var(--transition); | |
| } | |
| .footer-links a:hover { | |
| color: var(--primary-color); | |
| } | |
| .built-with { | |
| font-size: 0.8rem; | |
| color: #444; | |
| margin-top: 1rem; | |
| } | |
| .built-with a { | |
| color: #666; | |
| font-weight: 600; | |
| text-decoration: underline; | |
| } | |
| /* --- ANIMATIONS --- */ | |
| @keyframes fadeInUp { | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| /* --- RESPONSIVE MEDIA QUERIES --- */ | |
| @media (max-width: 992px) { | |
| .gallery-grid { | |
| grid-template-columns: repeat(2, 1fr); | |
| grid-template-rows: auto; | |
| } | |
| .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; } | |
| .gallery-item:nth-child(4) { grid-column: span 1; } | |
| } | |
| @media (max-width: 768px) { | |
| .hero h1 { font-size: 2.5rem; } | |
| .hamburger { display: block; } | |
| nav ul { | |
| position: absolute; | |
| top: 70px; | |
| right: 0; | |
| width: 100%; | |
| background: white; | |
| flex-direction: column; | |
| align-items: center; | |
| padding: 2rem 0; | |
| gap: 1.5rem; | |
| transform: translateY(-150%); | |
| transition: transform 0.4s ease; | |
| box-shadow: 0 10px 10px rgba(0,0,0,0.05); | |
| } | |
| nav ul.active { | |
| transform: translateY(0); | |
| } | |
| nav a { color: var(--dark-bg); } | |
| .contact-container { flex-direction: column; } | |
| section { padding: 4rem 5%; } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Header / Navigation --> | |
| <header id="header"> | |
| <a href="#" class="logo"> | |
| <i class="fa-solid fa-umbrella-beach"></i> BaliVibes | |
| </a> | |
| <div class="hamburger" id="hamburger"> | |
| <i class="fa-solid fa-bars"></i> | |
| </div> | |
| <nav> | |
| <ul id="nav-list"> | |
| <li><a href="#home">Home</a></li> | |
| <li><a href="#destinations">Destinations</a></li> | |
| <li><a href="#gallery">Gallery</a></li> | |
| <li><a href="#contact">Contact</a></li> | |
| </ul> | |
| </nav> | |
| </header> | |
| <!-- Hero Section --> | |
| <section id="home" class="hero"> | |
| <div class="hero-content"> | |
| <h1>Paradise Awaits in Bali</h1> | |
| <p>Experience the enchanting blend of ancient culture, lush jungles, and pristine beaches. Your dream vacation starts here.</p> | |
| <div class="hero-btns"> | |
| <a href="#destinations" class="btn">Explore Now</a> | |
| <a href="#gallery" class="btn btn-outline">View Gallery</a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Destinations Section --> | |
| <section id="destinations"> | |
| <div class="section-header"> | |
| <h2>Popular Destinations</h2> | |
| <span></span> | |
| </div> | |
| <div class="destinations-grid"> | |
| <!-- Card 1 --> | |
| <div class="card"> | |
| <img src="https://picsum.photos/seed/ubud/400/300" alt="Ubud Rice Terraces" class="card-img"> | |
| <div class="card-content"> | |
| <div class="card-title"> | |
| <h3>Ubud</h3> | |
| <span class="card-rating"><i class="fa-solid fa-star"></i> 4.9</span> | |
| </div> | |
| <p class="card-desc">Explore the lush green rice terraces, ancient temples, and vibrant art markets.</p> | |
| <span class="card-price">$120 / person</span> | |
| <a href="#" class="card-link">Learn More <i class="fa-solid fa-arrow-right"></i></a> | |
| </div> | |
| </div> | |
| <!-- Card 2 --> | |
| <div class="card"> | |
| <img src="https://picsum.photos/seed/seminyak/400/300" alt="Seminyak Beach" class="card-img"> | |
| <div class="card-content"> | |
| <div class="card-title"> | |
| <h3>Seminyak</h3> | |
| <span class="card-rating"><i class="fa-solid fa-star"></i> 4.8</span> | |
| </div> | |
| <p class="card-desc">Luxury beach clubs, high-end shopping, and stunning sunsets over the Indian Ocean.</p> | |
| <span class="card-price">$150 / person</span> | |
| <a href="#" class="card-link">Learn More <i class="fa-solid fa-arrow-right"></i></a> | |
| </div> | |
| </div> | |
| <!-- Card 3 --> | |
| <div class="card"> | |
| <img src="https://picsum.photos/seed/nusa-penida/400/300" alt="Nusa Penida" class="card-img"> | |
| <div class="card-content"> | |
| <div class="card-title"> | |
| <h3>Nusa Penida</h3> | |
| <span class="card-rating"><i class="fa-solid fa-star"></i> 4.7</span> | |
| </div> | |
| <p class="card-desc">Dramatic cliffs, Kelingking Beach, and world-class diving spots.</p> | |
| <span class="card-price">$200 / person</span> | |
| <a href="#" class="card-link">Learn More <i class="fa-solid fa-arrow-right"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Gallery Section --> | |
| <section id="gallery" class="gallery"> | |
| <div class="section-header"> | |
| <h2>Visual Journey</h2> | |
| <span></span> | |
| </div> | |
| <div class="gallery-grid"> | |
| <div class="gallery-item"> | |
| <img src="https://picsum.photos/seed/bali-temple/600/600" alt="Temple"> | |
| <div class="gallery-overlay"><i class="fa-solid fa-magnifying-glass-plus"></i></div> | |
| </div> | |
| <div class="gallery-item"> | |
| <img src="https://picsum.photos/seed/bali-sunset/600/300" alt="Sunset"> | |
| <div class="gallery-overlay"><i class="fa-solid fa-magnifying-glass-plus"></i></div> | |
| </div> | |
| <div class="gallery-item"> | |
| <img src="https://picsum.photos/seed/bali-food/600/300" alt="Food"> | |
| <div class="gallery-overlay"><i class="fa-solid fa-magnifying-glass-plus"></i></div> | |
| </div> | |
| <div class="gallery-item"> | |
| <img src="https://picsum.photos/seed/bali-tanah-lot/600/600" alt="Tanah Lot"> | |
| <div class="gallery-overlay"><i class="fa-solid fa-magnifying-glass-plus"></i></div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Contact Section --> | |
| <section id="contact"> | |
| <div class="section-header"> | |
| <h2>Plan Your Trip</h2> | |
| <span></span> | |
| </div> | |
| <div class="contact-container"> | |
| <div class="contact-info"> | |
| <h3>Contact Us</h3> | |
| <p style="margin-bottom: 2rem; opacity: 0.9;">Ready to book your adventure? Fill out the form or reach us directly.</p> | |
| <div class="info-item"> | |
| <i class="fa-solid fa-location-dot"></i> | |
| <div> | |
| <h4>Location</h4> | |
| <p>Jalan Raya Seminyak, Bali, Indonesia</p> | |
| </div> | |
| </div> | |
| <div class="info-item"> | |
| <i class="fa-solid fa-envelope"></i> | |
| <div> | |
| <h4>Email</h4> | |
| <p>hello@balivibes.com</p> | |
| </div> | |
| </div> | |
| <div class="info-item"> | |
| <i class="fa-solid fa-phone"></i> | |
| <div> | |
| <h4>Phone</h4> | |
| <p>+62 812 3456 7890</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="contact-form"> | |
| <form id="bookingForm" onsubmit="event.preventDefault(); alert('Thank you! We will contact you shortly.');"> | |
| <div class="form-group"> | |
| <label for="name">Full Name</label> | |
| <input type="text" id="name" class="form-control" placeholder="John Doe" required> | |
| </div> | |
| <div class="form-group"> | |
| <label for="email">Email Address</label> | |
| <input type="email" id="email" class="form-control" placeholder="john@example.com" required> | |
| </div> | |
| <div class="form-group"> | |
| <label for="destination">Interested Destination</label> | |
| <select id="destination" class="form-control"> | |
| <option>Ubud</option> | |
| <option>Seminyak</option> | |
| <option>Nusa Penida</option> | |
| <option>Canggu</option> | |
| </select> | |
| </div> | |
| <div class="form-group"> | |
| <label for="message">Message</label> | |
| <textarea id="message" class="form-control" placeholder="Tell us about your dream vacation..."></textarea> | |
| </div> | |
| <button type="submit" class="btn">Send Inquiry</button> | |
| </form> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer> | |
| <div class="footer-links"> | |
| <a href="#">Home</a> | |
| <a href="#">About</a> | |
| <a href="#">Privacy Policy</a> | |
| <a href="#">Terms of Service</a> | |
| </div> | |
| <p>© 2023 BaliVibes Travel. All rights reserved.</p> | |
| <div class="built-with"> | |
| Built with <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">anycoder</a> | |
| </div> | |
| </footer> | |
| <!-- JavaScript for Interactivity --> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // --- Navbar Scroll Effect --- | |
| const header = document.getElementById('header'); | |
| const hamburger = document.getElementById('hamburger'); | |
| const navList = document.getElementById('nav-list'); | |
| const navLinks = document.querySelectorAll('#nav-list a'); | |
| window.addEventListener('scroll', () => { | |
| if (window.scrollY > 50) { | |
| header.classList.add('scrolled'); | |
| } else { | |
| header.classList.remove('scrolled'); | |
| } | |
| }); | |
| // --- Mobile Menu Toggle --- | |
| hamburger.addEventListener('click', () => { | |
| navList.classList.toggle('active'); | |
| // Toggle icon between bars and times (X) | |
| const icon = hamburger.querySelector('i'); | |
| if (navList.classList.contains('active')) { | |
| icon.classList.remove('fa-bars'); | |
| icon.classList.add('fa-times'); | |
| } else { | |
| icon.classList.remove('fa-times'); | |
| icon.classList.add('fa-bars'); | |
| } | |
| }); | |
| // Close mobile menu when a link is clicked | |
| navLinks.forEach(link => { | |
| link.addEventListener('click', () => { | |
| navList.classList.remove('active'); | |
| hamburger.querySelector('i').classList.remove('fa-times'); | |
| hamburger.querySelector('i').classList.add('fa-bars'); | |
| }); | |
| }); | |
| // --- Smooth Scroll for Anchor Links (Backup for older browsers) --- | |
| navLinks.forEach(link => { | |
| link.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const targetId = this.getAttribute('href'); | |
| const targetSection = document.querySelector(targetId); | |
| if (targetSection) { | |
| const headerOffset = 80; | |
| const elementPosition = targetSection.getBoundingClientRect().top; | |
| const offsetPosition = elementPosition + window.pageYOffset - headerOffset; | |
| window.scrollTo({ | |
| top: offsetPosition, | |
| behavior: "smooth" | |
| }); | |
| } | |
| }); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |