SocialShare / frontend /src /utils /constants.js
NitinBot002's picture
Initial commit with all project files
f4854a1
/* ============================================
CONSTANTS
============================================ */
// Firebase collection names
export const COLLECTIONS = {
USERS: 'users',
DONATIONS: 'donations',
CAMPAIGNS: 'campaigns',
HELP_REQUESTS: 'helpRequests',
VOLUNTEERS: 'volunteers',
VOLUNTEER_ACTIVITIES: 'volunteerActivities',
STORIES: 'stories',
BLOG: 'blog',
GALLERY: 'gallery',
EVENTS: 'events',
REPORTS: 'reports',
NEWSLETTER: 'newsletter',
SITE_CONTENT: 'siteContent',
};
// User roles
export const ROLES = {
ADMIN: 'admin',
CONTENT_MANAGER: 'content_manager',
MANAGER: 'manager',
VOLUNTEER_COORDINATOR: 'volunteer_coordinator',
CITIZEN: 'citizen',
};
// Role hierarchy (higher index = higher access)
export const ROLE_HIERARCHY = [
ROLES.CITIZEN,
ROLES.VOLUNTEER_COORDINATOR,
ROLES.MANAGER,
ROLES.CONTENT_MANAGER,
ROLES.ADMIN,
];
// Role display names
export const ROLE_LABELS = {
[ROLES.ADMIN]: 'Administrator',
[ROLES.CONTENT_MANAGER]: 'Content Manager',
[ROLES.MANAGER]: 'Manager',
[ROLES.VOLUNTEER_COORDINATOR]: 'Volunteer Coordinator',
[ROLES.CITIZEN]: 'Citizen',
};
// Campaign categories
export const CAMPAIGN_CATEGORIES = [
{ value: 'medical', label: 'Medical Aid', icon: 'πŸ₯', color: '#EC4899' },
{ value: 'community', label: 'Community Development', icon: '🏘️', color: '#3B82F6' },
{ value: 'disaster', label: 'Disaster Relief', icon: 'πŸ†˜', color: '#EF4444' },
{ value: 'animal', label: 'Animal Welfare', icon: '🐾', color: '#10B981' },
];
// Urgency levels
export const URGENCY_LEVELS = [
{ value: 'critical', label: 'Critical', color: '#EF4444' },
{ value: 'high', label: 'High', color: '#F59E0B' },
{ value: 'medium', label: 'Medium', color: '#3B82F6' },
{ value: 'low', label: 'Low', color: '#10B981' },
];
// Donation presets
export const DONATION_PRESETS = [100, 500, 1000, 2500, 5000, 10000];
// Help request statuses
export const REQUEST_STATUSES = {
SUBMITTED: 'submitted',
UNDER_REVIEW: 'under_review',
APPROVED: 'approved',
REJECTED: 'rejected',
FULFILLED: 'fulfilled',
};
// Volunteer statuses
export const VOLUNTEER_STATUSES = {
PENDING: 'pending',
APPROVED: 'approved',
ACTIVE: 'active',
INACTIVE: 'inactive',
};
// API base URL
export const API_BASE_URL = import.meta.env.VITE_API_URL || '/api';
// Razorpay public key
export const RAZORPAY_KEY_ID = import.meta.env.VITE_RAZORPAY_KEY_ID || '';
// Navigation links
export const NAV_LINKS = [
{ label: 'Home', path: '/' },
{ label: 'About', path: '/about' },
{ label: 'Our Work', path: '/our-work' },
{
label: 'Get Involved',
path: '/get-involved',
children: [
{ label: 'Donate Now', path: '/donate' },
{ label: 'Volunteer', path: '/volunteer' },
{ label: 'Request Help', path: '/help-request' },
],
},
// { label: 'Campaigns', path: '/campaigns' },
// { label: 'Media Centre', path: '/media' },
{ label: 'Contact', path: '/contact' },
];
// Social media links
export const SOCIAL_LINKS = {
facebook: 'https://facebook.com/socialshareandcare',
twitter: 'https://twitter.com/socialsharecare',
instagram: 'https://instagram.com/socialshareandcare',
linkedin: 'https://linkedin.com/company/socialshareandcare',
youtube: 'https://youtube.com/@socialshareandcare',
};
// Foundation info
export const FOUNDATION_INFO = {
name: 'Social Share and Care Foundation',
tagline: 'Small Help, Big Impact',
email: 'info@socialshareandcare.org',
phone: '+91 73541 71043 ',
address: 'New Delhi, India',
registrationNo: 'REG/2024/XXXXX',
panNumber: 'AXXXX1234X',
section80G: '80G/2024/XXXXX',
};
// Programs β€” 5 Key Pillars
export const PROGRAMS = [
{
id: 'medical',
title: 'Medical Aid',
description: 'Providing essential healthcare and aid to the sick.',
icon: 'πŸ₯',
color: '#EC4899',
stats: {},
},
{
id: 'education',
title: "Children's Education",
description: 'Empowering young minds with quality learning opportunities.',
icon: 'πŸ“š',
color: '#3B82F6',
stats: {},
},
{
id: 'animal',
title: 'Animal Care',
description: 'Ensuring welfare and protection for stray and needy animals.',
icon: '🐾',
color: '#10B981',
stats: {},
},
{
id: 'disaster',
title: 'Disaster Relief',
description: 'Delivering urgent support during crises and emergencies.',
icon: 'πŸ†˜',
color: '#EF4444',
stats: {},
},
{
id: 'elderly',
title: 'Old Age Support',
description: 'Offering dignity, care, and companionship to seniors.',
icon: 'πŸ§“',
color: '#8B5CF6',
stats: {},
},
];