-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- change to static adapter - fix URL issues for hosting the static site in a subdirectory - ensure everything server side is pre-rendered - only show dev page on dev builds
- Loading branch information
Showing
15 changed files
with
306 additions
and
240 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,6 @@ | ||
<script> | ||
import { t } from '$lib/i18n.js'; | ||
import { onMount } from 'svelte'; | ||
import Step from './Step.svelte'; | ||
import { readable } from 'svelte/store'; | ||
/** @type {import('./$types').PageData} */ | ||
export let data; | ||
const i = readable(0, (set) => { | ||
const handle = setInterval(() => { | ||
set($i + 1); | ||
}, 300); | ||
return () => clearInterval(handle); | ||
}); | ||
</script> | ||
|
||
<h1>{$t('home.title')}</h1> | ||
<p>[intro video]</p> | ||
<p>[recommendations]</p> | ||
|
||
<h2>{$t('home.steps')}</h2> | ||
<div class="step-table"> | ||
{#each data.allSteps as step} | ||
<Step {step} poseIndex={$i} /> | ||
{/each} | ||
</div> | ||
|
||
<style> | ||
.step-table { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
text-align: center; | ||
gap: 20px 0px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,34 @@ | ||
<script> | ||
import { t } from '$lib/i18n.js'; | ||
import Step from './Step.svelte'; | ||
import { readable } from 'svelte/store'; | ||
/** @type {import('./$types').PageData} */ | ||
export let data; | ||
const i = readable(0, (set) => { | ||
const handle = setInterval(() => { | ||
set($i + 1); | ||
}, 300); | ||
return () => clearInterval(handle); | ||
}); | ||
</script> | ||
|
||
<h1>{$t('learn.title')}</h1> | ||
<p>[skill tree selection]</p> | ||
|
||
<h2>{$t('home.steps')}</h2> | ||
<div class="step-table"> | ||
{#each data.allSteps as step} | ||
<Step {step} poseIndex={$i} /> | ||
{/each} | ||
</div> | ||
|
||
<style> | ||
.step-table { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
text-align: center; | ||
gap: 20px 0px; | ||
} | ||
</style> |
4 changes: 2 additions & 2 deletions
4
bouncy_frontend/src/routes/Step.svelte → bouncy_frontend/src/routes/learn/Step.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,6 +239,7 @@ | |
</button> | ||
{/if} | ||
</div> | ||
<p style="width: 100px; height: 50px;"></p> | ||
</div> | ||
|
||
<style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters