0.2.1 • Published 1 year ago

@launchacademy/voyager v0.2.1

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

Voyager

Voyager is the home to components for Launch Academy, Inc.'s main static site. This was assembled using Storybook, and links to a Gatsby static site.

Set Up

clone repo git clone

run yarn install

run yarn run storybook

Storybook will launch in your browser.

Using Voyager

  • Rendered state of UI components will live in the theme folder as a story
  • If you're adding a new component please search the theme folder for a story that's already created and add the new component to the according folder.
  • If you don't find what you're looking for please create a new folder and add a stories.mdx file, styles, and the according React components.

Styling and Naming Conventions

The CSS files should be camelCase

  • featureList.css

Your stories file should follow the naming convention of the folder you created and capitalized

  • FeatureList.stories.mdx

The styling in your CSS should follow BEM (Block Element Modifier). Our specific set up is below:

.block__element_modifier

How to Use BEM in Voyager:
  • You have a card block with a custom background named danger
  • This card block has the elements image, header, and body
  • The body has a custom text color named fancy

Here is the CSS

.card {
  & .card__image {}
  & .card__header {}
  & .card__body {}
  & .card__body_fancy {
    color: green;
  }
}
.card_danger {
  background-color: red;
}

Here is the HTML

<article className="card card_danger">
  <img className="card__image" />
  <h1 className="card__header">TEST</h1>
  <p className="card__body card__body_fancy">some info about this fancy paragraph.</p>
</article>
0.2.1

1 year ago

0.2.0

1 year ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.0.20

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.0.7

2 years ago

0.1.5

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago