Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged all the css into one "custom.css" #50

Merged
merged 3 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions webapp/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 webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"axios": "^1.6.5",
"i18n": "^0.15.1",
"react": "^18.2.0",
"react-countdown": "^2.3.5",
"react-dom": "^18.2.0",
"react-i18next": "^14.0.5",
"react-icons": "^5.0.1",
Expand Down
38 changes: 0 additions & 38 deletions webapp/src/App.css

This file was deleted.

4 changes: 2 additions & 2 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import Container from '@mui/material/Container';
import QuestionView from './components/questionView/QuestionView';
import GameMenu from './components/GameMenu/GameMenu';
import Navbar from './components/fragments/NavBar';
import Home from './components/Home/Home';
import Home from './components/home/Home';
import Login from './components/loginAndRegistration/Login';
import AddUser from './components/loginAndRegistration/AddUser';
import Instructions from './components/Instructions';

import './custom.css';

function App() {
return (
Expand Down
Empty file removed webapp/src/components/GameMenu.js
Empty file.
17 changes: 7 additions & 10 deletions webapp/src/components/GameMenu/GameMenu.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './GameMenu.css';
import "../../custom.css";
import { Link } from "react-router-dom";
import {useTranslation} from "react-i18next";

Expand All @@ -22,13 +22,10 @@ export default function GameMenu() {
return <button className="menuButton" onClick={handleClick}> {t("gameMenu.history_button")}</button>;
}

function ButtonNewGame({t}) {
function ButtonNewGame({ t }) {
return (
<>
<Link className="menuButton" to="/questions">
<h3> {t("gameMenu.new_game_button")}</h3>
</Link>
</>
);
}

<Link className="menuButton linkButton" to="/questions">
<h3>{t("gameMenu.new_game_button")}</h3>
</Link>
);
}
37 changes: 0 additions & 37 deletions webapp/src/components/Home/Home.css

This file was deleted.

5 changes: 1 addition & 4 deletions webapp/src/components/Home/Home.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from "react";
import Typography from "@mui/material/Typography";
import Button from "@mui/material/Button";
import { Link } from 'react-router-dom';
import "./Home.css";
import "../../custom.css";
import {useTranslation} from "react-i18next";

import "./Home.css";


function Home() {

Expand Down
21 changes: 0 additions & 21 deletions webapp/src/components/Instructions.css

This file was deleted.

2 changes: 1 addition & 1 deletion webapp/src/components/Instructions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import '../components/Instructions.css';
import '../custom.css';
import {useTranslation} from "react-i18next";


Expand Down
41 changes: 0 additions & 41 deletions webapp/src/components/fragments/NavBar.css

This file was deleted.

11 changes: 7 additions & 4 deletions webapp/src/components/fragments/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from 'react';
import Typography from "@mui/material/Typography";
import { Link } from 'react-router-dom';
import "./NavBar.css";
import "../../custom.css";
import {useTranslation} from "react-i18next";

function Navbar() {
Expand All @@ -15,9 +15,12 @@ function Navbar() {
<Typography variant="h6" gutterBottom className="navbar-text">
{t("navBar.title")}
</Typography>
<button onClick={()=> i18n.changeLanguage("en")}>EN</button>
<button onClick={()=> i18n.changeLanguage("es")}>ES</button>
<Help />
<div className='right-nav'>
<button className="en-button" onClick={()=> i18n.changeLanguage("en")}>EN</button>
<button className="es-button" onClick={()=> i18n.changeLanguage("es")}>ES</button>
<Help />
</div>

</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/loginAndRegistration/AddUser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { FaUser, FaLock } from "react-icons/fa";
import "./Login.css";
import "../../custom.css";
import { Link } from "react-router-dom";
import { useTranslation } from "react-i18next";

Expand Down
106 changes: 0 additions & 106 deletions webapp/src/components/loginAndRegistration/Login.css

This file was deleted.

1 change: 1 addition & 0 deletions webapp/src/components/loginAndRegistration/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { FaUser, FaLock } from "react-icons/fa";
import { Link } from "react-router-dom";
import Button from "@mui/material/Button";
import { useTranslation } from "react-i18next";
import "../../custom.css";

const Login = () => {
const { t } = useTranslation("global");
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/components/questionView/Question.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "../../custom.css";

class Question{
constructor(json){
this.question = "";
Expand Down
Loading
Loading