Skip to content

Commit

Permalink
Merged all the css into one "custom.css"
Browse files Browse the repository at this point in the history
  • Loading branch information
lauratbg committed Mar 7, 2024
1 parent 5e26b9c commit a243b80
Show file tree
Hide file tree
Showing 23 changed files with 361 additions and 365 deletions.
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.
22 changes: 0 additions & 22 deletions webapp/src/components/GameMenu/GameMenu.css

This file was deleted.

7 changes: 3 additions & 4 deletions webapp/src/components/GameMenu/GameMenu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import './GameMenu.css';
import "../../custom.css";
import { Link } from "react-router-dom";
import QuestionView from '../questionView/QuestionView';
export default function GameMenu() {
return (
<div className="divMenu">
Expand All @@ -22,8 +21,8 @@ export default function GameMenu() {
function ButtonNewGame() {
return (
<>
<Link className="menuButton" to="/questions">
<button >Create New Game</button>
<Link to="/questions">
<button className='create-game'>Create New Game</button>
</Link>
</>
);
Expand Down
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
1 change: 1 addition & 0 deletions webapp/src/components/questionView/QuestionGenerator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Question from './Question';
import "../../custom.css";
class QuestionGenerator{

constructor(){
Expand Down
Loading

0 comments on commit a243b80

Please sign in to comment.