Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions recipes/vue-vite/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,67 +23,3 @@ import { RouterView } from 'vue-router'
<template>
<RouterView />
</template>

<style scoped>
header {
line-height: 1.5;
max-height: 100vh;
}

.logo {
display: block;
margin: 0 auto 2rem;
}

nav {
width: 100%;
font-size: 12px;
text-align: center;
margin-top: 2rem;
}

nav a.router-link-exact-active {
color: var(--color-text);
}

nav a.router-link-exact-active:hover {
background-color: transparent;
}

nav a {
display: inline-block;
padding: 0 1rem;
border-left: 1px solid var(--color-border);
}

nav a:first-of-type {
border: 0;
}

@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}

.logo {
margin: 0 2rem 0 0;
}

header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}

nav {
text-align: left;
margin-left: -1rem;
font-size: 1rem;

padding: 1rem 0;
margin-top: 1rem;
}
}
</style>
32 changes: 32 additions & 0 deletions recipes/vue-vite/src/assets/asgardeo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 0 additions & 104 deletions recipes/vue-vite/src/assets/base.css

This file was deleted.

32 changes: 0 additions & 32 deletions recipes/vue-vite/src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 39 additions & 26 deletions recipes/vue-vite/src/assets/main.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
@import './base.css';
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
font-weight: normal;
/* Logo Styles */
.logo {
width: 100px;
margin: 10px;
}

a,
.green {
text-decoration: none;
color: hsla(160, 100%, 37%, 1);
transition: 0.4s;
padding: 3px;
/* Button Styles */
button {
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
transition: background-color 0.3s;
}

@media (hover: hover) {
a:hover {
background-color: hsla(160, 100%, 37%, 0.2);
}
button:hover {
background-color: #0056b3;
}

@media (min-width: 1024px) {
body {
display: flex;
place-items: center;
}
/* Container Styles */
.button-container {
margin-top: 20px;
}

#app {
display: grid;
grid-template-columns: 1fr 1fr;
padding: 0 2rem;
}
/* Center Content */
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
11 changes: 11 additions & 0 deletions recipes/vue-vite/src/components/SignInBtn.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script setup>
import { useAsgardeo } from "@asgardeo/vue";

const { signIn } = useAsgardeo();
</script>

<template>
<button @click="signIn">
Sign In
</button>
</template>
1 change: 0 additions & 1 deletion recipes/vue-vite/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const app: VueApp = createApp(App)
const config: AuthVueConfig = {
baseUrl: import.meta.env.VITE_ASGARDEO_BASE_URL,
clientID: import.meta.env.VITE_ASGARDEO_CLIENT_ID,
disableTrySignInSilently: false,
scope: ['openid', 'profile', 'email'],
signInRedirectURL: import.meta.env.VITE_ASGARDEO_SIGN_IN_REDIRECT_URL,
signOutRedirectURL: import.meta.env.VITE_ASGARDEO_SIGN_OUT_REDIRECT_URL,
Expand Down
Loading
Loading