-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from WhyAsh5114/minor-fixes-before-release
feat: minor improvements, docs, and fixes before release
- Loading branch information
Showing
6 changed files
with
77 additions
and
18 deletions.
There are no files selected for viewing
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,23 +1,40 @@ | ||
<script lang="ts"> | ||
import { page } from '$app/stores'; | ||
import { Button } from '$lib/components/ui/button'; | ||
import Separator from '$lib/components/ui/separator/separator.svelte'; | ||
import { cn } from '$lib/utils'; | ||
export let sheetOpen: boolean | undefined = undefined; | ||
const linkItems: { text: string; href: string }[] = [ | ||
const linkItems: ({ text: string; href: string } | null)[] = [ | ||
{ text: 'Dashboard', href: '/dashboard' }, | ||
null, | ||
{ text: 'Exercise splits', href: '/exercise-splits' }, | ||
{ text: 'Mesocycles', href: '/mesocycles' }, | ||
{ text: 'Workouts', href: '/workouts' }, | ||
null, | ||
{ text: 'Docs', href: '/docs' }, | ||
{ text: 'Donations', href: '/donations' }, | ||
{ text: 'Privacy policy', href: '/privacy-policy' } | ||
]; | ||
</script> | ||
|
||
<ul class="mb-auto lg:mt-8"> | ||
{#each linkItems as { text, href }} | ||
<li> | ||
<Button class="text-foreground lg:text-base" {href} onclick={() => (sheetOpen = false)} variant="link"> | ||
{text} | ||
</Button> | ||
</li> | ||
{#each linkItems as linkItem} | ||
{#if linkItem} | ||
<li> | ||
<Button | ||
class={cn('text-muted-foreground lg:text-base', { | ||
'text-foreground': $page.url.pathname.startsWith(linkItem.href) | ||
})} | ||
href={linkItem.href} | ||
onclick={() => (sheetOpen = false)} | ||
variant="link" | ||
> | ||
{linkItem.text} | ||
</Button> | ||
</li> | ||
{:else} | ||
<Separator class="my-2.5 bg-foreground opacity-25" /> | ||
{/if} | ||
{/each} | ||
</ul> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export const prerender = true; |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div class="prose prose-neutral max-w-none dark:prose-invert lg:prose-lg"> | ||
<h1>Docs</h1> | ||
<blockquote>Just a basic overview of things work in this app, as there are some differences from V2</blockquote> | ||
|
||
<h2>Exercise splits</h2> | ||
<p> | ||
An exercise split refers to how workout sessions are divided across different days to target specific muscle groups | ||
or movement patterns. Examples: <i>Push Pull Legs</i>, <i>Upper Lower</i>, and <i>Full Body.</i> | ||
</p> | ||
<p>Tha app supports both synchronous (weekly) splits, and asynchronous splits (non-weekly) splits.</p> | ||
|
||
<h2>Mesocycle</h2> | ||
<p> | ||
A mesocycle is a unit of training consisting of several microcycles (repeated splits), usually lasting 4-6 weeks. | ||
The mesocycle structures progression and recovery, with increasing intensity or volume followed by deload phases to | ||
avoid overtraining. Deload feature will be coming soon! | ||
</p> | ||
|
||
<h2>Workouts</h2> | ||
<p> | ||
A single workout, consisting of multiple exercises, each with their own sets and options. Workouts can be done with | ||
or without an active mesocycle. | ||
</p> | ||
<p>Using an active mesocycle allows the app to progress performance and sets every microcycle.</p> | ||
|
||
<h2>Mesocycle exercise split</h2> | ||
<p> | ||
Whenever you create a mesocycle with an exercise split, that split is actually cloned for that mesocycle. This | ||
allows you and the app to make changes to the mesocycle's split without altering the original split. | ||
</p> | ||
|
||
<h2 class="italic">"I need more help!"</h2> | ||
<p> | ||
Feel free to <a href="https://github.com/WhyAsh5114/issues">open an issue</a> on the GitHub repository, will be glad | ||
to help you out and add more details to the docs | ||
</p> | ||
</div> |
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