Remove icons from category headings on home page
This commit is contained in:
parent
cd731ee22b
commit
56d02cf8cb
1 changed files with 7 additions and 10 deletions
|
|
@ -8,10 +8,10 @@ defmodule AmmopricesWeb.HomeLive do
|
|||
alias Ammoprices.Prices
|
||||
|
||||
@categories [
|
||||
%{id: "handgun", label: "Handgun", icon: "hero-bolt"},
|
||||
%{id: "rifle", label: "Rifle", icon: "hero-signal"},
|
||||
%{id: "rimfire", label: "Rimfire", icon: "hero-fire"},
|
||||
%{id: "shotgun", label: "Shotgun", icon: "hero-shield-check"}
|
||||
%{id: "handgun", label: "Handgun"},
|
||||
%{id: "rifle", label: "Rifle"},
|
||||
%{id: "rimfire", label: "Rimfire"},
|
||||
%{id: "shotgun", label: "Shotgun"}
|
||||
]
|
||||
|
||||
@impl true
|
||||
|
|
@ -54,12 +54,9 @@ defmodule AmmopricesWeb.HomeLive do
|
|||
<%!-- Category grid --%>
|
||||
<div class="space-y-6">
|
||||
<div :for={cat <- @categories} id={"category-#{cat.id}"} class="space-y-3">
|
||||
<div class="flex items-center gap-2">
|
||||
<.icon name={cat.icon} class="w-5 h-5 text-primary" />
|
||||
<h2 class="text-lg font-bold tracking-tight text-base-content">
|
||||
{cat.label}
|
||||
</h2>
|
||||
</div>
|
||||
<h2 class="text-lg font-bold tracking-tight text-base-content">
|
||||
{cat.label}
|
||||
</h2>
|
||||
|
||||
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-2">
|
||||
<.link
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue