* Change branding preview text from DEV to FOREM * Refer to preview logo file with inline_svg_tag instead * Change branding preview to seedling logo * Make preview logo file more generic
29 lines
1.6 KiB
Text
29 lines
1.6 KiB
Text
<div class="grid gap-6 m:grid-cols-2">
|
|
<div class="grid gap-6">
|
|
<% account.bg_color_hex = user_colors(account)[:bg] if account.bg_color_hex.blank? %>
|
|
<% account.text_color_hex = user_colors(account)[:text] if account.text_color_hex.blank? %>
|
|
<div class="crayons-field">
|
|
<%= f.label :bg_color_hex, "Brand color 1", class: "crayons-field__label" %>
|
|
<p class="crayons-field__description">Used for backgrounds, borders etc.</p>
|
|
<div class="flex items-center">
|
|
<%= f.text_field :bg_color_hex, placeholder: "#000000", class: "crayons-textfield mr-2", id: "bg-color-textfield" %>
|
|
<input id="bg-color-colorfield" type="color" class="crayons-color-selector">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="crayons-field">
|
|
<% account.bg_color_hex = user_colors(account)[:text] if account.text_color_hex.blank? %>
|
|
<%= f.label :text_color_hex, "Brand color 2", class: "crayons-field__label" %>
|
|
<p class="crayons-field__description">Used for texts (usually put on <em>Brand color 1</em>).</p>
|
|
<div class="flex items-center">
|
|
<%= f.text_field :text_color_hex, placeholder: "#ffffff", class: "crayons-textfield mr-2", id: "text-color-textfield" %>
|
|
<input id="text-color-colorfield" type="color" class="crayons-color-selector">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="crayons-card crayons-card--secondary flex-1 p-6">
|
|
<p class="text-uppercase color-base-50 mb-4 fs-s ff-monospace">Preview:</p>
|
|
<%= inline_svg_tag("preview-logo.svg", id: "color-select-preview-logo", class: "p-4 radius-default", title: "App logo") %>
|
|
</div>
|
|
</div>
|