Website for the RythmHacks hackathon
https://www.rythmhacks.ca/
Backup link
Graphics for reference
- Clone the repository
git clone https://github.com/RythmHacks/2023.rythmhacks.ca.git
- Type
npm i
to install dependencies - Write some code and run
npm start
to start the web app
- React
- Tailwind
- SASS
- Vercel
- Google Domains
- Have these imports
import useIsInViewport from '../ScrollAnimation/useIsInViewport.js'
import '../ScrollAnimation/ScrollAnimation.scss'
- Put one of these for each element you want to animate
const ref1 = useRef(null);
const isInViewport1 = useIsInViewport(ref1);
- Reference each element like so
<div ref={ref1} className={isInViewport1 ? 'hide show' : "hide"}></div>
<div id='page name' className='section'>
<!-- additional div, usually for scroll animations -->
<div>
<h3>header <h3 className='gradient blue'>gradient</h3>, period.</h3>
<!-- text and image section -->
<div className='sectionwrapper'>
<p>
put text here
</p>
<img loading='lazy' src={src} alt='alt'></img>
<!-- all images are lazy loaded and have an alt attribute -->
</div>
</div>
</div>