mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Merge pull request #1698 from benphelps/fix/issue-1697
Fixes oversized logo in 0.6.22
This commit is contained in:
		
						commit
						82c54f197d
					
				@ -10,56 +10,58 @@ export default function Logo({ options }) {
 | 
				
			|||||||
        {options.icon ?
 | 
					        {options.icon ?
 | 
				
			||||||
        <ResolvedIcon icon={options.icon} width={48} height={48} /> :
 | 
					        <ResolvedIcon icon={options.icon} width={48} height={48} /> :
 | 
				
			||||||
        // fallback to homepage logo
 | 
					        // fallback to homepage logo
 | 
				
			||||||
        <svg
 | 
					        <div className="w-12 h-12">
 | 
				
			||||||
          xmlns="http://www.w3.org/2000/svg"
 | 
					          <svg
 | 
				
			||||||
          viewBox="0 0 1024 1024"
 | 
					            xmlns="http://www.w3.org/2000/svg"
 | 
				
			||||||
          style={{
 | 
					            viewBox="0 0 1024 1024"
 | 
				
			||||||
            enableBackground: "new 0 0 1024 1024",
 | 
					            style={{
 | 
				
			||||||
          }}
 | 
					              enableBackground: "new 0 0 1024 1024",
 | 
				
			||||||
          xmlSpace="preserve"
 | 
					            }}
 | 
				
			||||||
          className="w-full h-full"
 | 
					            xmlSpace="preserve"
 | 
				
			||||||
        >
 | 
					            className="w-full h-full"
 | 
				
			||||||
          <style>
 | 
					          >
 | 
				
			||||||
            {
 | 
					            <style>
 | 
				
			||||||
              ".st0{display:none}.st3{stroke-linecap:square}.st3,.st4{fill:none;stroke:#fff;stroke-miterlimit:10}.st6{display:inline;fill:#333}.st7{fill:#fff}"
 | 
					              {
 | 
				
			||||||
            }
 | 
					                ".st0{display:none}.st3{stroke-linecap:square}.st3,.st4{fill:none;stroke:#fff;stroke-miterlimit:10}.st6{display:inline;fill:#333}.st7{fill:#fff}"
 | 
				
			||||||
          </style>
 | 
					              }
 | 
				
			||||||
          <g id="Icon">
 | 
					            </style>
 | 
				
			||||||
            <path
 | 
					            <g id="Icon">
 | 
				
			||||||
              d="M771.9 191c27.7 0 50.1 26.5 50.1 59.3v186.4l-100.2.3V250.3c0-32.8 22.4-59.3 50.1-59.3z"
 | 
					              <path
 | 
				
			||||||
              style={{
 | 
					                d="M771.9 191c27.7 0 50.1 26.5 50.1 59.3v186.4l-100.2.3V250.3c0-32.8 22.4-59.3 50.1-59.3z"
 | 
				
			||||||
                fill: "rgba(var(--color-logo-start))",
 | 
					 | 
				
			||||||
              }}
 | 
					 | 
				
			||||||
            />
 | 
					 | 
				
			||||||
            <linearGradient
 | 
					 | 
				
			||||||
              id="homepage_logo_gradient"
 | 
					 | 
				
			||||||
              gradientUnits="userSpaceOnUse"
 | 
					 | 
				
			||||||
              x1={200.746}
 | 
					 | 
				
			||||||
              y1={225.015}
 | 
					 | 
				
			||||||
              x2={764.986}
 | 
					 | 
				
			||||||
              y2={789.255}
 | 
					 | 
				
			||||||
            >
 | 
					 | 
				
			||||||
              <stop
 | 
					 | 
				
			||||||
                offset={0}
 | 
					 | 
				
			||||||
                style={{
 | 
					                style={{
 | 
				
			||||||
                  stopColor: "rgba(var(--color-logo-start))",
 | 
					                  fill: "rgba(var(--color-logo-start))",
 | 
				
			||||||
                }}
 | 
					                }}
 | 
				
			||||||
              />
 | 
					              />
 | 
				
			||||||
              <stop
 | 
					              <linearGradient
 | 
				
			||||||
                offset={1}
 | 
					                id="homepage_logo_gradient"
 | 
				
			||||||
 | 
					                gradientUnits="userSpaceOnUse"
 | 
				
			||||||
 | 
					                x1={200.746}
 | 
				
			||||||
 | 
					                y1={225.015}
 | 
				
			||||||
 | 
					                x2={764.986}
 | 
				
			||||||
 | 
					                y2={789.255}
 | 
				
			||||||
 | 
					              >
 | 
				
			||||||
 | 
					                <stop
 | 
				
			||||||
 | 
					                  offset={0}
 | 
				
			||||||
 | 
					                  style={{
 | 
				
			||||||
 | 
					                    stopColor: "rgba(var(--color-logo-start))",
 | 
				
			||||||
 | 
					                  }}
 | 
				
			||||||
 | 
					                />
 | 
				
			||||||
 | 
					                <stop
 | 
				
			||||||
 | 
					                  offset={1}
 | 
				
			||||||
 | 
					                  style={{
 | 
				
			||||||
 | 
					                    stopColor: "rgba(var(--color-logo-stop))",
 | 
				
			||||||
 | 
					                  }}
 | 
				
			||||||
 | 
					                />
 | 
				
			||||||
 | 
					              </linearGradient>
 | 
				
			||||||
 | 
					              <path
 | 
				
			||||||
 | 
					                d="M721.8 250.3c0-32.7 22.4-59.3 50.1-59.3H253.1c-27.7 0-50.1 26.5-50.1 59.3v582.2l90.2-75.7-.1-130.3H375v61.8l88-73.8 258.8 217.9V250.6"
 | 
				
			||||||
                style={{
 | 
					                style={{
 | 
				
			||||||
                  stopColor: "rgba(var(--color-logo-stop))",
 | 
					                  fill: "url(#homepage_logo_gradient)",
 | 
				
			||||||
                }}
 | 
					                }}
 | 
				
			||||||
              />
 | 
					              />
 | 
				
			||||||
            </linearGradient>
 | 
					            </g>
 | 
				
			||||||
            <path
 | 
					          </svg>
 | 
				
			||||||
              d="M721.8 250.3c0-32.7 22.4-59.3 50.1-59.3H253.1c-27.7 0-50.1 26.5-50.1 59.3v582.2l90.2-75.7-.1-130.3H375v61.8l88-73.8 258.8 217.9V250.6"
 | 
					        </div>
 | 
				
			||||||
              style={{
 | 
					 | 
				
			||||||
                fill: "url(#homepage_logo_gradient)",
 | 
					 | 
				
			||||||
              }}
 | 
					 | 
				
			||||||
            />
 | 
					 | 
				
			||||||
          </g>
 | 
					 | 
				
			||||||
        </svg>
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      </Raw>
 | 
					      </Raw>
 | 
				
			||||||
    </Container>
 | 
					    </Container>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user