Skip to content

Commit f486aeb

Browse files
authored
Merge branch 'industrial' into mini
2 parents 8d8e9bf + 4577a53 commit f486aeb

File tree

4 files changed

+74
-9
lines changed

4 files changed

+74
-9
lines changed

src/lib/images/doublearrow.svg

Lines changed: 8 additions & 4 deletions
Loading

src/lib/style.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ $size_lg: 64rem;
4646
box-shadow 100ms,
4747
transform 100ms,
4848
filter 100ms;
49+
50+
@media (prefers-reduced-motion) {
51+
transition: none;
52+
}
4953
}
5054

5155
&:hover {

src/routes/+layout.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@
136136
@media (min-width: style.$size_md) {
137137
--transform: translate(calc(50% - 8em), calc(50% - 2em));
138138
}
139+
140+
@media (prefers-reduced-motion) {
141+
animation: none;
142+
transform: var(--transform);
143+
}
139144
}
140145
141146
.wall-top {
@@ -184,6 +189,8 @@
184189
width: 3em;
185190
height: 3em;
186191
align-self: center;
192+
193+
stroke: rgb(var(--fg));
187194
}
188195
189196
.header {

src/routes/+page.svelte

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<title>Revolution 2025</title>
1010
<meta
1111
name="description"
12-
content="Revolution is a UK hackathon taking place sometime next year. We'd love to see you there!"
12+
content="Revolution is a UK hackathon taking place next summer. We'd love to see you there!"
1313
/>
1414
<meta name="og:type" content="website" />
1515
<meta name="og:site_name" content="Revolution 2025" />
@@ -171,6 +171,10 @@
171171
background: no-repeat space url('$lib/images/train.svg') left/149em;
172172
animation: 30s linear infinite train;
173173
animation-delay: var(--animation-delay);
174+
175+
@media (prefers-reduced-motion) {
176+
display: none;
177+
}
174178
}
175179
176180
&.reverse::after {
@@ -186,10 +190,6 @@
186190
background-position-x: 550%;
187191
}
188192
}
189-
190-
@media (prefers-reduced-motion) {
191-
display: none;
192-
}
193193
}
194194
195195
.gear {
@@ -240,6 +240,7 @@
240240
241241
@media (prefers-reduced-motion) {
242242
animation: none;
243+
transform: var(--transform);
243244
}
244245
}
245246
}
@@ -256,13 +257,62 @@
256257
padding: 8em 4em;
257258
margin: auto;
258259
gap: 1em;
260+
261+
@keyframes logo-a {
262+
0% {
263+
stroke-dasharray: 0 100;
264+
}
265+
266+
20% {
267+
stroke-dasharray: 100 100;
268+
}
269+
270+
100% {
271+
stroke-dasharray: 100 100;
272+
}
273+
}
274+
275+
@keyframes logo-b {
276+
0% {
277+
stroke-dasharray: 0 100;
278+
}
279+
280+
20% {
281+
stroke-dasharray: 0 100;
282+
}
283+
284+
100% {
285+
stroke-dasharray: 100 100;
286+
}
287+
}
259288
260289
:global(.logo) {
261290
/* I'm not sure why this is needed. Maybe because it's another component */
262291
grid-area: 1 / 1 / 1 / 1;
263292
width: 3em;
264293
height: 3em;
265294
align-self: center;
295+
296+
stroke: rgb(var(--fg));
297+
}
298+
299+
:global(.logo .a) {
300+
stroke-dasharray: 0 100;
301+
animation: 1s cubic-bezier(.05,.09,.23,1) logo-a forwards;
302+
animation-delay: 200ms;
303+
}
304+
305+
:global(.logo .b) {
306+
stroke-dasharray: 0 100;
307+
animation: 1s cubic-bezier(.05,.09,.23,1) logo-b forwards;
308+
animation-delay: 200ms;
309+
}
310+
311+
@media (prefers-reduced-motion) {
312+
:global(.logo .a), :global(.logo .b) {
313+
animation: none;
314+
stroke-dasharray: 100 100;
315+
}
266316
}
267317
268318
.header {

0 commit comments

Comments
 (0)