diff --git a/components/LifePlastic/UI/TutorialModal.tsx b/components/LifePlastic/UI/TutorialModal.tsx new file mode 100644 index 0000000..5adce4f --- /dev/null +++ b/components/LifePlastic/UI/TutorialModal.tsx @@ -0,0 +1,20 @@ +import * as React from "react"; +import TutorialIcon from "./icons/tutorial"; +import CloseIcon from "./icons/close"; +import { Modal } from "../styles/PlasticStyles"; + +const TutorialModal: React.FC = ({ children }) => { + return ( + +
+ + console.log("Close!")} /> +
+ + {children} + +
+ ); +}; + +export default TutorialModal; diff --git a/components/LifePlastic/UI/icons/close.tsx b/components/LifePlastic/UI/icons/close.tsx new file mode 100644 index 0000000..ee3f9ca --- /dev/null +++ b/components/LifePlastic/UI/icons/close.tsx @@ -0,0 +1,27 @@ +import * as React from "react"; + +interface Props { + onClick: () => void; +} + +const CloseIcon: React.FC = ({ onClick }) => { + return ( +
+ + + +
+ ); +}; + +export default CloseIcon; diff --git a/components/LifePlastic/UI/icons/tutorial.tsx b/components/LifePlastic/UI/icons/tutorial.tsx new file mode 100644 index 0000000..0e79f46 --- /dev/null +++ b/components/LifePlastic/UI/icons/tutorial.tsx @@ -0,0 +1,151 @@ +import * as React from "react"; + +const TutorialIcon: React.FC = () => { + return ( +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ ); +}; + +export default TutorialIcon; diff --git a/components/LifePlastic/styles/PlasticStyles.tsx b/components/LifePlastic/styles/PlasticStyles.tsx index 8223fcf..32ef033 100644 --- a/components/LifePlastic/styles/PlasticStyles.tsx +++ b/components/LifePlastic/styles/PlasticStyles.tsx @@ -45,7 +45,7 @@ export const NavBar = styled.div({ letterSpacing: "3px", fontFamily: "Muli,sans-serif", fontWeight: 200, - fontSize: "20px" + fontSize: "20px", }, }); export const TopNavBar = styled.div({ @@ -63,6 +63,26 @@ export const TopNavBar = styled.div({ }, }); +export const Modal = styled.div({ + minHeight: "190px", + width: "475px", + margin: "0 auto", + zIndex: 9, + borderRadius: "12px", + boxShadow: "4px 4px 8px rgba(20,20,20,0.12)", + background: `${SKYBACKGROUND}`, + "&>p": { + fontSize: "16px", + textAlign: "justify", + align: "left", + lineHeight: "150%", + fontFamily: "Josefin Slab,sans-serif", + margin: "0px auto", + padding: "60px 0px 0px", + width: "400px", + }, +}); + export const Toggle = styled.button({ background: `${NAVBARFILL}`, overflow: "visible", diff --git a/pages/experiment/017.tsx b/pages/experiment/017.tsx index 6d42031..a3ceed6 100644 --- a/pages/experiment/017.tsx +++ b/pages/experiment/017.tsx @@ -41,6 +41,7 @@ import { GarbageBackground } from "../../components/LifePlastic/Garbage"; import { GarbagePile } from "../../components/LifePlastic/Plastic/GarbagePile"; import { AddLabels } from "../../components/LifePlastic/AddLabels"; import { Processes } from "../../components/LifePlastic/Processes"; +import TutorialModal from "../../components/LifePlastic/UI/TutorialModal"; export const plasticColourPicker = (type: keyof FormType) => { switch (type) { @@ -220,6 +221,13 @@ const Experiment017: React.FC = () => { and a way to focus the users attention onto the process at hand and give a little bit of information on what is happening.

+ +

+ Sometimes a municipality won’t have a certain system or they might be + temporarily unavilable. Click on the factory to see what happens to + the plastic in the system. +

+