Renaming and autoformatting
- renamed the react files to jsx - autoformat with vscode
This commit is contained in:
parent
e762032f00
commit
85e484bf0b
32 changed files with 127 additions and 129 deletions
55
frontend/src/components/HeroSection.jsx
Normal file
55
frontend/src/components/HeroSection.jsx
Normal file
|
@ -0,0 +1,55 @@
|
|||
import React from "react";
|
||||
import "../App.css";
|
||||
import { Button } from "./Button";
|
||||
import "./HeroSection.css";
|
||||
import "@fortawesome/fontawesome-free/css/all.css";
|
||||
import { useAuth } from "../auth/AuthProvider";
|
||||
|
||||
export default function HeroSection() {
|
||||
const [isLoggedIn] = useAuth();
|
||||
|
||||
return (
|
||||
<div className="hero-container">
|
||||
<h1>Herzlich Willkommen</h1>
|
||||
<div className="hero-btns">
|
||||
{isLoggedIn ? (
|
||||
<Button
|
||||
className="btns"
|
||||
buttonStyle="btn--primary"
|
||||
buttonSize="btn--large"
|
||||
newTo="study"
|
||||
>
|
||||
Zur Studie
|
||||
</Button>
|
||||
) : (
|
||||
<>
|
||||
<Button
|
||||
className="btns"
|
||||
buttonStyle="btn--primary"
|
||||
buttonSize="btn--large"
|
||||
newTo="login"
|
||||
>
|
||||
Einloggen (wenn du schon einmal mitgemacht hast)
|
||||
</Button>
|
||||
<Button
|
||||
className="btns"
|
||||
buttonStyle="btn--primary"
|
||||
buttonSize="btn--large"
|
||||
newTo="register"
|
||||
>
|
||||
Registrieren (falls du das erste Mal hier bist)
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
<Button
|
||||
className="btns"
|
||||
buttonStyle="btn--primary"
|
||||
buttonSize="btn--large"
|
||||
newTo="manual"
|
||||
>
|
||||
Anleitung
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue