mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
use new Image component
This commit is contained in:
@@ -1,11 +1,19 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import Image from 'next/image'
|
||||||
|
|
||||||
export default function Header({ label = 'Pfadi Bussle' }: { label?: string }) {
|
export default function Header({ label = 'Pfadi Bussle' }: { label?: string }) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-row items-center p-3 my-3 text-white bg-gray-600 rounded-sm">
|
<div className="flex flex-row items-center p-3 my-3 text-white bg-gray-600 rounded-sm">
|
||||||
<h1 className="flex-grow text-3xl"><Link href="/">{label}</Link></h1>
|
<h1 className="mr-3 flex-grow text-3xl">
|
||||||
<img src="/logo.webp" className="w-40 mx-3 object-contain object-top" />
|
<Link href="/">{label}</Link>
|
||||||
</div>
|
</h1>
|
||||||
)
|
<Image
|
||||||
|
src="/logo.webp"
|
||||||
|
alt="Logo Freundeskreis VCP Rosenfeld"
|
||||||
|
width="160"
|
||||||
|
height="44"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user