1.1.0 • Published 3 years ago

@kissmybutton/motorcortex-presenter v1.1.0

Weekly downloads
94
License
MIT
Repository
github
Last release
3 years ago

motorcortex-presenter

Demo

Installation

$ npm install --save @kissmybutton/motorcortex-presenter
# OR
$ yarn add @kissmybutton/motorcortex-presenter

Loading

const MotorCortex = require("@kissmybutton/motorcortex/");
const presenterPlugin = require("@kissmybutton/motorcortex-presenter");
const Clip = MotorCortex.loadPlugin(presenterPlugin);

Create incident

introClip

const introClip = new Clip.Intro(
  {
    width: 1270,
    height: 720,
    clientLogo: "img.svg",
    clientLogoWidth: 500,
    compLogo: "logo.png",
    compLogoWidth: "150px",
    title: "RMIS / University of Zurich",
    date: "2019 - Today",
    bgUrl: "./bg.jpg",
    overlayColor: overlay,
    mainColor: main,
    fontColor: "#fff",
  },
  {
    selector: ".container6"
  }
);

introClip Attrs

NameAreValues
widthwidth of the clipstring/number
heightheight of the clipstring/number
clientLogopath of client logostring
clientLogoWidthsize of clien logostring/number
compLogopath of company or dev team logostring
compLogoWidthsize of company or dev team logostring/number
titlethe title of project/appstring
datestart and end year of projectstring
overlayColorthe overlay color of background imagehex values or RGB or text
fontColorthe color of fontshex values or RGB or text

SlideOne

const SlideOne = new Clip.SlideOne(
  {
    width: 1270,
    height: 720,
    clientLogo: "img.svg",
    clientLogoWidth: 150,
    compLogo: "logo.png",
    compLogoWidth: "150px",
    title: "RMIS / University of Zurich",
    textOne: "generic",
    textTwo: "module-based",
    textThree: "eHealth platform",
    bgColor: "#000c8f",
    contentColor: "#c10000",
    overlayColor: overlay,
    fontColor: "#fff",
    contentTitle: "Scope",
    app: "./app.png"
  },
  {
    selector: ".container5"
  }
);

SlideOne Attrs

NameAreValues
widthwidth of the clipstring/number
heightheight of the clipstring/number
clientLogopath of client logostring
clientLogoWidthsize of clien logostring/number
compLogopath of company or dev team logostring
compLogoWidthsize of company or dev team logostring/number
titlethe title of project/appstring
textOne,textTwo,textThree3 rows that describe the main consepts of the projectsstring
contentColorthe color of content containerhex values or RGB or text img path
bgColorthe color of backgroundhex values or RGB or text or img path
contentTitletitle of slidestring
overlayColorthe overlay color of background imagehex values or RGB or text
fontColorthe color of fontshex values or RGB or text
apppath of app imgstring

SlideTwo,SlideThree

const SlideTwo = new Clip.SlideTwo(
  {
    width: 1270,
    height: 720,
    clientLogo: "img.svg",
    clientLogoWidth: 150,
    compLogo: "logo.png",
    compLogoWidth: "150px",
    title: "RMIS / University of Zurich",
    textOne:
      "Patients answer to the questionnaires, read articles and consume personalized content based on their condition, progress and answers, always maintaining their anonymity",
    bgColor: "#000c8f",
    overlayColor: overlay,
    fontColor: "#fff",
    contentColor: "#c10000",
    contentTitle: "Scope",
    fonSize: 40,
    app: "./app.png"
  },
  {
    selector: ".container4"
  }
);

SlideTwo,SlideThree Attrs

NameAreValues
widthwidth of the clipstring/number
heightheight of the clipstring/number
clientLogopath of client logostring
clientLogoWidthsize of clien logostring/number
compLogopath of company or dev team logostring
compLogoWidthsize of company or dev team logostring/number
titlethe title of project/appstring
textOneparagraph that describe the main consepts of the projectsstring
contentColorthe color of content containerhex values or RGB or text img path
bgColorthe color of backgroundhex values or RGB or text or img path
contentTitletitle of slidestring
overlayColorthe overlay color of background imagehex values or RGB or text
fontColorthe color of fontshex values or RGB or text
fontSizefont size of paragraphnum
apppath of app imgstring

Technologies

const Technologies = new Clip.Technologies(
  {
    width: 1270,
    height: 720,
    clientLogo: "img.svg",
    clientLogoWidth: 150,
    compLogo: "logo.png",
    compLogoWidth: "150px",
    title: "RMIS / University of Zurich",
    logos: ["./1.png", "./2.png", "./3.png", "./4.png", "./5.png"],
    bgColor: "#000c8f",
    overlayColor: overlay,
    fontColor: "#fff",
    contentColor: "#c10000",
    contentTitle: "Technologies",
    contentSubTitle: "USed"
  },
  {
    selector: ".container2"
  }
);

Technologies Attrs

NameAreValues
widthwidth of the clipstring/number
heightheight of the clipstring/number
clientLogopath of client logostring
clientLogoWidthsize of clien logostring/number
compLogopath of company or dev team logostring
compLogoWidthsize of company or dev team logostring/number
titlethe title of project/appstring
logosarray with img pathsarray of strings
contentColorthe color of content containerhex values or RGB or text img path
bgColorthe color of backgroundhex values or RGB or text or img path
contentTitletitle of slidestring
overlayColorthe overlay color of background imagehex values or RGB or text
fontColorthe color of fontshex values or RGB or text
apppath of app imgstring

Highlights

const Highlights = new Clip.Highlights(
  {
    width: 1270,
    height: 720,
    clientLogo: "img.svg",
    clientLogoWidth: 150,
    compLogo: "logo.png",
    compLogoWidth: "150px",
    title: "RMIS / University of Zurich",
    app: "./app.png",
    bgColor: "#000c8f",
    overlayColor: overlay,
    fontColor: "#fff",
    contentColor: "#c10000",
    contentTitle: "Highlights",
    contentSubTitle: "USed",
    scroll: false
  },
  {
    selector: ".container1"
  }
);

Highlights Attrs

NameAreValues
widthwidth of the clipstring/number
heightheight of the clipstring/number
clientLogopath of client logostring
clientLogoWidthsize of clien logostring/number
compLogopath of company or dev team logostring
compLogoWidthsize of company or dev team logostring/number
titlethe title of project/appstring
contentSubTitlesubtitle of slidestring
contentColorthe color of content containerhex values or RGB or text img path
bgColorthe color of backgroundhex values or RGB or text or img path
contentTitletitle of slidestring
overlayColorthe overlay color of background imagehex values or RGB or text
fontColorthe color of fontshex values or RGB or text
apppath of app imgstring

| scroll | if the app img will scroll | boolean |

Add incident to your clip

clip.addIncident(nameOfIncident, 0);

Clip classes

ClipSvg version
Intro-
SlideOneSlideOneSVG
SlideTwoSlideTwoSVG
SlideThreeSlideThreeSVG
TechnologiesTechnologiesSVG
HighlightsHighlightsSVG
1.1.0

3 years ago

1.0.11

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago