Sefaria / Sefaria-Project

New Interfaces for Jewish Texts
https://www.sefaria.org
654 stars 268 forks source link

Feature/sc 27523/sheets green create button #1914

Closed stevekaplan123 closed 1 month ago

stevekaplan123 commented 4 months ago

This is a first pass (and thus a draft pull request) of the generic Button component. It assumes children is text and can optionally display an image. Example usages:

const CreateSheetsButton = () => {
  const img = <img src="/static/icons/new-sheet-black.svg" alt="make a sheet icon" id="sheetsButton"/>;
  return <Button img={img} classes={{small: 1}} href="/sheets/new">Create</Button>
}

and

<Button classes={{getStarted: 1}} href="/sheets/393695">Get Started</Button>