fix: moved images to assets

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

View File

@ -1,4 +1,4 @@
import logo from '../images/logo.svg'; import logo from '@/assets/images/logo.svg';
import Image from 'next/image'; import Image from 'next/image';
import { LoginForm } from '@/components/forms/LoginForm'; import { LoginForm } from '@/components/forms/LoginForm';
import { getAuthServerSession } from '@/lib/authenticate'; import { getAuthServerSession } from '@/lib/authenticate';

View File

@ -1,5 +1,5 @@
import Image from 'next/image'; import Image from 'next/image';
import Logo from '/images/logo.svg'; import Logo from '@images/logo.svg';
import { getAuthServerSession } from '@/lib/authenticate'; import { getAuthServerSession } from '@/lib/authenticate';
import { redirect } from 'next/navigation'; import { redirect } from 'next/navigation';
import { getFirstActiveTest } from '@/actions/mangeTest'; import { getFirstActiveTest } from '@/actions/mangeTest';

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 170 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

View File

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 102 KiB

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

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 { interface SantaProps {
height: number height: number;
} }
export function Santa({ ...props }: SantaProps) { export function Santa({ ...props }: SantaProps) {
if (props.height <= 0 || props.height > 24) { if (props.height <= 0 || props.height > 24) {
return <div className={"w-[100px] bg-blue-500"}/> return <div className={'w-[100px] bg-blue-500'} />;
} }
return ( return (
<div className="flex flex-col items-center"> <div className="flex flex-col items-center">
<Image src={santas[props.height - 1]} alt={"Santa"} width={100} height={200}/> <Image src={santas[props.height - 1]} alt={'Santa'} width={100} height={200} />
</div> </div>
) );
} }

View File

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

View File

@ -23,8 +23,8 @@
"@components/*": ["./components/*"], "@components/*": ["./components/*"],
"@lib/*": ["./lib/*"], "@lib/*": ["./lib/*"],
"@styles/*": ["/styles/*"], "@styles/*": ["/styles/*"],
"@santa/*": ["./images/santa/*"], "@santa/*": ["./assets/images/santa/*"],
"@images/*": ["./images/*"], "@images/*": ["./assets/images/*"],
"@assets/*": ["./assets/*"], "@assets/*": ["./assets/*"],
} }
}, },