Skip to content

Commit

Permalink
Starting out on page redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyNTH committed Mar 18, 2024
1 parent 0751313 commit e5c33a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/society/[slug]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}"
/>
<div>
<h1 class="container pt-8 text-left text-h1">
<h1 class="container py-6 text-left text-h1">
{{ society.name }}
</h1>
</div>
Expand Down
13 changes: 12 additions & 1 deletion pages/venue/[slug]/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<template>
<div class="h-full text-white bg-sta-gray">
<Head>
<Title>{{ venue.name }}</Title>
<Title>{{ venue?.name ?? 'Loading...' }}</Title>
</Head>
<div
v-if="banner"
ref="banner"
class="min-h-25vh 2xl:min-h-40vh bg-cover bg-center"
:style="{
'background-image': banner
}"
/>
<h1 class="container py-6 text-left text-h1">
{{ venue.name }}
</h1>
Expand Down Expand Up @@ -138,6 +146,9 @@ export default defineNuxtComponent({
}
},
computed: {
banner() {
return this.venue?.image?.url ? `url("${this.venue.image.url}")` : null;
},
googleMapsLink() {
if (!this.venue.address) return '';
const address = this.venue.address;
Expand Down

0 comments on commit e5c33a9

Please sign in to comment.