Fixes
This commit is contained in:
@ -1,5 +1,12 @@
|
|||||||
import { FaPhoneAlt } from 'react-icons/fa';
|
|
||||||
import { FaMapLocationDot } from 'react-icons/fa6';
|
import { FaMapLocationDot } from 'react-icons/fa6';
|
||||||
|
import {
|
||||||
|
FaPhoneAlt,
|
||||||
|
FaFacebook,
|
||||||
|
FaInstagram,
|
||||||
|
FaYoutube,
|
||||||
|
FaLinkedin,
|
||||||
|
} from 'react-icons/fa';
|
||||||
|
import Image from 'next/image';
|
||||||
|
|
||||||
export function Footer() {
|
export function Footer() {
|
||||||
return (
|
return (
|
||||||
@ -8,10 +15,12 @@ export function Footer() {
|
|||||||
{/* First Column: Logo and Description */}
|
{/* First Column: Logo and Description */}
|
||||||
<div className='space-y-4'>
|
<div className='space-y-4'>
|
||||||
<div className='flex items-center'>
|
<div className='flex items-center'>
|
||||||
<img
|
<Image
|
||||||
src='/images/logo.png' // Update with your logo path
|
src='/images/logo.png' // Update with your logo path
|
||||||
alt='Mozimo Logo'
|
alt='Mozimo Logo'
|
||||||
className='h-10'
|
className='h-10'
|
||||||
|
width={100}
|
||||||
|
height={100}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p className='text-sm'>
|
<p className='text-sm'>
|
||||||
@ -103,22 +112,22 @@ export function Footer() {
|
|||||||
href='https://facebook.com'
|
href='https://facebook.com'
|
||||||
className='text-brown-600 hover:text-brown-800'
|
className='text-brown-600 hover:text-brown-800'
|
||||||
>
|
>
|
||||||
<img src='/icons/facebook.svg' />
|
<FaFacebook />
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href='https://instagram.com'
|
href='https://instagram.com'
|
||||||
className='text-brown-600 hover:text-brown-800'
|
className='text-brown-600 hover:text-brown-800'
|
||||||
>
|
>
|
||||||
<img src='/icons/instagram.svg' />
|
<FaInstagram />
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href='https://youtube.com'
|
href='https://youtube.com'
|
||||||
className='text-brown-600 hover:text-brown-800'
|
className='text-brown-600 hover:text-brown-800'
|
||||||
>
|
>
|
||||||
<img src='/icons/youtube.svg' />
|
<FaYoutube />
|
||||||
</a>
|
</a>
|
||||||
<a href='https://linkedin.com' className=''>
|
<a href='https://linkedin.com' className=''>
|
||||||
<img src='/icons/linkedin.svg' />
|
<FaLinkedin />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,27 +0,0 @@
|
|||||||
// components/Navbar.tsx
|
|
||||||
export function Navbar() {
|
|
||||||
return (
|
|
||||||
<nav className='navbar'>
|
|
||||||
<div className='left'>
|
|
||||||
<a href='#about-us'>About Us</a>
|
|
||||||
<a href='#shop'>Shop</a>
|
|
||||||
</div>
|
|
||||||
<div className='center'>
|
|
||||||
<a href='/' className='mx-0'>
|
|
||||||
<img src='/images/logo.png' alt='Logo' className='logo' />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div className='right'>
|
|
||||||
<a href='#search'>
|
|
||||||
<span className='material-symbols-outlined'>search</span>
|
|
||||||
</a>
|
|
||||||
<a href='#shopping'>
|
|
||||||
<span className='material-symbols-outlined'>shopping_bag</span>
|
|
||||||
</a>
|
|
||||||
<a href='#profile'>
|
|
||||||
<span className='material-symbols-outlined'>person</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
/* .navbar {
|
.navbar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 1.5em;
|
top: 1.5em;
|
||||||
left: 2em;
|
left: 2em;
|
||||||
@ -78,4 +78,4 @@
|
|||||||
.fa-user {
|
.fa-user {
|
||||||
font-size: 1.4em;
|
font-size: 1.4em;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
@ -4,6 +4,7 @@ import Link from 'next/link';
|
|||||||
import { FiSearch, FiUser } from 'react-icons/fi';
|
import { FiSearch, FiUser } from 'react-icons/fi';
|
||||||
import { HiShoppingBag } from 'react-icons/hi2';
|
import { HiShoppingBag } from 'react-icons/hi2';
|
||||||
import styles from './navbar.module.css';
|
import styles from './navbar.module.css';
|
||||||
|
import Image from 'next/image';
|
||||||
|
|
||||||
// components/Navbar.tsx
|
// components/Navbar.tsx
|
||||||
export function Navbar() {
|
export function Navbar() {
|
||||||
@ -46,7 +47,13 @@ export function Navbar() {
|
|||||||
{/* Middle */}
|
{/* Middle */}
|
||||||
<div className='flex-shrink-0'>
|
<div className='flex-shrink-0'>
|
||||||
<Link href='/' className='text-lg font-bold'>
|
<Link href='/' className='text-lg font-bold'>
|
||||||
<img src='/images/logo.png' alt='Logo' className='logo' />
|
<Image
|
||||||
|
src='/images/logo.png'
|
||||||
|
alt='Logo'
|
||||||
|
className='logo'
|
||||||
|
width={100}
|
||||||
|
height={100}
|
||||||
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
{/* Right side */}
|
{/* Right side */}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
'use client';
|
'use client';
|
||||||
// import Swiper core and required modules
|
// import Swiper core and required modules
|
||||||
import { Autoplay, Pagination, Scrollbar } from 'swiper/modules';
|
import { Autoplay, Pagination, Scrollbar } from 'swiper/modules';
|
||||||
|
import Image from 'next/image';
|
||||||
|
|
||||||
import { Swiper, SwiperSlide } from 'swiper/react';
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
||||||
|
|
||||||
@ -10,6 +11,13 @@ import 'swiper/css/navigation';
|
|||||||
import 'swiper/css/pagination';
|
import 'swiper/css/pagination';
|
||||||
import 'swiper/css/scrollbar';
|
import 'swiper/css/scrollbar';
|
||||||
|
|
||||||
|
const slides = [
|
||||||
|
{ name: 'Bars', image: '/images/slider/slider-01.jpg' },
|
||||||
|
{ name: 'Barks', image: '/images/slider/slider-02.jpg' },
|
||||||
|
{ name: 'Pralines', image: '/images/slider/slider-03.jpg' },
|
||||||
|
{ name: 'Spreads', image: '/images/slider/slider-04.jpg' },
|
||||||
|
];
|
||||||
|
|
||||||
export function HeroSwiper() {
|
export function HeroSwiper() {
|
||||||
return (
|
return (
|
||||||
<Swiper
|
<Swiper
|
||||||
@ -24,18 +32,17 @@ export function HeroSwiper() {
|
|||||||
onSwiper={(swiper) => console.log(swiper)}
|
onSwiper={(swiper) => console.log(swiper)}
|
||||||
onSlideChange={() => console.log('slide change')}
|
onSlideChange={() => console.log('slide change')}
|
||||||
>
|
>
|
||||||
<SwiperSlide>
|
{slides.map((slide) => (
|
||||||
<img src='/images/slider/slider-01.jpg' className='w-full' />
|
<SwiperSlide key={slide.name}>
|
||||||
</SwiperSlide>
|
<Image
|
||||||
<SwiperSlide>
|
src={slide.image}
|
||||||
<img src='/images/slider/slider-02.jpg' className='w-full' />
|
alt={slide.name}
|
||||||
</SwiperSlide>
|
width={1760}
|
||||||
<SwiperSlide>
|
height={1000}
|
||||||
<img src='/images/slider/slider-03.jpg' className='w-full' />
|
className='w-full'
|
||||||
</SwiperSlide>
|
/>
|
||||||
<SwiperSlide>
|
</SwiperSlide>
|
||||||
<img src='/images/slider/slider-04.jpg' className='w-full' />
|
))}
|
||||||
</SwiperSlide>
|
|
||||||
</Swiper>
|
</Swiper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user