Skip to content

Commit 4d17244

Browse files
improve rodauth layout customizability
1 parent 666a0c1 commit 4d17244

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

app/assets/plutonium.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/plutonium/ui/layout/rodauth_layout.rb

+12-4
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,26 @@ def page_title
1111
end
1212

1313
def main_attributes = mix(super, {
14-
class: "flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0"
14+
class: "flex flex-col items-center justify-center px-6 py-8 mx-auto lg:py-0"
1515
})
1616

1717
def render_content(&)
18-
link_to root_path, class: "flex items-center text-2xl font-semibold text-gray-900 dark:text-white" do
19-
helpers.resource_logo_tag classname: "w-24 h-24 mr-2"
20-
end
18+
render_logo
2119

2220
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") {
2321
div(class: "p-6 space-y-4 md:space-y-6 sm:p-8", &)
2422
}
2523

24+
render_links
25+
end
26+
27+
def render_logo
28+
link_to root_path, class: "flex items-center text-2xl font-semibold text-gray-900 dark:text-white" do
29+
helpers.resource_logo_tag classname: "w-24 h-24 mr-2"
30+
end
31+
end
32+
33+
def render_links
2634
div(class: "mt-4 flex items-center font-medium text-secondary-600 dark:text-secondary-400 hover:underline") {
2735
render Phlex::TablerIcons::Home2.new
2836
link_to "Home", root_path, class: "font-medium text-secondary-600 dark:text-secondary-400"

lib/plutonium/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Plutonium
2-
VERSION = "0.19.10"
2+
VERSION = "0.19.11"
33
NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
44
v[1] = v[1].to_i + 1
55
v[2] = 0

0 commit comments

Comments
 (0)