|
| 1 | +<script lang="ts"> |
| 2 | + import { Heading, Card, Alert, Button, List, Li } from 'svelte-5-ui-lib'; |
| 3 | +
|
| 4 | + import HeadingOne from '$lib/components/HeadingOne.svelte'; |
| 5 | +
|
| 6 | + import ExternalLinkWrapper from '$lib/components/ExternalLinkWrapper.svelte'; |
| 7 | +
|
| 8 | + import { X_OFFICIAL_ACCOUNT_URL } from '$lib/constants/product-info'; |
| 9 | + import { LOGIN_PAGE } from '$lib/constants/navbar-links'; |
| 10 | + import { LOGIN_LABEL } from '$lib/constants/forms'; |
| 11 | +</script> |
| 12 | + |
| 13 | +<!-- See: --> |
| 14 | +<!-- https://github.com/lucia-auth/example-sveltekit-email-password-2fa/blob/main/src/routes/forgot-password/%2Bpage.svelte --> |
| 15 | +<!-- https://svelte-5-ui-lib.codewithshin.com/components/card --> |
| 16 | +<div class="container mx-auto md:w-4/5 lg:w-2/3 py-4 md:py-8 px-3 md:px-0"> |
| 17 | + <HeadingOne title="パスワードを忘れた場合の対応について" /> |
| 18 | + |
| 19 | + {@render passwordResetSection()} |
| 20 | + {@render accountMigrationGuideSection()} |
| 21 | +</div> |
| 22 | + |
| 23 | +{#snippet passwordResetSection()} |
| 24 | + <Card size="xl" class="mb-5" padding="sm"> |
| 25 | + <Heading tag="h2" class="text-xl mb-2 text-gray-900 dark:text-white"> |
| 26 | + パスワードリセット機能 |
| 27 | + </Heading> |
| 28 | + |
| 29 | + <p class="mb-3 dark:text-gray-300"> |
| 30 | + パスワードリセット機能は開発中です。しばらくお待ちください。 |
| 31 | + </p> |
| 32 | + </Card> |
| 33 | +{/snippet} |
| 34 | + |
| 35 | +{#snippet accountMigrationGuideSection()} |
| 36 | + <Card size="xl" padding="sm"> |
| 37 | + <!-- Header --> |
| 38 | + <Heading tag="h2" class="text-xl mb-2 text-gray-900 dark:text-white"> |
| 39 | + アカウント移行のご案内 |
| 40 | + </Heading> |
| 41 | + |
| 42 | + <p class="mb-3 dark:text-gray-300"> |
| 43 | + お急ぎの場合は、<strong>回答履歴を新しいアカウントに移行</strong>することができます。 |
| 44 | + </p> |
| 45 | + |
| 46 | + <!-- Guide --> |
| 47 | + <Heading tag="h3" class="text-lg mb-2 text-gray-800 dark:text-gray-200">手順</Heading> |
| 48 | + |
| 49 | + <List tag="ol" class="mb-5 pl-5 list-decimal dark:text-gray-300"> |
| 50 | + <Li> |
| 51 | + <strong class="text-red-600">回答履歴を含まない</strong>新しいアカウントを用意してください |
| 52 | + </Li> |
| 53 | + <Li> |
| 54 | + 以下の情報を準備してください: |
| 55 | + <List tag="ul" class="ml-5 mt-1 list-disc"> |
| 56 | + <Li><strong>現在のアカウント名</strong>(パスワードを忘れたアカウント)</Li> |
| 57 | + <Li><strong>新しいアカウント名</strong>(移行先となるアカウント)</Li> |
| 58 | + </List> |
| 59 | + </Li> |
| 60 | + <Li> |
| 61 | + 開発・運営チームの |
| 62 | + <ExternalLinkWrapper |
| 63 | + url={X_OFFICIAL_ACCOUNT_URL} |
| 64 | + description="公式アカウント" |
| 65 | + ariaLabel="Open official X account as a new tab" |
| 66 | + /> |
| 67 | + にダイレクトメッセージでご連絡ください |
| 68 | + </Li> |
| 69 | + <Li class="dark:text-gray-300"> |
| 70 | + メッセージには「アカウント移行希望」と記載し、2. の情報をお伝えください</Li |
| 71 | + > |
| 72 | + </List> |
| 73 | + |
| 74 | + <!-- Warnings --> |
| 75 | + <Alert color="red" class="mb-5"> |
| 76 | + <Heading tag="h3" class="text-lg mb-2 text-red-500 dark:text-red-500">注意</Heading> |
| 77 | + |
| 78 | + <List tag="ul" class="pl-5 list-disc"> |
| 79 | + <Li>移行処理には1〜3日ほどかかる場合があります</Li> |
| 80 | + <Li>移行が完了しても、元のアカウントは削除されません</Li> |
| 81 | + <Li>移行後は新しいアカウントでログインしてください</Li> |
| 82 | + </List> |
| 83 | + </Alert> |
| 84 | + |
| 85 | + <p class="dark:text-gray-300"> |
| 86 | + ご不便をおかけして申し訳ござませんが、ご理解とご協力をお願いいたします。 |
| 87 | + </p> |
| 88 | + |
| 89 | + <!-- Back to login page --> |
| 90 | + <div class="flex justify-center mt-6"> |
| 91 | + <Button href={LOGIN_PAGE} color="primary" class="px-6"> |
| 92 | + {LOGIN_LABEL}ページに戻る |
| 93 | + </Button> |
| 94 | + </div> |
| 95 | + </Card> |
| 96 | +{/snippet} |
0 commit comments