-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 on auth pages
- Loading branch information
Showing
12 changed files
with
161 additions
and
119 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
22 changes: 5 additions & 17 deletions
22
web/src/lib/components/shared-components/fullscreen-container.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 |
---|---|---|
@@ -1,36 +1,24 @@ | ||
<script lang="ts"> | ||
import { Heading, Logo } from '@immich/ui'; | ||
import type { Snippet } from 'svelte'; | ||
import ImmichLogo from './immich-logo.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 class="flex flex-col place-content-center place-items-center"> | ||
<Logo variant="icon" size="giant" /> | ||
<Heading size="large" color="primary">{title}</Heading> | ||
</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> |
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.