From 00aa8269719225d8fb037116afcb99c9116a4890 Mon Sep 17 00:00:00 2001 From: cami Date: Sun, 11 Jul 2021 00:08:11 +0200 Subject: [PATCH] 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 --- frontend/src/components/HeroSection.css | 1 + frontend/src/components/HeroSection.js | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/HeroSection.css b/frontend/src/components/HeroSection.css index d337b72..618fd32 100644 --- a/frontend/src/components/HeroSection.css +++ b/frontend/src/components/HeroSection.css @@ -30,6 +30,7 @@ display: flex; flex-direction: column; flex-wrap: wrap; + min-width: 60%; } .hero-btns .btn { diff --git a/frontend/src/components/HeroSection.js b/frontend/src/components/HeroSection.js index d9b1737..be197eb 100644 --- a/frontend/src/components/HeroSection.js +++ b/frontend/src/components/HeroSection.js @@ -13,7 +13,14 @@ function HeroSection() {

Herzlich Willkommen

{isLoggedIn ? ( - console.log("Logged in") + ) : ( <>