Skip to content

Commit 209e24a

Browse files
committed
add penguins + try out Lottie animations
1 parent 05c7736 commit 209e24a

14 files changed

Lines changed: 269 additions & 12 deletions

File tree

package-lock.json

Lines changed: 27 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"indexl10n": "node scripts/programatic-langs.js && node scripts/translation-index.js"
1212
},
1313
"dependencies": {
14+
"@lottiefiles/dotlottie-svelte": "^0.10.6",
1415
"penguinmod": "github:PenguinMod/PenguinMod-ApiModule",
1516
"PenguinMod-MarkDown": "github:PenguinMod/PenguinMod-MarkDownNew",
1617
"PenguinMod-SvelteUI": "github:PenguinMod/PenguinMod-SvelteUI"

src/routes/+page.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
key="home.introduction2"
7373
/>
7474
</p>
75-
<Button icon="/icons/blocks-blue.svg" kind="highlighted" href={externalLinks.editor}>
75+
<Button icon="/asset/icons/blocks-blue.svg" kind="highlighted" href={externalLinks.editor}>
7676
<LocalizedString
7777
text="Try it out"
7878
key="home.tryout"
@@ -83,9 +83,8 @@
8383
<div class="section-onboarding-showoff">
8484
<div class="section-onboarding-showoff-inner">
8585
{#if !StateApplication.loggedInProcessed}
86-
<!-- TODO: This should link to the active origin URL, not penguinmod.com -->
8786
<img
88-
src="https://penguinmod.com/penguins/frontpage.svg"
87+
src="/asset/penguin/large/frontpage.svg"
8988
alt="PenguinMod"
9089
/>
9190
{:else if !($StoreSettings.loggedIn)}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script>
2+
import { DotLottieSvelte } from '@lottiefiles/dotlottie-svelte';
3+
</script>
4+
5+
<h1>DotLottieSvelte</h1>
6+
<h2>@lottiefiles/dotlottie-svelte</h2>
7+
8+
<h3>hoverdevice</h3>
9+
<p>{"/asset/penguin/animated/lottie/hoverdevice.json"}</p>
10+
<div>
11+
<DotLottieSvelte
12+
src="/asset/penguin/animated/lottie/hoverdevice.json"
13+
autoplay={true}
14+
loop={true}
15+
/>
16+
</div>
17+
18+
<style>
19+
div {
20+
width: 480px;
21+
height: 480px;
22+
}
23+
</style>
File renamed without changes.

static/asset/penguin/animated/lottie/hoverdevice.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

static/asset/penguin/confused.svg

Lines changed: 210 additions & 0 deletions
Loading

static/asset/penguin/despair.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)