PHP
PHP
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grand Palace Hotel - Luxury Experience</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/
all.min.css" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
overflow-x: hidden;
}
/* Navigation Bar */
.navbar {
background: linear-gradient(135deg, #2c3e50, #3498db);
color: white;
padding: 1rem 0;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
}
.logo {
font-size: 1.8rem;
font-weight: bold;
display: flex;
align-items: center;
}
.logo i {
margin-right: 0.5rem;
color: #f39c12;
}
.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-menu a {
color: white;
text-decoration: none;
transition: color 0.3s;
padding: 0.5rem 1rem;
border-radius: 5px;
}
.nav-menu a:hover {
background: rgba(255,255,255,0.1);
color: #f39c12;
}
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
padding: 0.5rem;
}
.hamburger span {
width: 25px;
height: 3px;
background: white;
margin: 3px 0;
transition: 0.3s;
}
/* Sidebar */
.sidebar {
position: fixed;
left: -300px;
top: 0;
width: 300px;
height: 100vh;
background: linear-gradient(180deg, #2c3e50, #34495e);
transition: left 0.3s ease;
z-index: 1001;
padding-top: 80px;
}
.sidebar.active {
left: 0;
}
.sidebar-menu {
list-style: none;
padding: 2rem 0;
}
.sidebar-menu li {
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-menu a {
display: block;
color: white;
text-decoration: none;
padding: 1rem 2rem;
transition: all 0.3s;
}
.sidebar-menu a:hover {
background: rgba(52, 152, 219, 0.2);
padding-left: 2.5rem;
}
.sidebar-menu i {
margin-right: 1rem;
width: 20px;
}
/* Overlay */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 999;
opacity: 0;
visibility: hidden;
transition: all 0.3s;
}
.overlay.active {
opacity: 1;
visibility: visible;
}
/* Main Content */
.main-content {
margin-top: 80px;
min-height: calc(100vh - 80px);
}
.section {
display: none;
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
animation: fadeIn 0.5s ease-in;
}
.section.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Home Section */
.hero {
background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
url('/api/placeholder/1200/600');
background-size: cover;
background-position: center;
height: 70vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
margin: -2rem -2rem 2rem -2rem;
}
.hero-content h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-content p {
font-size: 1.3rem;
margin-bottom: 2rem;
}
.btn {
display: inline-block;
background: #f39c12;
color: white;
padding: 1rem 2rem;
text-decoration: none;
border-radius: 5px;
transition: all 0.3s;
border: none;
cursor: pointer;
font-size: 1rem;
}
.btn:hover {
background: #e67e22;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Features Grid */
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 3rem 0;
}
.feature-card {
background: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
text-align: center;
transition: transform 0.3s;
}
.feature-card:hover {
transform: translateY(-5px);
}
.feature-card i {
font-size: 3rem;
color: #3498db;
margin-bottom: 1rem;
}
.feature-card h3 {
margin-bottom: 1rem;
color: #2c3e50;
}
/* Room Cards */
.room-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
margin: 2rem 0;
}
.room-card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.room-card:hover {
transform: translateY(-5px);
}
.room-card img {
width: 100%;
height: 250px;
object-fit: cover;
}
.room-info {
padding: 1.5rem;
}
.room-info h3 {
color: #2c3e50;
margin-bottom: 1rem;
}
.price {
font-size: 1.5rem;
color: #f39c12;
font-weight: bold;
margin: 1rem 0;
}
/* Forms */
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #2c3e50;
font-weight: 500;
}
.form-control {
width: 100%;
padding: 0.8rem;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 1rem;
transition: border-color 0.3s;
}
.form-control:focus {
outline: none;
border-color: #3498db;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
/* Pool Section */
.pool-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
margin: 2rem 0;
}
.pool-image {
border-radius: 10px;
overflow: hidden;
position: relative;
}
.pool-image img {
width: 100%;
height: 250px;
object-fit: cover;
transition: transform 0.3s;
}
.pool-image:hover img {
transform: scale(1.05);
}
/* Responsive Design */
@media (max-width: 768px) {
.hamburger {
display: flex;
}
.nav-menu {
display: none;
}
.hero-content h1 {
font-size: 2.5rem;
}
.hero-content p {
font-size: 1.1rem;
}
.form-row {
grid-template-columns: 1fr;
}
.nav-container {
padding: 0 1rem;
}
.section {
padding: 1rem;
}
}
/* Section Titles */
.section-title {
text-align: center;
font-size: 2.5rem;
color: #2c3e50;
margin-bottom: 2rem;
position: relative;
}
.section-title::after {
content: '';
width: 100px;
height: 3px;
background: #f39c12;
display: block;
margin: 1rem auto;
border-radius: 2px;
}
/* Status Messages */
.alert {
padding: 1rem;
margin: 1rem 0;
border-radius: 5px;
border-left: 4px solid;
}
.alert-success {
background: #d4edda;
border-color: #27ae60;
color: #155724;
}
.alert-error {
background: #f8d7da;
border-color: #e74c3c;
color: #721c24;
}
</style>
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar">
<div class="nav-container">
<div class="logo">
<i class="fas fa-hotel"></i>
Grand Palace Hotel
</div>
<div class="hamburger" onclick="toggleSidebar()">
<span></span>
<span></span>
<span></span>
</div>
<ul class="nav-menu">
<li><a href="#" onclick="showSection('home')">Home</a></li>
<li><a href="#"
onclick="showSection('accommodation')">Rooms</a></li>
<li><a href="#"
onclick="showSection('restaurant')">Restaurant</a></li>
<li><a href="#"
onclick="showSection('recreation')">Recreation</a></li>
<li><a href="#" onclick="showSection('pool')">Swimming
Pool</a></li>
<li><a href="#" onclick="showSection('contact')">Contact</a></li>
</ul>
</div>
</nav>
<div class="features">
<div class="feature-card">
<i class="fas fa-bed"></i>
<h3>Luxury Rooms</h3>
<p>Spacious and elegantly designed rooms with modern amenities
and breathtaking views.</p>
</div>
<div class="feature-card">
<i class="fas fa-utensils"></i>
<h3>Fine Dining</h3>
<p>World-class restaurants serving international cuisine
prepared by renowned chefs.</p>
</div>
<div class="feature-card">
<i class="fas fa-swimming-pool"></i>
<h3>Swimming Pool</h3>
<p>Olympic-sized pool with stunning city views and poolside
service.</p>
</div>
<div class="feature-card">
<i class="fas fa-spa"></i>
<h3>Spa & Wellness</h3>
<p>Rejuvenate your body and mind at our full-service spa and
fitness center.</p>
</div>
</div>
</section>
<div class="pool-gallery">
<div class="pool-image">
<img src="/api/placeholder/400/250" alt="Main Pool">
</div>
<div class="pool-image">
<img src="/api/placeholder/400/250" alt="Kids Pool">
</div>
<div class="pool-image">
<img src="/api/placeholder/400/250" alt="Infinity Pool">
</div>
</div>
<div class="features">
<div class="feature-card">
<i class="fas fa-swimming-pool"></i>
<h3>Olympic Pool</h3>
<p>50-meter Olympic-sized pool perfect for serious swimmers and
water sports enthusiasts.</p>
<p><strong>Hours:</strong> 6:00 AM - 10:00 PM</p>
</div>
<div class="feature-card">
<i class="fas fa-child"></i>
<h3>Kids Pool</h3>
<p>Safe and fun shallow pool area designed specifically for
children with water slides and toys.</p>
<p><strong>Hours:</strong> 8:00 AM - 8:00 PM</p>
</div>
<div class="feature-card">
<i class="fas fa-infinity"></i>
<h3>Infinity Pool</h3>
<p>Stunning rooftop infinity pool with panoramic city views and
poolside bar service.</p>
<p><strong>Hours:</strong> 10:00 AM - 11:00 PM</p>
</div>
<div class="feature-card">
<i class="fas fa-hot-tub"></i>
<h3>Jacuzzi & Hot Tub</h3>
<p>Relaxing therapeutic hot tub and jacuzzi facilities for
ultimate relaxation.</p>
<p><strong>Hours:</strong> 24/7</p>
</div>
</div>
</section>