GithubHelp home page GithubHelp logo

chema22r / project-intro Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 603 KB

Simple UI modal to introduce a project

Home Page: https://www.npmjs.com/package/project-intro

License: MIT License

JavaScript 40.83% CSS 38.04% HTML 21.13%
ui-modal javascript presentation mit-license

project-intro's Introduction

CodeQL MIT License

Project Intro

Simple UI modal to introduce a project.

Check out a live demo here.

Screenshot

Installation

npm install project-intro

Code To Run The Module

  1. HTML code:
    <div id="projectIntroContainer" class="projectIntroContainer">
        <div class="projectIntroBack" onclick="projectIntro.fadeOut()"></div>
        <div id="projectIntroContent" class="projectIntroContent">
            <img id="projectIntroImg" src="<IMAGE>">
            <div id="projectIntroText">
                <h2>Lorem ipsum dolor sit amet</h2>
                <p>
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit,
                    sed do eiusmod tempor incididunt ut labore et dolore
                    magna aliqua.<br>Ut enim ad minim veniam, quis nostrud
                    exercitation ullamco laboris nisi ut aliquip ex ea commodo
                    consequat.<br>Duis aute irure dolor in reprehenderit in
                    voluptate velit esse cillum dolore eu fugiat nulla
                    pariatur.<br>Excepteur sint occaecat cupidatat non
                    proident, sunt in culpa qui officia deserunt mollit anim
                    id est laborum.
                </p>
            </div>
            <span onclick="projectIntro.fadeOut()">&#10005;</span>
        </div>
    </div>
  2. JS code:
    import * as projectIntro from "project-intro";
    window.projectIntro = projectIntro;
    projectIntro.init();
  • The provided image will be resized to fit the assigned space, but the perfect size would be 300x350p
  • To implement the module in a non-NPM environment, each project file must be imported individually, as in the example provided in /development/index.js. The following code can be used instead of the one specified in step 2, replacing the routes with the correct ones:
    import "./projectIntro.css";
    import * as projectIntro from "./projectIntro";
    
    window.projectIntro = projectIntro;
    projectIntro.init();

project-intro's People

Contributors

chema22r avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

chemahp

project-intro's Issues

Add title

Add the title of the project just behind its information

Text load on initial animation

Text load on initial animation makes a strange effect while the modal expands horizontally. Modify this effect to make it disappear and load the text statically.

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.