Commit Graph

7 Commits

Author SHA1 Message Date
ske087
187254beca feat: Add interactive map functionality with Leaflet.js
- Implemented interactive map card with expand functionality
- Added Leaflet.js integration with OpenStreetMap tiles
- Created expandable map modal (80% screen coverage)
- Fixed cover image display on community page
- Enhanced post detail page with interactive route visualization
- Added proper error handling and fallback content
- Cleaned up JavaScript structure and removed duplicate code
- Updated community index template to use cover images
- Added GPX file processing utilities
- Fixed indentation error in run.py

Map features:
- Country-level positioning (Romania default)
- Zoom controls and interactive navigation
- Test marker with popup functionality
- Expandable full-screen view with X button
- Clean console logging for debugging
- Responsive design with Tailwind CSS styling
2025-07-24 21:36:42 +03:00
ske087
58e5d1b83d feat: Improve adventure story text parsing and keyword extraction
Text Processing Improvements:
- Better separation of keywords from actual story text
- Extract standalone keywords before <br><br> patterns
- Remove keywords from main text display to show only story content
- Handle both **keyword** patterns and standalone keyword lines
- Clean up multiple <br> tags for better formatting

User Experience:
- Keywords now display as tags above story sections
- Story text shows only the narrative content without keyword clutter
- Example: 'Transalpina Ciungetu Stana lui stefan <br><br> Așa am pornit...'
  now shows keywords as tags and only 'Așa am pornit...' as story text
- Better visual separation between metadata and story content

Technical:
- Improved Jinja2 template logic for text parsing
- Added text length and word count heuristics for keyword detection
- Enhanced text cleaning and formatting
- Fixed template syntax errors from previous edits
2025-07-24 19:06:21 +03:00
ske087
f9fcec83d5 fix: Resolve template syntax error in post detail page
- Fix Jinja2 template syntax error on line 180
- Remove duplicate closing div tags that caused template compilation failure
- Clean up HTML structure for proper blog-style layout
- Add test media files for verifying multiple image upload functionality

Blog Layout Features:
- Sequential sections with keywords, text, and images
- Compact photo gallery in sidebar
- Proper section separation with visual hierarchy
- Keywords extracted from **bold** text displayed as tags
- Continuous narrative flow for better storytelling

Technical Fix:
- Resolved 'Encountered unknown tag endif' Jinja2 error
- Fixed mismatched block structure in template
- Ensured proper template compilation and rendering
2025-07-24 17:56:37 +03:00
ske087
d5c8ec1dc2 feat: Redesign post detail page as blog-style adventure story
Major UI/UX improvements for better storytelling:

Story Layout:
- Convert adventure story into blog-style sequential sections
- Extract keywords from **bold** text and display as highlight tags
- Show sections with keywords → text → images flow
- Create continuous narrative experience with section separators

Photo Gallery Enhancement:
- Move photo gallery to compact sidebar widget
- Reduce gallery size to focus attention on story
- Show 2x2 grid with hover effects and cover indicators
- Add 'click to view gallery' hint for better UX

Features:
- Parse content sections separated by double newlines
- Extract **keyword** patterns as section highlights
- Distribute section images across story sections
- Maintain image modal functionality
- Clean, readable typography with proper spacing
- Visual hierarchy that guides reader through adventure

This creates a much more engaging blog-post experience where the story takes center stage and images support the narrative rather than competing for attention.
2025-07-24 17:52:01 +03:00
ske087
73b90eafbc fix: Multiple images not saving in new post creation
Problem:
- Only cover image was being saved when creating posts
- Section images were shown in preview but not sent to backend
- File inputs were not preserved after section saving

Solution:
- Store section files in global JavaScript storage
- Send all section images in FormData during form submission
- Update backend to process section_image_* files
- Add is_cover flag distinction between cover and section images
- Preserve file references throughout the editing process

Features:
- Multiple images per post section now work correctly
- Cover image marked with is_cover=True
- Section images marked with is_cover=False
- Proper file cleanup when images are removed
- Enhanced logging for debugging image uploads
2025-07-24 16:03:38 +03:00
ske087
60ef02ced9 Major UI/UX redesign and feature enhancements
🎨 Complete Tailwind CSS conversion
- Redesigned post detail page with modern gradient backgrounds
- Updated profile page with consistent design language
- Converted from Bootstrap to Tailwind CSS throughout

 New Features & Improvements
- Enhanced community post management system
- Added admin panel with analytics dashboard
- Improved post creation and editing workflows
- Interactive GPS map integration with Leaflet.js
- Photo gallery with modal view and hover effects
- Adventure statistics and metadata display
- Like system and community engagement features

🔧 Technical Improvements
- Fixed template syntax errors and CSRF token issues
- Updated database models and relationships
- Enhanced media file management
- Improved responsive design patterns
- Added proper error handling and validation

📱 Mobile-First Design
- Responsive grid layouts
- Touch-friendly interactions
- Optimized for all screen sizes
- Modern card-based UI components

🏍️ Adventure Platform Features
- GPS track visualization and statistics
- Photo uploads with thumbnail generation
- GPX file downloads for registered users
- Community comments and discussions
- Post approval workflow for admins
- Difficulty rating system with star indicators
2025-07-24 02:44:25 +03:00
ske087
6a0548b880 Final cleanup: Complete Flask motorcycle adventure app
- Removed all Node.js/Next.js dependencies and files
- Cleaned up project structure to contain only Flask application
- Updated .gitignore to exclude Python cache files, virtual environments, and development artifacts
- Complete motorcycle adventure community website with:
  * Interactive Romania map with GPX route plotting
  * Advanced post creation with cover images, sections, highlights
  * User authentication and authorization system
  * Community features with likes and comments
  * Responsive design with blue-purple-teal gradient theme
  * Docker and production deployment configuration
  * SQLite database with proper models and relationships
  * Image and GPX file upload handling
  * Modern UI with improved form layouts and visual feedback

Technical stack:
- Flask 3.0.0 with SQLAlchemy, Flask-Login, Flask-Mail, Flask-WTF
- Jinja2 templates with Tailwind CSS styling
- Leaflet.js for interactive mapping
- PostgreSQL/SQLite database support
- Docker containerization with Nginx reverse proxy
- Gunicorn WSGI server for production

Project is now production-ready Flask application focused on motorcycle adventure sharing in Romania.
2025-07-23 17:20:52 +03:00