From b1f6865ad0d2479b80cb1e1f14e2f0ab9209b3e0 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 14 Dec 2024 17:13:45 +0100 Subject: [PATCH] Lib: Implement team and driver cards --- src/lib/components/DriverCard.svelte | 116 +++++++++++++++++++++++++++ src/lib/components/TeamCard.svelte | 80 ++++++++++++++++++ 2 files changed, 196 insertions(+) create mode 100644 src/lib/components/DriverCard.svelte create mode 100644 src/lib/components/TeamCard.svelte diff --git a/src/lib/components/DriverCard.svelte b/src/lib/components/DriverCard.svelte new file mode 100644 index 0000000..48b7b7b --- /dev/null +++ b/src/lib/components/DriverCard.svelte @@ -0,0 +1,116 @@ + + + +
+ + + {#if driver && !disable_inputs} + + {/if} + +
+ + First Name + Last Name + Driver Code + + + Team + + + + Upload Headshot or Drag and Drop + + + +
+ {#if driver} + + + {:else} + + {/if} +
+
+
+
diff --git a/src/lib/components/TeamCard.svelte b/src/lib/components/TeamCard.svelte new file mode 100644 index 0000000..ce9b0db --- /dev/null +++ b/src/lib/components/TeamCard.svelte @@ -0,0 +1,80 @@ + + + +
+ + + {#if team && !disable_inputs} + + {/if} + +
+ + Name + + + + Upload Logo or Drag and Drop + + + +
+ {#if team} + + + {:else} + + {/if} +
+
+
+