Giter VIP home page Giter VIP logo

papercups-widget's Introduction

Papercups Chat Widget Responsiveness Enhancement

This project focuses on enhancing the responsiveness of the Papercups chat widget for usage in different viewport sizes, particularly on mobile devices. Below is the documentation outlining the changes made and instructions on how to deploy the improved widget.

Changes Made

Widget Component

  • Updated the Widget component to dynamically adjust its appearance based on the viewport size.
  • Implemented functionality to detect whether the viewport is on a mobile device or not.
  • Applied custom styles to ensure optimal display on mobile devices, maximizing viewport space.

Responsive Design

  • Utilized custom css styles and viewport-based units to adapt the chat widget's dimensions and layout for various screen sizes.
  • Ensured that the chat widget remains functional and visually appealing across different devices, including smartphones and tablets.

Deployment Instructions

To deploy the improved Papercups chat widget with responsiveness enhancements, follow these steps:

  1. Clone the Repository: Clone the repository containing the project files to your local machine.

  2. Install Dependencies: Navigate to the project directory and install the required dependencies by running the following command:

   npm install
  1. Configuration: Update the Widget component with your Papercups API token and inbox ID. You can find these details in your Papercups dashboard or provide them as environment variables. Ensure that the environment variables PAPERCUPS_TOKEN and PAPERCUPS_INBOX are set with your Papercups API token and inbox ID, respectively.

  2. Build the Project: Build the project to generate production-ready assets by running:

npm run build
  1. Deployment: Deploy the built files to your hosting environment. Ensure that the necessary routes and configurations are set up to serve the widget files.

Demo

A live demo of the responsive Papercups chat widget can be accessed here

papercups-widget's People

Contributors

aamirfarookh 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.