2025-02-03 12:41:09 +01:00
|
|
|
<script lang="ts">
|
2025-02-06 11:34:06 +01:00
|
|
|
// import svelteLogo from "./assets/svelte.svg";
|
|
|
|
|
// import viteLogo from "/vite.svg";
|
|
|
|
|
import { currentView } from "./lib/store";
|
|
|
|
|
import Summary from "./lib/Summary.svelte";
|
|
|
|
|
import GymProgress from "./lib/GymProgress.svelte";
|
|
|
|
|
import CardioProgress from "./lib/CardioProgress.svelte";
|
|
|
|
|
import DietProgress from "./lib/DietProgress.svelte";
|
2025-04-29 23:17:01 +02:00
|
|
|
import FastProgress from "./lib/FastProgress.svelte";
|
|
|
|
|
import Info from "./lib/Info.svelte";
|
2025-02-03 12:41:09 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="chrome">
|
2025-04-29 23:17:01 +02:00
|
|
|
{#if $currentView === 0}
|
|
|
|
|
<Summary />
|
|
|
|
|
{/if}
|
|
|
|
|
{#if $currentView === 1}
|
|
|
|
|
<GymProgress />
|
|
|
|
|
{/if}
|
|
|
|
|
{#if $currentView === 2}
|
|
|
|
|
<CardioProgress />
|
|
|
|
|
{/if}
|
|
|
|
|
{#if $currentView === 3}
|
|
|
|
|
<DietProgress />
|
|
|
|
|
{/if}
|
|
|
|
|
{#if $currentView === 4}
|
|
|
|
|
<Info />
|
|
|
|
|
{/if}
|
|
|
|
|
{#if $currentView === 5}
|
|
|
|
|
<FastProgress />
|
|
|
|
|
{/if}
|
2025-02-03 12:41:09 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
</style>
|