Sha256: 5a8f48a48bc25decdfe7c8e674851b4490db7168d84e16d30397b07c32f4bd7d

Contents?: true

Size: 1.5 KB

Versions: 5

Compression:

Stored size: 1.5 KB

Contents

class ApplicationLogoComponent < ViewComponent::Base
  erb_template <<~ERB
    <svg viewBox="0 -6 32 32" xmlns="http://www.w3.org/2000/svg" <%= sanitize @attributes.join(" ") %>>
      <g fill="none" fill-rule="evenodd">
        <path d="M0-6h32v32H0z"/>
        <path fill="#c00" fill-rule="nonzero" d="M.985 19.636s.422-4.163 3.375-9.087c2.954-4.924 7.99-8.65 12.083-9.017 8.144-.816 15.46 6.485 15.46 6.485s-.24.168-.494.38C23.42 2.49 18.54 5.274 17.005 6.02c-7.033 3.925-4.91 13.616-4.91 13.616H.987zM24.137 2.32c-.45-.182-.9-.35-1.364-.505l.056-.93c.885.254 1.237.423 1.363.493l-.056.943zM22.8 5.304c.45.028.915.084 1.393.183l-.056.872c-.464-.1-.928-.155-1.392-.17l.056-.885zM17.597.913c-.407 0-.815.015-1.223.058l-.268-.83c.465-.056.915-.084 1.35-.084l.282.858h-.14zm.676 5.178c.35-.154.76-.31 1.237-.45l.31.93c-.41.125-.817.294-1.225.49l-.323-.97zm-6.386-3.7c-.366.184-.718.395-1.083.62l-.647-.985c.38-.225.745-.42 1.097-.604l.633.97zm2.883 6.33c.252-.323.548-.646.87-.942l.634.957c-.31.323-.59.647-.83 1L14.77 8.72zm-2.04 4.53c.112-.506.24-1.027.422-1.547l1.012.802c-.14.548-.24 1.097-.295 1.645l-1.14-.9zM6.57 6.57c-.34.35-.662.73-.958 1.11L4.53 6.752c.323-.352.674-.704 1.04-1.055l1 .872zm-4.25 6.286c-.224.52-.52 1.21-.702 1.688L0 13.954c.14-.38.436-1.084.703-1.69l1.618.592zm10.2 3.967l1.518.548c.084.663.21 1.28.337 1.83l-1.688-.605c-.07-.422-.14-1.027-.168-1.772z"/>
      </g>
    </svg>
  ERB

  def initialize(attributes = {})
    @attributes = attributes.map { |key, attribute| "#{key}=\"#{attribute}\"" }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kaze-0.7.0 stubs/hotwire/app/components/application_logo_component.rb
kaze-0.6.0 stubs/hotwire/app/components/application_logo_component.rb
kaze-0.5.0 stubs/hotwire/app/components/application_logo_component.rb
kaze-0.4.0 stubs/hotwire/app/components/application_logo_component.rb
kaze-0.3.0 stubs/hotwire/app/components/application_logo_component.rb