Krish101pp's picture
**“Create a fully responsive and visually appealing Indian-themed restaurant website using HTML, CSS, and JavaScript.
072af4e verified
Raw History Blame Contribute Delete
4.76 kB
/* Base Styles */
:root {
--saffron: #FF9933;
--maroon: #800020;
--gold: #D4AF37;
--cream: #FFF8E1;
--dark-spice: #5C2018;
--text-dark: #333;
--text-light: #fff;
}
body {
font-family: 'Poppins', sans-serif;
color: var(--text-dark);
background-color: var(--cream);
line-height: 1.6;
}
h1, h2, h3, h4 {
font-family: 'Playfair Display', serif;
font-weight: 700;
}
/* Hero Section */
.hero {
height: 100vh;
background: url('../assets/images/hero-bg.jpg') center/cover no-repeat;
position: relative;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: var(--text-light);
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}
.hero-content {
position: relative;
z-index: 1;
max-width: 800px;
padding: 0 20px;
}
.hero h1 {
font-size: 4rem;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
font-family: 'Tangerine', cursive;
color: var(--gold);
}
.hero p {
font-size: 1.5rem;
margin-bottom: 2rem;
}
/* Buttons */
.btn-primary {
background-color: var(--maroon);
color: white;
padding: 12px 30px;
border-radius: 30px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
display: inline-block;
margin: 10px;
}
.btn-primary:hover {
background-color: var(--dark-spice);
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-secondary {
background-color: transparent;
color: white;
border: 2px solid white;
padding: 12px 30px;
border-radius: 30px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
display: inline-block;
margin: 10px;
}
.btn-secondary:hover {
background-color: white;
color: var(--maroon);
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* Signature Dishes Section */
.signature-dishes {
padding: 80px 20px;
background-color: white;
}
.section-header {
text-align: center;
margin-bottom: 50px;
}
.section-header h2 {
font-size: 2.5rem;
color: var(--maroon);
margin-bottom: 20px;
}
.divider {
display: flex;
align-items: center;
justify-content: center;
}
.divider-line {
height: 2px;
width: 80px;
background-color: var(--gold);
margin: 0 15px;
}
.divider-icon {
width: 30px;
height: 30px;
}
.dishes-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
max-width: 1200px;
margin: 0 auto;
}
.dish-card {
background-color: var(--cream);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.dish-card:hover {
transform: translateY(-10px);
}
.dish-image {
height: 250px;
background-size: cover;
background-position: center;
}
.dish-card h3 {
font-size: 1.5rem;
color: var(--maroon);
padding: 15px 20px 5px;
}
.dish-card p {
padding: 0 20px 20px;
color: var(--text-dark);
}
/* About Preview Section */
.about-preview {
display: flex;
flex-wrap: wrap;
align-items: center;
background-color: var(--maroon);
color: white;
}
.about-content {
flex: 1;
min-width: 300px;
padding: 60px;
}
.about-content h2 {
font-size: 2.5rem;
margin-bottom: 20px;
color: var(--gold);
}
.about-content p {
margin-bottom: 30px;
font-size: 1.1rem;
}
.about-image {
flex: 1;
min-width: 300px;
}
.about-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Testimonials Section */
.testimonials {
padding: 80px 20px;
background-color: var(--cream);
}
.testimonial-slider {
max-width: 1200px;
margin: 0 auto;
display: flex;
overflow-x: auto;
scroll-snap-type: x mandatory;
gap: 30px;
padding: 20px 0;
}
.testimonial-card {
min-width: 350px;
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
scroll-snap-align: start;
}
.rating {
color: var(--gold);
margin-bottom: 20px;
}
.testimonial-card p {
font-style: italic;
margin-bottom: 20px;
}
.guest-info {
display: flex;
align-items: center;
}
.guest-info img {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
margin-right: 15px;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero h1 {
font-size: 3rem;
}
.hero p {
font-size: 1.2rem;
}
.about-content {
padding: 40px 20px;
}
}