#3 Adding Logo images in Header Component
Merged 2 years ago by josseline. Opened 2 years ago by josseline.

file modified
-1
@@ -6,7 +6,6 @@ 

  # Distribution / packaging

  build/

  develop-eggs/

- dist/

  eggs/

  .eggs/

  lib/

@@ -12,7 +12,6 @@ 

          meta_tags=[

              {"name": "viewport", "content": "width=device-width, initial-scale=1"}

          ],

-         external_stylesheets=[server.config["ASSETS_STYLES_URL"]],

          suppress_callback_exceptions=True,

      )

  

@@ -70,10 +70,7 @@ 

          return html.Header(

              [

                  html.Img(

-                     src=urljoin(

-                         current_app.config["ASSETS_IMAGES_URL"],

-                         "fedora-logo-sprite.svg",

-                     ),

+                     src="/static/dist/images/fedora-logo-sprite.svg",

                      alt="Fedora Logo",

                      className="header-logo",

                  ),

@@ -0,0 +1,59 @@ 

+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>

+ <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="http://www.w3.org/2000/svg"

+    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"

+    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"

+    version="1.0"

+    x="0.0000000"

+    y="0.0000000"

+    width="252.32"

+    height="252.32"

+    viewBox="0 0 252.32 252.32"

+    xml:space="preserve"

+    id="translucent-fedora-logo-with-radial-gradient"

+    inkscape:version="1.0.2 (e86c870879, 2021-01-15)"

+    sodipodi:docname="fedora-logo-sprite.svg"

+    inkscape:export-filename="/home/duffy/Repositories/fedora-logos/pixmaps/fedora-logo-sprite.png"

+    inkscape:export-xdpi="96"

+    inkscape:export-ydpi="96"><title

+      id="title36">Fedora Logomark</title><metadata

+      id="metadata16"><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>Fedora Logomark</dc:title><dc:date>17 March 2021</dc:date><dc:creator><cc:Agent><dc:title></dc:title></cc:Agent></dc:creator><dc:rights><cc:Agent><dc:title>Trademark of Red Hat, Inc., All Rights Reserved</dc:title></cc:Agent></dc:rights><dc:contributor><cc:Agent><dc:title>Máirín Duffy &lt;duffy@redhat.com&gt;</dc:title></cc:Agent></dc:contributor></cc:Work></rdf:RDF></metadata><defs

+      id="defs14" /><sodipodi:namedview

+      pagecolor="#ffffff"

+      bordercolor="#666666"

+      borderopacity="1"

+      objecttolerance="10"

+      gridtolerance="10"

+      guidetolerance="10"

+      inkscape:pageopacity="0"

+      inkscape:pageshadow="2"

+      inkscape:window-width="2560"

+      inkscape:window-height="1369"

+      id="namedview12"

+      showgrid="false"

+      inkscape:snap-global="true"

+      inkscape:snap-bbox="true"

+      inkscape:snap-page="true"

+      inkscape:zoom="1.8706404"

+      inkscape:cx="-15.058376"

+      inkscape:cy="98.136111"

+      inkscape:window-x="2560"

+      inkscape:window-y="34"

+      inkscape:window-maximized="1"

+      inkscape:current-layer="translucent-fedora-logo-with-radial-gradient"

+      inkscape:document-rotation="0" /><g

+      id="g211"

+      style="stroke-width:0.675354"

+      transform="matrix(5.5962301,0,0,5.5964029,-147.27483,-598.13352)"><path

+        d="m 48.859988,106.87821 c -12.444941,0 -22.53368,10.08309 -22.541794,22.52521 h -0.0014 v 17.44486 h 0.0014 c 0.0056,2.8247 2.297289,5.11246 5.123392,5.11246 0.0071,0 0.01799,0 0.02505,0 h 0.0014 17.399 c 12.446352,-0.007 22.53368,-10.09544 22.53368,-22.54074 0,-12.45058 -10.091561,-22.54179 -22.542147,-22.54179 z"

+        style="fill:#51a2da;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.238252"

+        id="path244" /><path

+        d="m 53.42846,116.15238 c -3.51543,0 -6.620227,2.64725 -7.050263,6.11999 -0.02893,0.29069 -0.04269,0.5013 -0.0441,0.76483 -0.01517,4.69053 0.03034,9.67775 0.0014,14.19366 0,2.72309 -2.033764,4.57658 -4.580467,4.57658 -2.550936,0 -4.606925,-2.03694 -4.606925,-4.58082 0.04269,-2.79188 2.271183,-4.56 4.878211,-4.63691 h 0.02364 l 2.638778,-0.0222 v -3.7525 l -2.640189,0.018 c -4.74345,-0.0441 -8.516408,3.66995 -8.653991,8.39364 0,4.59176 3.778602,8.33861 8.359069,8.33861 4.321528,0 7.918097,-3.38032 8.310739,-7.60554 0.0568,-1.43862 0.03034,-3.33198 0.03034,-3.33198 0.0071,-0.7814 -0.01517,-0.49883 -0.0067,-2.05035 l 3.279775,-0.0222 c 2.539647,0.0194 2.514952,-3.80894 -0.02505,-3.75638 l -3.254727,0.0219 c 0,-1.9251 0.03034,-3.8421 0,-5.77109 0.0042,-1.66758 1.5875,-3.13937 3.340452,-3.13937 1.754012,0 3.607506,0.87666 3.607506,3.14325 0,0.32385 -0.0081,0.51153 -0.02611,0.63148 -0.195791,1.05127 0.523523,2.05316 1.581856,2.20486 1.058333,0.14993 2.028472,-0.61207 2.133247,-1.6757 0.06068,-0.42051 0.0635,-0.78987 0.0635,-1.16064 0,-3.99767 -3.574697,-6.90104 -7.360003,-6.90104 z"

+        style="fill:#fafafa;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.238252"

+        id="path246" /></g></svg>

  • Added Fedora Logo to the header component.
  • Create the static/dist/images/ directory.

Pull-Request has been merged by josseline

2 years ago