diff --git a/src/assets/hero-mobile.webp b/src/assets/hero-mobile.webp new file mode 100644 index 0000000..d8b5091 Binary files /dev/null and b/src/assets/hero-mobile.webp differ diff --git a/src/components/HeroButtons.tsx b/src/components/HeroButtons.tsx index 9ab09f9..88baae3 100644 --- a/src/components/HeroButtons.tsx +++ b/src/components/HeroButtons.tsx @@ -16,17 +16,22 @@ const HeroButtons: FC = (props) => { className={cn('flex items-center justify-center gap-4 w-full', className)} > - - diff --git a/src/components/SectionTitle.tsx b/src/components/SectionTitle.tsx index eee1644..14717fc 100644 --- a/src/components/SectionTitle.tsx +++ b/src/components/SectionTitle.tsx @@ -10,7 +10,7 @@ const SectionTitle: FC = (props) => { return (
- {!!title &&

{title}

} + {!!title &&

{title}

}

{description}

diff --git a/src/components/header/AppLogo.tsx b/src/components/header/AppLogo.tsx index 4809299..d64754d 100644 --- a/src/components/header/AppLogo.tsx +++ b/src/components/header/AppLogo.tsx @@ -4,7 +4,7 @@ import Image from 'next/image'; const AppLogo = () => { return ( - lowops-logo + lowops-logo ); }; diff --git a/src/components/header/MobileHeaderNav.tsx b/src/components/header/MobileHeaderNav.tsx index 0f26928..0af8e24 100644 --- a/src/components/header/MobileHeaderNav.tsx +++ b/src/components/header/MobileHeaderNav.tsx @@ -42,6 +42,7 @@ const MobileHeaderNav = () => { variant="ghost" size="icon" className="flex md:hidden" + aria-label="Open menu" > @@ -54,7 +55,12 @@ const MobileHeaderNav = () => {
-
diff --git a/src/components/ui/carousel.tsx b/src/components/ui/carousel.tsx index abde1e9..d692cc9 100644 --- a/src/components/ui/carousel.tsx +++ b/src/components/ui/carousel.tsx @@ -208,8 +208,7 @@ const CarouselDots = React.forwardRef< > {items.map((_, i) => ( diff --git a/src/sections/form/FormSection.tsx b/src/sections/form/FormSection.tsx index d491f9f..e0f8f4c 100644 --- a/src/sections/form/FormSection.tsx +++ b/src/sections/form/FormSection.tsx @@ -68,7 +68,9 @@ const FormSection: React.FC = () => { />
- +
diff --git a/src/sections/hero/HeroImage.tsx b/src/sections/hero/HeroImage.tsx new file mode 100644 index 0000000..70c3fda --- /dev/null +++ b/src/sections/hero/HeroImage.tsx @@ -0,0 +1,34 @@ +'use client'; + +import heroMobileImage from '@/assets/hero-mobile.webp'; +import heroImage from '@/assets/hero.webp'; +import { useMediaQuery } from '@/hooks/useMediaQuery'; +import Image from 'next/image'; + +const HeroImage = () => { + const isDesktop = useMediaQuery('(min-width: 768px)'); + + return isDesktop ? ( + lowops-portal-screen + ) : ( + lowops-portal-screen + ); +}; + +export default HeroImage; diff --git a/src/sections/hero/HeroSection.tsx b/src/sections/hero/HeroSection.tsx index 217d52c..fd8729d 100644 --- a/src/sections/hero/HeroSection.tsx +++ b/src/sections/hero/HeroSection.tsx @@ -1,8 +1,7 @@ -import heroImage from '@/assets/hero.webp'; import HeroButtons from '@/components/HeroButtons'; import { cn } from '@/lib/utils'; -import Image from 'next/image'; import { FC } from 'react'; +import HeroImage from './HeroImage'; const HeroSection: FC = () => { return ( @@ -27,14 +26,8 @@ const HeroSection: FC = () => { - lowops-portal-screen + + ); }; diff --git a/src/sections/testimonials/TestimonialsCarousel.tsx b/src/sections/testimonials/TestimonialsCarousel.tsx index ed1e3a7..524278b 100644 --- a/src/sections/testimonials/TestimonialsCarousel.tsx +++ b/src/sections/testimonials/TestimonialsCarousel.tsx @@ -31,8 +31,8 @@ const TestimonialsCarousel = () => { -

{testimonial.author}

-
{testimonial.company}
+

{testimonial.author}

+

{testimonial.company}