m-m-mic / reactville

https://m-m-mic.github.io/reactville/
0 stars 0 forks source link

Add illustrations to slides #4

Closed m-m-mic closed 2 months ago

m-m-mic commented 3 months ago

Every slide background should be included in each slide as follows:

  1. Add the illustration svg of the slide to it's folder with the name [slideId]Slide.background.svg (e.g. TourPagesSlide.background.svg).

  2. Import the illustration in the component file like this import [slideId]Background from "./[slideId]Slide.background.svg?react", the ?react is very important!

  3. Add the imported svg to the html and give it the class background like this: <[slideId]Background className="background" />