diff --git a/assets/css/admin.css b/assets/css/admin.css index c8d7ad5..058f756 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -1,4 +1,5 @@ @import "tailwindcss"; +@import './theme-config.css'; @plugin "daisyui"; @utility btn { @@ -20,44 +21,3 @@ @utility fieldset-legend { @apply ml-3; } - -@plugin "daisyui/theme" { - name: "claper"; - default: true; /* set as default */ - prefersdark: false; /* set as default dark mode (prefers-color-scheme:dark) */ - color-scheme: light; /* color of browser-provided UI */ - - --color-primary: #140753; - --color-primary-content: #ffffff; - --color-secondary: #f4f4f4; - --color-secondary-content: #140553; - --color-accent: #8611ed; - --color-accent-content: #ffffff; - --color-neutral: #000000; - --color-neutral-content: #ffffff; - --color-info: #79bfe2; - --color-info-content: #0e3649; - --color-success: #3cb957; - --color-success-content: #143e1d; - --color-warning: #ffb62e; - --color-warning-content: #523500; - --color-error: #e7000b; - --color-error-content: #fff; - /* border radius */ - --radius-selector: 1rem; - --radius-field: 0.25rem; - --radius-box: 0.5rem; - - /* base sizes */ - --size-selector: 0.25rem; - --size-field: 0.25rem; - - /* border size */ - --border: 1px; - - /* effects */ - --depth: 1; - --noise: 0; -} - -@import "./modern.css" layer(theme); diff --git a/assets/css/app.css b/assets/css/app.css index b3d3e4d..f5e2aa5 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -2,11 +2,22 @@ @import 'animate.css/animate.min.css'; @import 'tailwindcss'; -@import './theme.css' layer(theme); +@import './theme-config.css'; @plugin "daisyui" { - themes: light --default; - include: toggle; + themes: claper --default; +} + +@utility btn { + @apply rounded-full !font-display text-small-body; +} + +@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; +} + +@utility select { + @apply rounded-full focus:outline-none focus-within:outline-none focus:border-2 focus-within:border-2 !font-display text-small-body transition-all; } @layer base { @@ -17,6 +28,11 @@ ::file-selector-button { border-color: var(--color-gray-200, currentcolor); } + + button, + [role="button"] { + cursor: pointer; + } } * { @@ -321,23 +337,6 @@ src: url('/fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf'); } -.bg-gradient-animate { - background: linear-gradient(-45deg, var(--color-secondary-500), var(--color-secondary-600), var(--color-primary-400), var(--color-primary-400)); - background-size: 400% 400%; - animation: gradient 15s ease infinite; -} - -@keyframes gradient { - 0% { - background-position: 0% 50%; - } - 50% { - background-position: 100% 50%; - } - 100% { - background-position: 0% 50%; - } -} .arrow_box { position: relative; diff --git a/assets/css/modern.css b/assets/css/modern.css deleted file mode 100644 index 9dc3070..0000000 --- a/assets/css/modern.css +++ /dev/null @@ -1,152 +0,0 @@ -@theme { - /* Colors */ - /* Main colors */ - --color-*: initial; - --color-sky-blue: #81EBFE; - --color-teal: #14BFDB; - --color-azure: #29ACED; - --color-mauve: #8611ED; - --color-purple: #B80FEF; - --color-navy: #140553; - - /* Light colors */ - --color-cold-pink: #F3DEFA; - --color-warm-pink: #FFD2F6; - --color-yeallaw: #FFEAC2; - --color-pistacio: #D4FFF4; - --color-sky-tern: #C8EDFF; - --color-tealy: #81EBFE; - --color-earl-night: #0A7BB4; - --color-dark-night: #184992; - - /* Gradient */ - --gradient-primary: 123deg, var(--color-sky-blue) -36%, var(--color-teal) -12%, var(--color-azure) 21%, var(--color-mauve) 81%, var(--color-purple) 130%; - --gradient-secondary: 123deg, rgba(129, 235, 254, 0.9) -36%, rgba(20, 191, 219, 0.9) -12%, rgba(41, 172, 237, 0.9) 21%, rgba(134, 17, 237, 0.9) 81%, rgba(184, 15, 239, 0.9) 130%; - - /* Grayscale */ - --color-white: #FFFFFF; - --color-black: #191919; - --color-gray-20: #CCCCCC; - --color-gray-40: #9F9F9F; - --color-gray-60: #737373; - --color-gray-80: #464646; - --color-gray-100: #191919; - --color-gray-120: #000000; - - --color-platinum: #F0F0F0; - --color-platinum-20: #FFFFFF; - --color-platinum-40: #FCFCFC; - --color-platinum-60: #F8F8F8; - --color-platinum-80: #F4F4F4; - --color-platinum-100: #F0F0F0; - --color-platinum-120: #EEEEEE; - - /* Typography */ - --font-display: "Montserrat", sans-serif; - - /* Font Sizes - Desktop */ - --text-h1: 80px; - --leading-h1: 120%; - --font-weight-h1: 900; - - --text-h2: 40px; - --leading-h2: 120%; - --font-weight-h2: 700; - - --text-h3: 32px; - --leading-h3: 120%; - --font-weight-h3: 600; - - --text-h4: 24px; - --leading-h4: 120%; - --font-weight-h4: 500; - - --text-h5: 18px; - --leading-h5: 120%; - --font-weight-h5: 600; - - --text-h6: 16px; - --leading-h6: 120%; - --font-weight-h6: 500; - - --text-subheading: 20px; - --leading-subheading: 150%; - --font-weight-subheading: 300; - - --text-body-bold: 16px; - --leading-body-bold: 150%; - --font-weight-body-bold: 700; - - --text-body: 16px; - --leading-body: 150%; - --font-weight-body: 400; - - --text-small-body-bold: 14px; - --leading-small-body-bold: 150%; - --font-weight-small-body-bold: 600; - - --text-small-body: 14px; - --leading-small-body: 150%; - --font-weight-small-body: 400; - - --text-caption: 14px; - --leading-caption: 150%; - --font-weight-caption: 300; - - /* Font Sizes - Mobile */ - --text-mobile-h1: 32px; - --leading-mobile-h1: 120%; - --font-weight-mobile-h1: 900; - - --text-mobile-h2: 28px; - --leading-mobile-h2: 120%; - --font-weight-mobile-h2: 700; - - --text-mobile-h3: 22px; - --leading-mobile-h3: 120%; - --font-weight-mobile-h3: 600; - - --text-mobile-h4: 18px; - --leading-mobile-h4: 120%; - --font-weight-mobile-h4: 500; - - --text-mobile-h5: 16px; - --leading-mobile-h5: 120%; - --font-weight-mobile-h5: 600; - - --text-mobile-h6: 14px; - --leading-mobile-h6: 120%; - --font-weight-mobile-h6: 500; - - /* Spacing */ - --spacing-0: 0px; - --spacing-4: 4px; - --spacing-8: 8px; - --spacing-12: 12px; - --spacing-16: 16px; - --spacing-20: 20px; - --spacing-24: 24px; - --spacing-28: 28px; - --spacing-32: 32px; - --spacing-36: 36px; - --spacing-40: 40px; - --spacing-44: 44px; - --spacing-48: 48px; - --spacing-52: 52px; - --spacing-56: 56px; - --spacing-60: 60px; - --spacing-64: 64px; - --spacing-68: 68px; - --spacing-72: 72px; - --spacing-76: 76px; - --spacing-80: 80px; - --spacing-128: 128px; - - /* Font Weights */ - --font-weight-regular: 400; - --font-weight-bold: 700; - - /* Shadows */ - --shadow-3xl: 0px 902px 253px 0px rgba(65, 69, 124, 0.00), 0px 577px 231px 0px rgba(65, 69, 124, 0.01), 0px 325px 195px 0px rgba(65, 69, 124, 0.05), 0px 144px 144px 0px rgba(65, 69, 124, 0.09), 0px 36px 79px 0px rgba(65, 69, 124, 0.10) - -} \ No newline at end of file diff --git a/assets/css/theme.css b/assets/css/theme-config.css similarity index 55% rename from assets/css/theme.css rename to assets/css/theme-config.css index 5361f03..2b6d63c 100644 --- a/assets/css/theme.css +++ b/assets/css/theme-config.css @@ -1,19 +1,67 @@ +@plugin "daisyui/theme" { + name: "claper"; + default: true; + prefersdark: false; + color-scheme: light; + + /* Map custom colors to DaisyUI semantic tokens */ + --color-primary: #8611ed; /* primary-500 */ + --color-primary-content: #ffffff; + --color-secondary: #140553; /* secondary-500 */ + --color-secondary-content: #ffffff; + --color-accent: #507DAA; /* neutral-500 */ + --color-accent-content: #ffffff; + --color-neutral: #374151; /* gray-700 */ + --color-neutral-content: #ffffff; + --color-base-100: #ffffff; + --color-base-200: #f9fafb; /* gray-50 */ + --color-base-300: #e5e7eb; /* gray-200 */ + --color-base-content: #1f2937; /* gray-800 */ + --color-info: #79bfe2; + --color-info-content: #0e3649; + --color-success: #10B981; /* supporting-green-500 */ + --color-success-content: #064E3B; /* supporting-green-900 */ + --color-warning: #F59E0B; /* supporting-yellow-500 */ + --color-warning-content: #78350F; /* supporting-yellow-900 */ + --color-error: #E12D39; /* supporting-red-500 */ + --color-error-content: #ffffff; + + /* Border radius (preserve from admin.css) */ + --radius-selector: 1rem; + --radius-field: 0.25rem; + --radius-box: 0.5rem; + + /* Border and effects */ + --border: 1px; + --depth: 1; + --noise: 0; +} @theme { - /* Gray Colors (Tailwind default) */ - --color-gray-50: #f9fafb; - --color-gray-100: #f3f4f6; - --color-gray-200: #e5e7eb; - --color-gray-300: #d1d5db; - --color-gray-400: #9ca3af; - --color-gray-500: #6b7280; - --color-gray-600: #4b5563; - --color-gray-700: #374151; - --color-gray-800: #1f2937; - --color-gray-900: #111827; - --color-gray-950: #030712; + /* Preserve custom CSS variables for non-DaisyUI usage */ + --font-display: "Montserrat", sans-serif; + --font-family-sans: "Roboto", sans-serif; + --font-family-serif: "Merriweather", serif; - /* Primary Colors - Claper Purple */ + /* Preserve shadows from theme.css */ + --shadow-base: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.06); + --shadow-md: 0px 4px 6px 0px rgba(0,0,0,0.1), 0px 2px 4px 0px rgba(0,0,0,0.06); + --shadow-lg: 0px 4px 6px 0px rgba(0,0,0,0.05), 0px 10px 15px 0px rgba(0,0,0,0.1); + --shadow-xl: 0px 10px 10px 0px rgba(0,0,0,0.04), 0px 20px 25px 0px rgba(0,0,0,0.1); + --shadow-2xl: 0px 25px 50px 0px rgba(0,0,0,0.25); + --shadow-inner: inset 0px 2px 4px 0px rgba(0,0,0,0.06); + + /* Typography scale from modern.css (if needed by templates) */ + --text-h1: 80px; + --text-h2: 40px; + --text-h3: 32px; + --text-h4: 24px; + --text-h5: 18px; + --text-h6: 16px; + --text-body: 16px; + --text-small-body: 14px; + + /* Primary Colors - Claper Purple (from old theme.css) */ --color-primary-50: #f3defa; --color-primary-100: #e8bef5; --color-primary-200: #d08def; @@ -25,7 +73,7 @@ --color-primary-800: #35065f; --color-primary-900: #1a032f; - /* Secondary Colors - Navy Purple */ + /* Secondary Colors - Navy Purple (from old theme.css) */ --color-secondary-50: #e8e6f0; --color-secondary-100: #c5c0db; --color-secondary-200: #9f97c2; @@ -36,8 +84,8 @@ --color-secondary-700: #0c0332; --color-secondary-800: #080221; --color-secondary-900: #040111; - - /* Neutral Colors (wedgewood) */ + + /* Neutral Colors - Wedgewood (from old theme.css) */ --color-neutral-50: #F0F4F8; --color-neutral-100: #D9E3ED; --color-neutral-200: #B9CCDF; @@ -48,8 +96,8 @@ --color-neutral-700: #314D68; --color-neutral-800: #253B50; --color-neutral-900: #1A2938; - - /* Supporting Red Colors (rose-madder) */ + + /* Supporting Red Colors (from old theme.css) */ --color-supporting-red-50: #FCEDEE; --color-supporting-red-100: #F9D5D7; --color-supporting-red-200: #F3ABB0; @@ -60,8 +108,8 @@ --color-supporting-red-700: #871B22; --color-supporting-red-800: #5A1217; --color-supporting-red-900: #2D090B; - - /* Supporting Yellow Colors (school-bus-yellow) */ + + /* Supporting Yellow Colors (from old theme.css) */ --color-supporting-yellow-50: #FFFBEB; --color-supporting-yellow-100: #FEF3C7; --color-supporting-yellow-200: #FDE68A; @@ -72,8 +120,8 @@ --color-supporting-yellow-700: #B45309; --color-supporting-yellow-800: #92400E; --color-supporting-yellow-900: #78350F; - - /* Supporting Green Colors (green-teal) */ + + /* Supporting Green Colors (from old theme.css) */ --color-supporting-green-50: #ECFDF5; --color-supporting-green-100: #D1FAE5; --color-supporting-green-200: #A7F3D0; @@ -84,17 +132,4 @@ --color-supporting-green-700: #047857; --color-supporting-green-800: #065F46; --color-supporting-green-900: #064E3B; - - /* Font Family */ - --font-family-sans: 'Roboto', sans-serif; - --font-family-serif: 'Merriweather', serif; - --font-display: 'Montserrat', sans-serif; - - /* Box Shadows */ - --shadow-base: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.06); - --shadow-md: 0px 4px 6px 0px rgba(0,0,0,0.1), 0px 2px 4px 0px rgba(0,0,0,0.06); - --shadow-lg: 0px 4px 6px 0px rgba(0,0,0,0.05), 0px 10px 15px 0px rgba(0,0,0,0.1); - --shadow-xl: 0px 10px 10px 0px rgba(0,0,0,0.04), 0px 20px 25px 0px rgba(0,0,0,0.1); - --shadow-2xl: 0px 25px 50px 0px rgba(0,0,0,0.25); - --shadow-inner: inset 0px 2px 4px 0px rgba(0,0,0,0.06); } diff --git a/lib/claper_web/live/embed_live/form_component.html.heex b/lib/claper_web/live/embed_live/form_component.html.heex index ec67b28..14d67a7 100644 --- a/lib/claper_web/live/embed_live/form_component.html.heex +++ b/lib/claper_web/live/embed_live/form_component.html.heex @@ -54,11 +54,7 @@
- # {@event.code} -
-+ # {@event.code} +
+
- {gettext("Processing your file...")}
-
+ {gettext("Processing your file...")}
+ {gettext("Create your first event")}
<.link href={~p"/events/new"} class="inline-flex items-center gap-2 mt-4 px-6 py-3 bg-primary-500 text-white rounded-full font-bold hover:bg-primary-600 transition" > -
diff --git a/lib/claper_web/live/event_live/manage.html.heex b/lib/claper_web/live/event_live/manage.html.heex
index 573a0e6..07303b1 100644
--- a/lib/claper_web/live/event_live/manage.html.heex
+++ b/lib/claper_web/live/event_live/manage.html.heex
@@ -173,7 +173,7 @@
href={~p"/e/#{@event.code}/manage/add/poll"}
class="group flex select-none rounded-xl p-3 w-full hover:bg-gray-200 cursor-pointer"
>
- +
{@message}
+
{@message}