Skip to content

Commit

Permalink
Fix hosts logos
Browse files Browse the repository at this point in the history
  • Loading branch information
osamajandali committed Jul 28, 2024
1 parent c750e66 commit cbc7a16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/data/regional-events.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"name": "UBS",
"logo": "/hosts/ubs.svg",
"class":"h-14"
"height": "3.5rem"
}
]
},
Expand All @@ -29,7 +29,7 @@
{
"name": "NTT Data",
"logo": "/hosts/ntt-data.svg",
"class": "h-8"
"height": "2rem"
},
{
"name": "Microsoft",
Expand Down Expand Up @@ -130,7 +130,7 @@
{
"name": "IIM Mumbai",
"logo": "/hosts/iim-mumbai.png",
"class": "w-24"
"height": "5rem"
}
]
},
Expand Down Expand Up @@ -227,7 +227,7 @@
{
"name": "NTT Data",
"logo": "/hosts/ntt-data.svg",
"class": "h-8"
"height": "2rem"
}
]
}
Expand Down
5 changes: 3 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const hosts = regionalEventsData
.map((organizer) => ({
logo: organizer.logo,
name: organizer.name,
class: organizer.class,
height: organizer.height,
}))
.sort((a, b) => a.name.localeCompare(b.name));
---
Expand Down Expand Up @@ -208,7 +208,8 @@ const hosts = regionalEventsData
hosts.map((host) => (
<div class="m-10 opacity-60">
<img
class={host.class ? host.class : "h-10"}
style={host.height ? `height: ${host.height}` : ""}
class="h-10"
src={host.logo}
alt={host.name}
/>
Expand Down

0 comments on commit cbc7a16

Please sign in to comment.