React component for adding a Hack Club banner to your club site
Use npm or yarn as follows:
npm install --save @hackclub/banner
yarn add @hackclub/banner
Place <Banner />
anywhere on your club site homepage.
import React from 'react'
import Banner from '@hackclub/banner'
export default () => (
<main>
<Banner />
<h1>Hacking High School Hack Club</h1>
</main>
)
<Banner year={2020} style={{ width: '256px' }} />
Prop | Effect |
---|---|
year |
Number, one of 2016 to 2024 . Default: current year |
style |
Object, for custom styles |
MIT © Hack Club