Skip to content

Banel-Mgwevu/translation-app-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Document Translator Frontend

A De Stijl-inspired frontend for the Document Translation API built with React + Vite.

Features

  • 🎨 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

Quick Start

  1. Install dependencies:

    cd doc-translate-frontend
    npm install
  2. Start the development server:

    npm run dev
  3. Open in browser:

    http://localhost:5173
    

Prerequisites

Make sure the backend API is running on http://localhost:8000:

# In the backend directory
python api.py

Design Philosophy

This 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

API Integration

The frontend connects to these API endpoints:

  • POST /upload - Upload document
  • POST /translate - Translate document
  • GET /download/{doc_id} - Download file
  • GET /documents - List all documents

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors