File tree Expand file tree Collapse file tree 4 files changed +32
-10
lines changed Expand file tree Collapse file tree 4 files changed +32
-10
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -102,7 +102,21 @@ function Root() {
102
102
103
103
< AppShell . Footer >
104
104
< Group justify = "space-between" >
105
- < FooterLogos />
105
+ < FooterLogos
106
+ logos = { [
107
+ {
108
+ src : "../public/uzh-logo.svg" ,
109
+ href : "https://uzh.ch" ,
110
+ alt : "UZH Logo" ,
111
+ } ,
112
+ {
113
+ src : "../public/weltentdecker-logo.png" ,
114
+ href : "https://www.psychologie.uzh.ch/de/bereiche/dev/devpsy/Weltentdecker.html" ,
115
+ alt : "Weltentdecker Logo" ,
116
+ height : 50 ,
117
+ } ,
118
+ ] }
119
+ />
106
120
Version { version }
107
121
</ Group >
108
122
</ AppShell . Footer >
Original file line number Diff line number Diff line change 1
1
import { Group } from "@mantine/core" ;
2
- import UZHLogo from "../assets/uzh-logo.svg?react" ;
3
- import WeltentdeckerLogo from "../assets/weltentdecker-logo.png" ;
4
2
5
- export function FooterLogos ( ) {
3
+ type LogoItem = {
4
+ src : string ;
5
+ href : string ;
6
+ alt : string ;
7
+ height ?: number ;
8
+ } ;
9
+
10
+ type FooterLogosProps = {
11
+ logos : LogoItem [ ] ;
12
+ } ;
13
+
14
+ export function FooterLogos ( { logos } : FooterLogosProps ) {
6
15
return (
7
16
< Group >
8
- < a href = "https://uzh.ch" >
9
- < UZHLogo />
10
- </ a >
11
- < a href = "https://www.psychologie.uzh.ch/de/bereiche/dev/devpsy/Weltentdecker.html" >
12
- < img src = { WeltentdeckerLogo } height = { 50 } />
13
- </ a >
17
+ { logos . map ( ( logo , index ) => (
18
+ < a key = { index } href = { logo . href } >
19
+ < img src = { logo . src } alt = { logo . alt } height = { logo . height || 50 } />
20
+ </ a >
21
+ ) ) }
14
22
</ Group >
15
23
) ;
16
24
}
You can’t perform that action at this time.
0 commit comments