|
1 | 1 | <style is:global> |
| 2 | + [data-has-hero] .hero { |
| 3 | + padding-block-start: clamp(1.25rem, 4vw, 3.75rem); |
| 4 | + } |
| 5 | + |
2 | 6 | [data-has-hero] .hero h1 { |
3 | | - display: grid; |
4 | | - gap: 2rem; |
| 7 | + display: block; |
5 | 8 | letter-spacing: 0; |
6 | 9 | line-height: 1; |
| 10 | + text-align: center; |
| 11 | + text-wrap: wrap; |
| 12 | + word-break: keep-all; |
| 13 | + width: min(100%, 72rem); |
| 14 | + max-width: 72rem; |
| 15 | + font-size: clamp(2.2rem, 4.75vw, 4.15rem); |
7 | 16 | } |
8 | 17 |
|
9 | | - [data-has-hero] .hero h1 .hero-brand { |
10 | | - color: var(--vide-accent); |
11 | | - font-size: clamp(2.55rem, 4.3vw, 4rem); |
12 | | - font-weight: 900; |
| 18 | + [data-has-hero] .hero h1::before { |
| 19 | + content: ""; |
| 20 | + display: block; |
| 21 | + width: min(15rem, 42vw); |
| 22 | + aspect-ratio: 864 / 280; |
| 23 | + margin-inline: auto; |
| 24 | + margin-bottom: clamp(0.85rem, 2vw, 1.35rem); |
| 25 | + background: url('../assets/vide-logo-reveal-light.svg') center / contain no-repeat; |
13 | 26 | } |
14 | 27 |
|
15 | | - [data-has-hero] .hero h1 .hero-title-main { |
16 | | - font-size: clamp(2.5rem, 5.8vw, 5rem); |
17 | | - text-wrap: balance; |
18 | | - word-break: keep-all; |
| 28 | + :root[data-theme='dark'][data-has-hero] .hero h1::before, |
| 29 | + :root[data-theme='dark'] [data-has-hero] .hero h1::before { |
| 30 | + background-image: url('../assets/vide-logo-reveal-dark.svg'); |
| 31 | + } |
| 32 | + |
| 33 | + [data-has-hero] .hero .tagline { |
| 34 | + max-width: min(100%, 56rem); |
| 35 | + color: var(--sl-color-gray-3); |
| 36 | + font-size: clamp(1rem, 1.35vw, 1.2rem); |
| 37 | + line-height: 1.7; |
| 38 | + text-align: center; |
19 | 39 | } |
20 | 40 |
|
21 | | - [data-has-hero] .hero h1 .hero-title-nowrap { |
| 41 | + [data-has-hero] .hero .hero-tagline-accent { |
| 42 | + color: var(--vide-accent); |
| 43 | + font-weight: 800; |
| 44 | + } |
| 45 | + |
| 46 | + [data-has-hero] .hero .hero-tagline-nowrap { |
22 | 47 | white-space: nowrap; |
23 | 48 | } |
24 | 49 |
|
| 50 | + [data-has-hero] .hero .stack, |
| 51 | + [data-has-hero] .hero .copy { |
| 52 | + align-items: center; |
| 53 | + text-align: center; |
| 54 | + } |
| 55 | + |
| 56 | + [data-has-hero] .hero .actions { |
| 57 | + justify-content: center; |
| 58 | + } |
| 59 | + |
25 | 60 | [data-has-hero] .hero h1 .hero-title-sub { |
26 | 61 | color: var(--sl-color-gray-2); |
27 | 62 | font-size: clamp(1rem, 1.45vw, 1.35rem); |
28 | 63 | font-weight: 400; |
29 | 64 | line-height: 1.35; |
30 | 65 | } |
| 66 | + |
| 67 | + @media (max-width: 49.999rem) { |
| 68 | + [data-has-hero] .hero, |
| 69 | + [data-has-hero] .hero .stack, |
| 70 | + [data-has-hero] .hero .copy { |
| 71 | + min-width: 0; |
| 72 | + width: 100%; |
| 73 | + max-width: 100%; |
| 74 | + } |
| 75 | + |
| 76 | + [data-has-hero] .hero h1 { |
| 77 | + font-size: clamp(1.85rem, 5.5vw, 2.1rem); |
| 78 | + line-height: 1.08; |
| 79 | + width: min(100%, calc(100vw - 2rem)); |
| 80 | + max-width: calc(100vw - 2rem); |
| 81 | + white-space: normal; |
| 82 | + word-break: normal; |
| 83 | + overflow-wrap: anywhere; |
| 84 | + } |
| 85 | + |
| 86 | + [data-has-hero] .hero .actions { |
| 87 | + flex-wrap: wrap; |
| 88 | + max-width: calc(100vw - 2rem); |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + [data-has-hero][data-has-sidebar] { |
| 93 | + --sl-content-width: 67.5rem; |
| 94 | + } |
| 95 | + |
| 96 | + @media (min-width: 50rem) { |
| 97 | + [data-has-hero][data-has-sidebar] { |
| 98 | + --sl-content-inline-start: 0rem; |
| 99 | + } |
| 100 | + |
| 101 | + [data-has-hero][data-has-sidebar] .sidebar-pane { |
| 102 | + display: none; |
| 103 | + } |
| 104 | + |
| 105 | + [data-has-hero] .hero .stack, |
| 106 | + [data-has-hero] .hero .copy { |
| 107 | + align-items: center; |
| 108 | + text-align: center; |
| 109 | + } |
| 110 | + |
| 111 | + [data-has-hero] .hero .actions { |
| 112 | + justify-content: center; |
| 113 | + } |
| 114 | + |
| 115 | + [data-has-hero] .hero h1::before { |
| 116 | + width: min(23rem, 50vw); |
| 117 | + } |
| 118 | + } |
31 | 119 | </style> |
0 commit comments