Spaces:
Running
Running
Ctrl+K
- 1.52 kB initial commit
- 210 Bytes MetaMeal: Dark Gradient Blue Theme (Final Version) Here's the complete implementation of your requested dark gradient blue theme with proper spacing and clean design: 1. Color Scheme & Global Styles :root { --bg: linear-gradient(180deg, #0a192f 0%, #020c1b 100%); // Dark gradient blue --bg-light: #071428; // Lighter variant --text: #88a1c5; // Soft blue-gray --text-accent: #4fb3c3; // Teal accent --primary: #64c4ed; // Light blue --secondary: #ef9f45; // Warm orange --purple: #a29bfe; // Soft purple --shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } * { box-sizing: border-box; } body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; min-height: 100vh; } .container { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; } .card { background: var(--bg-light); border-radius: 12px; padding: 2.5rem 3rem; margin-bottom: 2.5rem; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; &:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); } } .section { margin-bottom: 4rem; } 2. Key Features Tab (With Gradient Background) function KeyFeatures() { const features = [ { icon: 'π₯', title: 'Smart Meal Tracking', desc: 'Log meals with AI-powered nutrition detection' }, { icon: 'π', title: 'Progress Analytics', desc: 'Visualize your health journey with detailed charts' }, { icon: 'π€', title: 'AI Meal Assistant', desc: 'Get personalized nutrition recommendations' }, { icon: 'π±', title: 'Cross-Platform Sync', desc: 'Access your data seamlessly across devices' }, { icon: 'π', title: 'Privacy First', desc: 'All data encrypted and securely stored' }, { icon: 'β', title: 'Custom Tracking', desc: 'Add your own recipes and custom foods' } ]; return ( <section className="section features-section"> <div className="gradient-container"> <h2 className="text-center">Why MetaMeal?</h2> <p className="text-center text-muted">Complete your health journey with these powerful features</p> <div className="features-grid"> {features.map((feature, i) => ( <div key={i} className="feature-card card"> <div className="feature-icon">{feature.icon}</div> <h3>{feature.title}</h3> <p>{feature.desc}</p> </div> ))} </div> </div> </section> ); } .features-section { .gradient-container { background: var(--bg); border-radius: 12px; padding: 3rem; margin: 0 -1.5rem; // Overflows container for full width effect box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3); @media (max-width: 768px) { padding: 2rem; } } } .feature-card { margin-bottom: 2rem; padding: 2rem; .feature-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; } h3 { color: var(--text-accent); font-size: 1.5rem; margin-bottom: 1rem; } p { color: var(--text); font-size: 1rem; } } 3. Meal Prep Image Section (Only Visual Element) function MealPrepSection() { return ( <section className="section"> <div className="meal-prep-container"> <img src="meal-prep-example.jpg" alt="Healthy meal prep" className="meal-prep-image" /> </div> <div className="meal-prep-content"> <h2>Meal Prep Made Easy</h2> <p className="text-muted">Our AI helps you plan and track your weekly meal prep</p> </div> </section> ); } .meal-prep-container { position: relative; padding: 3rem 0; margin: 0 -1.5rem; // Full width &:before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(2, 10, 26, 0.7); border-radius: 8px; z-index: 1; } } .meal-prep-image { width: 100%; border-radius: 8px; display: block; margin: 0 auto; } .meal-prep-content { position: relative; z-index: 2; text-align: center; padding: 1rem; h2 { color: var(--primary); font-size: 2.5rem; margin-bottom: 0.5rem; } } 4. Complete Dashboard Example function Dashboard() { return ( <div className="dashboard container"> <h1 className="text-center">Welcome Back!</h1> <div className="dashboard-cards"> <div className="card"> <h3>Daily Progress</h3> <p>Track your calorie intake and macros</p> <div className="progress-ring" style={{width: '100px', height: '100px'}}> <svg viewBox="0 0 100 100"> <circle cx="50" cy="50" r="45" /> <circle cx="50" cy="50" r="45" /> </svg> </div> </div> <div className="card"> <h3>Weekly Summary</h3> <p>See your overall progress</p> <LineChart data={weeklyData} /> </div> </div> </div> ); } 5. Key Visual Improvements: Gradient Background: Smooth transition between #0a192f and #020c1b Used consistently throughout the app Spacing System: 2.5rem padding for cards 2.5rem margin between cards 4rem spacing between sections Visual Hierarchy: Soft blue-gray text for readability Teal accents for important elements Warm orange for calls to action Modern Elements: Subtle animations on hover Clean card-based layout Only one image (meal prep) Would you like me to: Adjust the gradient colors? Modify any spacing values? Add any specific functionality? - Initial Deployment
- 36.3 kB Next Steps to Keep It Perfect: Add this to your CSS reset to prevent future black backgrounds: * { background-color: transparent !important; } Create a color guard in your codebase to block black usage: // ESLint rule to block #000000 "no-black": ["error", { "props": "always" }] Document your theme so your team knows: // Approved colors $approved: ( "bg-gradient": "linear-gradient(180deg, #0a214a, #030d1a)", "text": "#88a1c5", // ... ); - Follow Up Deployment
- 775 Bytes Create style.css