Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/emmanueposu/Trivia-Forge in…
Browse files Browse the repository at this point in the history
…to pbranch
  • Loading branch information
emmanueposu committed Apr 29, 2024
2 parents d3db253 + 1b896ce commit 4d4bb7f
Show file tree
Hide file tree
Showing 16 changed files with 1,073 additions and 61 deletions.
1 change: 1 addition & 0 deletions trivia-forge/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ __pycache__
*.sln
*.sw?
.env
__pycache__
693 changes: 693 additions & 0 deletions trivia-forge/backend/poetry.lock

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions trivia-forge/backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "backend"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
supabase = "^2.4.3"
flask = "^3.0.3"
python-dotenv = "^1.0.1"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
5 changes: 0 additions & 5 deletions trivia-forge/backend/requirements.txt

This file was deleted.

88 changes: 88 additions & 0 deletions trivia-forge/dist/assets/index-BE7_8Dwe.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions trivia-forge/dist/assets/index-DkrhZ241.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions trivia-forge/dist/assets/react-CHdo91hT.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions trivia-forge/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script type="module" crossorigin src="/assets/index-BE7_8Dwe.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DkrhZ241.css">
</head>

<body>
<div id="root"></div>
</body>

</html>
1 change: 1 addition & 0 deletions trivia-forge/dist/vite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions trivia-forge/frontend/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 trivia-forge/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"react": "^18.2.0",
"react-bootstrap": "^2.10.2",
"react-dom": "^18.2.0",
"react-icons": "^5.1.0",
"react-router-dom": "^6.22.3"
},
"devDependencies": {
Expand Down
72 changes: 71 additions & 1 deletion trivia-forge/frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");




/* Header Animation */
.header-animation {
font-family: "Russo One", sans-serif;
width: 100%; height: 100%;
}
.header-animation text {
animation: stroke 5s infinite alternate;
stroke-width: 2;
stroke: #365FA0;
font-size: 100px;
}
@keyframes stroke {
0% {
fill: rgba(72,138,204,0); stroke: rgba(54,95,160,1);
stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
}
70% {fill: rgba(72,138,204,0); stroke: rgba(54,95,160,1); }
80% {fill: rgba(72,138,204,0); stroke: rgba(54,95,160,1); stroke-width: 3; }
100% {
fill: rgba(72,138,204,1); stroke: rgba(54,95,160,0);
stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
}
}

.wrapper {background-color: #FFFFFF};
/* End Header Animation */

.App {
text-align: center;
background-color: #dee2ff;
Expand All @@ -9,6 +41,10 @@
pointer-events: none;
}

.form-group {
margin: 20px;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
Expand Down Expand Up @@ -45,9 +81,43 @@
background-color: white;
}

footer{
footer {
position: absolute;
bottom: 0;
text-align: center;
width: 100%;
}

.homepage-container .row {
justify-content: center;
}

.homepage-container .col {
margin: 10px;
flex: 0 0 auto;
text-align: center;
}

.homepage-container .btn-primary {
padding: 20px;
background: linear-gradient(to bottom, #ff8c00, #ff6700);
color: white;
font-weight: bold;
border: 3px solid #ee7600;
font-family: 'Fredoka One', cursive;
font-size: 40px;
border-radius: 70px; /* Rounded corners */
box-shadow: 0 8px #999;
/* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.1); */
width: 40%;
text-shadow: 1px 1px 2px black;
transition: all 0.3s ease;
}

.homepage-container .btn-primary:hover,
.homepage-container .btn-primary:focus {
transform: translateY(-2px);
background: linear-gradient(to bottom, #ff6700, #ff8c00);
border: 3px solid #ee7600;
outline: none;
}
4 changes: 3 additions & 1 deletion trivia-forge/frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import Navigation from "./Components/Nav";
import TriviaGenPage from './Pages/TriviaGenPage';
import TriviaReviewPage from './Pages/TriviaReviewPage';
import MyTrivia from './Pages/MyTrivia';
import SignUpPage from './Pages/SignUpPage';
import React from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';

let signedIn = false;

function App() {
const [count, setCount] = useState(0)

return (

<div className="App">
Expand All @@ -29,6 +30,7 @@ function App() {
<Route path="/triviaGen" element={<TriviaGenPage />} />
<Route path="/review" element={<TriviaReviewPage />} />
<Route path="/myTrivia" element={<MyTrivia />} />
<Route path="/SignUpPage" element={<SignUpPage />} />
</Routes>

</main>
Expand Down
37 changes: 35 additions & 2 deletions trivia-forge/frontend/src/Components/Nav.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import React from "react";
import { Navbar } from "react-bootstrap";
import { Nav } from "react-bootstrap";
import { Nav, Button, Modal, Form } from "react-bootstrap";
import { useState } from 'react';
import { Link } from "react-router-dom"
const loginIcon = "https://yxdrsdfocuonvorowgaa.supabase.co/storage/v1/object/sign/UI%20Assets/Login%20Icon.svg?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJVSSBBc3NldHMvTG9naW4gSWNvbi5zdmciLCJpYXQiOjE3MTQwNDQ1NjQsImV4cCI6NDg2NzY0NDU2NH0.-IE25tSqh2pH4EwagAEHzml4lv0mJwZgptA73XO2zpY&t=2024-04-25T11%3A29%3A24.290Z"

function Navigation() {
const [show, setShow] = useState(false);

const handleClose = () => setShow(false);
const handleShow = () => setShow(true);
return (
<>
<Navbar bg="dark" data-bs-theme="dark">
Expand All @@ -16,10 +21,38 @@ function Navigation() {
</Nav>
<Nav>
<img src={loginIcon} id="test"></img>
<Nav.Link href="#">Log In</Nav.Link>
<Button onClick={handleShow}>Log In</Button>
</Nav>

</Navbar>
<Modal show={show} onHide={handleClose}>

<Modal.Header closeButton>
<Modal.Title>Sign In</Modal.Title>
</Modal.Header>

<Modal.Body>
<Form>
<Form.Label htmlFor="inputEmail">Email</Form.Label>
<Form.Control
type="email"
id="inputEmail"
/>
<Form.Label htmlFor="inputPassword">Password</Form.Label>
<Form.Control
type="password"
id="inputPassword"
/>
</Form>
<p>Not a member? <Link onClick={handleClose} to="/SignUpPage">Sign Up</Link></p>
</Modal.Body>

<Modal.Footer>
<Button onClick={handleClose} variant="secondary">Close</Button>
<Button variant="primary">Sign In</Button>

</Modal.Footer>
</Modal>
</>
);
}
Expand Down
Loading

0 comments on commit 4d4bb7f

Please sign in to comment.