Skip to content

Commit be0a043

Browse files
committed
chore: staged changes
1 parent 8f2771d commit be0a043

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

src/packlets/new-front/logo.astro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
import Kanok from '$sprites/kanok.svelte'
3+
---
4+
5+
<div class="absolute top-8 left-8 z-50 hidden md:block">
6+
<Kanok size="xl" color="orange" />
7+
<h1 class="text-brand-orange text-right text-[2.2rem] font-extrabold">JavaScript</h1>
8+
<h1 class="text-brand-orange text-right text-[2.2rem] font-extrabold">Bangkok 2.0.0</h1>
9+
</div>
10+
11+
<div class="absolute top-8 left-8 z-50 md:hidden">
12+
<Kanok size="l" color="orange" />
13+
<h1 class="text-brand-orange text-right text-xl font-extrabold">JavaScript</h1>
14+
<h1 class="text-brand-orange text-right text-xl font-extrabold">Bangkok 2.0.0</h1>
15+
</div>

src/packlets/playground/kanokLines.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
import { fly } from 'svelte/transition'
55
import { flip } from 'svelte/animate'
66
7+
export let size: 's' | 'm' | 'l' = 'l'
78
export let padding: number = 0
89
export let length: number
10+
11+
const basePadding = size === 'l' ? 8 : size === 'm' ? 4 : 2
912
</script>
1013

1114
<div class="flex">
12-
<div style={`padding-left: ${8 * padding}rem`}></div>
15+
<div style={`padding-left: ${basePadding * padding}rem`}></div>
1316
{#each Array.from({ length }) as _}
1417
<Kanok
15-
size="l"
18+
size={size}
1619
color={pickRandom(['yellow', 'orange', 'blue', 'green'])}
1720
variant={pickRandom(['invert-x', 'invert-xy', 'normal'])}
1821
animate
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script lang="ts">
2+
import KanokLines from "$playground/kanokLines.svelte";
3+
</script>
4+
5+
<KanokLines size="m" padding={0} length={12} />
6+
<KanokLines size="m" padding={0} length={12} />
7+
<KanokLines size="m" padding={0} length={12} />
8+
<KanokLines size="m" padding={0} length={12} />

src/pages/index.astro

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
---
22
import Base from '$layouts/base.astro'
33
4-
import Kanok from '$sprites/kanok.svelte'
4+
import Logo from '$new-front/logo.astro'
55
import Patterns from '$playground/patterns.svelte'
66
import Schedule from '$new-front/schedule.astro'
77
import Map from '$new-front/map.astro'
88
import Speakers from '$new-front/speakers.astro'
99
import Sponsors from '$new-front/sponsors.astro'
10-
10+
import MobileStrip from '$playground/mobileStrip.svelte'
1111
---
1212

1313
<Base title="JavaScript Bangkok 2.0.0">
14-
<div class="h-[64rem] bg-white overflow-hidden">
15-
<div class="max-w-[88rem] mx-auto relative">
16-
<div class="absolute top-8 left-8">
17-
<Kanok size="xl" color="orange" />
18-
<h1 class="text-brand-orange text-right text-[2.2rem] font-extrabold">JavaScript</h1>
19-
<h1 class="text-brand-orange text-right text-[2.2rem] font-extrabold">Bangkok 2.0.0</h1>
20-
</div>
21-
</div>
22-
<div class="max-w-[128rem] mx-auto">
14+
<div class="max-w-[88rem] mx-auto h-screen md:h-[64rem] bg-white overflow-hidden relative">
15+
<Logo />
16+
<div class="max-w-[128rem] mx-auto hidden md:block">
2317
<Patterns client:idle />
2418
</div>
19+
<div class="max-w-[128rem] mx-auto md:hidden absolute bottom-0 -left-8">
20+
<MobileStrip client:idle />
21+
</div>
2522
</div>
2623
<Schedule />
2724
<Map />

0 commit comments

Comments
 (0)