A full-stack youth mental health web application with a cyber-glow dark theme. Features an AI chat interface, appointment booking, and user authentication.
- Cyber-Glow Dark Theme: Modern, sleek design with neon accents
- AI Chat Interface: Always-visible chat with AI companion
- Appointment Booking: Modal-based appointment scheduling
- User Authentication: Demo login system
- Responsive Design: Works on desktop and mobile
- Real-time Chat: Interactive AI responses
- Html
- Javascript (App.jsx)
- React 19.1.1
- Tailwind CSS 4.1.13
- Inter font family
- Node.js with Express
- CORS enabled
- In-memory storage (no database)
- RESTful API endpoints
-
Install Dependencies
npm install
-
Start the Backend Server
npm run server
The server will run on
http://localhost:5000
-
Start the Frontend (in a new terminal)
npm start
The React app will run on
http://localhost:3000
-
Or run both simultaneously
npm run dev
POST /api/chat
- Send message to AIGET /api/chat/history
- Get chat history
POST /api/appointments
- Book an appointmentGET /api/appointments
- Get all appointments
POST /api/contact
- Submit contact form
POST /api/login
- User login
GET /api/health
- Server health status
- Email: demo@aura.com
- Password: demo123
- Primary Accent: Electric Teal (#00F5D4)
- Secondary Accent: Bright Magenta (#FF00E6)
- Background: Dark Charcoal (#1A1A2E)
- Component Background: Dark Navy (#1F1F38)
- Text Primary: Off-white (#EAEAEA)
- Text Secondary: Soft Gray (#A9A9A9)
- Font Family: Inter
- Headings: Bright off-white
- Body Text: Soft gray for readability
- Fixed at top with frosted glass effect
- Aura logo with glowing teal accent
- Navigation links with hover effects
- User profile and login button
- Split-screen layout (60% hero, 40% chat)
- "Find Your Clarity. Anytime." headline
- 2x2 grid of interactive support cards
- Hover effects with glowing borders
- Always visible and docked on right
- Welcome message from AI companion
- Quick topic buttons
- Message area with user/AI message styling
- Input field with send button
- Quick topic suggestions
- Book an Appointment: Opens modal with calendar picker
- Login/Signup: Modal-based authentication
- Quick Topics: Pre-defined conversation starters
- Responsive Design: Mobile-friendly layout
The application is built as a single-file React component for simplicity, with a separate Express server for the backend. All styling uses Tailwind CSS with custom cyber-glow theme colors.
youth-mental-health/
├── src/
│ ├── SimpleApp.jsx # Main React component (EDIT THIS FILE)
│ ├── App.tsx # App wrapper
│ ├── App.css # Additional styles
│ └── App.jsx # Original complex component
├── server.js # Express backend (EDIT THIS FILE)
├── package.json # Dependencies and scripts
└── public/
└── index.html # HTML template with Inter font
File to edit: src/SimpleApp.jsx
This is the main file where you can:
- Add new widgets: Add more cards in the support cards section (around line 66)
- Change colors: Modify the cyber-glow theme colors
- Add new modals: Create new modal components for additional features
- Modify layout: Change the grid layout, spacing, or component arrangement
- Update text: Change headlines, descriptions, and button text
- Add animations: Enhance hover effects and transitions
File to edit: server.js
This is where you can:
- Add new API endpoints: Create new routes for additional features
- Modify existing endpoints: Change how chat, appointments, etc. work
- Add database integration: Replace in-memory storage with real database
- Add authentication: Implement proper user login system
- Add new features: Create endpoints for meditation, yoga, etc.
File to edit: src/App.css
For custom CSS that Tailwind can't handle:
- Custom animations: Add new keyframe animations
- Special effects: Glow effects, particle animations
- Scrollbar styling: Custom scrollbar appearance
- Font imports: Add new Google Fonts
File to edit: src/SimpleApp.jsx
Modify the Tailwind classes for responsive behavior:
- Mobile layout: Change
grid-cols-1 md:grid-cols-2 lg:grid-cols-3
- Chat interface: Adjust
lg:col-span-1
for different screen sizes - Modal sizing: Change
max-w-md
for different modal sizes
For production deployment:
- Build the React app:
npm run build
- Start the server:
npm run server
- Serve the built files from the
build
directory
The application is designed to work in a single Replit workspace with both frontend and backend running simultaneously.