Skip to content

Nanda-vrdhn/Codealpha_Task1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Nexus Translate is a premium, modern neural translation web application. Built with a sleek, glassmorphic UI design, the application provides a seamless and visually stunning layout for global and regional language translation, complete with integrated text-to-speech capabilities and smooth user interactions. https://clever-cheesecake-de6c51.netlify.app/

Glassmorphism Design Tech Stack

✨ Features

  • Premium UI/UX: Styled using modern glassmorphism design principles, complete with fluid, animated background mesh gradients (orbs).
  • Comprehensive Language Selection: Categorized into Global and Indian regional language blocks (including Hindi, Bengali, Telugu, Marathi, Tamil, and more).
  • Bidirectional Language Swapping: Swap source and target languages instantly along with their current workspace texts.
  • Dynamic Character Limiter: Real-time feedback via a 500-character counter to prevent excessive payload transmissions.
  • Native Text-to-Speech (TTS): Read text aloud in both source and target accent profiles using the native Web Speech API.
  • One-Click Clipboard Integration: Copy translations instantly to your clipboard backed by smooth global toast notifications.
  • Fully Responsive Architecture: Crafted with CSS Flexbox, Grid systems, and media queries to scale optimally from mobile viewports to ultra-wide displays.

📁 Project Structure

nexus-translate/
│
├── index.html      # Structure & categorized language configurations
├── styles.css      # Core CSS Variables, glassmorphic layers, & custom animations
└── script.js       # App workflow logic, DOM sync, clipboard, and Web Speech API
🚀 Getting Started
To get a local copy up and running, follow these simple steps:

Clone the repository:

Bash
git clone [https://github.com/your-username/nexus-translate.git](https://github.com/your-username/nexus-translate.git)
Navigate into the project directory:

Bash
cd nexus-translate
Launch the application:

Simply double-click index.html to run it inside any modern browser.

Alternatively, serve it via an extension like Live Server in VS Code.

🛠️ Code Architecture & Breakdown
1. Structure (index.html)
The document structure handles semantic hierarchy. It organizes layout contexts into custom inputs (.source-section and .target-section) separated by a persistent interactive element (.swap-container). Selection elements utilize <optgroup> semantic containers to cleanly partition international language sets from specialized locales.

2. Styling (styles.css)
Driven heavily by systematic global states defined inside custom tokens (:root). Highlights include:

Glassmorphism: Employs explicit combinations of transparent backdrops (rgba), border-edges, and backdrop-filter: blur(16px) to achieve an elegant frosted-glass dynamic.

Hardware Acceleration: Uses custom @keyframes float attached via transform: translate() offsets to animate layered ambient orbs smoothly at 60fps.

3. Logic & Behavior (script.js)
Handles high-performance DOM querying and modular event mapping:

Text Safety: Sanitizes inputs on real-time input capture events (input), slicing structural overflow at string-lengths exceeding MAX_CHARS.

Speech Synthesis: Uses browser-native execution pipes via window.speechSynthesis passing modular language codes to customize vocal syntax behavior dynamically.

📝 License
This project is open-source and available under the MIT License.


---

## Technical Description (For GitHub Repository About/Wiki)

If you wish to add a detailed architectural analysis to your GitHub repository documentation or wiki pages, use the text below:

### ⚙️ Deep-Dive Analysis of the Ecosystem

#### **1. Interface Component Synchronization**
The application architecture is structured heavily around responsive fluid columns. Under viewports larger than `768px`, the `.translator-inputs` grid switches flex configurations to allow horizontal tracking. The design preserves focus rings (`:focus-within`), which actively tint container borders upon element activation, enhancing modern accessibility requirements without depending on heavy third-party framework packages.

#### **2. Memory Optimizations and State Management**
The JavaScript layer ensures low system resource usage by maintaining direct, persistent bindings to DOM elements. When language parameters are inverted through the `.swap-btn` element:
- Values inside selection nodes are swapped directly via sequential assignments using a fast temporary pointer (`tempLang`).
- String states map immediately across inputs to prevent layout shifts.
- Character metrics update immediately to maintain exact character limits without triggering full-page redraws.

#### **3. Web API Integrity Guardrails**
The application is resilient against missing browser features:
* **Clipboard Interaction:** Uses the modern Promise-based Async Clipboard API (`navigator.clipboard.writeText`), capturing operational failures gracefully with explicit fallback blocks (`.catch()`).
* **Audio Accessibility:** Checks engine availability using runtime feature detec

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors