HabitatMap/AirCasting

View on GitHub
app/javascript/elm/src/Svgs.elm

Summary

Maintainability
Test Coverage
module Svgs exposing (habitatMapLogo, navClose, navOpen, search)

import Svg
import Svg.Attributes exposing (..)


habitatMapLogo =
    Svg.svg [ class "logo--hm-vertical", enableBackground "new 0 0 200 50", height "50", viewBox "0 0 200 50", width "200" ]
        [ Svg.g []
            [ Svg.node "path"
                [ d "m58.011 15.459v19.234h-3.627v-8.106h-8.078v8.106h-3.627v-19.234h3.627v7.859h8.078v-7.859z" ]
                []
            , Svg.node "path"
                [ d "m69.358 28.73-3.078.33c-1.264.137-2.225.659-2.225 1.731 0 1.099.852 1.482 1.951 1.482 1.482 0 3.352-.714 3.352-2.885zm4.836 3.326v2.638h-1.484c-1.291 0-2.309-.385-2.775-1.648-.934 1.181-2.363 1.923-4.533 1.923-2.803 0-4.863-1.319-4.863-4.039 0-2.638 2.006-3.929 4.533-4.176l4.287-.44v-.576c0-1.512-.963-2.254-2.309-2.254-1.484 0-2.252.824-2.473 2.061h-3.517c.275-2.857 2.473-4.863 5.99-4.863 3.215 0 5.826 1.621 5.826 5.303v5.029c0 .714.33 1.044.988 1.044h.33z" ]
                []
            , Svg.node "path"
                [ d "m86.612 27.797c0-2.418-1.4-4.067-3.488-4.067s-3.436 1.649-3.436 4.067c0 2.473 1.348 4.121 3.436 4.121s3.488-1.648 3.488-4.121m3.518 0c0 4.369-2.775 7.172-6.457 7.172-2.143 0-3.436-1.018-4.094-1.896h-.246l-.305 1.621h-2.855v-19.509h3.516v7.062c.742-.825 2.115-1.566 3.984-1.566 3.599 0 6.457 2.636 6.457 7.116" ]
                []
            , Svg.node "path"
                [ d "m92.556 20.955h3.516v13.738h-3.516zm-.412-3.874c0-1.209 1.018-2.145 2.17-2.145 1.154 0 2.117.936 2.117 2.145 0 1.126-.963 2.115-2.117 2.115-1.153 0-2.17-.989-2.17-2.115" ]
                []
            , Svg.node "path"
                [ d "m100.964 30.956v-7.226h-2.941v-2.776h.936c1.676 0 2.336-.604 2.336-2.088v-1.649h3.186v3.737h3.602v2.776h-3.602v6.759c0 .769.193 1.703 1.842 1.703.412 0 .934-.082 1.346-.192v2.666c-.604.137-1.428.303-2.416.303-3.85 0-4.289-2.502-4.289-4.013" ]
                []
            , Svg.node "path"
                [ d "m118.247 28.73-3.078.33c-1.264.137-2.227.659-2.227 1.731 0 1.099.854 1.482 1.951 1.482 1.484 0 3.354-.714 3.354-2.885zm4.836 3.326v2.638h-1.484c-1.291 0-2.309-.385-2.775-1.648-.934 1.181-2.363 1.923-4.533 1.923-2.805 0-4.863-1.319-4.863-4.039 0-2.638 2.006-3.929 4.533-4.176l4.287-.44v-.576c0-1.512-.961-2.254-2.309-2.254-1.484 0-2.254.824-2.473 2.061h-3.518c.275-2.857 2.473-4.863 5.99-4.863 3.215 0 5.824 1.621 5.824 5.303v5.029c0 .714.33 1.044.99 1.044h.331z" ]
                []
            , Svg.node "path"
                [ d "m126.337 30.956v-7.226h-2.939v-2.776h.934c1.676 0 2.336-.604 2.336-2.088v-1.649h3.188v3.737h3.6v2.776h-3.6v6.759c0 .769.193 1.703 1.84 1.703.412 0 .936-.082 1.348-.192v2.666c-.605.137-1.43.303-2.418.303-3.85 0-4.289-2.502-4.289-4.013" ]
                []
            , Svg.node "path"
                [ d "m156.562 34.693h-3.545v-12.777h-.219l-4.781 10.579h-3.655l-4.808-10.579h-.219v12.777h-3.545v-19.234h4.451l5.852 13.189h.22l5.825-13.189h4.424z" ]
                []
            , Svg.node "path"
                [ d "m167.909 28.73-3.076.33c-1.266.137-2.227.659-2.227 1.731 0 1.099.852 1.482 1.951 1.482 1.484 0 3.352-.714 3.352-2.885zm4.836 3.326v2.638h-1.484c-1.291 0-2.307-.385-2.775-1.648-.934 1.181-2.361 1.923-4.533 1.923-2.803 0-4.863-1.319-4.863-4.039 0-2.638 2.006-3.929 4.535-4.176l4.285-.44v-.576c0-1.512-.963-2.254-2.309-2.254-1.482 0-2.252.824-2.473 2.061h-3.518c.275-2.857 2.475-4.863 5.99-4.863 3.215 0 5.826 1.621 5.826 5.303v5.029c0 .714.33 1.044.988 1.044h.331z" ]
                []
            , Svg.node "path"
                [ d "m185.165 27.852c0-2.473-1.402-4.122-3.49-4.122s-3.436 1.649-3.436 4.122c0 2.418 1.348 4.066 3.436 4.066s3.49-1.648 3.49-4.066m3.516 0c0 4.479-2.857 7.117-6.457 7.117-1.869 0-3.242-.742-3.984-1.567v6.787h-3.516v-19.235h2.857l.303 1.621h.246c.66-.879 1.951-1.896 4.094-1.896 3.681.001 6.457 2.803 6.457 7.173" ]
                []
            , Svg.node "path"
                [ d "m21.593 17.222c-2.57 0-4.008 1.027-5.035 2.363h-.275v-9.213h-4.833v24.317h4.832 3.965l-3.334-6.086h.004c-.41-.627-.652-1.377-.652-2.183 0-2.209 1.791-3.999 4-3.999s4 1.79 4 3.999c0 .806-.24 1.556-.652 2.183h.004l-3.332 6.086h3.604 4.383v-10.377c-.001-4.487-2.603-7.09-6.679-7.09" ]
                []
            ]
        ]


