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 1
1
<script lang =" ts" >
2
2
import { superForm } from ' sveltekit-superforms/client' ;
3
+ import { Heading , Button } from ' svelte-5-ui-lib' ;
3
4
5
+ import HeadingOne from ' $lib/components/HeadingOne.svelte' ;
4
6
import WorkBookForm from ' $lib/components/WorkBook/WorkBookForm.svelte' ;
5
7
6
8
import type { WorkBookTasksBase } from ' $lib/types/workbook' ;
7
9
import type { Task } from ' $lib/types/task.js' ;
8
10
9
11
import { FORBIDDEN } from ' $lib/constants/http-response-status-codes.js' ;
12
+ import { WORKBOOKS_PAGE } from ' $lib/constants/navbar-links' ;
10
13
11
14
let { data } = $props ();
12
15
let canView = $derived (data .status === FORBIDDEN ? false : true );
38
41
/>
39
42
{:else }
40
43
<!-- 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 >
43
61
{/if }
You can’t perform that action at this time.
0 commit comments