A beautiful web application for creating, designing, and sharing shayaris and poetry with stunning visual backgrounds and customizable text styling.
🌐 Live Demo: versecraft.pages.dev
- Multiple Themes: Default, Romantic, Sad, Motivational
- Background Selection: Unique backgrounds for each theme
- Font Customization: Fonts like Dancing Script, Great Vibes, Parisienne, Arial
- Text Formatting: Bold, italic, and underline support
- Color Picker: 8 text colors with gradient previews
- Text Positioning: Fine-tune text placement with arrow controls
- Real-time Preview: Instantly see your changes
- Auto-save: Drafts saved automatically
- Responsive Design: Works on desktop, tablet, and mobile
- Dark/Light Mode: Easy theme toggle
- Emoji Support: Add emojis with an integrated picker
- Local Storage: Creations saved in browser
- Search & Filter: Find shayaris by text, theme, or tags
- Recent Items: Quick access to latest work
- Copy Functionality: Copy one or multiple shayaris
- Image Generation: Download as 1080x1920 high-quality images
- Social Sharing: Share to Facebook, Twitter, WhatsApp, Instagram
- Text-to-Speech: Listen to your shayaris aloud
- Copy to Clipboard: Share text easily anywhere
- Create: Type your shayari in the text area
- Customize:
- Select a theme matching your mood
- Pick a background image
- Choose fonts, colors, and formatting
- Adjust text position if needed
- Preview: Watch your creation in real time
- Save: Store your shayari in the collection
- Share: Download as image, share on social media, or copy text
- HTML5: Semantic markup
- CSS3: Gradients, animations, responsive design
- JavaScript (ES6+): localStorage API & modern DOM
- Bootstrap 5: Responsive grid and components
- html2canvas: Client-side image generation
- Emoji Picker: Integrated emoji selection
- Image Generation: Server-side high-quality rendering
- Background Management: Multiple theme-based backgrounds
- Font Handling: Custom fonts with proper rendering
- Persistence Storage: SQLite for storing shayaris
- API Endpoints: RESTful operations
- CORS Handling: Secure communication between frontend & backend
- Unsplash: High-quality backgrounds
- Google Fonts: Typography options
- Web Speech API: Text-to-speech
GET /api/backgrounds→ Available backgrounds by themeGET /api/fonts→ Available fontsGET /api/posts→ All posts with optional filtersPOST /api/posts→ Add a new postGET /api/search→ Search posts with filtersPOST /api/generate-image→ Generate and download image
- Add images to
backgrounds/ - Update
get_available_backgrounds()inapp.py - Add CSS rules for new themes in
style.css
- Add font files to
fonts/ - Update
get_available_fonts()inapp.py - Add font classes in
style.css
- Edit CSS custom properties in
:rootand[data-theme="dark"]sections
- High-Quality Rendering: Consistent images across devices
- Advanced Text Processing: Handles wrapping, fonts, shadows
- Background Management: Dynamic theme-based assets
- Persistence: Database storage with search & filters
- CORS Support: Secure cross-origin requests
git clone https://github.com/your-username/verse-craft.git cd verse-craft
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt python app.py
python -m http.server 8000
- Unsplash → Background images
- Google Fonts → Typography
- Font Awesome → Icons
- Emoji Picker Element → Emoji integration