Skip to content

A responsive React Lorem Ipsum generator with multiple output formats. Perfect for developers needing placeholder text for prototyping and testing. Features paragraph, sentence, and word generation with copy-to-clipboard functionality.

License

Notifications You must be signed in to change notification settings

pro804/Lorem-Ipsum-Text-Generator

Repository files navigation

React Lorem Ipsum Text Generator ⚡

React Vite Netlify JavaScript

A responsive React application for generating customizable Lorem Ipsum placeholder text. Perfect for developers and designers who need quick dummy text for prototyping and testing applications. Built to practice React state management, component architecture, and modern CSS techniques.

🚀 Live Demo

View Live on Netlify:
Lorem Ipsum Text Generator Demo

🎯 Problem This App Solves:

  • Provides instant access to customizable placeholder text for development
  • Eliminates the need to search for external Lorem Ipsum generators
  • Offers multiple text formats for different testing scenarios
  • Includes one-click copy functionality for seamless workflow integration
  • Saves valuable time during development and design prototyping phases

👥 Perfect For:

  • Frontend developers needing placeholder content
  • UI/UX designers creating mockups and prototypes
  • Quality assurance testers generating test data
  • Anyone requiring quick text content for application testing

✨ Features

  • Multiple Text Formats - Generate paragraphs, sentences, or individual words
  • Customizable Quantity - Dynamic input limits (1-9 paragraphs, 1-30 sentences/words)
  • Copy to Clipboard - One-click copying with visual feedback animations
  • Responsive Design - Optimized for all screen sizes and devices
  • Loading States - Visual feedback during text generation
  • Clean UI - Modern, accessible interface with smooth transitions
  • Type-Specific Formatting - Proper punctuation and formatting for each text type

📸 Project Preview

💻 Desktop View
Desktop View showing Lorem Ipsum generator
Desktop interface with form controls and generated text
📱 Mobile View
Mobile View showing responsive design
Mobile responsive view with optimized form controls

🛠️ Built With

Tool / Library Purpose
Vite Fast build tool & dev server
⚛️ React 19 Component-based UI
🔑 Nanoid Unique ID generation
🎨 CSS3 Flexbox, Grid, animations
📋 Clipboard API Copy functionality
📜 JavaScript ES6+ Modern language features

💡 Implemented Concepts

State Management

  • useState Hook - Managing count, text type, loading states, and UI states
  • useEffect Hook - Side effects for cleaning text when changing types
  • Custom Hooks Pattern - Organized state logic for maintainability

Component Architecture

  • Modular Components - Separated Form and CopyButton components
  • Component Communication - Effective parent-child communication through props
  • Conditional Rendering - Dynamic UI based on application state
  • Reusable Utilities - Separate text generation logic in utils folder

User Experience

  • Form Validation - Input constraints and error prevention
  • Visual Feedback - Animations and state indicators
  • Accessibility - ARIA labels, keyboard navigation, and semantic HTML
  • Performance - Optimized rendering with proper keys and efficient updates

🎨 Design & Project Extensions

Original Design Scope:
Basic paragraph generator based on course Figma design specifications. Figma design provided by the course instructor. View Original Figma Design

My Extensions & Enhancements:

  • Multi-format Generation - Added sentences and word generation options
  • Enhanced Functionality - Implemented copy-to-clipboard feature with visual feedback
  • Advanced State Management - Complex state logic handling multiple text types and UI states
  • Additional UI Components - Custom form controls and interactive elements
  • Animation System - CSS animations and transitions for improved user experience
  • Responsive Improvements - Enhanced mobile experience beyond original design

📦 Project Structure

src/
├── components/
│   ├── Form.jsx
│   └── CopyTextButton.jsx
├── utils/
│   └── textGenerators.js
├── data.js
├── App.jsx
└── index.css

🚀 Getting Started

Prerequisites

  • Node.js ≥ 18.0.0
  • npm or yarn package manager

Installation

  1. Clone the repository
git clone https://github.com/pro804/Lorem-Ipsum-Text-Generator.git
  1. Navigate to the project directory
cd Lorem-Ipsum-Text-Generator
  1. Install dependencies
npm install
  1. Start the development server
npm run dev
  1. Open http://localhost:5173 to view it in the browser.

🔧 Available Scripts

  • npm run dev — Runs the development server (Vite)
  • npm run build — Builds the app for production
  • npm run preview — Previews the production build locally

📄 License

This project was created for educational purposes as part of a React learning journey. The original design was provided by course materials, with extensions and enhancements implemented independently.

This project is licensed under the MIT License.See the LICENSE file for details.

About

A responsive React Lorem Ipsum generator with multiple output formats. Perfect for developers needing placeholder text for prototyping and testing. Features paragraph, sentence, and word generation with copy-to-clipboard functionality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published