navOpen =
    Svg.svg
        [ class "icon-nav-open", height "21", viewBox "0 0 25 21", width "25" ]
        [ Svg.g
            [ fill "none", fillRule "evenodd", strokeLinecap "square", strokeWidth "2", transform "translate(1)" ]
            [ Svg.node "path"
                [ d "m23 1h-22.73035714" ]
                []
            , Svg.node "path"
                [ d "m23 10.5h-22.73035714" ]
                []
            , Svg.node "path"
                [ d "m23 20h-22.73035714" ]
                []
            ]
        ]


navClose =
    Svg.svg
        [ class "icon-nav-close", height "20", viewBox "0 0 20 20", width "25" ]
        [ Svg.g
            [ fill "none", fillRule "evenodd", strokeLinecap "square", strokeWidth "2", transform "translate(.865179 1)" ]
            [ Svg.node "path"
                [ d "m21 9h-22.73035714", transform "matrix(-.70710678 .70710678 -.70710678 -.70710678 22.581475 8.646447)" ]
                []
            , Svg.node "path"
                [ d "m21.1348214 8.5h-22.73035711", transform "matrix(.70710678 .70710678 -.70710678 .70710678 8.832381 -4.323255)" ]
                []
            ]
        ]


search =
    Svg.svg
        [ class "js--search-open icon-search"
        , height "38"
        , viewBox "0 0 35 38"
        , width "35"
        , fill "#fff"
        ]
        [ Svg.node "path"
            [ d "m18.7141827 21.4071377-15.7141827 15.7141826-2.12132034-2.1213203 15.29482644-15.2948264c-2.2543839-2.0143638-3.6735061-4.9440418-3.6735061-8.2051736 0-6.07513225 4.9248678-11 11-11s11 4.92486775 11 11c0 6.0751322-4.9248678 11-11 11-1.7152911 0-3.3388837-.3926076-4.7858173-1.0928623zm4.7858173-1.9071377c4.418278 0 8-3.581722 8-8s-3.581722-8-8-8-8 3.581722-8 8 3.581722 8 8 8z" ]
            []
        ]