diff --git a/frontend/public/Quiz-Show-Logo.png b/frontend/public/Quiz-Show-Logo.png new file mode 100644 index 0000000..da11fc1 Binary files /dev/null and b/frontend/public/Quiz-Show-Logo.png differ diff --git a/frontend/src/components/HomePage.js b/frontend/src/components/HomePage.js index bb4d7e5..97c08db 100644 --- a/frontend/src/components/HomePage.js +++ b/frontend/src/components/HomePage.js @@ -1,3 +1,4 @@ +import MainLayout from './MainLayout'; import React, { useState, useEffect } from 'react'; import { TextField, @@ -14,6 +15,7 @@ import { } from '@mui/material'; import { useNavigate } from 'react-router-dom'; import QRCode from 'react-qr-code'; +import { purple } from '@mui/material/colors'; function HomePage() { const [quizID, setQuizID] = useState(''); @@ -73,84 +75,92 @@ function HomePage() { const pageURL = 'https://demo.localstack.cloud/'; return ( - - - Enter Quiz Details - - - {errorMessage && ( - - {errorMessage} - - )} - - {publicQuizzes.length > 0 ? ( - - Select a Public Quiz - - - ) : ( - - No public quizzes are available. + + + + Welcome - )} - - setUsername(e.target.value)} - /> - setEmail(e.target.value)} - /> + {errorMessage && ( + + {errorMessage} + + )} - - - - + {publicQuizzes.length > 0 ? ( + + Select a Public Quiz + + + ) : ( + + No public quizzes are available. + + )} - - - Share this Page - + + setUsername(e.target.value)} + /> + setEmail(e.target.value)} + /> + + + + + + + + + Share this Page + - + ); } diff --git a/frontend/src/components/MainLayout.js b/frontend/src/components/MainLayout.js new file mode 100644 index 0000000..e5c34a7 --- /dev/null +++ b/frontend/src/components/MainLayout.js @@ -0,0 +1,22 @@ +import React from 'react'; +import { Typography, Container, Box } from '@mui/material'; + +function MainLayout({ children }) { + return ( + + AWSome Quiz Show + {children} + + + © 2023 My Website + + + + ); +} + +export default MainLayout; diff --git a/frontend/src/index.css b/frontend/src/index.css index ec2585e..d5fccb0 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -5,9 +5,45 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + background: var(--gray-950, #030712); } code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } + +.main-header-img { + width: 100%; + max-width: 482px; + height: 100%; + margin: 16px auto; + display: block; +} + +.main-quiz-container { + border-radius: var(--borderRadius, 4px); + background: var(--background-paper-elevation-2, #EAEAF0); + + /* elevation/2 */ + box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.20); + display: flex; + width: var(--sm, 600px); + padding: var(--3, 24px) var(--2, 16px); + flex-direction: column; + align-items: center; + gap: var(--3, 12px); +} + +.button { + border-radius: var(--borderRadius, 4px); + border: var(--none, 1px) solid var(--primary-_states-outlinedBorder, rgba(77, 13, 207, 0.50)); +} + +.purple-button { + border-radius: var(--borderRadius, 4px); + background: var(--primary-main, #4D0DCF); + + /* elevation/2 */ + box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.20); +} \ No newline at end of file