This commit is contained in:
parent
91426ef89b
commit
c595e77678
7
package-lock.json
generated
7
package-lock.json
generated
@ -13,6 +13,7 @@
|
|||||||
"@oslojs/encoding": "^1.1.0",
|
"@oslojs/encoding": "^1.1.0",
|
||||||
"@sveltejs/adapter-node": "^5.2.12",
|
"@sveltejs/adapter-node": "^5.2.12",
|
||||||
"drizzle-orm": "^0.40.0",
|
"drizzle-orm": "^0.40.0",
|
||||||
|
"lucide": "^0.513.0",
|
||||||
"postgres": "^3.4.5"
|
"postgres": "^3.4.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -3955,6 +3956,12 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
"node_modules/lucide": {
|
||||||
|
"version": "0.513.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lucide/-/lucide-0.513.0.tgz",
|
||||||
|
"integrity": "sha512-c7gYh8As4tFHFk7j6xtog+1aLyKw0uDjT1wTXILVlRmmcOuArOv98LeWT1bWJqs/jqHXgRFbsmKmOMhsSAC2cg==",
|
||||||
|
"license": "ISC"
|
||||||
|
},
|
||||||
"node_modules/magic-string": {
|
"node_modules/magic-string": {
|
||||||
"version": "0.30.17",
|
"version": "0.30.17",
|
||||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",
|
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",
|
||||||
|
|||||||
@ -50,6 +50,7 @@
|
|||||||
"@oslojs/encoding": "^1.1.0",
|
"@oslojs/encoding": "^1.1.0",
|
||||||
"@sveltejs/adapter-node": "^5.2.12",
|
"@sveltejs/adapter-node": "^5.2.12",
|
||||||
"drizzle-orm": "^0.40.0",
|
"drizzle-orm": "^0.40.0",
|
||||||
|
"lucide": "^0.513.0",
|
||||||
"postgres": "^3.4.5"
|
"postgres": "^3.4.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
5
src/routes/(public)/login/+layout.svelte
Normal file
5
src/routes/(public)/login/+layout.svelte
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
let { children } = $props();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{@render children()}
|
||||||
17
src/routes/(public)/login/+page.svelte
Normal file
17
src/routes/(public)/login/+page.svelte
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import LoginForm from "./login-form.svelte";
|
||||||
|
import GalleryVerticalEndIcon from "@lucide/svelte/icons/gallery-vertical-end";
|
||||||
|
</script>
|
||||||
|
<div class="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
||||||
|
<div class="flex w-full max-w-sm flex-col gap-6">
|
||||||
|
<a href="##" class="flex items-center gap-2 self-center font-medium">
|
||||||
|
<div
|
||||||
|
class="bg-primary text-primary-foreground flex size-6 items-center justify-center rounded-md"
|
||||||
|
>
|
||||||
|
<GalleryVerticalEndIcon class="size-4" />
|
||||||
|
</div>
|
||||||
|
Frovide.
|
||||||
|
</a>
|
||||||
|
<LoginForm />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
84
src/routes/(public)/login/login-form.svelte
Normal file
84
src/routes/(public)/login/login-form.svelte
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { Button } from "$lib/components/ui/button/index.js";
|
||||||
|
import * as Card from "$lib/components/ui/card/index.js";
|
||||||
|
import { Label } from "$lib/components/ui/label/index.js";
|
||||||
|
import { Switch } from "$lib/components/ui/switch/index.js";
|
||||||
|
import { Input } from "$lib/components/ui/input/index.js";
|
||||||
|
import { cn } from "$lib/utils.js";
|
||||||
|
import type { HTMLAttributes } from "svelte/elements";
|
||||||
|
|
||||||
|
let { class: className, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
|
||||||
|
|
||||||
|
const id = $props.id();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class={cn("flex flex-col gap-6", className)} {...restProps}>
|
||||||
|
<Card.Root>
|
||||||
|
<Card.Header class="text-center">
|
||||||
|
<Card.Title class="text-xl">:: LOGIN ::</Card.Title>
|
||||||
|
<Card.Description>외부인증 서비스를 통해 소셜로그인.</Card.Description>
|
||||||
|
</Card.Header>
|
||||||
|
<Card.Content>
|
||||||
|
<form>
|
||||||
|
<div class="grid gap-6">
|
||||||
|
<div class="flex flex-col gap-4">
|
||||||
|
<Button variant="outline" class="w-full">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||||
|
<path
|
||||||
|
d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
||||||
|
fill="currentColor"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
Google 계정으로 로그인
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="after:border-border relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t"
|
||||||
|
>
|
||||||
|
<span class="bg-card text-muted-foreground relative z-10 px-2">
|
||||||
|
등록한 계정으로 직접 로그인
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-6">
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<Label for="email-{id}">이메일</Label>
|
||||||
|
<Input
|
||||||
|
id="email-{id}"
|
||||||
|
type="email"
|
||||||
|
placeholder="abcd@example.com"
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="grid gap-3">
|
||||||
|
<div class="flex items-center">
|
||||||
|
<Label for="password-{id}">비밀번호</Label>
|
||||||
|
<a
|
||||||
|
href="##"
|
||||||
|
class="ml-auto text-sm underline-offset-4 hover:underline"
|
||||||
|
>
|
||||||
|
비밀번호 찾기
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<Input id="password-{id}" type="password" required />
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center space-x-2">
|
||||||
|
<Switch id="airplane-mode" />
|
||||||
|
<Label for="airplane-mode">이메일 저장</Label>
|
||||||
|
</div>
|
||||||
|
<Button type="submit" class="w-full">로그인</Button>
|
||||||
|
</div>
|
||||||
|
<div class="text-center text-sm">
|
||||||
|
이메일 인증을 통한
|
||||||
|
<a href="##" class="underline underline-offset-4"> 회원가입</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</Card.Content>
|
||||||
|
</Card.Root>
|
||||||
|
<div
|
||||||
|
class="text-muted-foreground *:[a]:hover:text-primary *:[a]:underline *:[a]:underline-offset-4 text-balance text-center text-xs"
|
||||||
|
>
|
||||||
|
로그인 진행시 사이트의 <a href="##">서비스 이용약관</a>
|
||||||
|
과 <a href="##">개인정보 보호정책</a> 에 동의합니다.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@ -1,7 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {Button} from "$lib/components/ui/button/index.js";
|
import {Button} from "$lib/components/ui/button/index.js";
|
||||||
</script>
|
</script>
|
||||||
|
<div>
|
||||||
<p>FROVIDE.COM</p>
|
<p>FROVIDE.COM</p>
|
||||||
<p>안녕하세요 반갑습니다.</p>
|
<p>안녕하세요 반갑습니다.</p>
|
||||||
<Button>버튼 테스트</Button>
|
<Button>버튼 테스트</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user