A De Stijl-inspired frontend for the Document Translation API built with React + Vite.
- 🎨 De Stijl design aesthetic (primary colors, geometric shapes, bold lines)
- 📄 Upload DOCX documents
- 🌐 Select source and target languages
- 📥 Download translated documents
- 📊 Real-time document status tracking
- 📱 Responsive design
-
Install dependencies:
cd doc-translate-frontend npm install -
Start the development server:
npm run dev
-
Open in browser:
http://localhost:5173
Make sure the backend API is running on http://localhost:8000:
# In the backend directory
python api.pyThis frontend is inspired by De Stijl (Dutch for "The Style"), an art movement founded by Piet Mondrian:
- Primary Colors: Red (#E01E1E), Blue (#0056A8), Yellow (#FFC800)
- Neutral Colors: Black and White
- Grid-based Layout: Strong horizontal and vertical lines
- Geometric Shapes: Rectangles and squares
- Typography: Bold, uppercase, sans-serif fonts
- Asymmetric Balance: Dynamic composition
The frontend connects to these API endpoints:
POST /upload- Upload documentPOST /translate- Translate documentGET /download/{doc_id}- Download fileGET /documents- List all documents
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)