diff --git a/apps/website/e2e/gemini-omni.spec.ts b/apps/website/e2e/gemini-omni.spec.ts index e01bb50d27f..09e991eac00 100644 --- a/apps/website/e2e/gemini-omni.spec.ts +++ b/apps/website/e2e/gemini-omni.spec.ts @@ -10,7 +10,11 @@ import { test } from './fixtures/blockExternalMedia' const PATH = '/gemini-omni' const ZH_PATH = '/zh-CN/gemini-omni' -const HERO_TITLE = `${t('geminiOmni.hero.titleModel', {}, { locale: 'en' })}${t('geminiOmni.hero.titleRest', {}, { locale: 'en' })}` +const HERO_TITLE = t( + 'geminiOmni.hero.headline', + { model: t('geminiOmni.hero.titleModel', {}, { locale: 'en' }) }, + { locale: 'en' } +) const MODELS_HEADING = t('geminiOmni.models.heading', {}, { locale: 'en' }) const STEPS_HEADING = t('geminiOmni.steps.heading', {}, { locale: 'en' }) const STEPS_CTA = t('geminiOmni.steps.secondaryCta', {}, { locale: 'en' }) diff --git a/apps/website/e2e/minimax-h3.spec.ts b/apps/website/e2e/minimax-h3.spec.ts index 725e60b03fc..7c00f862b72 100644 --- a/apps/website/e2e/minimax-h3.spec.ts +++ b/apps/website/e2e/minimax-h3.spec.ts @@ -9,9 +9,11 @@ import { test } from './fixtures/blockExternalMedia' import { waitForIsland } from './fixtures/islands' const PATH = '/minimax-h3' -const HERO_TITLE = - t('minimax.hero.titleModel', {}, { locale: 'en' }) + - t('minimax.hero.titleRest', {}, { locale: 'en' }) +const HERO_TITLE = t( + 'minimax.hero.headline', + { model: t('minimax.hero.titleModel', {}, { locale: 'en' }) }, + { locale: 'en' } +) const MODELS_HEADING = t('minimax.models.heading', {}, { locale: 'en' }) const MODELS_ROUTE = getRoutes('en').workshop const CTA_HEADING = t('minimax.cta.heading', {}, { locale: 'en' }) diff --git a/apps/website/src/components/blocks/ReasonsSplit01.stories.ts b/apps/website/src/components/blocks/ReasonsSplit01.stories.ts index 5c8d499aa97..88e283e71ba 100644 --- a/apps/website/src/components/blocks/ReasonsSplit01.stories.ts +++ b/apps/website/src/components/blocks/ReasonsSplit01.stories.ts @@ -11,10 +11,18 @@ const meta: Meta = { template: '
' }) ], + render: (args) => ({ + components: { ReasonsSplit01 }, + setup: () => ({ args }), + template: ` + + + + ` + }), args: { - heading: 'Why teams choose ', - headingHighlight: 'ComfyUI', - highlightClass: 'text-primary-comfy-yellow', subtitle: 'A flexible foundation for production-grade visual AI.', reasons: [ { @@ -45,8 +53,13 @@ type Story = StoryObj export const Default: Story = {} export const WithoutHighlight: Story = { - args: { - heading: 'Why teams choose ComfyUI', - headingHighlight: undefined - } + render: (args) => ({ + components: { ReasonsSplit01 }, + setup: () => ({ args }), + template: ` + + + + ` + }) } diff --git a/apps/website/src/components/blocks/ReasonsSplit01.vue b/apps/website/src/components/blocks/ReasonsSplit01.vue index 48b9df0f105..86a4982d4f4 100644 --- a/apps/website/src/components/blocks/ReasonsSplit01.vue +++ b/apps/website/src/components/blocks/ReasonsSplit01.vue @@ -5,10 +5,7 @@ export interface Reason { description: string } -const { highlightClass = 'text-white' } = defineProps<{ - heading: string - headingHighlight?: string - highlightClass?: string +defineProps<{ subtitle?: string reasons: readonly Reason[] }>() @@ -18,24 +15,19 @@ const { highlightClass = 'text-white' } = defineProps<{
-

- {{ heading - }}{{ - headingHighlight - }} +

{{ subtitle }}

-
diff --git a/apps/website/src/components/product/local/ReasonSection.vue b/apps/website/src/components/product/local/ReasonSection.vue index 5429e808b53..d359e0e5de2 100644 --- a/apps/website/src/components/product/local/ReasonSection.vue +++ b/apps/website/src/components/product/local/ReasonSection.vue @@ -30,7 +30,7 @@ const reasons: Reason[] = [