generated from PrivateAIM/typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from PrivateAIM/133-improve-landing-page
133 improve landing page
- Loading branch information
Showing
10 changed files
with
163 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<script setup lang="ts"> | ||
const { loggedIn, login } = useOidcAuth(); | ||
</script> | ||
|
||
<template> | ||
<div class="keycloak-login-btn landing-btn"> | ||
<!-- <div class="login-welcome" v-if="loggedIn">--> | ||
<!-- <span class="login-welcome-msg"--> | ||
<!-- >Welcome <b>{{ user.userName || "Friend" }}</b--> | ||
<!-- >!</span--> | ||
<!-- >--> | ||
<!-- <Button @click="logout()" severity="warning" outlined>Logout</Button>--> | ||
<!-- </div>--> | ||
<div v-if="!loggedIn"> | ||
<Button @click="login()" severity="success" outlined | ||
>Login with Keycloak</Button | ||
> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.login-welcome { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: safe center; | ||
align-items: center; | ||
margin-top: 2em; | ||
font-size: 1.1em; | ||
} | ||
.login-welcome-msg { | ||
margin-right: 2em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<script setup lang="ts"> | ||
import KeycloakAuth from "~/components/landing/KeycloakAuth.vue"; | ||
const { loggedIn } = useOidcAuth(); | ||
</script> | ||
|
||
<template> | ||
<div class="landing-buttons"> | ||
<div class="login-or-learn-container" v-if="!loggedIn"> | ||
<KeycloakAuth /> | ||
<div class="learn-more-btn landing-btn"> | ||
<NuxtLink | ||
to="https://privateaim.de/de/index.html" | ||
target="_blank" | ||
rel="noopener" | ||
> | ||
<Button label="privateaim" severity="contrast" outlined | ||
>Learn More</Button | ||
> | ||
</NuxtLink> | ||
</div> | ||
</div> | ||
<div class="get-started-container" v-else> | ||
<h2 style="text-align: center">What would you like to do today?</h2> | ||
<div class="get-started-btns"> | ||
<a class="get-started-btn" href="/projects"> | ||
<i class="pi pi-objects-column get-started-btn-icon" /> | ||
<p>Review projects and their statuses</p> | ||
</a> | ||
<a class="get-started-btn" href="/analyses"> | ||
<i class="pi pi-lightbulb get-started-btn-icon" /> | ||
<p>Inspect individual analyses</p> | ||
</a> | ||
<a class="get-started-btn" href="/data-stores/create"> | ||
<i class="pi pi-hammer get-started-btn-icon" /> | ||
<p>Create a data store for a project</p> | ||
</a> | ||
<a class="get-started-btn" href="/data-stores"> | ||
<i class="pi pi-wrench get-started-btn-icon" /> | ||
<p>Manage the active data stores</p> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.login-or-learn-container { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
} | ||
.landing-btn { | ||
margin: 1em; | ||
} | ||
.get-started-container { | ||
margin-top: 5em; | ||
} | ||
.get-started-btns { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: safe center; | ||
margin: auto; | ||
} | ||
.get-started-btn { | ||
width: 40%; | ||
border: solid 2px rgba(gray, 0.2); | ||
background: none; | ||
text-decoration: none; | ||
text-align: center; | ||
color: deepskyblue; | ||
padding: 0.4em; | ||
} | ||
.get-started-btn:hover { | ||
border-bottom: solid 2px yellow; | ||
margin-bottom: -2px; | ||
background-color: black; | ||
} | ||
.get-started-btn:not(:last-child) { | ||
border-right: solid 1px rgba(gray, 0.2); | ||
} | ||
.get-started-btn:not(:first-child) { | ||
border-left: solid 1px rgba(gray, 0.2); | ||
} | ||
.get-started-btn-icon { | ||
margin: 0.3em; | ||
font-size: 3em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.