-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
5 changed files
with
81 additions
and
35 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
15 changes: 15 additions & 0 deletions
15
apps/www/src/routes/examples/mail/(components)/icons/gmail.svelte
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,15 @@ | ||
<script lang="ts"> | ||
import type { Icon } from "lucide-svelte"; | ||
type $$Props = Icon["$$prop_def"]; | ||
type $$Events = Icon["$$events_def"]; | ||
type $$Slots = Icon["$$slot_def"]; | ||
</script> | ||
|
||
<svg role="img" viewBox="0 0 24 24" {...$$restProps} xmlns="http://www.w3.org/2000/svg"> | ||
<title>Gmail</title> | ||
<path | ||
d="M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z" | ||
fill="currentColor" | ||
/> | ||
</svg> |
15 changes: 15 additions & 0 deletions
15
apps/www/src/routes/examples/mail/(components)/icons/icloud.svelte
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,15 @@ | ||
<script lang="ts"> | ||
import type { Icon } from "lucide-svelte"; | ||
type $$Props = Icon["$$prop_def"]; | ||
type $$Events = Icon["$$events_def"]; | ||
type $$Slots = Icon["$$slot_def"]; | ||
</script> | ||
|
||
<svg role="img" viewBox="0 0 24 24" {...$$restProps} xmlns="http://www.w3.org/2000/svg"> | ||
<title>iCloud</title> | ||
<path | ||
d="M13.762 4.29a6.51 6.51 0 0 0-5.669 3.332 3.571 3.571 0 0 0-1.558-.36 3.571 3.571 0 0 0-3.516 3A4.918 4.918 0 0 0 0 14.796a4.918 4.918 0 0 0 4.92 4.914 4.93 4.93 0 0 0 .617-.045h14.42c2.305-.272 4.041-2.258 4.043-4.589v-.009a4.594 4.594 0 0 0-3.727-4.508 6.51 6.51 0 0 0-6.511-6.27z" | ||
fill="currentColor" | ||
/> | ||
</svg> |
12 changes: 12 additions & 0 deletions
12
apps/www/src/routes/examples/mail/(components)/icons/vercel.svelte
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,12 @@ | ||
<script lang="ts"> | ||
import type { Icon } from "lucide-svelte"; | ||
type $$Props = Icon["$$prop_def"]; | ||
type $$Events = Icon["$$events_def"]; | ||
type $$Slots = Icon["$$slot_def"]; | ||
</script> | ||
|
||
<svg role="img" viewBox="0 0 24 24" {...$$restProps} xmlns="http://www.w3.org/2000/svg"> | ||
<title>Vercel</title> | ||
<path d="M24 22.525H0l12-21.05 12 21.05z" fill="currentColor" /> | ||
</svg> |
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,6 +1,9 @@ | ||
import Cloud from "lucide-svelte/icons/cloud"; | ||
import { Mail as Mail_Icon } from "lucide-svelte"; | ||
import Triangle from "lucide-svelte/icons/triangle"; | ||
import Vercel from "./(components)/icons/vercel.svelte"; | ||
import ICloud from "./(components)/icons/icloud.svelte"; | ||
import Gmail from "./(components)/icons/gmail.svelte"; | ||
|
||
import type { ComponentType } from "svelte"; | ||
import type { Icon } from "lucide-svelte"; | ||
|
||
export const mails = [ | ||
{ | ||
|
@@ -177,26 +180,30 @@ export const mails = [ | |
|
||
export type Mail = (typeof mails)[number]; | ||
|
||
export const accounts = [ | ||
export type Account = { | ||
label: string; | ||
email: string; | ||
icon: ComponentType<Icon>; | ||
}; | ||
|
||
export const accounts: Account[] = [ | ||
{ | ||
label: "Alicia Koch", | ||
email: "[email protected]", | ||
icon: Triangle, | ||
icon: Vercel, | ||
}, | ||
{ | ||
label: "Alicia Koch", | ||
email: "[email protected]", | ||
icon: Mail_Icon, | ||
icon: Gmail, | ||
}, | ||
{ | ||
label: "Alicia Koch", | ||
email: "[email protected]", | ||
icon: Cloud, | ||
icon: ICloud, | ||
}, | ||
]; | ||
|
||
export type Account = (typeof accounts)[number]; | ||
|
||
export const contacts = [ | ||
{ | ||
name: "Emma Johnson", | ||
|