omahaproject18 / wordpress-theme

This is the WordPress theme for Tech Omaha's Project 18
2 stars 1 forks source link

Create Button Component #1

Open splitinfinities opened 6 years ago

splitinfinities commented 6 years ago

We need to make a button component.

How to:

  1. Download the repo, Install node and npm, then, in terminal at the repo's directory, do npm run dev. This should open your browser and let you start coding!
  2. In the components folder, duplicate the "theme" folder and call it "button".
  3. Rename all files inside to "button.tsx" or "button.scss"
  4. Update the tag value in the @Component to "techomaha-button"
  5. Update the style value in the @Component to "button.scss"
  6. Update the class name to "Button"
  7. Update the scss file. We can optimize everything later, just do your best to make a button!

If you get lost, here it the documentation for Stencil: https://stenciljs.com/docs/intro/

And do not hesitate to reach out to @splitinfinities if you have any questions at all.

We'll use it by writing html: <techomaha-button type="button|submit|link" href="#" value="blah" emoji="📦" class="outline|invert"></techomaha-button>

color emoji color icon color white emoji white icon white color icon color white icon white

nmschulte commented 6 years ago

Note, step zero needs instructions to change to the assets directory, e.g.:

  1. Download the repo, Install node and npm, then, in terminal at the repo's directory, do cd assets && npm run dev. This should open your browser and let you start coding!