-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
197 additions
and
7 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,49 @@ | ||
<script> | ||
import { blur } from "svelte/transition"; | ||
import Confetti from "svelte-confetti"; | ||
import SliderTips from "./tips/Slider_Tips.svelte"; | ||
import { XIcon } from "lucide-svelte"; | ||
let open = true; | ||
</script> | ||
|
||
{#if open} | ||
<div | ||
style=" | ||
position: fixed; | ||
top: -50px; | ||
left: 0; | ||
height: 100vh; | ||
width: 100vw; | ||
display: flex; | ||
justify-content: center; | ||
overflow: hidden; | ||
pointer-events: none; | ||
z-index: 1000; | ||
" | ||
> | ||
<Confetti | ||
x={[-5, 5]} | ||
y={[0, 0.1]} | ||
delay={[0, 1000]} | ||
duration={3000} | ||
amount={1000} | ||
fallDistance="100vh" | ||
/> | ||
</div> | ||
<div | ||
transition:blur | ||
class="backdrop-blur-[2px] absolute w-full h-full z-10 rounded-md" | ||
> | ||
<div | ||
class="flex justify-center items-center h-full w-full flex-col gap-1 -mt-4" | ||
> | ||
<div class="flex justify-end w-full"> | ||
<button on:click={() => (open = false)} class="btn btn-sm btn-circle" | ||
><XIcon class="w-4 h-4" /></button | ||
> | ||
</div> | ||
<SliderTips /> | ||
</div> | ||
</div> | ||
{/if} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script lang="ts"> | ||
export let text: string; | ||
export let href: string; | ||
</script> | ||
|
||
<a | ||
target="_blank" | ||
rel="noreferrer" | ||
{href} | ||
class="mx-1 flex justify-center flex-row h-32 w-[16.3rem] btn gap-3 p-3 btn-info" | ||
> | ||
<slot /> | ||
<div class="text-center space-y-2"> | ||
<p> | ||
{text} | ||
</p> | ||
</div> | ||
</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,38 @@ | ||
<script lang="ts"> | ||
import "@splidejs/svelte-splide/css"; | ||
import { Splide, SplideSlide } from "@splidejs/svelte-splide"; | ||
import Item from "./Item.svelte"; | ||
import CoffeeIcon from "src/components/icons/Coffee_Icon.svelte"; | ||
import { StarIcon } from "lucide-svelte"; | ||
import { BMC_LINK, STORE_LINK } from "src/utils/constants"; | ||
</script> | ||
|
||
<Splide | ||
class="h-40 w-[18.3rem] px-2" | ||
options={{ | ||
type: "loop", | ||
autoplay: true, | ||
arrows: false, | ||
}} | ||
aria-label="Tips" | ||
> | ||
<SplideSlide> | ||
<Item href={BMC_LINK} text={"If you enjoy this extension, consider buying me a coffee."}> | ||
<div class="animate-bounce"> | ||
<CoffeeIcon width="40px" height="40px" /> | ||
</div> | ||
</Item> | ||
</SplideSlide> | ||
<SplideSlide> | ||
<Item href={STORE_LINK} text={"Give 5 star review if you like this extension."} > | ||
<div class="flex gap-2"> | ||
<StarIcon class="h-5 w-5 animate-[bounce_1s_ease-in-out_infinite]" /> | ||
<StarIcon class="h-5 w-5 animate-[bounce_0.8s_ease-in-out_infinite]" /> | ||
<StarIcon class="h-5 w-5 animate-[bounce_0.6s_ease-in-out_infinite]" /> | ||
<StarIcon class="h-5 w-5 animate-[bounce_0.4s_ease-in-out_infinite]" /> | ||
<StarIcon class="h-5 w-5 animate-[bounce_0.6s_ease-in-out_infinite]" /> | ||
</div> | ||
</Item> | ||
</SplideSlide> | ||
</Splide> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface TooltipItem { | ||
text: string; | ||
img: string; | ||
imgAlt: string; | ||
} |