Added Button if the user is logged in and css
Added a button if the user is already logged in which will directly go to the study - make buttons minimal width
This commit is contained in:
parent
4391cf790c
commit
00aa826971
2 changed files with 9 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
min-width: 60%;
|
||||
}
|
||||
|
||||
.hero-btns .btn {
|
||||
|
|
|
@ -13,7 +13,14 @@ function HeroSection() {
|
|||
<h1>Herzlich Willkommen</h1>
|
||||
<div className="hero-btns">
|
||||
{isLoggedIn ? (
|
||||
console.log("Logged in")
|
||||
<Button
|
||||
className="btns"
|
||||
buttonStyle="btn--primary"
|
||||
buttonSize="btn--large"
|
||||
newTo="behavior"
|
||||
>
|
||||
Zur Studie
|
||||
</Button>
|
||||
) : (
|
||||
<>
|
||||
<Button
|
||||
|
|
Loading…
Reference in a new issue