@@ -32,76 +32,76 @@ let index_view ?(success = false) () =
3232 layout
3333 ~title: " Opium file upload"
3434 [ (if success
35- then
36- div
37- ~a: [ a_class [ " mx-auto mt-16 max-w-lg rounded-md bg-green-50 p-4" ] ]
38- [ div
39- ~a: [ a_class [ " flex" ] ]
40- [ div
41- ~a: [ a_class [ " flex-shrink-0" ] ]
42- [ svg
43- ~a:
44- [ Tyxml.Svg. a_class [ " h-5 w-5 text-green-400" ]
45- ; Tyxml.Svg. a_viewBox (0. , 0. , 20. , 20. )
46- ; Tyxml.Svg. a_fill `CurrentColor
47- ]
48- [ Tyxml.Svg. path
49- ~a:
50- [ a_svg_custom " fill-rule" " evenodd"
51- ; Tyxml.Svg. a_d
52- " M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 \
53- 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 \
54- 1.414l2 2a1 1 0 001.414 0l4-4z"
55- ; a_svg_custom " clip-rule" " evenodd"
56- ]
57- []
58- ]
59- ]
60- ; div
61- ~a: [ a_class [ " ml-3" ] ]
62- [ p
63- ~a: [ a_class [ " text-sm leading-5 font-medium text-green-800" ] ]
64- [ txt " Successfully uploaded" ]
65- ]
66- ; div
67- ~a: [ a_class [ " ml-auto pl-3" ] ]
68- [ div
69- ~a: [ a_class [ " -mx-1.5 -my-1.5" ] ]
70- [ button
71- ~a:
72- [ a_class
73- [ " inline-flex rounded-md p-1.5 text-green-500 \
74- hover:bg-green-100 focus:outline-none \
75- focus:bg-green-100 transition ease-in-out \
76- duration-150"
77- ]
78- ; a_aria " label" [ " Dismiss" ]
79- ]
80- [ svg
81- ~a:
82- [ Tyxml.Svg. a_class [ " h-5 w-5" ]
83- ; Tyxml.Svg. a_viewBox (0. , 0. , 20. , 20. )
84- ; Tyxml.Svg. a_fill `CurrentColor
85- ]
86- [ Tyxml.Svg. path
87- ~a:
88- [ a_svg_custom " fill-rule" " evenodd"
89- ; Tyxml.Svg. a_d
90- " M4.293 4.293a1 1 0 011.414 0L10 \
91- 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 \
92- 10l4.293 4.293a1 1 0 01-1.414 1.414L10 \
93- 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 \
94- 10 4.293 5.707a1 1 0 010-1.414z"
95- ; a_svg_custom " clip-rule" " evenodd"
96- ]
97- []
98- ]
99- ]
100- ]
101- ]
102- ]
103- ]
104- else div [] )
35+ then
36+ div
37+ ~a: [ a_class [ " mx-auto mt-16 max-w-lg rounded-md bg-green-50 p-4" ] ]
38+ [ div
39+ ~a: [ a_class [ " flex" ] ]
40+ [ div
41+ ~a: [ a_class [ " flex-shrink-0" ] ]
42+ [ svg
43+ ~a:
44+ [ Tyxml.Svg. a_class [ " h-5 w-5 text-green-400" ]
45+ ; Tyxml.Svg. a_viewBox (0. , 0. , 20. , 20. )
46+ ; Tyxml.Svg. a_fill `CurrentColor
47+ ]
48+ [ Tyxml.Svg. path
49+ ~a:
50+ [ a_svg_custom " fill-rule" " evenodd"
51+ ; Tyxml.Svg. a_d
52+ " M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 \
53+ 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 \
54+ 1.414l2 2a1 1 0 001.414 0l4-4z"
55+ ; a_svg_custom " clip-rule" " evenodd"
56+ ]
57+ []
58+ ]
59+ ]
60+ ; div
61+ ~a: [ a_class [ " ml-3" ] ]
62+ [ p
63+ ~a: [ a_class [ " text-sm leading-5 font-medium text-green-800" ] ]
64+ [ txt " Successfully uploaded" ]
65+ ]
66+ ; div
67+ ~a: [ a_class [ " ml-auto pl-3" ] ]
68+ [ div
69+ ~a: [ a_class [ " -mx-1.5 -my-1.5" ] ]
70+ [ button
71+ ~a:
72+ [ a_class
73+ [ " inline-flex rounded-md p-1.5 text-green-500 \
74+ hover:bg-green-100 focus:outline-none \
75+ focus:bg-green-100 transition ease-in-out \
76+ duration-150"
77+ ]
78+ ; a_aria " label" [ " Dismiss" ]
79+ ]
80+ [ svg
81+ ~a:
82+ [ Tyxml.Svg. a_class [ " h-5 w-5" ]
83+ ; Tyxml.Svg. a_viewBox (0. , 0. , 20. , 20. )
84+ ; Tyxml.Svg. a_fill `CurrentColor
85+ ]
86+ [ Tyxml.Svg. path
87+ ~a:
88+ [ a_svg_custom " fill-rule" " evenodd"
89+ ; Tyxml.Svg. a_d
90+ " M4.293 4.293a1 1 0 011.414 0L10 \
91+ 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 \
92+ 10l4.293 4.293a1 1 0 01-1.414 1.414L10 \
93+ 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 \
94+ 10 4.293 5.707a1 1 0 010-1.414z"
95+ ; a_svg_custom " clip-rule" " evenodd"
96+ ]
97+ []
98+ ]
99+ ]
100+ ]
101+ ]
102+ ]
103+ ]
104+ else div [] )
105105 ; form
106106 ~a: [ a_enctype " multipart/form-data" ; a_action " /upload" ; a_method `Post ]
107107 [ div
0 commit comments