mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
use svg logo
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React, { useContext } from 'react'
|
import React, { useContext } from 'react'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import Image from 'next/image'
|
|
||||||
import UserContext from './user/context'
|
import UserContext from './user/context'
|
||||||
|
import Logo from './logo'
|
||||||
|
|
||||||
export default function Header({ label = 'Pfadi Bussle' }: { label?: string }) {
|
export default function Header({ label = 'Pfadi Bussle' }: { label?: string }) {
|
||||||
const { username, role } = useContext(UserContext)
|
const { username, role } = useContext(UserContext)
|
||||||
@@ -11,12 +11,7 @@ export default function Header({ label = 'Pfadi Bussle' }: { label?: string }) {
|
|||||||
<h1 className="mr-3 flex-grow text-3xl">
|
<h1 className="mr-3 flex-grow text-3xl">
|
||||||
<Link href="/">{label}</Link>
|
<Link href="/">{label}</Link>
|
||||||
</h1>
|
</h1>
|
||||||
<Image
|
<Logo />
|
||||||
src="/logo.webp"
|
|
||||||
alt="Logo Freundeskreis VCP Rosenfeld"
|
|
||||||
width="160"
|
|
||||||
height="44"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
{username && (
|
{username && (
|
||||||
<div className="info-message">
|
<div className="info-message">
|
||||||
|
|||||||
13
components/logo.tsx
Normal file
13
components/logo.tsx
Normal file
File diff suppressed because one or more lines are too long
1
public/logo-mini.svg
Normal file
1
public/logo-mini.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 14 KiB |
1
public/logo.svg
Normal file
1
public/logo.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user