From 51248b24f736757c0091a37b3ecf0c79f3d16dc3 Mon Sep 17 00:00:00 2001 From: andupetcu <47487320+andupetcu@users.noreply.github.com> Date: Sat, 20 Sep 2025 16:04:02 +0300 Subject: [PATCH] Update color palette and improve UI aesthetics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Apply new teal-based color palette (#009688, #00796B, #B2DFDB) - Update secondary color to accent yellow (#FFC107) - Replace Material-UI loading states with proper animations and skeletons - Remove ugly gradient background, replace with clean white - Update all gradients to use new color scheme - Improve text colors for better readability (#212121, #757575) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- app/[locale]/bible/page.tsx | 26 +++++++++++++-------- app/[locale]/chat/page.tsx | 13 +++++++---- app/[locale]/page.tsx | 2 +- app/[locale]/prayers/page.tsx | 35 +++++++++++++++++++++++++--- app/[locale]/search/page.tsx | 38 +++++++++++++++++++++++++++---- app/globals.css | 7 +----- components/chat/floating-chat.tsx | 8 +++---- lib/theme.ts | 21 +++++++++-------- 8 files changed, 108 insertions(+), 42 deletions(-) diff --git a/app/[locale]/bible/page.tsx b/app/[locale]/bible/page.tsx index 56829c7..68db551 100644 --- a/app/[locale]/bible/page.tsx +++ b/app/[locale]/bible/page.tsx @@ -19,6 +19,8 @@ import { Button, Chip, useTheme, + CircularProgress, + Skeleton, } from '@mui/material' import { MenuBook, @@ -27,7 +29,6 @@ import { Bookmark, Share, } from '@mui/icons-material' -import { Navigation } from '@/components/layout/navigation' import { useState, useEffect } from 'react' interface BibleVerse { @@ -115,11 +116,13 @@ export default function BiblePage() { if (loading && books.length === 0) { return ( - - - Se încarcă... - + + + + Se încarcă cărțile... + + ) @@ -127,7 +130,6 @@ export default function BiblePage() { return ( - {/* Header */} @@ -232,9 +234,15 @@ export default function BiblePage() { {/* Bible Verses */} {loading ? ( - - Se încarcă versetele... - + + {Array.from({ length: 5 }).map((_, index) => ( + + + + + + ))} + ) : verses.length > 0 ? ( {verses.map((verse) => ( diff --git a/app/[locale]/chat/page.tsx b/app/[locale]/chat/page.tsx index af197bf..150e42b 100644 --- a/app/[locale]/chat/page.tsx +++ b/app/[locale]/chat/page.tsx @@ -16,6 +16,8 @@ import { IconButton, Divider, useTheme, + CircularProgress, + Skeleton, } from '@mui/material' import { Chat, @@ -27,7 +29,6 @@ import { ThumbDown, Refresh, } from '@mui/icons-material' -import { Navigation } from '@/components/layout/navigation' import { useState, useRef, useEffect } from 'react' interface ChatMessage { @@ -134,7 +135,6 @@ export default function ChatPage() { return ( - {/* Header */} @@ -281,9 +281,12 @@ export default function ChatPage() { - - Scriu răspunsul... - + + + + Scriu răspunsul... + + diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index aa3dd23..4dbdca2 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -63,7 +63,7 @@ export default function Home() { {/* Hero Section */} - {/* Header */} @@ -220,7 +220,36 @@ export default function PrayersPage() { {/* Prayer Requests */} {loading ? ( - Se încarcă rugăciunile... + + {Array.from({ length: 3 }).map((_, index) => ( + + + + + + + + + + + + + + + + + + + + + + + + + + + ))} + ) : ( {prayers.map((prayer) => { diff --git a/app/[locale]/search/page.tsx b/app/[locale]/search/page.tsx index 36acddf..37a43a8 100644 --- a/app/[locale]/search/page.tsx +++ b/app/[locale]/search/page.tsx @@ -23,6 +23,7 @@ import { AccordionDetails, useTheme, CircularProgress, + Skeleton, } from '@mui/material' import { Search, @@ -32,7 +33,6 @@ import { Close, History, } from '@mui/icons-material' -import { Navigation } from '@/components/layout/navigation' import { useState, useEffect } from 'react' interface SearchResult { @@ -175,7 +175,6 @@ export default function SearchPage() { return ( - {/* Header */} @@ -326,7 +325,7 @@ export default function SearchPage() { disabled={!searchQuery.trim() || loading} sx={{ minWidth: 100 }} > - {loading ? : 'Caută'} + {loading ? : 'Caută'} @@ -341,7 +340,38 @@ export default function SearchPage() { {/* Search Results */} - {results.length > 0 && ( + {loading && searchQuery && ( + + + + Se caută... + + + {Array.from({ length: 3 }).map((_, index) => ( + + + + + + } + secondary={ + + + + + + } + /> + + ))} + + + + )} + + {results.length > 0 && !loading && ( diff --git a/app/globals.css b/app/globals.css index 3488aab..2be9e4f 100644 --- a/app/globals.css +++ b/app/globals.css @@ -18,12 +18,7 @@ body { color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); + background: white; } .verse { diff --git a/components/chat/floating-chat.tsx b/components/chat/floating-chat.tsx index 8c6b422..07b9f42 100644 --- a/components/chat/floating-chat.tsx +++ b/components/chat/floating-chat.tsx @@ -167,9 +167,9 @@ export default function FloatingChat() { bottom: 24, right: 24, zIndex: 1000, - background: 'linear-gradient(45deg, #2C5F6B 30%, #8B7355 90%)', + background: 'linear-gradient(45deg, #009688 30%, #00796B 90%)', '&:hover': { - background: 'linear-gradient(45deg, #1e4148 30%, #6d5a43 90%)', + background: 'linear-gradient(45deg, #00695C 30%, #004D40 90%)', } }} > @@ -199,7 +199,7 @@ export default function FloatingChat() { diff --git a/lib/theme.ts b/lib/theme.ts index fe1a272..9904ad3 100644 --- a/lib/theme.ts +++ b/lib/theme.ts @@ -5,25 +5,26 @@ export const theme = createTheme({ palette: { mode: 'light', primary: { - main: '#2C5F6B', // Deep teal for spiritual feel - light: '#5A8A96', - dark: '#1A3B42', - contrastText: '#ffffff', + main: '#009688', // PRIMARY COLOR + light: '#B2DFDB', // LIGHT PRIMARY COLOR + dark: '#00796B', // DARK PRIMARY COLOR + contrastText: '#FFFFFF', // TEXT / ICONS }, secondary: { - main: '#8B7355', // Warm brown for earth tones - light: '#B09A7A', - dark: '#5D4D37', - contrastText: '#ffffff', + main: '#FFC107', // ACCENT COLOR + light: '#FFECB3', + dark: '#FF8F00', + contrastText: '#212121', }, background: { default: '#FAFAFA', paper: '#FFFFFF', }, text: { - primary: '#1A1A1A', - secondary: '#4A4A4A', + primary: '#212121', // PRIMARY TEXT + secondary: '#757575', // SECONDARY TEXT }, + divider: '#BDBDBD', // DIVIDER COLOR }, typography: { fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',