Skip to content

Commit 9834a63

Browse files
committed
feat: Photoslider
1 parent edcf66c commit 9834a63

16 files changed

+357
-7
lines changed

assets/events/1.jpg

2.38 MB
Loading

assets/events/2.jpg

3.35 MB
Loading

assets/events/3.jpg

2.36 MB
Loading

assets/events/4.jpg

2.12 MB
Loading

assets/events/5.jpg

1.93 MB
Loading

assets/events/6.jpg

2.09 MB
Loading

assets/events/7.jpg

1.92 MB
Loading

assets/events/8.jpg

2.07 MB
Loading

assets/events/9.jpg

2.47 MB
Loading

package-lock.json

+215-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"format": "prettier --plugin-search-dir . --write ."
1313
},
1414
"devDependencies": {
15+
"@fortawesome/free-solid-svg-icons": "^6.5.2",
16+
"@sveltejs/adapter-node": "^5.2.0",
1517
"@sveltejs/adapter-static": "^3.0.2",
1618
"@sveltejs/enhanced-img": "^0.3.0",
1719
"@sveltejs/kit": "^2.0.0",
@@ -24,7 +26,7 @@
2426
"prettier-plugin-svelte": "^2.10.1",
2527
"prettier-plugin-tailwindcss": "^0.2.4",
2628
"svelte": "^4.0.0",
27-
"svelte-awesome": "^3.0.1",
29+
"svelte-awesome": "^3.3.1",
2830
"svelte-check": "^3.4.3",
2931
"tailwindcss": "^3.2.7",
3032
"tslib": "^2.5.0",

src/lib/components/Poster.svelte

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { onMount } from 'svelte';
3-
import { debounce, random, sample } from 'lodash-es';
3+
import { debounce, omit, random, sample } from 'lodash-es';
44
import PosterBall from '$lib/components/PosterBall.svelte';
55
66
const BLUR_RADIUS = 64;
@@ -53,8 +53,6 @@
5353
};
5454
}
5555
56-
$: console.log(balls.length);
57-
5856
onMount(() => {
5957
setWidthHeight();
6058
window.addEventListener('resize', setWidthHeight);
@@ -65,7 +63,7 @@
6563
<div class="z-10 h-full w-full bg-western blur-3xl" bind:this={wrapper}>
6664
{#each balls as ball, i (ball.id)}
6765
<PosterBall
68-
{...ball}
66+
{...omit(ball, 'id')}
6967
{animated}
7068
screenWidth={width}
7169
on:done={() => (balls[i] = generateBall())}

src/routes/+page.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script>
22
import HeaderSection from './HeaderSection.svelte';
33
import InfoSection from './InfoSection.svelte';
4+
import PhotoSliderSection from './PhotoSliderSection.svelte';
45
import PracticalInformationSection from './PracticalInformationSection.svelte';
56
import Spacer from './Spacer.svelte';
67
import SpeakerScheduleSection from './SpeakerScheduleSection.svelte';
@@ -30,4 +31,5 @@
3031
<HeaderSection />
3132
<InfoSection /><!--<SpeakerScheduleSection />-->
3233
<Spacer /><!--<WorkshopScheduleSection />--><!--<SpeakerSection />-->
34+
<PhotoSliderSection />
3335
<PracticalInformationSection />

0 commit comments

Comments
 (0)