File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
src/routes/workbooks/edit/[slug] Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { superForm } from ' sveltekit-superforms/client' ;
3+ import { Heading , Button } from ' svelte-5-ui-lib' ;
34
5+ import HeadingOne from ' $lib/components/HeadingOne.svelte' ;
46 import WorkBookForm from ' $lib/components/WorkBook/WorkBookForm.svelte' ;
57
68 import type { WorkBookTasksBase } from ' $lib/types/workbook' ;
79 import type { Task } from ' $lib/types/task.js' ;
810
911 import { FORBIDDEN } from ' $lib/constants/http-response-status-codes.js' ;
12+ import { WORKBOOKS_PAGE } from ' $lib/constants/navbar-links' ;
1013
1114 let { data } = $props ();
1215 let canView = $derived (data .status === FORBIDDEN ? false : true );
3841 />
3942{:else }
4043 <!-- TODO: コンポーネントとして抽出 -->
41- <h1 >{data .status }</h1 >
42- <p >{data .message }</p >
44+ <div
45+ class =" container mx-auto md:w-4/5 lg:w-2/3 py-4 md:py-8 px-3 md:px-0 flex flex-col items-center"
46+ >
47+ <HeadingOne title =" エラーが発生しました" />
48+
49+ <Heading tag =" h2" class =" text-3xl mb-3 text-gray-900 dark:text-gray-300" >
50+ {data .status }
51+ </Heading >
52+
53+ <p class ="dark:text-gray-300" >{data .message }</p >
54+
55+ <div class =" flex justify-center mt-6" >
56+ <Button href ={WORKBOOKS_PAGE } color =" primary" class =" px-6" >
57+ {' 問題集に戻る' }
58+ </Button >
59+ </div >
60+ </div >
4361{/if }
You can’t perform that action at this time.
0 commit comments