diff --git a/src/App.svelte b/src/App.svelte index 9e5d175..af63fde 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,41 +1,31 @@
-
- {#if $currentView === 0} - - {/if} - {#if $currentView === 1} - - {/if} - {#if $currentView === 2} - - {/if} - {#if $currentView === 3} - - {/if} -
+ {#if $currentView === 0} + + {/if} + {#if $currentView === 1} + + {/if} + {#if $currentView === 2} + + {/if} + {#if $currentView === 3} + + {/if} + {#if $currentView === 4} + + {/if}
diff --git a/src/app.css b/src/app.css index a9f0b06..97ca3f5 100644 --- a/src/app.css +++ b/src/app.css @@ -1,11 +1,9 @@ :root { - font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; + font-family: "Open Sans", Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; - color-scheme: light; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; + color-scheme: light dark; font-synthesis: none; text-rendering: optimizeLegibility; @@ -13,56 +11,109 @@ -moz-osx-font-smoothing: grayscale; } -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - body { margin: 0; } -h1 { - font-size: 3.2em; - line-height: 1.1; +main { + min-height: 100vh; + display: flex; + flex-direction: column; + background-color: #e0e0e0; + box-sizing: border-box; + padding: 1em; } -.card { - padding: 2em; +h1 { + font-size: 3em; + line-height: 1.1; + margin: 1.25em 0; + text-wrap: balance; + padding-left: 0.5em; } button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; + appearance: none; + border-radius: 0; + border: 0; + padding: 0; font-size: 1em; font-weight: 500; font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; } -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; + article { + opacity: 0.8; + label { + display: grid; + grid-template-columns: auto 1fr; + grid-template-areas: "name name" "date input"; + padding: 1em; + + input { + grid-area: input; + } + strong { + grid-area: name; + } + small { + grid-area: date; + } + } +} + article:has(:checked) { + opacity: 0.25; + + + article:not(:has(:checked)) { + opacity: 1; + } } - a:hover { - color: #747bff; + +.clickable { + box-shadow: 0 3px 0 rgba(0, 0, 0, .75); + border: 2px solid #222; + border-radius: 8px; + background-color: #f1f1f1; + display: block; + + &:hover, &:focus { + background-color: #e1e1e1; } - button { - background-color: #f9f9f9; + + &:active { + transform: translateY(1px); } } + +.back { + background-color: #e0e0e0; + color: #000; + + &:hover, &:focus { + background-color: #d0d0d0; + } +} + + .calendar { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 1.75em 0.5em; + } + + header { + display: flex; + padding: 1em; + gap: 0.5em; + align-items: center; + + button { + padding: 0.5em 1em; + } + + h1 { + font-size: 1.25em; + flex: 1; + margin: 0; + } + } + diff --git a/src/lib/CardioProgress.svelte b/src/lib/CardioProgress.svelte index c42f080..559d5f7 100644 --- a/src/lib/CardioProgress.svelte +++ b/src/lib/CardioProgress.svelte @@ -9,15 +9,17 @@ }; -
- +
+

Cardio {done}/{remaining}

- +
+
+
{#each $cardio as col, i} -
+
-
+ diff --git a/src/lib/GymProgress.svelte b/src/lib/GymProgress.svelte index 280ab36..daa5d53 100644 --- a/src/lib/GymProgress.svelte +++ b/src/lib/GymProgress.svelte @@ -8,15 +8,17 @@ }; -
- +
+

Gym {done}/{remaining}

- +
+
+
{#each $gym as col} -
+
{/each}
-
+ diff --git a/src/lib/Summary.svelte b/src/lib/Summary.svelte index 496fd2a..97ebba7 100644 --- a/src/lib/Summary.svelte +++ b/src/lib/Summary.svelte @@ -1,62 +1,76 @@ -
-

Summary

- +
+

Dags att komma i form!

+
+ + + +
+