1.37.0 • Published 5 years ago
@base-cms/marko-web-leaders v1.37.0
BaseCMS Marko Wrapper for the Leaders Program
Installation
Include
@base-cms/marko-web-leaders
as a project/website dependency.Include the Browser plugin.
// your-site/browser/index.js
import Leaders from '@base-cms/marko-web-leaders/browser';
Leaders(Browser);
export default Browser;
- Include the styles.
// your-site/server/styles/index.scss
@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Sans:300,400,500,600,700&display=swap");
@import "../../node_modules/@base-cms/marko-web-leaders/scss/leaders";
- Include the dropdown portal component in your template or document root. Include immediately after the opening
<body>
tag! << Don't forget this step >>
<!-- your-site/server/components/document.marko -->
<marko-web-document ...input>
<@head>
<!-- ... head components here -->
</@head>
<@above-container>
<marko-web-leaders-dropdown-portal />
<!-- ... other components here -->
<${input.aboveContainer} />
</@above-container>
</marko-web-document>
- Include the
<marko-web-leaders>
component where you'd like it displayed.
<!-- your-site/server/templates/index.marko -->
<marko-web-leaders props={
sectionAlias: "leaders",
open: null,
expanded: false,
headerImgSrc: "https://img.packworld.com/files/base/pmmi/all/leaders/pw.png",
headerImgAlt: "Leaders in Packaging 2019",
columns: 1,
offsetTop: 105,
mediaQueries: [
{ prop: "open", value: "right", query: "(min-width: 1490px)" },
{ prop: "columns", value: 2, query: "(min-width: 700px)" },
{ prop: "displayCallout", value: false, query: "(max-width: 660px)" },
],
}/>
1.37.0
5 years ago
1.36.3
5 years ago
1.33.2
5 years ago
1.29.5
5 years ago
1.27.5
5 years ago
1.25.7
5 years ago
1.25.0
5 years ago
1.19.0
5 years ago
1.9.0
6 years ago
1.8.0
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
1.0.0-rc.4
6 years ago
1.0.0-rc.2
6 years ago
1.0.0-rc.1
6 years ago