Skip to content

Commit

Permalink
Merge pull request #102 from Arquisoft/sound
Browse files Browse the repository at this point in the history
Sound added
  • Loading branch information
Mister-Mario authored Apr 18, 2024
2 parents 13399cd + 2ec2f25 commit 96fd810
Show file tree
Hide file tree
Showing 15 changed files with 446 additions and 43 deletions.
140 changes: 126 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
"express": "^4.19.2",
"i18n": "^0.15.1",
"i18next": "^23.10.1",
"jquery": "^3.7.1",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.3.0",
"react-countdown": "^2.3.5",
"react-i18next": "^14.1.0",
"react-router-dom": "^6.22.1"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"jest": "^29.7.0"
}
}
26 changes: 23 additions & 3 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 @@ -53,6 +53,7 @@
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"axios-mock-adapter": "^1.22.0",
"expect-puppeteer": "^9.0.2",
"jest": "^29.3.1",
Expand Down
Binary file added webapp/public/correct.mp3
Binary file not shown.
Binary file added webapp/public/incorrect.mp3
Binary file not shown.
Binary file added webapp/public/tictac.mp3
Binary file not shown.
4 changes: 4 additions & 0 deletions webapp/src/components/Instructions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import {useTranslation} from "react-i18next";




function Instructions() {

const[t] = useTranslation("global");

return (
<div className='instrucions_container'>

<h1 className='instructions_title'>{t("instructions.title")}</h1>
<section>
<article>
Expand Down Expand Up @@ -57,7 +59,9 @@ function Instructions() {
</article>

</section>

</div>

);
}

Expand Down
10 changes: 8 additions & 2 deletions webapp/src/components/fragments/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ function Navbar() {
<div className="navbar-container">
<div className='left-nav'>
<Profile />
<h1 className='navbar-text'>{t("navBar.title")}</h1>
<Link to="/home" className="home-button">
<h1 className='navbar-text'>{t("navBar.title")}</h1>
</Link>
</div>
<div className='right-nav'>
<button className="language-button" onClick={handleLanguageMenuOpen}>{t("navBar.language")}</button>
Expand All @@ -53,7 +55,11 @@ function Navbar() {
}

function Profile() {
return <img src="/logo.jpg" alt="App logo" />;
return (
<Link to="/home" className="home-button">
<img src="/logo.jpg" alt="App logo" />
</Link>
);
}

function Help() {
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/components/loginAndRegistration/AddUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ const AddUser = () => {
<button type="submit">{t("addUser.register_button")}</button>

<LinkLogin />


</form>
</div>
</div>
Expand Down
Loading

0 comments on commit 96fd810

Please sign in to comment.