-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui/web): update component used for frequently asked questions
Signed-off-by: Jordan Shatford <[email protected]>
- Loading branch information
1 parent
fa0413f
commit 8dd4e97
Showing
5 changed files
with
44 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script lang="ts"> | ||
import { MinusCircleIcon, PlusCircleIcon } from '../icons'; | ||
import IconButton from './IconButton.svelte'; | ||
export let question: string; | ||
export let answer: string; | ||
let open: boolean = false; | ||
</script> | ||
|
||
<details | ||
class="rounded-lg bg-zinc-50 p-4 dark:bg-zinc-800 [&_summary::-webkit-details-marker]:hidden" | ||
{open} | ||
> | ||
<summary | ||
class="flex cursor-pointer items-center justify-between gap-1.5 text-zinc-900 dark:text-white" | ||
> | ||
<h2 class="font-medium"> | ||
{question} | ||
</h2> | ||
<IconButton | ||
src={open ? MinusCircleIcon : PlusCircleIcon} | ||
on:click={() => (open = !open)} | ||
class="h-10 w-10" | ||
/> | ||
</summary> | ||
{#if open} | ||
<p class="mt-4 text-sm leading-relaxed text-zinc-600 dark:text-zinc-300"> | ||
{answer} | ||
</p> | ||
{/if} | ||
</details> |
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
8dd4e97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
youtube-audio-downloader – ./
ytdownloading.vercel.app
yt-downloading.vercel.app
youtubeaudiodownloader.vercel.app
youtube-downloading.vercel.app
utubedownloader.vercel.app
youtbedownloader.vercel.app
youtubedownloading.vercel.app
youtube-audio-downloader-jordanshatford.vercel.app
youtube-audio-downloader-git-main-jordanshatford.vercel.app