A fancy header React component/Scrivito widget for the Scrivito CMS.
Open your terminal.
$ cd
to your Scrivito project
$ npm install scrivito-fancy-header
Import the widget in your javascript (e.g. in index.js
or Widgets/index.js
).
Add this line to your index.js:
import "scrivito-fancy-header";
Also add the styling of the widget to your app. This can be done by either loading it via css-loader
(e.g. in index.js
or Widgets/index.js
):
import "scrivito-fancy-header/index.css";
Or by including the styling to your style sheets (e.g. in index.scss
):
@import "~scrivito-fancy-header/index.css";
This widget renders a header with 3 sections, side by side. On mouse over the target section growth to 2/3 of the header width. Works best with full width.
In the widget properties you can set:
- 3 section with a title link and an image
The link should point to an element of the same page with an id. For this you can use the widget 'Headline with an anchor id'