forked from immich-app/immich
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): immich-ui components (immich-app#14263)
* feat: add immich-ui to auth pages * fix: welcome icon * styling * fix: mobile padding --------- Co-authored-by: Alex Tran <[email protected]>
- Loading branch information
1 parent
073fccb
commit b9000d8
Showing
13 changed files
with
345 additions
and
262 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
Large diffs are not rendered by default.
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
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,36 +1,25 @@ | ||
<script lang="ts"> | ||
import ImmichLogo from '$lib/components/shared-components/immich-logo.svelte'; | ||
import { Card, CardBody, CardHeader, Heading, Logo, VStack } from '@immich/ui'; | ||
import type { Snippet } from 'svelte'; | ||
interface Props { | ||
title: string; | ||
message?: Snippet; | ||
showMessage?: boolean; | ||
children?: Snippet; | ||
} | ||
let { title, message, showMessage = message != undefined, children }: Props = $props(); | ||
let { title, children }: Props = $props(); | ||
</script> | ||
|
||
<section class="min-w-screen flex min-h-screen place-content-center place-items-center p-4"> | ||
<div | ||
class="flex w-full max-w-lg flex-col gap-4 rounded-3xl border bg-white p-8 shadow-sm dark:border-immich-dark-gray dark:bg-immich-dark-gray" | ||
> | ||
<div class="flex flex-col place-content-center place-items-center gap-4 py-4"> | ||
<ImmichLogo noText class="h-24 w-24" /> | ||
<h1 class="text-2xl font-medium text-immich-primary dark:text-immich-dark-primary"> | ||
{title} | ||
</h1> | ||
</div> | ||
|
||
{#if showMessage} | ||
<div | ||
class="w-full rounded-xl border-2 border-immich-primary bg-immich-primary/5 p-4 text-sm font-medium text-immich-primary dark:border-immich-dark-bg dark:text-immich-dark-primary" | ||
> | ||
{@render message?.()} | ||
</div> | ||
{/if} | ||
|
||
{@render children?.()} | ||
</div> | ||
<section class="min-w-screen flex min-h-screen items-center justify-center"> | ||
<Card color="secondary" class="w-full max-w-xl border m-2"> | ||
<CardHeader class="mt-6"> | ||
<VStack> | ||
<Logo variant="icon" size="giant" /> | ||
<Heading size="large" class="font-semibold" color="primary">{title}</Heading> | ||
</VStack> | ||
</CardHeader> | ||
<CardBody> | ||
{@render children?.()} | ||
</CardBody> | ||
</Card> | ||
</section> |
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
Oops, something went wrong.