scrivito-youtube-video-widget

0.2.0 • Public • Published

Scrivito Youtube Video Widget

CMS: Scrivito License: MIT Travis build status GitHub last commit GitHub top language

A Scrivito widget that plays videos from YouTube.

Screenshot

screenshot

Installation

Install the package in your scrivito app:

$ npm install scrivito-youtube-video-widget

Import the widget in your javascript (e.g. in src/index.js or src/Widgets/index.js):

import "scrivito-youtube-video-widget";

Add the styling of the widget to your app. This can be done by either loading it via css-loader (e.g. in src/index.js or src/Widgets/index.js):

import "scrivito-youtube-video-widget/index.css";

Or by including the styling to your stylesheets (e.g. in src/assets/stylesheets/index.scss):

@import "~scrivito-youtube-video-widget/index.css";

Widget Configuration

In the widget properties you can set:

  • YouTube video ID
  • Aspect ratio

Check code quality

$ npm run eslint

and

$ npm run es-check

Dependencies (0)

    Dev Dependencies (24)

    Package Sidebar

    Install

    npm i scrivito-youtube-video-widget

    Weekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    10.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • apepper