1
0
mirror of https://github.com/Fayorg/calendrier-avant.git synced 2026-05-27 17:18:38 +02:00

fix: moved images to assets

This commit is contained in:
2023-12-20 14:51:41 +01:00
parent 771d9a8637
commit 9b7daa2bcb
35 changed files with 17 additions and 17 deletions

View File

@@ -1,17 +1,17 @@
import Image from "next/image";
import Image from 'next/image';
import { santas } from "@santa/index";
import { santas } from '@/assets/images/santa/index';
interface SantaProps {
height: number
height: number;
}
export function Santa({ ...props} : SantaProps) {
if (props.height <= 0 || props.height > 24) {
return <div className={"w-[100px] bg-blue-500"}/>
}
return (
<div className="flex flex-col items-center">
<Image src={santas[props.height - 1]} alt={"Santa"} width={100} height={200}/>
</div>
)
export function Santa({ ...props }: SantaProps) {
if (props.height <= 0 || props.height > 24) {
return <div className={'w-[100px] bg-blue-500'} />;
}
return (
<div className="flex flex-col items-center">
<Image src={santas[props.height - 1]} alt={'Santa'} width={100} height={200} />
</div>
);
}

View File

@@ -1,6 +1,6 @@
'use client';
import Calendar from '../../images/date.svg';
import Calendar from '@images/date.svg';
import Image from 'next/image';
import { Ban, Snowflake, CircleOff } from 'lucide-react';