-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create docker image & logo component
Signed-off-by: Arthur Broudoux <[email protected]>
- Loading branch information
Showing
12 changed files
with
492 additions
and
35 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
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,8 +1,9 @@ | ||
<script lang="ts"> | ||
import ModeToggle from "$components/global/ModeToggle.svelte"; | ||
import Logo from "$components/global/Logo.svelte"; | ||
</script> | ||
|
||
<header class="header bg-background p-4 px-6 flex flex-row items-center justify-between border-b"> | ||
<a href="/" class="font-bold">better.</a> | ||
<Logo /> | ||
<ModeToggle /> | ||
</header> |
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,10 @@ | ||
<script lang="ts"> | ||
import { Sprout } from "lucide-svelte"; | ||
</script> | ||
|
||
<a href="/" class="font-bold text-foreground text-2xl inline-flex items-center gap-1"> | ||
better | ||
<span class="text-green-500"> | ||
<Sprout class="w-6 h-6" /> | ||
</span> | ||
</a> |
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,30 @@ | ||
CREATE TABLE IF NOT EXISTS "circuits" ( | ||
"id" text PRIMARY KEY DEFAULT 'uuid_generate_v4()' NOT NULL, | ||
"name" text NOT NULL, | ||
"reps" integer DEFAULT 0, | ||
"rest_exercice" integer DEFAULT 0, | ||
"rest_circuit" integer DEFAULT 0 | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE IF NOT EXISTS "exercises" ( | ||
"id" text PRIMARY KEY DEFAULT 'uuid_generate_v4()' NOT NULL, | ||
"name" text NOT NULL, | ||
"reps" integer DEFAULT 0 NOT NULL, | ||
"sets" integer DEFAULT 0, | ||
"rest" integer DEFAULT 0 | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE IF NOT EXISTS "trainings" ( | ||
"id" text PRIMARY KEY DEFAULT 'uuid_generate_v4()' NOT NULL, | ||
"user_id" text, | ||
"name" text NOT NULL, | ||
"is_archived" boolean DEFAULT false, | ||
"duration" integer DEFAULT 0, | ||
"link" text | ||
); | ||
--> statement-breakpoint | ||
DO $$ BEGIN | ||
ALTER TABLE "trainings" ADD CONSTRAINT "trainings_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; | ||
EXCEPTION | ||
WHEN duplicate_object THEN null; | ||
END $$; |
Oops, something went wrong.