From: Muhammad Rizki <[email protected]>
To: Ammar Faizi <[email protected]>
Cc: Muhammad Rizki <[email protected]>,
Alviro Iskandar Setiawan <[email protected]>,
GNU/Weeb Mailing List <[email protected]>
Subject: [PATCH v1 12/13] feat(sidebar-menu): add Roundcube link
Date: Sun, 23 Feb 2025 05:54:18 +0700 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
Added Roundcube link on sidebar menu, this commit include IconRoundcube
icon component too.
Signed-off-by: Muhammad Rizki <[email protected]>
---
| 22 +++++++++++++-
.../components/icons/icon-roundcube.svelte | 29 +++++++++++++++++++
2 files changed, 50 insertions(+), 1 deletion(-)
create mode 100644 src/lib/components/icons/icon-roundcube.svelte
--git a/src/lib/components/customs/app-sidebar.svelte b/src/lib/components/customs/app-sidebar.svelte
index 24d0106..2fba975 100644
--- a/src/lib/components/customs/app-sidebar.svelte
+++ b/src/lib/components/customs/app-sidebar.svelte
@@ -3,7 +3,7 @@
import Separator from "$components/ui/separator/separator.svelte";
import * as Sidebar from "$lib/components/ui/sidebar";
import { useAuth } from "$lib/hooks/auth.svelte";
- import { LogOut, Mails } from "lucide-svelte";
+ import { LogOut, Mails, SquareArrowOutUpRight } from "lucide-svelte";
import type { ComponentProps } from "svelte";
import { goto } from "$app/navigation";
import Button from "$components/ui/button/button.svelte";
@@ -11,6 +11,7 @@
import { page } from "$app/state";
import { crossfade } from "svelte/transition";
import { cubicInOut } from "svelte/easing";
+ import IconRoundcube from "$components/icons/icon-roundcube.svelte";
let { ref = $bindable(null), ...restProps }: ComponentProps<typeof Sidebar.Root> = $props();
@@ -87,6 +88,25 @@
</Sidebar.MenuButton>
</Sidebar.MenuItem>
{/each}
+ <Sidebar.MenuItem>
+ <Sidebar.MenuButton>
+ {#snippet child({ props })}
+ {@const className = props.class as string}
+ <a
+ href="https://mail.gnuweeb.org/roundcube/"
+ {...props}
+ class={cn("group/roundcube", className)}
+ target="_blank"
+ >
+ <IconRoundcube />
+ <span>Roundcube</span>
+ <SquareArrowOutUpRight
+ class="!size-3 transition-transform group-hover/roundcube:!scale-125"
+ />
+ </a>
+ {/snippet}
+ </Sidebar.MenuButton>
+ </Sidebar.MenuItem>
</Sidebar.Menu>
</Sidebar.GroupContent>
</Sidebar.Group>
diff --git a/src/lib/components/icons/icon-roundcube.svelte b/src/lib/components/icons/icon-roundcube.svelte
new file mode 100644
index 0000000..8796ad2
--- /dev/null
+++ b/src/lib/components/icons/icon-roundcube.svelte
@@ -0,0 +1,29 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="9.14 141.8 573.65 573.65">
+ <style>
+ .st0,
+ .st3 {
+ fill-rule: evenodd;
+ clip-rule: evenodd;
+ fill: #404f54;
+ }
+ .st3 {
+ fill: #37beff;
+ }
+ </style>
+ <path class="st3" d="M582.79 549.77L295.96 384.1V207.27l286.83 165.68z" />
+ <path class="st0" d="M9.14 549.77L295.96 384.1V207.27L9.14 372.95z" />
+ <path
+ d="M295.96 141.8c109.56 0 198.41 88.85 198.41 198.41s-88.85 198.41-198.41 198.41S97.55 449.77 97.55 340.21 186.4 141.8 295.96 141.8"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#ccc"
+ />
+ <path
+ d="M295.96 141.8c109.6 0 198.48 88.85 198.48 198.41s-88.88 198.41-198.48 198.41c-62.91-42.34-88.94-127.64-88.94-198.3s26.03-156.1 88.94-198.52"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ fill="#e5e5e5"
+ />
+ <path class="st3" d="M582.79 372.95L295.96 538.62v176.83l286.83-165.68z" />
+ <path class="st0" d="M9.14 372.95l286.82 165.67v176.83L9.14 549.77z" />
+</svg>
--
Muhammad Rizki
next prev parent reply other threads:[~2025-02-22 22:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-22 22:54 [PATCH v1 00/13] Add Profile & Account Management Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 01/13] fix(toaster): add Toaster component Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 02/13] chore(login): remove unnecessary default data Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 03/13] feat(constants): add settingsNav data Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 04/13] feat(typings/common): add disabled property for Navigations Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 05/13] refactor: update HTTP client, typings, and login method Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 06/13] chore(schema): rename login schema Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 07/13] feat(ui): add avatar ui Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 08/13] chore(sidebar-menu): add active menu style Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 09/13] chore(ui/avatar): add select-none for avatar fallback Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 10/13] chore(deps): upgrade bits-ui version Muhammad Rizki
2025-02-22 22:54 ` [PATCH v1 11/13] feat(ui): add radio-group ui Muhammad Rizki
2025-02-22 22:54 ` Muhammad Rizki [this message]
2025-02-22 22:54 ` [PATCH v1 13/13] feat: add settings pages Muhammad Rizki
2025-02-23 8:27 ` [PATCH v1 00/13] Add Profile & Account Management Alviro Iskandar Setiawan
2025-02-23 8:43 ` Ammar Faizi
2025-02-23 8:52 ` Alviro Iskandar Setiawan
2025-02-23 8:55 ` Ammar Faizi
2025-02-23 8:57 ` Alviro Iskandar Setiawan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox