From 1219334d06593636774ed0d2ac3444fd14a7048e Mon Sep 17 00:00:00 2001 From: Cadence Ember <cadence@disroot.org> Date: Mon, 31 Oct 2022 20:03:50 +1300 Subject: [PATCH] New icon, specifically designed for small size --- src/data.rkt | 2 +- src/page-home.rkt | 3 +- static/breezewiki-favicon.svg | 1 + static/breezewiki-icon.svg | 83 ----------------------------------- 4 files changed, 4 insertions(+), 85 deletions(-) create mode 100644 static/breezewiki-favicon.svg delete mode 100644 static/breezewiki-icon.svg diff --git a/src/data.rkt b/src/data.rkt index 5e31fc73..f856710f 100644 --- a/src/data.rkt +++ b/src/data.rkt @@ -23,7 +23,7 @@ (define license-default (license^ "CC-BY-SA" "https://www.fandom.com/licensing")) (define siteinfo-default (siteinfo^ "Test Wiki" "Main_Page" license-default)) -(define head-data-default (head-data^ "skin-fandomdesktop" (get-static-url "breezewiki-icon.svg"))) +(define head-data-default (head-data^ "skin-fandomdesktop" (get-static-url "breezewiki-favicon.svg"))) (define/memoize (siteinfo-fetch wikiname) #:hash hash (define dest-url diff --git a/src/page-home.rkt b/src/page-home.rkt index 0387fd36..e4303262 100644 --- a/src/page-home.rkt +++ b/src/page-home.rkt @@ -4,6 +4,7 @@ html-writing web-server/http "application-globals.rkt" + "data.rkt" "static-data.rkt" "url-utils.rkt" "xexpr-utils.rkt" @@ -65,7 +66,7 @@ (title "About | BreezeWiki") (link (@ (rel "stylesheet") (type "text/css") (href ,(get-static-url "internal.css")))) (link (@ (rel "stylesheet") (type "text/css") (href ,(get-static-url "main.css")))) - (link (@ (rel "icon") (href ,(get-static-url "breezewiki-icon.svg"))))) + (link (@ (rel "icon") (href ,(head-data^-icon-url head-data-default))))) (body (@ (class "skin-fandomdesktop theme-fandomdesktop-light internal")) (div (@ (class "main-container")) (div (@ (class "fandom-community-header__background tileBoth header"))) diff --git a/static/breezewiki-favicon.svg b/static/breezewiki-favicon.svg new file mode 100644 index 00000000..0bff39cc --- /dev/null +++ b/static/breezewiki-favicon.svg @@ -0,0 +1 @@ +<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="16" height="16"><svg:defs><svg:linearGradient id="a"><svg:stop stop-opacity="1" stop-color="#f8d871" offset="0"/><svg:stop stop-opacity="1" stop-color="#f8d871" offset=".08"/><svg:stop stop-opacity="1" stop-color="#ee7d91" offset=".946"/><svg:stop stop-opacity="1" stop-color="#ee7d91" offset="1"/></svg:linearGradient><svg:linearGradient gradientTransform="translate(0 -.5)" gradientUnits="userSpaceOnUse" y2="10" x2="12" y1="7" x1="4" id="b" xlink:href="#a"/></svg:defs><svg:circle paint-order="stroke fill markers" stroke-opacity=".753" stroke-dasharray="none" stroke-miterlimit="4" stroke-linejoin="round" stroke-linecap="round" stroke-width="8" stroke="none" fill-rule="nonzero" fill-opacity="1" fill="#fff" opacity="1" r="8" cy="8" cx="8"/><svg:path text-rendering="auto" shape-rendering="auto" image-rendering="auto" color-rendering="auto" paint-order="stroke fill markers" stroke-opacity="1" stroke-dashoffset="0" stroke-dasharray="none" stroke-miterlimit="4" stroke-linejoin="round" stroke-linecap="round" stroke-width="1" stroke="#000" fill-rule="nonzero" fill-opacity="1" fill="#000" vector-effect="none" color-interpolation-filters="linearRGB" color-interpolation="sRGB" opacity="1" visibility="visible" overflow="visible" display="inline" clip-rule="nonzero" text-anchor="start" baseline-shift="baseline" dominant-baseline="auto" direction="ltr" writing-mode="lr-tb" word-spacing="normal" letter-spacing="normal" text-decoration="none" font-family="sans-serif" font-size="medium" font-stretch="normal" font-weight="400" font-variant="normal" font-style="normal" color="#000" d="M 5.772073,4.2838297 C 4.8085761,4.2789197 4.0586368,4.4465635 3.5346489,5.041996 3.0178452,5.6292644 2.5901432,6.3562814 2.1394473,7.2548754 1.632582,8.2652605 2.3946297,9.500161 3.5250237,9.5 h 3.5585098 c 0.281137,0.496897 0.5683993,1.093739 0.9033438,1.477252 0.5184083,0.59358 1.259109,0.765779 2.2205797,0.770679 0.963166,0.0049 1.713302,-0.162175 2.237423,-0.757685 0.516848,-0.587239 0.94451,-1.446875 1.395202,-2.3454628 C 14.346948,7.6343981 13.5849,6.4998383 12.454506,6.5 H 8.8959962 C 8.6148379,6.0030878 8.3279599,5.4384771 7.9931336,5.0549902 7.4748907,4.4614303 6.7338742,4.2887307 5.772073,4.2838297 Z M 5.766303,4.98665 c 0.5372111,0.00303 0.9950606,0.320244 1.4029019,0.7873577 0.3068345,0.3514271 0.6148541,0.8489719 0.9331828,1.4337031 0.095734,0.175934 0.280013,0.2854305 0.4803072,0.2853932 h 3.8718181 c 0.362828,-5.19e-5 0.571289,0.3374378 0.408598,0.661746 -0.431484,0.8602882 -0.822362,1.639801 -1.239271,2.113491 -0.409634,0.465424 -0.875121,0.779784 -1.410602,0.77677 C 9.6760574,11.042087 9.2176651,10.725186 8.8098493,10.258233 8.503049,9.906947 8.1955282,9.4093148 7.8771476,8.8245301 7.7814135,8.6485961 7.5971344,8.5390996 7.3968402,8.539137 H 3.5250237 C 3.1621951,8.539189 2.9537341,8.0691168 3.1164251,7.7448083 3.5479007,6.8845362 3.938749,6.2376966 4.3556952,5.7639008 4.7654568,5.2982697 5.2307804,4.983636 5.7662979,4.98665 Z" style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1"/><svg:path text-rendering="auto" shape-rendering="auto" image-rendering="auto" color-rendering="auto" paint-order="stroke fill markers" stroke-opacity=".728" stroke-dashoffset="0" stroke-dasharray="none" stroke-miterlimit="4" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="none" fill-rule="nonzero" fill-opacity="1" fill="url(#b)" vector-effect="none" color-interpolation-filters="linearRGB" color-interpolation="sRGB" opacity="1" visibility="visible" overflow="visible" display="inline" clip-rule="nonzero" text-anchor="start" baseline-shift="baseline" dominant-baseline="auto" direction="ltr" writing-mode="lr-tb" word-spacing="normal" letter-spacing="normal" text-decoration="none" font-family="sans-serif" font-size="medium" font-stretch="normal" font-weight="400" font-variant="normal" font-style="normal" color="#000" style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;solid-color:#000;solid-opacity:1" d="m 5.766303,5.203636 c 0.5372111,0.00281 0.9950606,0.103258 1.4029019,0.5703717 0.3068345,0.3514271 0.6148541,0.8489719 0.9331828,1.4337031 0.095734,0.175934 0.280013,0.2854305 0.4803072,0.2853932 h 3.8718181 c 0.362828,-5.19e-5 0.571289,0.3374378 0.408598,0.661746 -0.431484,0.8602882 -0.822362,1.639801 -1.239271,2.113491 -0.409634,0.465424 -0.875121,0.562582 -1.410602,0.559784 C 9.6760574,10.825318 9.2176651,10.725186 8.8098493,10.258233 8.503049,9.906947 8.1955282,9.4093148 7.8771476,8.8245301 7.7814135,8.6485961 7.5971344,8.5390996 7.3968402,8.539137 H 3.5250237 C 3.1621951,8.539189 2.9537341,8.0691168 3.1164251,7.7448083 3.5479007,6.8845362 3.938749,6.2376966 4.3556952,5.7639008 4.7654568,5.2982697 5.2307804,5.2008379 5.7662979,5.203636 Z"/></svg:svg> \ No newline at end of file diff --git a/static/breezewiki-icon.svg b/static/breezewiki-icon.svg deleted file mode 100644 index 5249b759..00000000 --- a/static/breezewiki-icon.svg +++ /dev/null @@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg:svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - height="68.119537" - width="68.119537" - version="1.1" - id="svg912" - sodipodi:docname="breezewiki-icon.svg" - inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" - inkscape:export-filename="/tmp/breezewiki-icon.png" - inkscape:export-xdpi="721.55511" - inkscape:export-ydpi="721.55511"> - <svg:metadata - id="metadata918"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title /> - </cc:Work> - </rdf:RDF> - </svg:metadata> - <svg:defs - id="defs916" /> - <sodipodi:namedview - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1" - objecttolerance="10" - gridtolerance="10" - guidetolerance="10" - inkscape:pageopacity="0" - inkscape:pageshadow="2" - inkscape:window-width="1882" - inkscape:window-height="1059" - id="namedview914" - showgrid="false" - showguides="false" - inkscape:zoom="8" - inkscape:cx="40.321257" - inkscape:cy="38.370751" - inkscape:window-x="38" - inkscape:window-y="0" - inkscape:window-maximized="1" - inkscape:current-layer="svg912" - showborder="true" - inkscape:pagecheckerboard="true" - inkscape:snap-bbox="true" - inkscape:bbox-nodes="true" - inkscape:snap-smooth-nodes="true" /> - <svg:circle - style="opacity:1;fill:#520044;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.75294118;paint-order:stroke fill markers" - id="path835" - cx="34.059769" - cy="34.059769" - r="34.059769" /> - <div - id="saka-gui-root"> - <div> - <div> - <style /> - </div> - </div> - </div> - <svg:path - style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#fa005a;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.72772277;paint-order:stroke fill markers;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" - d="m 25.016194,17.638372 c -3.910133,-0.02201 -6.953592,2.245681 -9.080078,4.662109 -2.09733,2.383295 -3.833062,5.333729 -5.662109,8.980469 -2.0569978,4.100418 1.0356,9.111984 5.623047,9.111328 h 14.441405 c 1.140931,2.016544 2.30672,3.900631 3.666016,5.457031 2.103842,2.40891 5.109808,4.690926 9.011718,4.712891 3.908789,0.02201 6.953047,-2.243435 9.080078,-4.660157 2.097507,-2.383176 3.833076,-5.333755 5.66211,-8.980468 2.056998,-4.100418 -1.035601,-9.111984 -5.623047,-9.111328 H 37.693928 c -1.141017,-2.016606 -2.305247,-3.900738 -3.664063,-5.457032 -2.103172,-2.408829 -5.110419,-4.692872 -9.013671,-4.714843 z m -0.02344,4.4375 c 2.180149,0.01227 4.038227,1.299637 5.693359,3.195312 1.245218,1.426187 2.495246,3.44536 3.78711,5.818359 a 2.2186407,2.2186407 0 0 0 1.949218,1.158204 h 15.712891 c 1.472457,-2.11e-4 2.318449,1.369414 1.658203,2.685546 -1.751077,3.491284 -3.337367,6.116702 -5.029297,8.039063 -1.662405,1.888817 -3.551482,3.164578 -5.724609,3.152344 -2.180003,-0.01227 -4.040284,-1.298343 -5.695313,-3.19336 -1.245075,-1.425619 -2.493079,-3.445143 -3.785154,-5.818359 A 2.2186407,2.2186407 0 0 0 31.609943,35.954778 H 15.897054 c -1.472457,2.11e-4 -2.318449,-1.369414 -1.658204,-2.685547 1.751045,-3.491219 3.337215,-6.11627 5.029296,-8.039063 1.662925,-1.889659 3.551335,-3.166528 5.72461,-3.154296 z" - id="path819" - inkscape:connector-curvature="0" /> - <svg:path - inkscape:connector-curvature="0" - id="path837" - d="m 52.096271,45.902043 c -29.310887,4.106878 -14.655444,2.053439 0,0 z M 24.992754,22.075872 c 2.180149,0.01227 4.038227,1.299637 5.693359,3.195312 1.245218,1.426187 2.495246,3.44536 3.78711,5.818359 0.388515,0.713988 1.136369,1.158355 1.949218,1.158204 h 15.712891 c 1.472457,-2.11e-4 2.318449,1.369414 1.658203,2.685546 -1.751077,3.491284 -3.337367,6.116702 -5.029297,8.039063 -1.662405,1.888817 -3.551482,3.164578 -5.724609,3.152344 -2.180003,-0.01227 -4.040284,-1.298343 -5.695313,-3.19336 -1.245075,-1.425619 -2.493079,-3.445143 -3.785154,-5.818359 -0.388515,-0.713988 -1.13637,-1.158355 -1.949219,-1.158203 H 15.897054 c -1.472457,2.11e-4 -2.318449,-1.369414 -1.658204,-2.685547 1.751045,-3.491219 3.337215,-6.11627 5.029296,-8.039063 1.662925,-1.889659 3.551335,-3.166528 5.72461,-3.154296 z" - style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ffc500;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.72772277;paint-order:stroke fill markers;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" - sodipodi:nodetypes="cccsccccscsccccscc" /> -</svg:svg>