diff --git a/src/App.jsx b/src/App.jsx index 3caca31..e7b8203 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,6 +1,8 @@ import React from 'react'; import EnterCode from './components/EnterCode'; import EndSession from './components/EndSession'; +import GenerateSession from './components/GenerateSession'; +import Welcome from './components/Welcome'; import Chat from './components/Chat'; import PdfFileManager from './components/PdfManager'; import { createGlobalStyle } from 'styled-components'; @@ -25,6 +27,16 @@ function App() { } + /> + } + /> + } /> Your session has now ended. - + + + + + {/* */} ); } -export default EndSession \ No newline at end of file +export default EndSession; \ No newline at end of file diff --git a/src/components/EnterCode.jsx b/src/components/EnterCode.jsx index 0ff6e7d..e2e5544 100644 --- a/src/components/EnterCode.jsx +++ b/src/components/EnterCode.jsx @@ -141,13 +141,20 @@ function EnterCode() { navigate(path); } + const handleKeyPress = (e) => { + if (e.key === "Enter") { + routeChange(); + } + }; + return ( Enter your session code - + diff --git a/src/components/GenerateSession.jsx b/src/components/GenerateSession.jsx new file mode 100644 index 0000000..bcaa362 --- /dev/null +++ b/src/components/GenerateSession.jsx @@ -0,0 +1,79 @@ +import styled from 'styled-components'; +import { useNavigate } from "react-router-dom"; + +const Container = styled.div` + background-image: linear-gradient(to bottom right, #0a8e3d, #9fdb3f); + background-size: contain; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100vh; +`; + +const Logo = styled.img` + height: 270px; + width: 550px; +`; + +const CodeContainer = styled.div` + display: flex; + flex-direction: column; + align-items: center; + position: relative; + padding: 30px 0px 30px 30px; + height: 200px; + width: 850px; + background-color: #f8f8f8b2; + border-radius: 50px; + box-shadow: 0px 4px 10px #00000040; +`; + +const Text = styled.h3` + height: 25px; + width: 724px; + color: #000000; + font-size: 40px; + font-weight: 400; + line-height: normal; + text-align: center; + position: relative; +`; + +const Button = styled.button` + height: 55px; + width: 60%; + background-color: #0b9f43; + border-radius: 30px 30px 30px 30px; + position: relative; + color: white; + font-family: 'League Spartan', sans-serif; + font-size: x-large; + border: 0px solid; + cursor: pointer; + &:hover { + background-color: #076a2d; + } +` + +function GenerateSession() { + let navigate = useNavigate(); + + // this is just for demo purposes, we're going to need to integrate this with specific session + const routeChange = () =>{ + let path = `/session`; + navigate(path); + } + + return( + + + + Employee Side + + + + ); +} + +export default GenerateSession; diff --git a/src/components/Welcome.jsx b/src/components/Welcome.jsx new file mode 100644 index 0000000..692c40a --- /dev/null +++ b/src/components/Welcome.jsx @@ -0,0 +1,72 @@ +import styled from 'styled-components'; +import { useNavigate } from "react-router-dom"; + +const Container = styled.div` + background-image: linear-gradient(to bottom right, #0a8e3d, #9fdb3f); + background-size: contain; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100vh; +`; + +const ButtonContainer = styled.div` + display: flex; + justify-content: center; + align-items: center; + width: 100%; +`; + +const Logo = styled.img` + height: 270px; + width: 550px; +`; + +const Button = styled.button` + height: 55px; + width: 20%; + background-color: #f8f8f8b2; + border-radius: 30px 30px 30px 30px; + position: relative; + color: black; + font-family: 'League Spartan', sans-serif; + font-size: x-large; + border: 0px solid; + cursor: pointer; + &:hover { + background-color: white; + } + &:first-child { + margin-right: 10px; // Add right margin to the first button + } + &:last-child { + margin-left: 10px; // Add left margin to the last button + } +` + +function Welcome() { + let navigate = useNavigate(); + + const routeChangeCustomer = () =>{ + let path = `/enter`; + navigate(path); + } + + const routeChangeEmployee = () =>{ + let path = `/generate`; + navigate(path); + } + + return( + + + + + + + + ); +} + +export default Welcome; \ No newline at end of file