-
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.
codebase cleanup, consistent ui tests, update svelte version and more…
… debugging
- Loading branch information
1 parent
23f98fc
commit d2b7633
Showing
63 changed files
with
695 additions
and
741 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
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,15 +1,18 @@ | ||
<script> | ||
import Box from "../Box.svelte"; | ||
import { AnimatePresence } from "$lib/motion-start"; | ||
import Card from "$lib/components/Card.svelte"; | ||
let index = 0; | ||
$: mint = index + 1; | ||
</script> | ||
|
||
<div | ||
class="w-64 h-64 relative bg-gray-700/40 rounded-lg flex justify-center items-center" | ||
> | ||
<AnimatePresence initial={false} list={[{ key: index }]}> | ||
<Card bind:index={mint} frontCard={false} /> | ||
<Card bind:index drag="x" frontCard={true} /> | ||
</AnimatePresence> | ||
</div> | ||
<Box> | ||
<div | ||
class="w-64 h-64 relative bg-gray-700/40 rounded-lg flex justify-center items-center" | ||
> | ||
<AnimatePresence initial={false} list={[{ key: index }]}> | ||
<Card bind:index={mint} frontCard={false} /> | ||
<Card bind:index drag="x" frontCard={true} /> | ||
</AnimatePresence> | ||
</div> | ||
</Box> |
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
); | ||
</script> | ||
|
||
<Box cls="bg-slate-800 text-black"> | ||
<Box> | ||
<motion.div | ||
animate={{ | ||
scale: $scale, | ||
|
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
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,13 +1,46 @@ | ||
<script> | ||
import Box from "../Box.svelte"; | ||
import Button from "../ui/button/button.svelte"; | ||
import { motion } from "$lib/motion-start"; | ||
let i = 0; | ||
</script> | ||
|
||
<motion.div | ||
animate={{ | ||
x: [0, 100, 100, 0, 0], | ||
y: [0, 0, 100, 100, 0], | ||
backgroundColor: ["#fd3", "#60f", "#fd3"], | ||
}} | ||
transition={{ duration: 4, ease: "linear" }} | ||
class="w-20 h-20 rounded-xl" | ||
></motion.div> | ||
<Box cls="flex-col gap-10"> | ||
<div class="h-[180px] w-[180px]"> | ||
{#key i} | ||
<motion.div | ||
animate={{ | ||
x: [0, 100, 100, 0, 0], | ||
y: [0, 0, 100, 100, 0], | ||
backgroundColor: ["#fd3", "#60f", "#fd3"], | ||
}} | ||
transition={{ duration: 4, ease: "linear" }} | ||
class="w-20 h-20 rounded-xl" | ||
></motion.div> | ||
{/key} | ||
</div> | ||
<div> | ||
<Button | ||
on:click={() => (i += 1)} | ||
variant="outline" | ||
class="bg-gray-700/30 border-white/30 text-white" | ||
size="sm" | ||
> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="20" | ||
height="20" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
stroke-width="1.6" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
class="lucide lucide-rotate-ccw" | ||
><path | ||
d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" | ||
/><path d="M3 3v5h5" /></svg | ||
> | ||
</Button> | ||
</div> | ||
</Box> |
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,33 +1,36 @@ | ||
<script> | ||
import Box from "../Box.svelte"; | ||
import { motion } from "$lib/motion-start"; | ||
</script> | ||
|
||
<svg | ||
width={200} | ||
height={200} | ||
class="bg-white rounded-3xl" | ||
stroke="#70f" | ||
stroke-width={20} | ||
stroke-linecap="round" | ||
fill="transparent" | ||
> | ||
<motion.path | ||
animate={{ | ||
d: [ | ||
"M 40,40 Q 160,40 160,160", | ||
"M 160,40 Q 100,100 40,160", | ||
"M 160,160 Q 100,160 40,160", | ||
"M 160,40 Q 100,160 40,40", | ||
"M 160,40 Q 100,40 40,40", | ||
"M 40,40 Q 160,40 160,160", | ||
], | ||
}} | ||
transition={{ | ||
repeat: Infinity, | ||
ease: "easeInOut", | ||
duration: 6, | ||
times: [0, 0.16, 0.33, 0.5, 0.66, 0.83], | ||
}} | ||
d="M 40,40 Q 160,40 160,160" | ||
/> | ||
</svg> | ||
<Box> | ||
<svg | ||
width={200} | ||
height={200} | ||
class="bg-white rounded-3xl" | ||
stroke="#70f" | ||
stroke-width={20} | ||
stroke-linecap="round" | ||
fill="transparent" | ||
> | ||
<motion.path | ||
animate={{ | ||
d: [ | ||
"M 40,40 Q 160,40 160,160", | ||
"M 160,40 Q 100,100 40,160", | ||
"M 160,160 Q 100,160 40,160", | ||
"M 160,40 Q 100,160 40,40", | ||
"M 160,40 Q 100,40 40,40", | ||
"M 40,40 Q 160,40 160,160", | ||
], | ||
}} | ||
transition={{ | ||
repeat: Infinity, | ||
ease: "easeInOut", | ||
duration: 6, | ||
times: [0, 0.16, 0.33, 0.5, 0.66, 0.83], | ||
}} | ||
d="M 40,40 Q 160,40 160,160" | ||
/> | ||
</svg> | ||
</Box> |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
let i = 0; | ||
</script> | ||
|
||
<Box cls="bg-slate-800 flex"> | ||
<Box> | ||
{#key i} | ||
<motion.div | ||
animate={{ | ||
|
Oops, something went wrong.