mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
6.8 KiB
6.8 KiB
⚡ Elementor-Style Editor - Quick Start
🎯 What You Need to Know
This is a visual page builder similar to WordPress Elementor. Edit your homepage visually by clicking elements and changing their styles - no coding needed!
🚀 5-Minute Setup
Step 1: Database Migration
# Run this once to create the database table
make migrate-up
Step 2: Restart Backend
# Restart your Go server
go run main.go
Step 3: Access Editor
- Login as admin
- Go to homepage
- Look for purple edit button (bottom-left corner)
- Click it - elements light up with badges!
💡 Quick Tour
The Interface
Top Bar: Navbar (logout, etc.)
Left Side (Floating Panel): Right Side (Settings Drawer):
┌──────────┐ ┌────────────────────────┐
│ 👁️/✏️ │ Toggle Edit Mode │ 🔍 Search Elements │
│ ⚙️ │ Open Settings ←───→ │ 📋 Elements List │
│ ↶ │ Undo │ ⚙️ Settings │
│ ↷ │ Redo │ 💾 Save Button │
│ 🖥️ │ Device View │ 📤 Export/Import │
│ 💾 │ Save Changes └────────────────────────┘
└──────────┘
Main Area: Your homepage with blue dashed borders around editable sections
Element Badges
When edit mode is ON, hover over any section and you'll see:
┌──────────────────────────┐
│ header │ ← Click this badge
└──────────────────────────┘
📝 Editing Workflow
Method 1: Click Badges (Fastest!)
- Turn on edit mode (purple button)
- Hover over any section (header, hero, news...)
- Click the element name badge that appears
- Choose a different variant from dropdown
- Repeat for other elements
- Click green save button
Method 2: Use Settings Panel
- Click gear icon (⚙️) in left panel
- Search or browse for element
- Expand accordion item
- Select variant from dropdown
- Click save when done
🎨 Available Customizations
Header (Top Logo Area)
- Unified - Classic horizontal layout
- Edge - Modern gradient centered
- Minimal - Simple centered
- Modern - Bold with accent colors
Hero (Main Feature Section)
- Grid - 3 news cards (1 big + 2 small)
- Swiper - Carousel slider
- Swiper Full - Full-width carousel
- Edge - Dramatic full-screen
News (Article Listings)
- Grid - Card grid
- Scroller - Horizontal scroll
- List - Vertical list
- Magazine - Magazine style
Matches (Fixture Display)
- Compact - Minimal cards
- Expanded - Detailed info
- Timeline - Timeline view
Sponsors (Logo Display)
- Grid - Title sponsor + grid
- Slider - Auto-scrolling
- Scroller - Horizontal scroll
- Pyramid - Tiered layout
⌨️ Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Undo | Ctrl/Cmd + Z |
| Redo | Ctrl/Cmd + Y |
| Save | Ctrl/Cmd + S |
| Close Drawer | Esc |
💾 Saving Your Work
The Save Button Turns Green When:
- ✅ You've made changes
- ✅ You're ready to save
What Happens When You Save:
- All changes batch save to database
- Success message appears
- Configs are stored permanently
Note: Some changes need a page refresh to fully appear. The editor will show this.
📱 Device Preview
Test how your changes look on different devices:
- Click monitor icon (🖥️) in left panel
- Choose Desktop / Tablet / Mobile
- View how elements adapt
- Dark overlay appears to simulate device width
💡 Pro Tips
Tip 1: Experiment Freely
- Use Undo/Redo liberally
- Try different variants
- You can always go back
Tip 2: Export Before Major Changes
- Click Export button
- Save the JSON file
- You have a backup!
Tip 3: Check All Devices
- Desktop looks good?
- Check tablet view
- Check mobile view
- Then save!
Tip 4: Batch Your Changes
- Edit multiple elements
- Preview them together
- Save once for all
Tip 5: Use Element Badges
- Faster than settings panel
- Click badge → change → done
- No scrolling needed
🐛 Troubleshooting
"I don't see the purple button"
- ✅ Are you logged in as admin?
- ✅ Are you on the homepage?
- ✅ Check bottom-left corner
- ✅ Try refreshing the page
"Elements don't highlight"
- ✅ Is edit mode turned ON?
- ✅ Purple button should be pressed
- ✅ Try toggling it off and on
"Changes don't save"
- ✅ Check browser console (F12)
- ✅ Are you still logged in?
- ✅ Try exporting as backup first
- ✅ Save one element at a time
"Can't find an element"
- ✅ Use the search bar
- ✅ Check different page styles
- ✅ Some elements appear conditionally
🎓 Learning Path
Beginner (Day 1)
- Turn on edit mode
- Click one element badge
- Try 2-3 different variants
- Pick your favorite
- Save!
Intermediate (Week 1)
- Edit all 5 main elements
- Try device preview
- Export your config
- Experiment and restore
Advanced (Month 1)
- Create multiple templates
- Test different combinations
- Share templates with team
- Understand variant purposes
📚 Next Steps
After mastering the basics:
- Read
ELEMENTOR_STYLE_EDITOR.mdfor full details - Explore advanced features (history, templates)
- Create custom variant combinations
- Share your best templates
🎉 Popular Configurations
Modern Sports Club
Header: Modern
Hero: Swiper Full
News: Grid
Matches: Expanded
Sponsors: Slider
Classic Traditional Club
Header: Unified
Hero: Grid
News: List
Matches: Compact
Sponsors: Grid
Bold Contemporary
Header: Edge
Hero: Edge
News: Magazine
Matches: Timeline
Sponsors: Pyramid
Minimalist Clean
Header: Minimal
Hero: Swiper
News: Scroller
Matches: Compact
Sponsors: Scroller
✅ Checklist for First Edit
- Database migrated
- Backend restarted
- Logged in as admin
- On homepage
- Edit mode ON (purple button)
- Elements show badges
- Clicked a badge
- Selected new variant
- Clicked save
- Saw success message
- Changes applied!
🆘 Need Help?
- Read:
ELEMENTOR_STYLE_EDITOR.md(detailed docs) - Check: Browser console for errors (F12)
- Test: Try in Chrome/Firefox
- Verify: Database table
page_element_configsexists - Export: Always backup before asking for help
Remember: This is like Elementor but for your football club website. Click, change, save - it's that simple!
Have fun building! ⚽🎨