Refactor color scheme in member-related pages to use brand colors instead of CSS variables for consistency and improved readability
This commit is contained in:
@@ -147,7 +147,7 @@ const AdminFinancials = () => {
|
||||
if (loading) {
|
||||
return (
|
||||
<div className="flex items-center justify-center min-h-[60vh]">
|
||||
<p className="text-[var(--purple-lavender)]">Loading financial reports...</p>
|
||||
<p className="text-brand-purple ">Loading financial reports...</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -160,14 +160,14 @@ const AdminFinancials = () => {
|
||||
<h1 className="text-3xl font-semibold text-[var(--purple-ink)]" style={{ fontFamily: "'Inter', sans-serif" }}>
|
||||
Financial Reports Management
|
||||
</h1>
|
||||
<p className="text-[var(--purple-lavender)] mt-2" style={{ fontFamily: "'Nunito Sans', sans-serif" }}>
|
||||
<p className="text-brand-purple mt-2" style={{ fontFamily: "'Nunito Sans', sans-serif" }}>
|
||||
Manage annual financial reports
|
||||
</p>
|
||||
</div>
|
||||
{hasPermission('financials.create') && (
|
||||
<Button
|
||||
onClick={handleCreate}
|
||||
className="bg-[var(--purple-lavender)] text-white hover:bg-[var(--purple-muted)] rounded-full flex items-center gap-2"
|
||||
className="bg-brand-purple text-white hover:bg-[var(--purple-muted)] rounded-full flex items-center gap-2"
|
||||
>
|
||||
<Plus className="h-4 w-4" />
|
||||
Add Report
|
||||
@@ -179,9 +179,9 @@ const AdminFinancials = () => {
|
||||
{reports.length === 0 ? (
|
||||
<Card className="p-12 text-center">
|
||||
<TrendingUp className="h-16 w-16 text-[var(--neutral-800)] mx-auto mb-4" />
|
||||
<p className="text-[var(--purple-lavender)] text-lg mb-4">No financial reports yet</p>
|
||||
<p className="text-brand-purple text-lg mb-4">No financial reports yet</p>
|
||||
{hasPermission('financials.create') && (
|
||||
<Button onClick={handleCreate} className="bg-[var(--purple-lavender)] text-white">
|
||||
<Button onClick={handleCreate} className="bg-brand-purple text-white">
|
||||
<Plus className="h-4 w-4 mr-2" />
|
||||
Create First Report
|
||||
</Button>
|
||||
@@ -192,7 +192,7 @@ const AdminFinancials = () => {
|
||||
{reports.map(report => (
|
||||
<Card key={report.id} className="p-6">
|
||||
<div className="flex items-center gap-6">
|
||||
<div className="bg-gradient-to-br from-[var(--purple-lavender)] to-[var(--purple-ink)] p-4 rounded-xl text-white min-w-[100px] text-center">
|
||||
<div className="bg-gradient-to-br from-brand-purple to-[var(--purple-ink)] p-4 rounded-xl text-white min-w-[100px] text-center">
|
||||
<DollarSign className="h-6 w-6 mx-auto mb-1" />
|
||||
<div className="text-2xl font-bold">{report.year}</div>
|
||||
</div>
|
||||
@@ -201,14 +201,14 @@ const AdminFinancials = () => {
|
||||
{report.title}
|
||||
</h3>
|
||||
<div className="flex items-center gap-3">
|
||||
<Badge variant="outline" className="border-[var(--purple-lavender)] text-[var(--purple-lavender)]">
|
||||
<Badge variant="outline" className="border-brand-purple text-brand-purple ">
|
||||
{report.document_type === 'google_drive' ? 'Google Drive' : report.document_type.toUpperCase()}
|
||||
</Badge>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={() => window.open(report.document_url, '_blank')}
|
||||
className="text-[var(--purple-lavender)] hover:text-[var(--purple-muted)]"
|
||||
className="text-brand-purple hover:text-[var(--purple-muted)]"
|
||||
>
|
||||
<ExternalLink className="h-4 w-4 mr-1" />
|
||||
View
|
||||
@@ -222,7 +222,7 @@ const AdminFinancials = () => {
|
||||
variant="outline"
|
||||
size="sm"
|
||||
onClick={() => handleEdit(report)}
|
||||
className="border-[var(--purple-lavender)] text-[var(--purple-lavender)]"
|
||||
className="border-brand-purple text-brand-purple "
|
||||
>
|
||||
<Edit className="h-4 w-4" />
|
||||
</Button>
|
||||
@@ -313,12 +313,12 @@ const AdminFinancials = () => {
|
||||
required={!selectedReport}
|
||||
/>
|
||||
{uploadedFile && (
|
||||
<p className="text-sm text-[var(--purple-lavender)] mt-1">
|
||||
<p className="text-sm text-brand-purple mt-1">
|
||||
Selected: {uploadedFile.name}
|
||||
</p>
|
||||
)}
|
||||
{selectedReport && !uploadedFile && (
|
||||
<p className="text-sm text-[var(--purple-lavender)] mt-1">
|
||||
<p className="text-sm text-brand-purple mt-1">
|
||||
Current file will be kept if no new file is selected
|
||||
</p>
|
||||
)}
|
||||
@@ -333,7 +333,7 @@ const AdminFinancials = () => {
|
||||
placeholder="https://docs.google.com/... or https://example.com/file.pdf"
|
||||
required
|
||||
/>
|
||||
<p className="text-sm text-[var(--purple-lavender)] mt-1">
|
||||
<p className="text-sm text-brand-purple mt-1">
|
||||
Paste the shareable link to your document (Google Drive, Dropbox, PDF URL, etc.)
|
||||
</p>
|
||||
</div>
|
||||
@@ -350,7 +350,7 @@ const AdminFinancials = () => {
|
||||
</Button>
|
||||
<Button
|
||||
type="submit"
|
||||
className="bg-[var(--purple-lavender)] text-white"
|
||||
className="bg-brand-purple text-white"
|
||||
disabled={submitting}
|
||||
>
|
||||
{submitting ? 'Saving...' : selectedReport ? 'Update' : 'Create'}
|
||||
|
||||
Reference in New Issue
Block a user