47 lines
1.9 KiB
JavaScript
47 lines
1.9 KiB
JavaScript
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">
|
|
<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 create-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>
|
|
)
|
|
} |