From 30e8e544e9cd257a4a8e11dcd28a28337701eb87 Mon Sep 17 00:00:00 2001 From: Amir Hossein Karimi Date: Sat, 20 Jan 2024 00:18:59 +0330 Subject: [PATCH] refactor: HeroSection component --- src/app/components/HeroSection.tsx | 46 +++++++++++++++--------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/app/components/HeroSection.tsx b/src/app/components/HeroSection.tsx index 320986a..db05fd8 100644 --- a/src/app/components/HeroSection.tsx +++ b/src/app/components/HeroSection.tsx @@ -1,17 +1,17 @@ -'use client'; +"use client"; -import Image from 'next/image'; -import imageVectorOrangeDesktop from '@/assets/images/home/hero-section-vector-orange-desktop.svg'; -import imageVectorGreenDesktop from '@/assets/images/home/hero-section-vector-green-desktop.svg'; -import imageVectorOrangeMobile from '@/assets/images/home/hero-section-vector-orange-mobile.svg'; -import imageSpeakerDesktop from '@/assets/images/home/hero-section-speaker-desktop.png'; -import imageSpeakerOneMobile from '@/assets/images/home/hero-section-speaker-1-mobile.png'; -import imageSpeakerTwoMobile from '@/assets/images/home/hero-section-speaker-2-mobile.png'; -import imageSpeakerThreeMobile from '@/assets/images/home/hero-section-speaker-3-mobile.png'; -import imageSpeakerFourMobile from '@/assets/images/home/hero-section-speaker-4-mobile.png'; -import imageSpeakerFiveMobile from '@/assets/images/home/hero-section-speaker-5-mobile.png'; -import 'swiper/css'; -import { Swiper, SwiperSlide } from 'swiper/react'; +import Image from "next/image"; +import imageVectorOrangeDesktop from "@/assets/images/home/hero-section-vector-orange-desktop.svg"; +import imageVectorGreenDesktop from "@/assets/images/home/hero-section-vector-green-desktop.svg"; +import imageVectorOrangeMobile from "@/assets/images/home/hero-section-vector-orange-mobile.svg"; +import imageSpeakerDesktop from "@/assets/images/home/hero-section-speaker-desktop.png"; +import imageSpeakerOneMobile from "@/assets/images/home/hero-section-speaker-1-mobile.png"; +import imageSpeakerTwoMobile from "@/assets/images/home/hero-section-speaker-2-mobile.png"; +import imageSpeakerThreeMobile from "@/assets/images/home/hero-section-speaker-3-mobile.png"; +import imageSpeakerFourMobile from "@/assets/images/home/hero-section-speaker-4-mobile.png"; +import imageSpeakerFiveMobile from "@/assets/images/home/hero-section-speaker-5-mobile.png"; +import "swiper/css"; +import { Swiper, SwiperSlide } from "swiper/react"; export default function HeroSection() { return ( @@ -45,7 +45,7 @@ export default function HeroSection() {
{/* title */}

- دومین همایش فرانت‌اند ایران{' '} + دومین همایش فرانت‌اند ایران{" "} اسفند ۱۴۰۲ در فریدون‌کنار، مازندران

@@ -58,20 +58,20 @@ export default function HeroSection() {
{[ { - title: 'زمان', - description: '۱۰ اسفند ۱۴۰۲', + title: "زمان", + description: "۱۰ اسفند ۱۴۰۲", }, { - title: 'سخنرانان', - description: '۱۸ نفر', + title: "سخنرانان", + description: "۱۸ نفر", }, { - title: 'شهر', - description: 'فریدون‌کنار، مازندران', + title: "شهر", + description: "فریدون‌کنار، مازندران", }, { - title: 'مکان', - description: 'مجتمع تفریحی رجایی', + title: "مکان", + description: "مجتمع تفریحی رجایی", }, ].map((item, index) => { return ( @@ -118,7 +118,7 @@ export default function HeroSection() {
{/* desktop */} -
+