feat(frontend): Dark Mode
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -51,10 +51,12 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<slot></slot>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="hero min-h-screen">
|
<div class="hero min-h-screen">
|
||||||
<div
|
<div
|
||||||
class="hero-content flex-col lg:flex-row-reverse bg-base-100/50 p-16 rounded shadow-sm"
|
class="hero-content flex-col lg:flex-row-reverse light:bg-base-100/50 dark:bg-[hsl(39,20%,5%)]/30 p-16 rounded shadow-sm"
|
||||||
>
|
>
|
||||||
{#if !after_download_page}
|
{#if !after_download_page}
|
||||||
<div class="text-center lg:text-left lg:p-10">
|
<div class="text-center lg:text-left lg:p-10">
|
||||||
@@ -63,23 +65,28 @@
|
|||||||
>
|
>
|
||||||
Wattpad Downloader
|
Wattpad Downloader
|
||||||
</h1>
|
</h1>
|
||||||
<p class="pt-6 text-lg">
|
<p class="pt-4 text-xl dark:text-white">
|
||||||
Download your favourite books with a single click!
|
Download your favourite books with a single click!
|
||||||
</p>
|
</p>
|
||||||
<ul class="pt-4 list list-inside text-xl">
|
<ul
|
||||||
|
class="pt-6 list list-inside text-xl dark:text-[hsl(133,13%,85%)] text-left"
|
||||||
|
>
|
||||||
<!-- TODO: 'max-lg: hidden' to hide on screen sizes smaller than lg. I'll do this when I figure out how to make this show up _below_ the card on smaller screen sizes. -->
|
<!-- TODO: 'max-lg: hidden' to hide on screen sizes smaller than lg. I'll do this when I figure out how to make this show up _below_ the card on smaller screen sizes. -->
|
||||||
<li>07/24 - 🔡 RTL Language support! (Arabic, etc.)</li>
|
<li>08 '24 - 🌙 Dark Mode</li>
|
||||||
<li>06/24 - 🔑 Authenticated Downloads!</li>
|
<li>07 '24 - 🔡 RTL Language support! (Arabic, etc.)</li>
|
||||||
<li>06/24 - 🖼️ Image Downloading!</li>
|
<li>06 '24 - 🔑 Authenticated Downloads!</li>
|
||||||
|
<li>06 '24 - 🖼️ Image Downloading!</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="card shrink-0 w-full max-w-sm shadow-2xl bg-base-100">
|
<div
|
||||||
|
class="card shrink-0 w-full max-w-sm shadow-2xl light:bg-base-100 dark:bg-[hsl(133,15%,9%)] dark:shadow-[0px_0px_150px_-100px_hsl(39,100%,50%)]"
|
||||||
|
>
|
||||||
<form class="card-body">
|
<form class="card-body">
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Story ID"
|
placeholder="Story ID"
|
||||||
class="input input-bordered"
|
class="input input-bordered dark:text-white"
|
||||||
class:input-warning={is_part_id}
|
class:input-warning={is_part_id}
|
||||||
bind:value={raw_story_id}
|
bind:value={raw_story_id}
|
||||||
required
|
required
|
||||||
@@ -115,11 +122,12 @@
|
|||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
{#if is_paid_story}
|
{#if is_paid_story}
|
||||||
|
<div class="grid grid-rows-2 gap-y-1">
|
||||||
<label class="input input-bordered flex items-center gap-2">
|
<label class="input input-bordered flex items-center gap-2">
|
||||||
Username
|
<span class="label-text">Username</span>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
class="grow"
|
class="grow dark:text-white in_input p-1 rounded"
|
||||||
name="username"
|
name="username"
|
||||||
placeholder="foxtail.chicken"
|
placeholder="foxtail.chicken"
|
||||||
bind:value={credentials.username}
|
bind:value={credentials.username}
|
||||||
@@ -127,23 +135,25 @@
|
|||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<label class="input input-bordered flex items-center gap-2">
|
<label class="input input-bordered flex items-center gap-2">
|
||||||
Password
|
<span class="label-text">Password</span>
|
||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
class="grow"
|
class="grow dark:text-white in_input p-1 rounded"
|
||||||
placeholder="supersecretpassword"
|
placeholder="supersecretpassword"
|
||||||
name="password"
|
name="password"
|
||||||
bind:value={credentials.password}
|
bind:value={credentials.password}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-control mt-6">
|
<div class="form-control mt-6">
|
||||||
<a
|
<a
|
||||||
class="btn btn-primary rounded-l-none"
|
class="btn light:btn-primary dark:btn-accent"
|
||||||
class:btn-disabled={button_disabled}
|
class:btn-disabled={button_disabled}
|
||||||
|
class:disabled={button_disabled}
|
||||||
data-umami-event="Download"
|
data-umami-event="Download"
|
||||||
href={url}
|
href={url}
|
||||||
on:click={() => (after_download_page = true)}>Download</a
|
on:click={() => (after_download_page = true)}>Download</a
|
||||||
@@ -164,7 +174,7 @@
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
data-feedback-fish
|
data-feedback-fish
|
||||||
class="link pb-4"
|
class="link pb-4 label-text"
|
||||||
data-umami-event="Feedback">Feedback</button
|
data-umami-event="Feedback">Feedback</button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -210,7 +220,7 @@
|
|||||||
<!-- Open the modal using ID.showModal() method -->
|
<!-- Open the modal using ID.showModal() method -->
|
||||||
|
|
||||||
<dialog id="StoryIDTutorialModal" class="modal">
|
<dialog id="StoryIDTutorialModal" class="modal">
|
||||||
<div class="modal-box">
|
<div class="modal-box dark:bg-[hsl(133,15%,9%)] dark:text-white/80">
|
||||||
<form method="dialog">
|
<form method="dialog">
|
||||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2"
|
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2"
|
||||||
>✕</button
|
>✕</button
|
||||||
@@ -220,16 +230,19 @@
|
|||||||
<ol class="list list-disc list-inside py-4 space-y-4">
|
<ol class="list list-disc list-inside py-4 space-y-4">
|
||||||
<li>
|
<li>
|
||||||
Open the Story URL, this page includes the story description and tags.
|
Open the Story URL, this page includes the story description and tags.
|
||||||
(For example, <span class="font-mono bg-slate-100 p-1"
|
(For example, <span
|
||||||
|
class="font-mono bg-slate-100 dark:bg-[hsl(133,40%,90%)]/90 text-black p-[5px] rounded"
|
||||||
>wattpad.com/story/237369078-wattpad-books-presents</span
|
>wattpad.com/story/237369078-wattpad-books-presents</span
|
||||||
>).
|
>).
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Copy the numbers after the <span class="font-mono bg-slate-100 p-1"
|
Copy the numbers after the <span
|
||||||
|
class="font-mono bg-slate-100 dark:bg-[hsl(133,40%,90%)]/90 text-black p-[5px] rounded"
|
||||||
>/</span
|
>/</span
|
||||||
>
|
>
|
||||||
(In the example, that'd be,
|
(In the example, that'd be,
|
||||||
<span class="font-mono bg-slate-100 p-1"
|
<span
|
||||||
|
class="font-mono bg-slate-100 dark:bg-[hsl(133,40%,90%)]/90 text-black p-[5px] rounded"
|
||||||
>wattpad.com/story/<span class="bg-amber-200 p-1">237369078</span
|
>wattpad.com/story/<span class="bg-amber-200 p-1">237369078</span
|
||||||
>-wattpad-books-presents</span
|
>-wattpad-books-presents</span
|
||||||
>)
|
>)
|
||||||
|
|||||||
Reference in New Issue
Block a user