[<RequireQualifiedAccess>]
module App.Views.Svg

let codeberg =
    """
    <svg width="32px" height="32px" version="1.1" viewBox="0 0 4.2333 4.2333" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>Codeberg logo</title>
    <defs>
    <linearGradient id="a" x1="42519" x2="42575" y1="-7078.8" y2="-6966.9" gradientUnits="userSpaceOnUse">
    <stop stop-color="#2185d0" stop-opacity="0" offset="0"/>
    <stop stop-color="#2185d0" stop-opacity=".3" offset=".49517"/>
    <stop stop-color="#2185d0" stop-opacity=".3" offset="1"/>
    </linearGradient>
    </defs>
    <g transform="matrix(.065514 0 0 .065514 -2.2324 -1.4318)">
    <path transform="matrix(.37058 0 0 .37058 -15690 2662.1)" d="m42519-7078.8a0.76087 0.56792 0 0 0-0.738 0.6739l33.586 125.89a87.182 87.182 0 0 0 39.381-33.764l-71.565-92.52a0.76087 0.56792 0 0 0-0.664-0.2793z" fill="url(#a)" stop-color="#000000" style="font-variation-settings:normal;paint-order:stroke markers fill"/>
    <path transform="matrix(1.4006 0 0 1.4006 -15690 2662.1)" d="m11249-1883.7c-12.74 0-23.067 10.328-23.067 23.067 0 4.3335 1.22 8.5795 3.522 12.251l19.232-24.864c0.138-0.1796 0.486-0.1796 0.624 0l19.233 24.865c2.302-3.6721 3.523-7.9185 3.523-12.252 0-12.74-10.327-23.067-23.067-23.067z" fill="#2185d0" stop-color="#000000" stroke-width="17.006" style="paint-order:markers fill stroke"/>
    </g>
    </svg>
    """

let github =
    """<svg width="32px" height="32px" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub icon</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>"""

let mastodon =
    """<svg width="32px" height="32px" fill="#6364FF" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
        <rect height="14" width="17" x="3" y="3" fill="#fff" />
        <path d="M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"/>
    </svg>"""

let rss =
    """<svg role="img" xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 8 8">
        <circle cx="2" cy="6" r="1" class="symbol" fill="#2c2e43"/>
        <path fill="#2c2e43" d="M1 4a3 3 0 013 3h1a4 4 0 00-4-4z" class="symbol"/>
        <path fill="#2c2e43" d="M1 2a5 5 0 015 5h1a6 6 0 00-6-6z" class="symbol"/>
    </svg>"""
