Code Monkey home page Code Monkey logo

vd-modal's People

Contributors

teles avatar woliveiras avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vd-modal's Issues

Provides initial documentation on readme

This project readme should include some initial information just as:

  • How to install and inject vd-modal;
  • How to create a simple text modal;
  • How to create a transparent modal;
  • How to create a column modal;
  • vd-modal api options;
  • vd-modal main css classes;

Some vd-modal information as:

  • using vd-modal you may only have one modal at a time;
  • using vd-modal your modal html code will not be hidden before modal openning;

Remove inline styles from index.html and refactor css components

The index.html file has some unnecessary inline styles for

children. It is a bad smell.

The inline css code needs to be part of sass modal components.

All necessary CSS refactor includes:

  • Remove inline css from index.html;
  • Mix and join modal-box and vd-modal components into a single component;
  • Add removed inline styles to new vd-modal single component;
  • .vd-modal__content probably should have a max-width:100%

Suggestion: Create an easy way to contribute to vd-modal

Currently, there isn't a simple way to contribute to the project. Its necessary clone the repository, create a local project, add the vd-modal as a dependency and finally make the modifications/bug fixes.

I think it would be nice if was added to repository a folder example where would have a simple index.html with the necessary dependencies (maybe the documentation code), ready to work on!

Some thing like this:
image

In this way, just need to enter in example folder and run a simple server, like python -m SimpleHTTPServer

Bug: Column sidebar extends according to the content inside

When the content is large (or medium) the sidebar extend to fit it. It's necessary to limit the width of the sidebar on _vm-modal.components.sass with a max-width:

From it:

+modifier("sidebar")
  opacity: 1
  min-width: 285px
  margin-right: 0
  transition: margin-right .75s, opacity .75s

To it:

+modifier("sidebar")
  opacity: 1
  min-width: 285px
  max-width: 285px
  margin-right: 0
  transition: margin-right .75s, opacity .75s

image

Generate a one page github pages

Generate a one page github.io page with informations from README #4 and usage examples.
Important: This page should be avaliable outside master branch.

I guess main strutcture for this page will be something like this:


Hero section:

  • Optional Viva Decora logo
  • vd-modal name
  • slogan
  • github fork button

Three icons section:

  • Clickable icon for "Simple HTML content modals" - opens a modal with some basic html content;
  • Clickable icon for "Using flexbox" - opens a transparent modal with browser support info;
  • Clickable icon for "Sidebar modal" - opens a sidebar modal with penguin photos;

Installation section:

  • npm install --save vd-modal
  • // insert <script> in your html
  • // link css to your html
  • // inject vd-modal in your angular app
  • // create hello world modal
  • button to open hello world modal

This is enough for this very first issue about a demo page.

Minify javascript and apply templateCache

For now dist folder has only css files and all javascript files are being loaded from src folder.

It's necessary to make javascript avaliable as distribution files. These files should be vd-modal.min.js and vd-modal.min.js.map.

vd-modal.min.js includes:

  • All minified javascript .module, .model, .directive, .controller and .run files;
  • All templates in $templateCache format;

vd-modal.min.js.map includes:

  • Only a sourcemap for vd-modal.min.js

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.