diff --git a/package.json b/package.json index ed50cce..4fae2a6 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "scripts": { "start": "react-scripts start", - "firebase": "firebase emulators:start", + "emu": "firebase emulators:start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", diff --git a/src/assets/styles/_colors.scss b/src/assets/styles/_colors.scss index 4baec18..bd4eb5b 100644 --- a/src/assets/styles/_colors.scss +++ b/src/assets/styles/_colors.scss @@ -18,7 +18,7 @@ $mint-bright: #e5faf3; // Taffy $taffy: #7e66cd; $taffy-light: #a594dc; -$taffy-bright: #efecf9; +$taffy-bright: #f4f1ff; $sun: #fff250; $sun-light: #fff8a2; @@ -28,7 +28,7 @@ $sun-bright: #fffdea; $gray-dark: #4c547c; $gray: #6f738b; $gray-light: #b5b8cc; -$gray-bright: #ebebff; +$gray-bright: #fafaff; // Feedback $success: $mint; diff --git a/src/components/AdminNavigation/AdminNavigation.jsx b/src/components/AdminNavigation/AdminNavigation.jsx index 8f8ae55..0aec670 100644 --- a/src/components/AdminNavigation/AdminNavigation.jsx +++ b/src/components/AdminNavigation/AdminNavigation.jsx @@ -12,6 +12,9 @@ const AdminNavigation = () => {
  • Dashboard
  • +
  • + Help +
  • Kids
  • diff --git a/src/components/Footer/Footer.jsx b/src/components/Footer/Footer.jsx index 1a04b5c..97ee37c 100644 --- a/src/components/Footer/Footer.jsx +++ b/src/components/Footer/Footer.jsx @@ -19,6 +19,9 @@ const Footer = () => {
  • About
  • +
  • + Help +
  • Terms & Conditions
  • diff --git a/src/components/HeaderNav/HeaderNav.jsx b/src/components/HeaderNav/HeaderNav.jsx index 7859d9e..49ddbf6 100644 --- a/src/components/HeaderNav/HeaderNav.jsx +++ b/src/components/HeaderNav/HeaderNav.jsx @@ -48,6 +48,9 @@ const HeaderNav = ({ variant }) => { How It Works +
  • + Help +
  • Feedback diff --git a/src/components/HelpCard/HelpCard.jsx b/src/components/HelpCard/HelpCard.jsx new file mode 100644 index 0000000..cde0f34 --- /dev/null +++ b/src/components/HelpCard/HelpCard.jsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import './HelpCard.scss'; + +const HelpCard = ({ className, children, ...rest }) => { + return ( +
    + {children} +
    + ); +}; + +export default HelpCard; + +HelpCard.propTypes = { + className: PropTypes.string, +}; + +HelpCard.defaultProps = { + className: '', +}; diff --git a/src/components/HelpCard/HelpCard.scss b/src/components/HelpCard/HelpCard.scss new file mode 100644 index 0000000..7af4e5c --- /dev/null +++ b/src/components/HelpCard/HelpCard.scss @@ -0,0 +1,16 @@ + +@import '../../assets/styles/colors'; +.HelpCard { + padding: 2rem; + border-radius: 0.5rem; + background-color: $primary-bright; + transition: 0.3s; + text-align: center; + h2 { + color: $gray; + } + &:hover { + background-color: $primary-hover; + color: $primary-bright; + } +} \ No newline at end of file diff --git a/src/components/HelpCard/index.js b/src/components/HelpCard/index.js new file mode 100644 index 0000000..0148472 --- /dev/null +++ b/src/components/HelpCard/index.js @@ -0,0 +1 @@ +export { default } from './HelpCard'; diff --git a/src/components/HelpContentPage/HelpContentPage.jsx b/src/components/HelpContentPage/HelpContentPage.jsx new file mode 100644 index 0000000..4e6e75b --- /dev/null +++ b/src/components/HelpContentPage/HelpContentPage.jsx @@ -0,0 +1,36 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import Button from '../Button'; +import './HelpContentPage.scss'; + +const HelpContentPage = ({ + className, + title, + description, + children, + ...rest +}) => { + return ( +
    +

    {title}

    +

    {description}

    + + {children} + +
    + ); +}; + +export default HelpContentPage; + +HelpContentPage.propTypes = { + className: PropTypes.string, +}; + +HelpContentPage.defaultProps = { + className: '', +}; diff --git a/src/components/HelpContentPage/HelpContentPage.scss b/src/components/HelpContentPage/HelpContentPage.scss new file mode 100644 index 0000000..e381f3d --- /dev/null +++ b/src/components/HelpContentPage/HelpContentPage.scss @@ -0,0 +1,6 @@ +.HelpContentPage { + .Button { + display: table; + margin: 1rem auto; + } +} \ No newline at end of file diff --git a/src/components/HelpContentPage/index.js b/src/components/HelpContentPage/index.js new file mode 100644 index 0000000..1574632 --- /dev/null +++ b/src/components/HelpContentPage/index.js @@ -0,0 +1 @@ +export { default } from './HelpContentPage'; diff --git a/src/components/HelpMessage/HelpMessage.jsx b/src/components/HelpMessage/HelpMessage.jsx new file mode 100644 index 0000000..f6af297 --- /dev/null +++ b/src/components/HelpMessage/HelpMessage.jsx @@ -0,0 +1,29 @@ +import React from 'react'; +import { AiOutlineQuestionCircle } from 'react-icons/ai'; +import PropTypes from 'prop-types'; +import './HelpMessage.scss'; + +const HelpMessage = ({ className, children, ...rest }) => { + return ( +
    +
    +
    + + {children} +
    +
    + ); +}; + +export default HelpMessage; + +HelpMessage.propTypes = { + className: PropTypes.string, +}; + +HelpMessage.defaultProps = { + className: '', +}; diff --git a/src/components/HelpMessage/HelpMessage.scss b/src/components/HelpMessage/HelpMessage.scss new file mode 100644 index 0000000..3dc2c5c --- /dev/null +++ b/src/components/HelpMessage/HelpMessage.scss @@ -0,0 +1,20 @@ +@import '../../assets/styles/colors'; +.HelpMessage { + hr { + margin: 1.5rem 0; + border-color: $primary-bright; + } + .HelpMessageBox { + border-radius: 0.5rem; + display: flex; + align-items: center; + justify-content: center; + gap: 0.5rem; + svg { + fill: $primary; + } + p { + color: $gray; + } + } +} diff --git a/src/components/HelpMessage/index.js b/src/components/HelpMessage/index.js new file mode 100644 index 0000000..ecc7072 --- /dev/null +++ b/src/components/HelpMessage/index.js @@ -0,0 +1 @@ +export { default } from './HelpMessage'; diff --git a/src/components/LoomVideo/LoomVideo.jsx b/src/components/LoomVideo/LoomVideo.jsx new file mode 100644 index 0000000..fb75a30 --- /dev/null +++ b/src/components/LoomVideo/LoomVideo.jsx @@ -0,0 +1,30 @@ +import React from 'react'; +import { string } from 'prop-types'; +import './LoomVideo.scss'; + +const LoomVideo = ({ className, title, embedUrl, ...rest }) => { + return ( +
    +