-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
113 additions
and
68 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
backend/config/project/imageTransforms/hero--0413e9dc-1c8a-4221-b81d-c9f6c0594cbd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fill: null | ||
format: webp | ||
handle: hero | ||
height: 1080 | ||
interlace: none | ||
mode: crop | ||
name: Hero | ||
position: center-center | ||
quality: 60 | ||
upscale: true | ||
width: 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script setup> | ||
const props = defineProps({ | ||
image: { | ||
type: String, | ||
required: true | ||
} | ||
}) | ||
} | ||
const getPhotoUrl = (photo, width) => { | ||
return `${photo.url}?width=${width}` | ||
} | ||
</script> | ||
|
||
<template> | ||
<picture> | ||
<source data-sizes="100vw" /> | ||
<img | ||
:src="image.url" | ||
:srcset="image.srcset" | ||
:alt="image.alt" | ||
sizes="100vw" | ||
/> | ||
</picture> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,47 @@ | ||
<script setup> | ||
const props = defineProps({ | ||
id: { | ||
type: Number, | ||
required: true, | ||
default: 0 | ||
}, | ||
title: { | ||
type: String, | ||
required: true | ||
}, | ||
uri: { | ||
type: String, | ||
entry: { | ||
type: Object, | ||
required: true | ||
}, | ||
pageSubheading: { | ||
type: String, | ||
required: false, | ||
default: '' | ||
}, | ||
postDate: { | ||
type: String, | ||
required: true | ||
featured: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}); | ||
</script> | ||
|
||
<template> | ||
<article class="py-6"> | ||
<h2 class="text-4xl font-bold"> | ||
<NuxtLink | ||
:to="`${uri}`" | ||
class="text-red-600 hover:underline focus:underline cursor-pointer" | ||
>{{ title }} | ||
</NuxtLink> | ||
</h2> | ||
<p v-if="pageSubheading">{{ pageSubheading }}</p> | ||
<p> | ||
<time class="text-sm" :datetime="postDate">{{ postDate }}</time> | ||
</p> | ||
<article class="py-6 mb-12"> | ||
<figure | ||
v-if="entry.image && entry.image.length > 0" | ||
:class="featured ? '' : 'sm:w-1/3'" | ||
> | ||
<NuxtLink | ||
:to="`/${entry.uri}`" | ||
class="text-red-600 hover:underline focus:underline cursor-pointer block mb-4" | ||
> | ||
<img | ||
:src="entry.image[0].url" | ||
:alt="entry.image[0].alt" | ||
width="990" | ||
height="540" | ||
/> | ||
</NuxtLink> | ||
</figure> | ||
<div class="mb-4"å> | ||
<h2 class="font-bold mb-2" :class="featured ? 'text-6xl' : 'text-4xl'"> | ||
<NuxtLink | ||
:to="`/${entry.uri}`" | ||
class="text-red-600 hover:underline focus:underline cursor-pointer" | ||
> | ||
{{ entry.title }} | ||
</NuxtLink> | ||
</h2> | ||
<p v-if="entry.pageSubheading">{{ entry.pageSubheading }}</p> | ||
<p> | ||
<time class="text-sm" :datetime="entry.postDate">{{ entry.postDate }}</time> | ||
</p> | ||
</div> | ||
</article> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters