Skip to content

Commit eb32fdf

Browse files
Merge pull request #55 from 3nethz/feat/vue-sdk
2 parents 7b140a6 + 09037dc commit eb32fdf

File tree

11 files changed

+258
-277
lines changed

11 files changed

+258
-277
lines changed

recipes/vue-vite/src/App.vue

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -23,67 +23,3 @@ import { RouterView } from 'vue-router'
2323
<template>
2424
<RouterView />
2525
</template>
26-
27-
<style scoped>
28-
header {
29-
line-height: 1.5;
30-
max-height: 100vh;
31-
}
32-
33-
.logo {
34-
display: block;
35-
margin: 0 auto 2rem;
36-
}
37-
38-
nav {
39-
width: 100%;
40-
font-size: 12px;
41-
text-align: center;
42-
margin-top: 2rem;
43-
}
44-
45-
nav a.router-link-exact-active {
46-
color: var(--color-text);
47-
}
48-
49-
nav a.router-link-exact-active:hover {
50-
background-color: transparent;
51-
}
52-
53-
nav a {
54-
display: inline-block;
55-
padding: 0 1rem;
56-
border-left: 1px solid var(--color-border);
57-
}
58-
59-
nav a:first-of-type {
60-
border: 0;
61-
}
62-
63-
@media (min-width: 1024px) {
64-
header {
65-
display: flex;
66-
place-items: center;
67-
padding-right: calc(var(--section-gap) / 2);
68-
}
69-
70-
.logo {
71-
margin: 0 2rem 0 0;
72-
}
73-
74-
header .wrapper {
75-
display: flex;
76-
place-items: flex-start;
77-
flex-wrap: wrap;
78-
}
79-
80-
nav {
81-
text-align: left;
82-
margin-left: -1rem;
83-
font-size: 1rem;
84-
85-
padding: 1rem 0;
86-
margin-top: 1rem;
87-
}
88-
}
89-
</style>
Lines changed: 32 additions & 0 deletions
Loading

recipes/vue-vite/src/assets/base.css

Lines changed: 0 additions & 104 deletions
This file was deleted.

recipes/vue-vite/src/assets/logo.svg

Lines changed: 0 additions & 32 deletions
Loading

recipes/vue-vite/src/assets/main.css

Lines changed: 39 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,48 @@
1-
@import './base.css';
1+
/* General Styles */
2+
body {
3+
font-family: Arial, sans-serif;
4+
margin: 0;
5+
padding: 0;
6+
background-color: #f4f4f4;
7+
color: #333;
8+
text-align: center;
9+
display: flex;
10+
justify-content: center;
11+
align-items: center;
12+
height: 100vh;
13+
}
214

3-
#app {
4-
max-width: 1280px;
5-
margin: 0 auto;
6-
padding: 2rem;
7-
font-weight: normal;
15+
/* Logo Styles */
16+
.logo {
17+
width: 100px;
18+
margin: 10px;
819
}
920

10-
a,
11-
.green {
12-
text-decoration: none;
13-
color: hsla(160, 100%, 37%, 1);
14-
transition: 0.4s;
15-
padding: 3px;
21+
/* Button Styles */
22+
button {
23+
padding: 10px 15px;
24+
font-size: 16px;
25+
cursor: pointer;
26+
background-color: #007bff;
27+
color: white;
28+
border: none;
29+
border-radius: 5px;
30+
transition: background-color 0.3s;
1631
}
1732

18-
@media (hover: hover) {
19-
a:hover {
20-
background-color: hsla(160, 100%, 37%, 0.2);
21-
}
33+
button:hover {
34+
background-color: #0056b3;
2235
}
2336

24-
@media (min-width: 1024px) {
25-
body {
26-
display: flex;
27-
place-items: center;
28-
}
37+
/* Container Styles */
38+
.button-container {
39+
margin-top: 20px;
40+
}
2941

30-
#app {
31-
display: grid;
32-
grid-template-columns: 1fr 1fr;
33-
padding: 0 2rem;
34-
}
42+
/* Center Content */
43+
.container {
44+
display: flex;
45+
flex-direction: column;
46+
align-items: center;
47+
justify-content: center;
3548
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup>
2+
import { useAsgardeo } from "@asgardeo/vue";
3+
4+
const { signIn } = useAsgardeo();
5+
</script>
6+
7+
<template>
8+
<button @click="signIn">
9+
Sign In
10+
</button>
11+
</template>

recipes/vue-vite/src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const app: VueApp = createApp(App)
2828
const config: AuthVueConfig = {
2929
baseUrl: import.meta.env.VITE_ASGARDEO_BASE_URL,
3030
clientID: import.meta.env.VITE_ASGARDEO_CLIENT_ID,
31-
disableTrySignInSilently: false,
3231
scope: ['openid', 'profile', 'email'],
3332
signInRedirectURL: import.meta.env.VITE_ASGARDEO_SIGN_IN_REDIRECT_URL,
3433
signOutRedirectURL: import.meta.env.VITE_ASGARDEO_SIGN_OUT_REDIRECT_URL,

0 commit comments

Comments
 (0)