Skip to content

Commit c770aaa

Browse files
committed
style login page
1 parent ae25090 commit c770aaa

File tree

5 files changed

+35
-13
lines changed

5 files changed

+35
-13
lines changed

src/AutoLogin.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<label>Auto login</label>
2+
<label class="mr-2">Auto Sign in</label>
33
<input
44
v-model="autoLogin"
55
type="checkbox"

src/LoginScreen.vue

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
<template>
2-
<div>
3-
<button @click="login">login</button>
4-
<div>
5-
You need to login to github, to use your gists with this dev tool.
2+
<div class="login--container">
3+
<div style="grid-area: button">
4+
<button @click="login" class="flex mr-2">
5+
<fa type="fab" icon="github" class="h-4 mr-2"/>
6+
Sign in
7+
</button>
8+
</div>
9+
<div style="grid-area: autologin">
10+
<AutoLogin/>
11+
</div>
12+
<div style="grid-area: description">
13+
You need to sign in to github, to use your gists with this dev tool.
614
</div>
7-
<AutoLogin/>
8-
915
</div>
1016
</template>
1117

@@ -25,5 +31,21 @@ onMounted(()=> {
2531
}
2632
});
2733
28-
2934
</script>
35+
36+
<style scoped>
37+
.login--container {
38+
display: grid;
39+
grid-template-areas:
40+
'. . .'
41+
'. button .'
42+
'. autologin .'
43+
'description description description'
44+
'. . .';
45+
grid-template-rows: 250px 2rem 1rem auto auto;
46+
grid-template-columns: 100px 150px 100px;
47+
justify-content: center;
48+
grid-row-gap: 10px;
49+
min-height: 100%;
50+
}
51+
</style>

src/assets/styles/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
a {
23-
@apply text-orange-600;
23+
@apply text-blue-600;
2424
}
2525

2626
a:hover {
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { library } from "@fortawesome/fontawesome-svg-core";
22
import { fas } from "@fortawesome/free-solid-svg-icons";
3-
import { faInstagram, faTwitter } from "@fortawesome/free-brands-svg-icons";
3+
import { faInstagram, faTwitter, faGithub } from "@fortawesome/free-brands-svg-icons";
44
import FontAwesomeIcon from "./FontAwesomeIcon.vue";
55

6-
library.add(fas, faTwitter, faInstagram);
7-
6+
library.add(fas, faTwitter, faInstagram, faGithub);
87
export { FontAwesomeIcon };

src/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"content_security_policy": "script-src 'self' 'unsafe-eval' http://localhost:8098; object-src 'self'",
1414
"permissions": [
1515
"identity",
16-
"https://*.github.com/*"
16+
"https://github.com/login/oauth/authorize",
17+
"https://github.com/login/oauth/access_token"
1718
]
1819
}

0 commit comments

Comments
 (0)