Coder Social home page Coder Social logo

zocket-assignment's Introduction

Canvas Editor

This project is a simple canvas editor implemented with vanilla HTML Canvas and React. It allows users to select an image, place it within a mask on the canvas, and customize the caption text, call to action (CTA), and background color of the template. Screenshot 2024-04-22 124139

Features

  • Select and upload an image to be placed within a mask on the canvas.
  • Customize the caption text with options for font size, alignment, and maximum characters per line.
  • Customize the call to action (CTA) text with options for font size, text color, and background color.
  • Change the background color of the canvas template.
  • Clean and user-friendly UI, with consistent design elements.

Implementation Details

  • The canvas functionality is implemented using Classes and Object-Oriented Programming (OOP) concepts.
  • Uses React functional components for UI rendering.
  • Uses vanilla HTML Canvas for drawing graphics and text on the canvas.
  • Utilizes Tailwind CSS for styling, but can be customized with any UI library of choice.
  • Avoids the use of external libraries like fabric.js, implementing all functionality from scratch.

Template Data

The template data provided includes information about the caption, CTA, image mask, and URLs for resources like the mask image, mask stroke, and design patterns.

Usage

To use the canvas editor, follow these steps:

  1. Clone the repository to your local machine.
  2. Install dependencies using npm install.
  3. Run the application with npm start.
  4. Upload an image, customize the caption and CTA text, and adjust the background color as desired.

zocket-assignment's People

Contributors

vishvendratomar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.