1.1.0 • Published 1 year ago

@netlify/marketing-community-nav v1.1.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

@netlify/marketing-community-nav

A web component for shared navigation on Community, Explorers, Forums, Podcast, Swag, and others.

Usage

  1. Install npm install @netlify/marketing-community-nav
  2. Add nav.js and nav.css to your site’s bundler.
  3. Copy markup for the property (find the <netlify-ui-community-nav> in demo.html) and add to the top of the page (update the “Customize” sections)

The reason we embed markup inline inside of the web component here is for both progressive enhancement and performance reasons. The hamburger icon is also embedded inline to animate the transition when opened.

  1. (Optional, performance) Add to <head>: <link rel="preconnect" href="https://netlify-ui-community-nav.netlify.app/">
  2. (Optional, performance) Add to <head>: <script>document.documentElement.classList.add("ncn-ctm");</script>

Release

  1. Update version in package.json
  2. Update Version comment in nav.js, nav.css
  3. Update version HTML attribute in demo.html
  4. Convert HTML to JSX, if needed
    • Translate any class attributes to className. Leave class on root <netlify-ui-community-nav> element as is.
    • Other attributes with a - will also need to be translated to camelCase: e.g. stop-color to stopColor, fill-rule to fillRule.
  5. Commit, tag, push.
1.1.0

1 year ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago