Find expert-crafted Development prompts for Midjourney to get better results from the AI.
Magoshi-SM-PMA prod by(power-tu.com)https://ai.studio/apps/a95ec2f8-c7e2-4098-8a96-634f7e6c1761?fullscreenApplet=true import React, { useState, useEffect, useRef } from 'react'; import { Home, Newspaper, Users, Landmark, FileText, Calendar, MessageSquare, Settings, Plus, Search, Image as ImageIcon, Video, ThumbsUp, MessageCircle, Bot, Shield, BarChart3, AlertTriangle, FileCode, Sparkles, ChevronDown, Send, X, Zap, UserPlus, ClipboardList, Mic, User, Upload, CheckCircle } from 'lucide-react'; import { motion, AnimatePresence } from 'framer-motion'; const API_KEY = ""; // User provides key const API_URL = `https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:generateContent?key=${API_KEY}`; const SYSTEM_PROMPT = `You are the AI Political Aide for the Magoshi Swaranang Movement (MSM). Your persona is professional, patriotic, strategic, and community-focused. You advise on political strategy, policy development, community engagement, and governance. Always prioritize the MSM values of integrity, service, and grassroots empowerment. You are the Swaranang Envoy - wearing green, yellow, and black colors of the movement. You provide real-time news on South African government and local community updates.`; export default function App() { const [activeTab, setActiveTab] = useState('Feed'); const [userRole, setUserRole] = useState('Admin'); // 'Member' or 'Admin' const [isAiOpen, setIsAiOpen] = useState(true); return ( <div className="min-h-screen bg-[#121212] text-white flex font-sans overflow-hidden"> <aside className="w-64 bg-[#1E1E1E] border-r border-gray-800 p-6 hidden md:flex flex-col"> <div className="text-2xl font-black text-[#00A651] mb-10 flex items-center gap-2">MSM <span className="text-[#FFC107]">PMAS</span></div> <nav className="space-y-4 flex-1"> {['Dashboard', 'Feed', 'Policy Hub', 'Issue Reporting', 'Communications'].map(item => ( <button key={item} onClick={() => setActiveTab(item)} className={`w-full flex items-center gap-3 p-3 rounded-lg transition-all ${activeTab === item ? 'bg-[#00A651]/20 text-[#00A651] border border-[#00A651]/30' : 'hover:bg-gray-800'}`}> {item === 'Dashboard' && <Home size={20}/>} {item === 'Feed' && <Newspaper size={20}/>} {item === 'Policy Hub' && <FileCode size={20}/>} {item === 'Issue Reporting' && <AlertTriangle size={20}/>} {item === 'Communications' && <MessageSquare size={20}/>} {item} </button> ))} </nav> <div className="bg-[#121212] p-4 rounded-xl border border-gray-800"> <p className="text-xs text-gray-400 mb-2">Account Role</p> <select value={userRole} onChange={(e) => setUserRole(e.target.value)} className="w-full bg-black border border-gray-700 p-2 rounded text-sm"> <option>Admin</option> <option>Member</option> </select> </div> </aside> <main className="flex-1 overflow-y-auto"> <header className="p-6 border-b border-gray-800 flex justify-between items-center bg-[#121212]/80 backdrop-blur-md sticky top-0 z-20"> <h1 className="text-xl font-bold text-[#00A651]">{activeTab}</h1> </header> <div className="p-6 max-w-4xl mx-auto"> {activeTab === 'Feed' && <CommunityFeed userRole={userRole} />} {activeTab !== 'Feed' && <div className="text-center text-gray-500 pt-20">Module: {activeTab} (Available in Full Deployment)</div>} </div> </main> <FloatingAIAgent /> </div> ); } const FloatingAIAgent = () => { const [response, setResponse] = useState("Greetings! I am your Swaranang Envoy. Ask me about SA News or Movement strategy!"); const [loading, setLoading] = useState(false); const fetchAI = async (prompt) => { setLoading(true); try { const response = await fetch(API_URL, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ contents: [{ parts: [{ text: `${SYSTEM_PROMPT}\nRequest: ${prompt}` }] }], tools: [{ google_search: {} }]