All files / apps/huella-legal/layers/newsletter/app/components NewsletterBand.vue

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32                4x   3x               3x                     3x    
<template>
    <!-- ivory-200 leaves teal-600 and ink-600 under 4.5:1, so the band darkens both tokens a step -->
    <section
        :id="NEWSLETTER_ID"
        :aria-labelledby="titleId"
        class="scroll-mt-(--ui-header-height) bg-accented [--ui-secondary:var(--color-huella-teal-700)] [--ui-text-muted:var(--color-huella-ink-700)]"
    >
        <UContainer class="grid gap-12 py-16 lg:grid-cols-12 lg:items-center lg:gap-12 lg:py-20">
            <div class="lg:col-span-6">
                <BaseKicker>
                    {{ $t("newsletterBand.kicker") }}
                </BaseKicker>
                <h2
                    :id="titleId"
                    class="mt-2 font-serif text-section text-balance text-highlighted md:text-h2"
                >
                    {{ $t("newsletterBand.title") }}
                </h2>
            </div>
 
            <NewsletterForm layout="inline" class="lg:col-span-6" />
        </UContainer>
    </section>
</template>
 
<script setup lang="ts">
import { NEWSLETTER_ID } from "../composables/useNewsletterJump";
import NewsletterForm from "./NewsletterForm.vue";
 
const titleId = useId();
</script>