2022-06-09 13:25:23 -07:00
|
|
|
# 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
|
2023-04-29 21:47:15 -07:00
|
|
|
content_tag(:svg, tag.use(href: '#logo-symbol-wordmark'), viewBox: '0 0 261 66', class: 'logo logo--wordmark')
|
2022-06-09 13:25:23 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
def _logo_as_symbol_icon
|
2023-04-29 21:47:15 -07:00
|
|
|
content_tag(:svg, tag.use(href: '#logo-symbol-icon'), viewBox: '0 0 79 79', class: 'logo logo--icon')
|
2022-06-09 13:25:23 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
def render_logo
|
2024-04-15 02:05:19 -07:00
|
|
|
image_tag(frontend_asset_path('images/logo.svg'), alt: 'Mastodon', class: 'logo logo--icon')
|
2022-06-09 13:25:23 -07:00
|
|
|
end
|
|
|
|
end
|