|
9 | 9 |
|
10 | 10 | <div class="hero">
|
11 | 11 | <div class="hero-content">
|
12 |
| - <img alt="Svelte logotype" class="logotype" src={SvelteLogotype} width="300" height="56" /> |
13 |
| - <strong> |
14 |
| - <span style="white-space: nowrap">Web development</span> <br /> but fun |
15 |
| - </strong> |
16 |
| - <div class="buttons"> |
17 |
| - <a href="/tutorial" class="cta">tutorial</a> |
18 |
| - <a href="/docs" class="cta basic">read the docs</a> |
19 |
| - </div> |
| 12 | + <!-- <img alt="Svelte logotype" class="logotype" src={SvelteLogotype} width="300" height="56" /> --> |
| 13 | + <h1>web development for the rest of us</h1> |
| 14 | + <a href="/docs" class="cta basic">get started</a> |
20 | 15 | </div>
|
21 | 16 |
|
22 | 17 | <picture class="machine">
|
|
51 | 46 | <style>
|
52 | 47 | .hero {
|
53 | 48 | position: relative;
|
54 |
| - background: radial-gradient(circle at 40% 30%, rgb(235, 243, 249), rgb(214, 222, 228)); |
55 | 49 | padding: 6rem 0 34vw 0;
|
56 | 50 | margin-bottom: 3rem;
|
57 |
| - } |
58 | 51 |
|
59 |
| - .machine img { |
60 |
| - position: absolute; |
61 |
| - pointer-events: none; |
62 |
| - width: 100%; |
63 |
| - height: auto; |
| 52 | + &::before { |
| 53 | + content: ''; |
| 54 | + position: absolute; |
| 55 | + width: 100%; |
| 56 | + height: 200%; |
| 57 | + left: 0; |
| 58 | + top: 0; |
| 59 | + background: linear-gradient(to bottom, transparent, var(--sk-back-1)), |
| 60 | + radial-gradient(circle at 40% 30%, rgb(235, 243, 249), rgb(214, 222, 228)); |
| 61 | + } |
| 62 | +
|
| 63 | + :root.dark &::before { |
| 64 | + background: linear-gradient(to bottom, transparent, var(--sk-back-1)), |
| 65 | + radial-gradient( |
| 66 | + 64.14% 72.25% at 47.58% 31.75%, |
| 67 | + hsl(209deg 6% 47% / 52%) 0%, |
| 68 | + hsla(0, 0%, 100%, 0) 100% |
| 69 | + ), |
| 70 | + linear-gradient( |
| 71 | + 92.4deg, |
| 72 | + hsl(210, 7%, 16%) 14.67%, |
| 73 | + hsl(0deg 0% 0% / 48%) 54.37%, |
| 74 | + hsla(207, 22%, 13%, 0.62) 92.49% |
| 75 | + ), |
| 76 | + linear-gradient(0deg, hsl(204, 38%, 20%), hsl(204, 10%, 90%)); |
| 77 | + } |
64 | 78 | }
|
65 | 79 |
|
66 | 80 | .hero-content {
|
|
69 | 83 | align-items: center;
|
70 | 84 | gap: 1rem;
|
71 | 85 | margin-bottom: 4rem;
|
| 86 | + text-align: center; |
72 | 87 | }
|
73 | 88 |
|
74 |
| - strong { |
75 |
| - font-size: var(--sk-font-size-h2); |
76 |
| - text-align: center; |
77 |
| - font-family: var(--sk-font-heading); |
78 |
| - text-transform: lowercase; |
79 |
| - font-weight: 400; |
80 |
| - color: var(--sk-text-2); |
81 |
| - line-height: 1.2; |
| 89 | + h1 { |
| 90 | + max-width: 9em; |
82 | 91 | }
|
83 | 92 |
|
84 |
| - .buttons { |
85 |
| - display: flex; |
86 |
| - gap: 1rem; |
87 |
| - align-items: center; |
| 93 | + .machine img { |
| 94 | + position: absolute; |
| 95 | + pointer-events: none; |
| 96 | + width: 100%; |
| 97 | + height: auto; |
88 | 98 | }
|
89 | 99 |
|
90 | 100 | .cta {
|
91 |
| - display: flex; |
92 |
| - align-items: center; |
93 |
| - gap: 0.1rem; |
94 |
| - background: var(--sk-theme-1); |
95 |
| - padding: 0.35em 0.8em; |
96 | 101 | font-family: var(--sk-font-ui);
|
97 | 102 | font-size: var(--sk-font-size-ui-medium);
|
98 |
| - font-weight: 600; |
99 |
| - white-space: nowrap; |
100 |
| - border-radius: var(--sk-border-radius); |
101 |
| - box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.08); |
102 |
| - color: #fff; |
103 |
| - transition: 0.5s var(--quint-out); |
104 |
| - transition-property: box-shadow, color; |
105 |
| - } |
106 |
| -
|
107 |
| - .cta:hover { |
108 |
| - text-decoration: none; |
109 |
| - box-shadow: |
110 |
| - 0px 0.8px 3.8px rgba(0, 0, 0, 0.115), |
111 |
| - 0px 6px 30px rgba(0, 0, 0, 0.23); |
112 |
| - } |
113 |
| -
|
114 |
| - .cta.basic { |
115 |
| - background-color: var(--sk-back-5); |
116 |
| - color: var(--sk-text-1); |
117 |
| - } |
118 |
| -
|
119 |
| - .logotype { |
120 |
| - width: min(45vw, 40em); |
121 |
| - height: auto; |
| 103 | + color: var(--sk-theme-1); |
| 104 | + text-transform: uppercase; |
122 | 105 | }
|
123 | 106 |
|
124 | 107 | @media (min-width: 800px) {
|
125 | 108 | .hero-content {
|
126 | 109 | --width: clamp(60rem, 50vw, 80rem);
|
| 110 | + align-items: start; |
127 | 111 | position: absolute;
|
128 |
| - display: grid; |
129 |
| - grid-template-columns: 1fr 1fr; |
130 |
| - grid-column-gap: 4rem; |
131 |
| - grid-row-gap: 2rem; |
132 | 112 | width: var(--width);
|
133 | 113 | left: calc(0.5 * (100% - min(100vw, 120rem)) + var(--sk-page-padding-side));
|
134 |
| - top: 6rem; |
135 |
| - font-size: 0.9em; |
136 |
| - } |
137 |
| -
|
138 |
| - .logotype { |
139 |
| - width: 100%; |
140 |
| - justify-self: end; |
141 |
| - } |
142 |
| -
|
143 |
| - strong { |
| 114 | + top: calc(8vw - 2rem); |
144 | 115 | text-align: left;
|
145 | 116 | }
|
146 | 117 |
|
|
152 | 123 |
|
153 | 124 | @media (min-width: 1400px) {
|
154 | 125 | .hero-content {
|
155 |
| - grid-template-columns: 1fr; |
156 |
| - width: calc(0.5 * var(--width)); |
157 |
| - top: 6vw; |
| 126 | + /* top: 6vw; */ |
158 | 127 | }
|
159 | 128 |
|
160 | 129 | .hero {
|
161 | 130 | height: calc(10rem + 20vw);
|
162 | 131 | padding: 10rem 0 0 0;
|
163 | 132 | }
|
164 | 133 | }
|
165 |
| -
|
166 |
| - :global(html.dark) .hero { |
167 |
| - background: radial-gradient( |
168 |
| - 64.14% 72.25% at 47.58% 31.75%, |
169 |
| - hsl(209deg 6% 47% / 52%) 0%, |
170 |
| - hsla(0, 0%, 100%, 0) 100% |
171 |
| - ), |
172 |
| - linear-gradient( |
173 |
| - 92.4deg, |
174 |
| - hsl(210, 7%, 16%) 14.67%, |
175 |
| - hsl(0deg 0% 0% / 48%) 54.37%, |
176 |
| - hsla(207, 22%, 13%, 0.62) 92.49% |
177 |
| - ), |
178 |
| - linear-gradient(0deg, hsl(204, 38%, 20%), hsl(204, 10%, 90%)); |
179 |
| - } |
180 |
| -
|
181 |
| - :global(html.dark) .logotype { |
182 |
| - filter: invert(4) brightness(1.2); |
183 |
| - } |
184 | 134 | </style>
|
0 commit comments