Skip to content

Commit 1a8b659

Browse files
authored
Change admin colors (#580)
* Change colors on admin dashboard * Fix AgeRange value to be a number
1 parent f2cf9a0 commit 1a8b659

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

app/helpers/admin_dashboard_cards_helper.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def user_content_cards
2525
[
2626
custom_card("Activity logs", dashboard_recent_activities_path, icon: "🧭"),
2727
custom_card("Bookmarks tally", tally_bookmarks_path, icon: "🔖"),
28-
model_card(:event_registrations, icon: "🎟️", intensity: 100, title: "Event Registrations"),
28+
model_card(:event_registrations, icon: "🎟️", intensity: 100),
2929
model_card(:quotes, icon: "💬", intensity: 100),
3030
model_card(:story_ideas, icon: "✍️", intensity: 100),
3131
custom_card("Tags", tags_path, icon: "🏷️", color: :lime, intensity: 100),
@@ -40,10 +40,10 @@ def user_content_cards
4040
# -----------------------------
4141
def reference_cards
4242
[
43-
custom_card("Categories", authenticated_root_path, icon: "🗂️"),
44-
custom_card("Sectors", authenticated_root_path, icon: "🏭"),
45-
custom_card("Project Statuses", authenticated_root_path, icon: "🧮"),
46-
custom_card("Windows Types", windows_types_path, icon: "🪟"),
43+
custom_card("Categories", authenticated_root_path, icon: "🗂️", color: :lime, intensity: 100),
44+
custom_card("Service populations", authenticated_root_path, icon: "🏭", color: :lime, intensity: 100),
45+
custom_card("Project statuses", authenticated_root_path, icon: "🧮", color: :emerald, intensity: 100),
46+
custom_card("Windows types", windows_types_path, icon: "🪟"),
4747
]
4848
end
4949

app/views/dashboard/admin.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section class="mt-10 px-8">
22
<div class="flex flex-col items-start mb-4">
3-
<h2 class="text-3xl text-gray-700 m-2">Admin Dashboard</h2>
3+
<h2 class="text-3xl text-gray-700 my-2">Admin Dashboard</h2>
44
</div>
55

66
<div class="flex gap-6">

db/seeds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
["AgeRange", "3-5"],
5151
["AgeRange", "6-12"],
5252
["AgeRange", "Teen"],
53-
["AgeRange", "Adult"],
53+
["AgeRange", "18+"],
5454
["AgeRange", "Mixed-age groups"],
5555
["AgeRange", "Family Windows"],
5656
# ["ArtType", "Boxes", 1],

lib/domain_theme.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ module DomainTheme
2222
story_ideas: :rose,
2323
event_registrations: :blue,
2424

25+
banners: :stone,
26+
users: :stone,
27+
2528
admin_only: :blue,
2629
user_only: :green
2730
}

0 commit comments

Comments
 (0)