Skip to content

Commit f29d7af

Browse files
committed
Optimized images
1 parent a12840e commit f29d7af

File tree

2 files changed

+4
-86
lines changed

2 files changed

+4
-86
lines changed

src/App.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useState, useEffect } from 'react';
22
import { ChevronDown, Phone, Mail, MapPin, Star, Menu, X, Check, ArrowRight, Play, Award, Users, Clock, Shield, Zap, Heart } from 'lucide-react';
3-
import LazyImage from './components/LazyImage';
43

54
const StaycationsWebsite = () => {
65
const [isMenuOpen, setIsMenuOpen] = useState(false);
@@ -488,7 +487,7 @@ const StaycationsWebsite = () => {
488487
{services.map((service, index) => (
489488
<div key={index} className="group bg-white rounded-2xl overflow-hidden shadow-lg hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2">
490489
<div className="relative h-64 overflow-hidden">
491-
<LazyImage
490+
<img
492491
src={service.image}
493492
alt={service.title}
494493
className="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300"
@@ -529,7 +528,7 @@ const StaycationsWebsite = () => {
529528
{/* Featured Image */}
530529
<div className="mb-12">
531530
<div className="relative h-96 md:h-[500px] rounded-2xl overflow-hidden shadow-2xl">
532-
<LazyImage
531+
<img
533532
src={galleryImages[currentSlide].src}
534533
alt={galleryImages[currentSlide].alt}
535534
className="w-full h-full object-cover"
@@ -549,7 +548,7 @@ const StaycationsWebsite = () => {
549548
className={`relative rounded-xl overflow-hidden cursor-pointer transition-all duration-300 hover:scale-105 ${index === currentSlide ? 'ring-4 ring-blue-500' : ''}`}
550549
onClick={() => setCurrentSlide(index)}
551550
>
552-
<LazyImage
551+
<img
553552
src={image.src}
554553
alt={image.alt}
555554
className="w-full h-32 md:h-40 object-cover"
@@ -578,7 +577,7 @@ const StaycationsWebsite = () => {
578577
<div key={index} className={`flex flex-col lg:flex-row items-center gap-12 ${index % 2 === 1 ? 'lg:flex-row-reverse' : ''}`}>
579578
<div className="lg:w-1/2">
580579
<div className="relative rounded-2xl overflow-hidden shadow-xl">
581-
<LazyImage
580+
<img
582581
src={process.image}
583582
alt={process.title}
584583
className="w-full h-64 md:h-80 object-cover"

src/components/LazyImage.jsx

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)