Use Curvenote

curvenote.dev - logo

NPM Version MIT License GitHub Stars Twitter Follow

@curvenote/article

Introduction

The @curvenote/article is bundled with web-components and a CSS framework that helps you write interactive scientific articles. This documentation makes use of these components and styles. All components and layouts can be used by having the following structure to your HTML:

<!doctype html> <html itemscope itemtype="http://schema.org/Article"> <head> <link rel="stylesheet" href="https://unpkg.com/@curvenote/article/dist/curvenote.css"> <script async src="https://unpkg.com/@curvenote/article"></script> </head> <body> <article> <h1>Hello Curvenote</h1> </article> </body>

The javascript will load up the components, which allow you to add reactivity to your document. The CSS framework assumes there is an <article> on the page. To center the article, which will collapse the sidenotes (aside), you can add the "centered" class to the article.

<article class="centered"></article>

Layout

Article Components


Made with love by Curvenote
Last updated August 24th, 2021