npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@zilahir/html5-device-mockups

v3.2.5

Published

HTML5 mockups of popular devices, to showcase your portfolio and spice up your website.

Downloads

47

Readme

Gitter GitHub release Bower npm License: MIT

HTML5 device mockups v3 :iphone::computer:

Demo page is under construction

TODO

| Name | Status | | --- | --- | --- | --- | | create react components | :hammer: |

Use on...

  • Your website / splash screen

For...

  • Displaying photos
  • Displaying screenshots of your app(s)
  • Displaying reference works / illustrations
  • Displaying a content rotator / slideshow
  • Embedding a JavaScript app inside the device
  • Embedding a YouTube video

Why?

  • Looks cool
  • Attracts customers
  • Makes your site look professional
  • Give people the idea that your app/site works on mobile
  • Give the impression that your illustrations are meant for web/mobile
  • Lots of screenshots in just one "device"

Features:

  • Maintains the device's aspect ratio when scaled
  • Perfectly aligned screen content containers
  • Some devices have "home button" layer defined for possible click event bindings
  • Multiple color schemes
  • Multiple orientations
  • 86 different device images

Devices

| Name | Filename | Orientations | Colors | | --- | --- | --- | --- | | Chromebook | Chromebook | portrait | black | | Galaxy S3 | galaxyS3 | portrait, landscape | black, white | | Galaxy S5 | galaxyS5 | portrait, landscape | black, white, gold | | Galaxy Tab 4 | galaxyTab4 | portrait | black, white | | HTC One M8 | HtcOneM8 | portrait, landscape | black | | Huawei P8 | HuaweiP8 | portrait, landscape | gold | | iMac | iMac | portrait | black | | iPad | iPad | portrait, landscape | black, white | | iPad Air 2 | iPadAir2 | portrait, landscape | black, white, gold | | iPad Pro | iPadPro | portrait, landscape | black, white, gold | | iPhone 6 | iPhone6 | portrait, landscape | black, white, gold | | iPhone 6 Plus | iPhone6Plus | portrait, landscape | black, white, gold | | iPhone SE | iPhoneSE | portrait, landscape | black, white, gold, pink | | iPhone 5 | iPhone5 | portrait, landscape | black, white | | iPhone 6 Hand | iPhone6Hand | portrait | black, white | | iPhone 7 Hand | iPhone7Hand | portrait | black | | iPhone 7 Hand 2 | iPhone7Hand_2 | portrait | black | | iPhone 7 | iPhone7 | portrait, landscape | black, white, gold, pink, red | | iPhone X | iPhoneX | portrait, landscape | black | | Lumia 930 | Lumia930 | portrait, landscape | black, white | | Macbook | Macbook | portrait | black, white, gold | | Macbook 2015 | Macbook2015 | portrait | black, white, gold | | MacbookPro | Macbook2015 | portrait | black | | Pixel | Pixel | portrait | black, white | | Samsung TV | SamsungTV | portrait | black | | Surface Pro 3 | SurfacePro3 | landscape | black | | Surface Studio | SurfaceStudio | portrait | black |

Integrating to your website:

Bower

bower install html5-device-mockups

npm

npm i html5-device-mockups

Old traditional way

<link rel="stylesheet" type="text/css" href="dist/device-mockups.min.css">

Usage

Use this example or grap the code from the HTML generator on our demo site:

<div class="device-wrapper">
  <div class="device" data-device="iPhone5" data-orientation="portrait" data-color="black">
    <div class="screen">
      <!-- PUT CONTENTS HERE -->
    </div>
    <div class="button">
      <!-- You can hook the "home button" to some JavaScript events or just remove it -->
    </div>
  </div>
</div>

FAQ

"I can not control the height of the device"

https://github.com/pixelsign/html5-device-mockups/issues/47

Created by:

This is a forked repository of pixelsign. due to it seems abandoned, and I took it up, willing to continue.

Currently

Richard Zilahi

Original

Tomi Hiltunen

Angelos Arnis

Benjamin Bortels

Credits for the original graphical renderings of the devices used in this package are found in a separate file which is provided with this package.