all repos

onasty @ ef386ed36d8e402f1424cd3663fa9ad8b25c3eb9

a one-time notes service

onasty/web/src/Components/Note.elm (view raw)

Smirnov Olexandr Smirnov Olexandr
ss2316544@gmail.com
web: show note (#147)..., 11 months ago
1
module Components.Note exposing (noteIconSvg, noteNotFoundSvg, warningSvg)
2
3
import Svg exposing (Svg)
4
import Svg.Attributes as A
5
6
7
noteIconSvg : Svg msg
8
noteIconSvg =
9
    Svg.svg
10
        [ A.class "w-8 h-8 text-gray-400"
11
        , A.fill "none"
12
        , A.stroke "currentColor"
13
        , A.viewBox "0 0 24 24"
14
        ]
15
        [ Svg.path
16
            [ A.d "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
17
            , A.strokeWidth "2"
18
            , A.strokeLinecap "round"
19
            , A.strokeLinejoin "round"
20
            ]
21
            []
22
        ]
23
24
25
noteNotFoundSvg : Svg msg
26
noteNotFoundSvg =
27
    Svg.svg
28
        [ A.class "w-8 h-8 text-red-500"
29
        , A.fill "none"
30
        , A.stroke "currentColor"
31
        , A.viewBox "0 0 24 24"
32
        ]
33
        [ Svg.path
34
            [ A.d "M9.172 16.172a4 4 0 015.656 0M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
35
            , A.strokeWidth "2"
36
            , A.strokeLinecap "round"
37
            , A.strokeLinejoin "round"
38
            ]
39
            []
40
        , Svg.path
41
            [ A.d "M6 18L18 6M6 6l12 12"
42
            , A.strokeWidth "2"
43
            , A.strokeLinecap "round"
44
            , A.strokeLinejoin "round"
45
            ]
46
            []
47
        ]
48
49
50
warningSvg : Svg msg
51
warningSvg =
52
    Svg.svg
53
        [ A.class "w-4 h-4 text-orange-600"
54
        , A.fill "none"
55
        , A.stroke "currentColor"
56
        , A.viewBox "0 0 24 24"
57
        ]
58
        [ Svg.path
59
            [ A.d "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.464 0L4.35 16.5c-.77.833.192 2.5 1.732 2.5z"
60
            , A.strokeWidth "2"
61
            , A.strokeLinecap "round"
62
            , A.strokeLinejoin "round"
63
            ]
64
            []
65
        ]