mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-25 09:34:16 -05:00
25 lines
610 B
Ruby
25 lines
610 B
Ruby
# frozen_string_literal: true
|
|
|
|
module BrandingHelper
|
|
def logo_as_symbol(version = :icon)
|
|
case version
|
|
when :icon
|
|
_logo_as_symbol_icon
|
|
when :wordmark
|
|
_logo_as_symbol_wordmark
|
|
end
|
|
end
|
|
|
|
def _logo_as_symbol_wordmark
|
|
content_tag(:svg, tag.use(href: '#logo-symbol-wordmark'), viewBox: '0 0 261 66', class: 'logo logo--wordmark')
|
|
end
|
|
|
|
def _logo_as_symbol_icon
|
|
content_tag(:svg, tag.use(href: '#logo-symbol-icon'), viewBox: '0 0 79 79', class: 'logo logo--icon')
|
|
end
|
|
|
|
def render_logo
|
|
image_pack_tag('logo.svg', alt: 'Mastodon', class: 'logo logo--icon')
|
|
end
|
|
end
|