Giter VIP home page Giter VIP logo

mmm-imageheader's Introduction

MMM-ImageHeader

Use an image as a header instead of the standard underlined text header

Create or use any image you want to use as a header.

You can choose your own local images or url's to internet images.

Examples

This is the sample provided.

,

Above a module

,

Above another module

,

Use your own custom header pictures!

Installation

  • git clone https://github.com/mykle1/MMM-ImageHeader into the ~/MagicMirror/modules directory.
  • Annotated .css file included for exact sizing and positioning.

Config.js entry and options

{
    module: "MMM-ImageHeader",
	position: "top_left", // Choose the same position as the module you are using it with. Enter this above it in config.
	config: {
		headerImage: 'modules/MMM-ImageHeader/pix/1.jpg', // local path to your image or internet url to image.
	}
},

How to use it multiple times!

  • You can simply add another entry or entries in your config for each image header. In this case, use the css file to zero out all alignments and center picture. Why? Because the css file controls ALL instances of the image header.

If you want individual control of each image header

  • Copy and paste the entire MMM-ImageHeader folder

  • Rename the new folder (Example: MMM-ImageHeader2)

  • Open that folder and rename the .js file the same as the folder

  • Open the .js file and rename this 'Module.register("MMM-ImageHeader"' the same as the folder

  • Also rename this 'return ["MMM-ImageHeader.css"]' the same as the folder (keeping the .css)

  • Close the .js file

  • Rename the .css file the same as the folder

  • Open the .css file

  • Rename this .MMM-ImageHeader .photo the same as the folder (keeping the .photo)

The path to your local pictures

  • Your pictures go here modules/MMM-ImageHeader/pix/YOUR_PICTURE_NAME

The pictures for multiple use

  • They go in their respective pix folder

Attention

  • You may have to use custom.css on the modules you are using this with

  • Disable the header on the modules you are using this with

mmm-imageheader's People

Contributors

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