|
1 | 1 | <template> |
2 | 2 | <header class="landing-hero"> |
3 | 3 | <div |
| 4 | + ref="inner" |
4 | 5 | class="landing-hero__inner landing-reveal" |
5 | 6 | :class="{ 'is-visible': visible }" |
6 | 7 | > |
| 8 | + <nav |
| 9 | + v-if="breadcrumbs && breadcrumbs.length" |
| 10 | + class="landing-hero__breadcrumbs" |
| 11 | + aria-label="Breadcrumbs" |
| 12 | + > |
| 13 | + <template v-for="(crumb, i) in breadcrumbs" :key="i"> |
| 14 | + <NuxtLink |
| 15 | + v-if="crumb.to" |
| 16 | + :to="crumb.to" |
| 17 | + class="landing-hero__breadcrumb-link" |
| 18 | + > |
| 19 | + {{ crumb.label }} |
| 20 | + </NuxtLink> |
| 21 | + <span v-else class="landing-hero__breadcrumb-current">{{ |
| 22 | + crumb.label |
| 23 | + }}</span> |
| 24 | + <span |
| 25 | + v-if="i < breadcrumbs.length - 1" |
| 26 | + class="landing-hero__breadcrumb-sep" |
| 27 | + >/</span |
| 28 | + > |
| 29 | + </template> |
| 30 | + </nav> |
7 | 31 | <p v-if="eyebrow" class="landing-hero__eyebrow">{{ eyebrow }}</p> |
8 | 32 | <h1 class="landing-hero__title">{{ title }}</h1> |
9 | 33 | <p v-if="subtitle" class="landing-hero__subtitle">{{ subtitle }}</p> |
|
22 | 46 | export default { |
23 | 47 | name: "LandingHero", |
24 | 48 | props: { |
| 49 | + breadcrumbs: { type: Array, default: () => [] }, |
25 | 50 | eyebrow: { type: String, default: "" }, |
26 | 51 | title: { type: String, required: true }, |
27 | 52 | subtitle: { type: String, default: "" }, |
@@ -72,6 +97,35 @@ export default { |
72 | 97 | transform: none; |
73 | 98 | } |
74 | 99 | } |
| 100 | +.landing-hero__breadcrumbs { |
| 101 | + display: flex; |
| 102 | + align-items: center; |
| 103 | + justify-content: center; |
| 104 | + gap: 0.5rem; |
| 105 | + font-size: 0.85rem; |
| 106 | + color: rgba(245, 245, 247, 0.6); |
| 107 | + margin-bottom: 1.5rem; |
| 108 | + flex-wrap: wrap; |
| 109 | +} |
| 110 | +
|
| 111 | +.landing-hero__breadcrumb-link { |
| 112 | + color: rgba(245, 245, 247, 0.6); |
| 113 | + text-decoration: none; |
| 114 | + transition: color 0.2s ease; |
| 115 | +
|
| 116 | + &:hover { |
| 117 | + color: #ffffff; |
| 118 | + } |
| 119 | +} |
| 120 | +
|
| 121 | +.landing-hero__breadcrumb-current { |
| 122 | + color: #f5f5f7; |
| 123 | + font-weight: 500; |
| 124 | +} |
| 125 | +
|
| 126 | +.landing-hero__breadcrumb-sep { |
| 127 | + color: rgba(245, 245, 247, 0.35); |
| 128 | +} |
75 | 129 |
|
76 | 130 | .landing-hero__eyebrow { |
77 | 131 | color: $c-blue-accent-light; |
|
0 commit comments