1
0

Finished the Home.jsx page

This commit is contained in:
Mathias Wagner 2023-11-18 18:17:54 +01:00
parent 22b76346ac
commit 553aed2c07
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -1,9 +1,47 @@
import "./styles.sass";
import GitHubImage from "@/common/images/GitHub.png"
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faPlusSquare, faRightToBracket} from "@fortawesome/free-solid-svg-icons";
import {Link} from "react-router-dom";
export const DONATION_LINK = "https://ko-fi.com/gnmyt";
export const GITHUB_LINK = "https://github.com/gnmyt/PerfectMarketGame";
export const Home = () => {
return (
<div className="home-page">
<h1>Home</h1>
<div className="glassy info-area">
<h2>Worum geht's?</h2>
<div className="info-area-inner">
<p>
Dies ist ein Lernspiel über den vollkommenen Markt.<br/><br/>
Anhand eines Kuchenmarktes finden deine Schüler heraus, wie Angebot und Nachfrage funktionieren
und welche Auswirkungen diese auf den Markt haben.
</p>
<p className="donate">
<a href={DONATION_LINK} target="_blank" rel="noreferrer">Lass doch eine Spende da</a>,
wenn dir das Spiel gefällt!
</p>
<a className="glassy github-link" href={GITHUB_LINK} target="_blank" rel="noreferrer">
<img src={GitHubImage} alt="GitHub Logo"/>
<h2>Source-Code ansehen</h2>
</a>
</div>
</div>
<div className="action-area">
<Link className="glassy action-btn" to="/create">
<FontAwesomeIcon icon={faPlusSquare}/>
<h2>Raum erstellen</h2>
</Link>
<Link className="glassy action-btn" to="/join">
<FontAwesomeIcon icon={faRightToBracket}/>
<h2>Raum beitreten</h2>
</Link>
</div>
</div>
)
}