Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiveCodeLab 🖥️⚛️

Live Demo: https://quirky-mirzakhani-12bdf3.netlify.app/

Overview

LiveCodeLab is a lightweight in-browser code playground inspired by CodePen. It allows users to write and preview HTML, CSS, and JavaScript code in real time using React and modern web technologies.

Screenshot

Features

  • 🧠 Live Preview: Instant rendering of HTML, CSS, and JavaScript code.
  • 🎨 Syntax Highlighting: Monaco Editor integration for a smooth editing experience.
  • 🔳 Resizable Panels: Three separate panels for HTML, CSS, and JS with a live output pane.
  • 🌐 Responsive Design: Works seamlessly across devices and screen sizes.
  • ⚛️ Built with React: Uses functional components and hooks.

Tech Stack

  • React
  • Monaco Editor (via @monaco-editor/react)
  • Tailwind CSS for styling
  • Netlify for deployment

Getting Started

  1. Clone the repo:

    git clone https://github.com/harivilasp/Codepen-React.git
    cd Codepen-React
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

Folder Structure

/src
  /components
    Editor.js         # Individual code editor for HTML/CSS/JS
    Preview.js        # Live output rendering
  App.js              # Main layout combining editors and preview
  index.js            # App entry point
  styles.css          # Tailwind and global styles

Possible Improvements

  • 📝 Add local storage or cloud sync for saving code
  • 📁 Support for file-based project structure
  • 🔍 Error highlighting or console logging
  • 🧪 Unit tests for editor components

License

MIT License


Created with ❤️ by @harivilasp

About

Interactive browser-based code editor for creating and previewing live code snippets

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages