Sha256: 3df43d2c4b31e52772efb155ada2750be39ebab55d508685e439a00283783ef8
Contents?: true
Size: 1.13 KB
Versions: 36
Compression:
Stored size: 1.13 KB
Contents
module Plutonium module UI module Layout class RodauthLayout < Base include Phlex::Rails::Helpers::LinkTo private def page_title helpers.controller.instance_variable_get(:@page_title) end def main_attributes = mix(super, { class: "flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0" }) def render_content(&) link_to root_path, class: "flex items-center text-2xl font-semibold text-gray-900 dark:text-white" do helpers.resource_logo_tag classname: "w-24 h-24 mr-2" end div(class: "w-full bg-white rounded-lg shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700") { div(class: "p-6 space-y-4 md:space-y-6 sm:p-8", &) } div(class: "mt-4 flex items-center font-medium text-secondary-600 dark:text-secondary-400 hover:underline") { render Phlex::TablerIcons::Home2.new link_to "Home", root_path, class: "font-medium text-secondary-600 dark:text-secondary-400" } end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems