mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-12 21:08:46 +00:00
TitleDiv, BottomDiv 컴포넌트 추가
This commit is contained in:
7
src/lib/components/divs/BottomDiv.svelte
Normal file
7
src/lib/components/divs/BottomDiv.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script lang="ts">
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<div class="sticky bottom-0 flex w-full flex-col items-center gap-y-2 bg-white">
|
||||
{@render children?.()}
|
||||
</div>
|
||||
7
src/lib/components/divs/TitleDiv.svelte
Normal file
7
src/lib/components/divs/TitleDiv.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script lang="ts">
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<div class="mt-[20%]">
|
||||
{@render children?.()}
|
||||
</div>
|
||||
3
src/lib/components/divs/index.ts
Normal file
3
src/lib/components/divs/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default as AdaptiveDiv } from "./AdaptiveDiv.svelte";
|
||||
export { default as BottomDiv } from "./BottomDiv.svelte";
|
||||
export { default as TitleDiv } from "./TitleDiv.svelte";
|
||||
@@ -1 +0,0 @@
|
||||
export { default as AdaptiveDiv } from "./AdaptiveDiv.svelte";
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { AdaptiveDiv } from "$lib/components";
|
||||
import { AdaptiveDiv } from "$lib/components/divs";
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { Button, TextButton } from "$lib/components/buttons";
|
||||
import { TitleDiv, BottomDiv } from "$lib/components/divs";
|
||||
import Order from "./Order.svelte";
|
||||
|
||||
import IconKey from "~icons/material-symbols/key";
|
||||
@@ -29,7 +30,7 @@
|
||||
</svetle:head>
|
||||
|
||||
<div class="flex h-full flex-col justify-between">
|
||||
<div class="mt-[20%]">
|
||||
<TitleDiv>
|
||||
<div class="flex flex-col gap-y-2">
|
||||
<h1 class="text-3xl font-bold">암호 키 생성하기</h1>
|
||||
<p>회원님의 디바이스 간의 안전한 데이터 동기화를 위해 암호 키를 생성해야 해요.</p>
|
||||
@@ -45,13 +46,13 @@
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sticky bottom-0 flex w-full flex-col items-center gap-y-2 bg-white">
|
||||
</TitleDiv>
|
||||
<BottomDiv>
|
||||
<div class="w-full">
|
||||
<Button>새 암호 키 생성하기</Button>
|
||||
</div>
|
||||
<div class="w-fit">
|
||||
<TextButton>키를 갖고 있어요</TextButton>
|
||||
</div>
|
||||
</div>
|
||||
</BottomDiv>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { Button, TextButton } from "$lib/components/buttons";
|
||||
import { TitleDiv, BottomDiv } from "$lib/components/divs";
|
||||
import { TextInput } from "$lib/components/inputs";
|
||||
import { requestLogin } from "./service";
|
||||
|
||||
@@ -20,7 +21,7 @@
|
||||
</svelte:head>
|
||||
|
||||
<div class="flex h-full flex-col justify-between">
|
||||
<div class="mt-[20%]">
|
||||
<TitleDiv>
|
||||
<div class="flex flex-col gap-y-2">
|
||||
<h1 class="text-3xl font-bold">환영합니다!</h1>
|
||||
<p>서비스를 이용하려면 로그인을 해야해요.</p>
|
||||
@@ -29,13 +30,13 @@
|
||||
<TextInput bind:value={email} placeholder="이메일" />
|
||||
<TextInput bind:value={password} placeholder="비밀번호" type="password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="sticky bottom-0 flex w-full flex-col items-center gap-y-2 bg-white">
|
||||
</TitleDiv>
|
||||
<BottomDiv>
|
||||
<div class="w-full">
|
||||
<Button onclick={login}>로그인</Button>
|
||||
</div>
|
||||
<div class="w-fit">
|
||||
<TextButton>계정이 없어요</TextButton>
|
||||
</div>
|
||||
</div>
|
||||
</BottomDiv>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user