Skip to content

Commit 9c19a39

Browse files
committed
feat: enhance layout by updating styles and adding width property to images
1 parent 5dd8e7b commit 9c19a39

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

app/pages/index.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ useSeoMeta({
8484
:reverse="section.reverse"
8585
:features="section.features"
8686
:ui="{
87-
title: 'text-3xl sm:text-4xl',
88-
description: 'text-lg text-gray-600 dark:text-gray-300'
87+
title: 'text-3xl sm:text-4xl text-center lg:text-left',
88+
description: 'text-lg text-gray-600 dark:text-gray-300 text-center lg:text-left'
8989
}"
9090
>
9191
<NuxtLink
@@ -97,7 +97,8 @@ useSeoMeta({
9797
<NuxtImg
9898
:src="section.image.src"
9999
:alt="section.image.alt"
100-
class="mx-auto max-w-[320px] sm:max-w-[420px] md:max-w-[500px]"
100+
:width="section.image.width ?? 600"
101+
class="mx-auto"
101102
loading="lazy"
102103
/>
103104
</NuxtLink>

content.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ export const collections = {
7676
src: z.string().nonempty().editor({ input: 'media' }),
7777
alt: z.string().optional(),
7878
to: z.string().optional(),
79-
target: z.string().optional()
79+
target: z.string().optional(),
80+
width: z.number().optional()
8081
}).optional(),
8182
features: z.array(
8283
z.object({

content/0.index.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ sections:
6161
alt: Microsoft MVP badge.
6262
to: https://mvp.microsoft.com/en-US/mvp/profile/b6deecb6-7760-406e-84cb-8206f051f8e5
6363
target: _blank
64+
width: 300
6465
- title: I'm a Puluminary.
6566
description: "Since 2022, I have been part of the Puluminaries community program that recognizes members of the Pulumi community. Pulumi is the technology that made me love Infrastructure as Code and I truly believe that IaC should be:"
6667
id: puluminary

0 commit comments

Comments
 (0)