Skip to content

Commit

Permalink
Introduction to Toolset Slides (#596)
Browse files Browse the repository at this point in the history
* adding introduction to toolset slides

* Added package

* Added package

* formatting slides
  • Loading branch information
milldr authored Sep 8, 2023
1 parent 6351542 commit c797b2c
Show file tree
Hide file tree
Showing 26 changed files with 82 additions and 0 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-github-btn": "^1.4.0",
"react-image-gallery": "^1.2.11",
"react-player": "^2.12.0",
"sass": "^1.57.1"
},
Expand Down
39 changes: 39 additions & 0 deletions src/components/slides/slides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from "react";
import styles from "@site/src/components/slides/slides.module.css";
import ImageGallery from "react-image-gallery";
import "react-image-gallery/styles/css/image-gallery.css"

// https://github.com/xiaolin/react-image-gallery
// https://stackoverflow.com/questions/3746725/how-to-create-an-array-containing-1-n
const images = Array.from({length: 22}, (_, i) => {
let ix = i; // starting at 0 intentionally
return {
original: "/img/slides/introduction-to-toolset-" + ix + ".svg",
thumbnail: "/img/slides/introduction-to-toolset-" + ix + ".svg",
originalAlt: "Introduction to Toolset slide " + ix,
originalTitle: "Introduction to Toolset slide " + ix,
thumbnailAlt: "Introduction to Toolset slide " + ix,
thumbnailTitle: "Introduction to Toolset slide " + ix,
loading: "lazy"
}
}
);

export default function Slides() {
return (
<main>
<section className={styles.slidesContainer}>
<div className="container">
<ImageGallery items={images}
thumbnailPosition={"bottom"}
showBullets={false}
showNav={true}
showIndex={true}
slideInterval={4000}
lazyLoad={true}
/>
</div>
</section>
</main>
);
}
11 changes: 11 additions & 0 deletions src/components/slides/slides.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
*/

.slidesContainer {
display: flex;
align-items: center;
padding: 0;
width: 100%;
}
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-10.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-11.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-12.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-13.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-14.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-15.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-17.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-18.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-19.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-20.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-21.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-7.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/slides/introduction-to-toolset-9.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c797b2c

Please sign in to comment.