-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: Fri 09 Aug 2024 08:30:05 CEST
- Loading branch information
Showing
8 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.home-button { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import RouteButton from '../RouteButton/RouteButton'; | ||
import './HomeButton.scss'; | ||
|
||
/** | ||
* This is a HomeButton component | ||
* @author cophilot | ||
* @version 1.0.0 | ||
* @created 2024-8-9 | ||
*/ | ||
function HomeButton() { | ||
return ( | ||
<RouteButton to="/" small> | ||
Home | ||
</RouteButton> | ||
); | ||
} | ||
export default HomeButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.route-button { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { useNavigate } from 'react-router-dom'; | ||
import './RouteButton.scss'; | ||
|
||
interface RouteButtonProps { | ||
to: string; | ||
children: string; | ||
small?: boolean; | ||
} | ||
|
||
/** | ||
* This is a RouteButton component | ||
* @author cophilot | ||
* @version 1.0.0 | ||
* @created 2024-8-9 | ||
*/ | ||
function RouteButton({ to, children, small = false }: RouteButtonProps) { | ||
const navigate = useNavigate(); | ||
|
||
const className = 'btn selected ' + (small ? '' : 'wide'); | ||
|
||
return ( | ||
<button | ||
className={className} | ||
onClick={() => { | ||
navigate(to); | ||
}}> | ||
{children} | ||
</button> | ||
); | ||
} | ||
export default RouteButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { useEffect } from 'react'; | ||
import StyleUtils from '../api/utils/StyleUtils'; | ||
import HomeButton from '../components/HomeButton/HomeButton'; | ||
import Logo from '../components/Logo'; | ||
|
||
/** | ||
* This is the PrivacyView | ||
* @author cophilot | ||
* @version 1.0.0 | ||
* @created 2024-8-9 | ||
*/ | ||
function PrivacyView() { | ||
useEffect(() => { | ||
StyleUtils.setDefaultValues(); | ||
document.title = 'BoardScoreHub'; | ||
}, []); | ||
return ( | ||
<div className="content"> | ||
<Logo /> | ||
<h1>BoardScoreHub Privacy</h1> | ||
<p> | ||
Only data is <b>only</b> kept in your browser. No data will be | ||
sent to any server. This garantuees your privacy, but also means | ||
that you cannot access your data from another device. This also | ||
does not garantuee the persistence of your data. If you clear | ||
your browser data, your data will be lost without any way to | ||
recover it. | ||
</p> | ||
<HomeButton /> | ||
</div> | ||
); | ||
} | ||
|
||
export default PrivacyView; |