@ -0,0 +1,37 @@ |
||||
# 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 75', class: 'logo logo--icon') |
||||
end |
||||
|
||||
def render_logo |
||||
image_pack_tag('logo.svg', alt: 'Mastodon', class: 'logo logo--icon') |
||||
end |
||||
|
||||
def render_symbol(version = :icon) |
||||
path = begin |
||||
case version |
||||
when :icon |
||||
'logo-symbol-icon.svg' |
||||
when :wordmark |
||||
'logo-symbol-wordmark.svg' |
||||
end |
||||
end |
||||
|
||||
render(file: Rails.root.join('app', 'javascript', 'images', path)).html_safe # rubocop:disable Rails/OutputSafety |
||||
end |
||||
end |
@ -1 +1,3 @@ |
||||
import 'styles/mailer.scss'; |
||||
require('../styles/mailer.scss'); |
||||
|
||||
require.context('../icons'); |
||||
|
@ -0,0 +1,3 @@ |
||||
.logo { |
||||
color: $primary-text-color; |
||||
} |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 9.9 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 650 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 305 B |
Before Width: | Height: | Size: 220 B |
After Width: | Height: | Size: 563 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 262 B |
After Width: | Height: | Size: 194 B |
After Width: | Height: | Size: 189 B |
After Width: | Height: | Size: 241 B |
After Width: | Height: | Size: 384 B |
After Width: | Height: | Size: 294 B |
After Width: | Height: | Size: 209 B |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 817 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 813 B |
After Width: | Height: | Size: 693 B |
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 371 B |
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 506 B |
After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 285 KiB |
After Width: | Height: | Size: 502 KiB |
@ -0,0 +1,3 @@ |
||||
.logo { |
||||
color: $primary-text-color; |
||||
} |