STEMBlock.ai Mockups - Setup Instructions
Quick Start Guide
Follow these steps to view the interactive HTML/React mockups in your browser.
Step 1: Check Prerequisites
Ensure you have Node.js installed:
node --version
Required: Node.js 18.x or higher
If you don't have Node.js installed:
- Mac:
brew install node - Windows: Download from nodejs.org
- Linux:
sudo apt install nodejs npm
Step 2: Navigate to Mockups Directory
cd .temp/mockups
Step 3: Install Dependencies
npm install
This will install:
- Next.js 14
- React 18
- Tailwind CSS
- TypeScript
- Other required dependencies
Note: First installation may take 2-3 minutes.
Step 4: Start Development Server
npm run dev
You should see output like:
- Local: http://localhost:3000
- Ready in 2.5s
Step 5: Open in Browser
Navigate to: http://localhost:3000
You'll see the home page with links to all mockups organized by user role.
What You'll See
Home Page (/)
Central navigation hub with links to:
- 📘 Student Views (young & teen dashboards, assessments, etc.)
- 👨👩👧 Parent Views (dashboard, reports)
- 👨🏫 Coach Views (class management, reviews)
- 🎨 Component Library (all UI components)
Student Mockups
Dashboard for Young Students (6-10 years)
- Bright, colorful design
- Large buttons and text
- Gamification elements (stars, badges)
- Encouraging language
- URL:
/student/dashboard-young
Dashboard for Teens (15-18 years)
- Professional interface
- Data analytics
- Clean, modern design
- Technical language
- URL:
/student/dashboard-teen
Parent Mockups
Parent Dashboard
- Multi-child selector
- Plain-language summaries
- "What This Means" explanations
- Simple visualizations
- URL:
/parent/dashboard
Coach Mockups
Coach Dashboard
- Class performance matrix
- At-risk student alerts
- Pending submissions
- Quick actions
- URL:
/coach/dashboard
Component Library
UI Components Showcase
- All buttons, cards, forms
- Color palette
- Typography examples
- Interactive examples
- URL:
/components
Viewing on Mobile
Method 1: Same Device
- Start the dev server:
npm run dev - Resize your browser to mobile width
- Inspect with browser DevTools (Cmd+Option+I / F12)
- Toggle device toolbar
Method 2: Different Device
-
Find your local IP:
# Mac/Linux
ifconfig | grep "inet "
# Windows
ipconfig -
Start dev server:
npm run dev -
On mobile, navigate to:
http://YOUR_IP:3000
# Example: http://192.168.1.10:3000
Keyboard Shortcuts
While viewing mockups:
- Cmd+R / F5: Refresh page
- Cmd+Shift+I / F12: Open DevTools
- Cmd+Option+J / Ctrl+Shift+J: Open Console
- Tab: Navigate between interactive elements
Stopping the Server
Press Ctrl+C in the terminal where the server is running.
Troubleshooting
Problem: Port 3000 Already in Use
Solution: Use a different port:
npx next dev -p 3001
Then navigate to http://localhost:3001
Problem: "Cannot find module"
Solution: Reinstall dependencies:
rm -rf node_modules package-lock.json
npm install
Problem: Styles Not Appearing
Solution:
- Stop the server (Ctrl+C)
- Delete
.nextfolder:rm -rf .next - Restart:
npm run dev
Problem: TypeScript Errors
Solution: Ensure Node.js version is 18.x or higher:
node --version
Update if necessary.
Tips for Best Experience
1. Use Chrome or Firefox
Best developer tools and CSS support.
2. Test Responsive Design
- Use browser DevTools device toolbar
- Test on actual mobile devices
- Check tablet sizes (768px width)
3. Take Screenshots
For documentation or presentations:
- Use browser's built-in screenshot tool
- Or DevTools: Cmd+Shift+P → "Capture screenshot"
4. Check Accessibility
- Enable screen reader
- Navigate with keyboard only (Tab key)
- Test color contrast
5. Compare Against Specs
Reference documents in .temp/:
ui-ux-specification.mddesign-system.mdwireframe-descriptions.md
Making Changes
Edit Components
- Open
/components/ui.tsx - Modify component code
- Save file
- Changes appear automatically (hot reload)
Change Colors
- Open
tailwind.config.js - Edit color values in
theme.extend.colors - Save file
- Refresh browser
Add New Pages
- Create folder in
app/, e.g.,app/new-page/ - Add
page.tsxfile - Import components:
import \{ Card \} from '@/components/ui' - Add link from home page
Sharing Mockups
Method 1: Screenshots
Take screenshots of each page and share as images.
Method 2: Screen Recording
Record a walkthrough video showing navigation.
Method 3: Deploy Online
Deploy to Vercel (free):
npm install -g vercel
vercel
Follow prompts to deploy and get a public URL.
Method 4: Share Locally
Run on one computer and share local network URL with team.
Additional Resources
Documentation
- Main README:
/mockups/README.md - Design Specs:
/.temp/ui-ux-specification.md - Component Docs:
/.temp/design-system.md - Wireframes:
/.temp/wireframe-descriptions.md
Technology Docs
Next Steps
For Designers
- ✅ View all mockups in browser
- ✅ Take screenshots for Figma reference
- ✅ Test responsive behavior
- ✅ Validate color choices
- ✅ Share with stakeholders
For Developers
- ✅ Review component structure
- ✅ Extract Tailwind patterns
- ✅ Study TypeScript interfaces
- ✅ Test accessibility
- ✅ Plan implementation
For Product Team
- ✅ Conduct user testing
- ✅ Gather feedback
- ✅ Validate navigation
- ✅ Test language clarity
- ✅ Approve for development
Questions?
- Check
README.mdin/mockups/directory - Review design documentation in
.temp/ - Inspect component code in
/components/ui.tsx - Test in browser DevTools
Happy exploring! 🚀
These mockups represent the complete STEMBlock.ai design system, ready for implementation.