From 8ace57d2a8b165bf9f9ceccc8167fbd9233f16ed Mon Sep 17 00:00:00 2001 From: Alex Lion Date: Mon, 2 Feb 2026 18:30:58 +0000 Subject: [PATCH] Refactor buttons to use DaisyUI system and add gradient style - Add custom btn-gradient utility for cyan-to-purple gradient buttons - Update all buttons to use DaisyUI classes (btn-primary, btn-outline, btn-secondary, etc.) - Apply gradient style to "Create an event" and "Join" buttons only - Increase grid card height to h-96 and adjust panel position for better content visibility Co-Authored-By: Claude Opus 4.5 --- assets/css/app.css | 9 ++++++++ .../live/event_live/event_card_component.ex | 22 +++++++++---------- .../live/event_live/index.html.heex | 14 ++++++------ lib/claper_web/live/event_live/join.html.heex | 2 +- 4 files changed, 28 insertions(+), 19 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index f5e2aa5..c9d6589 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -12,6 +12,15 @@ @apply rounded-full !font-display text-small-body; } +@utility btn-gradient { + background: linear-gradient(to bottom right, var(--color-cyan-500, #06b6d4), var(--color-primary-500, #8611ed)); + border: none; + color: white; + &:hover { + background: linear-gradient(to bottom right, var(--color-cyan-600, #0891b2), var(--color-primary-600, #6b0dbe)); + } +} + @utility input { @apply rounded-full focus:outline-none focus-within:outline-none focus:border-2 focus-within:border-2 !font-display text-small-body transition-all; } diff --git a/lib/claper_web/live/event_live/event_card_component.ex b/lib/claper_web/live/event_live/event_card_component.ex index f327945..868196b 100644 --- a/lib/claper_web/live/event_live/event_card_component.ex +++ b/lib/claper_web/live/event_live/event_card_component.ex @@ -26,7 +26,7 @@ defmodule ClaperWeb.EventLive.EventCardComponent do ~H"""
@@ -138,7 +138,7 @@ defmodule ClaperWeb.EventLive.EventCardComponent do @@ -207,7 +207,7 @@