File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 7
7
<meta http-equiv =" X-UA-Compatible" content =" ie=edge" >
8
8
<title >Laravel 10 Task List App</title >
9
9
<script src =" https://cdn.tailwindcss.com" ></script >
10
+ <script src =" //unpkg.com/alpinejs" defer ></script >
11
+
10
12
<style type =" text/tailwindcss" >
11
13
.btn {
12
14
@apply rounded-md px- 2 py- 1 text-center font-medium shadow-sm ring- 1 ring-slate- 700/10 hover :bg-slate-50 text-slate-700
13
15
}
16
+
14
17
.link {
15
18
@apply font-medium text-gray- 700 underline decoration-pink- 500
16
19
}
20
+
17
21
label {
18
22
@apply block uppercase text-slate- 700 mb- 2
19
23
}
24
+
20
25
input ,
21
26
textarea {
22
27
@apply shadow-sm appearance-none border w-full py- 2 px- 3 text-slate- 700 leading-tight focus :outline-none
23
28
}
29
+
24
30
.error {
25
31
@apply text-red- 500 text-sm
26
32
}
30
36
31
37
<body class =" container mx-auto mt-10 mb-10 max-w-lg" >
32
38
<h1 class =" text-2xl mb-4" >@yield (' title' )</h1 >
33
- <div >
39
+ <di x-data = " { flash: true } " >
34
40
@if (session ()-> has (' success' ) )
41
+ <div x-show =" flash"
42
+ class =" relative mb-10 rounded border border-green-400 bg-green-100 px-4 py-3 text-lg text-green-700"
43
+ role =" alert" >
44
+ <strong class =" font-bold" >Success!</strong >
35
45
<div >{{ session (' success' ) } } </div >
46
+ <span class =" absolute top-0 bottom-0 right-0 px-4 py-3" >
47
+ <svg xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke-width =" 1.5"
48
+ @click =" flash = false" stroke =" currentColor" class =" h-6 w-6 cursor-pointer" >
49
+ <path stroke-linecap =" round" stroke-linejoin =" round" d =" M6 18L18 6M6 6l12 12" />
50
+ </svg >
51
+ </span >
52
+ </div >
36
53
@endif
37
54
@yield (' content' )
38
- </div >
55
+ </div >
39
56
</body >
40
57
41
58
</html >
You can’t perform that action at this time.
0 commit comments