Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit f9e0d4a

Browse files
authored
Merge pull request #26 from chiubaca/ui-ux-improvments2
More UI UX Misc Tweaks
2 parents ff4acb3 + 71366d8 commit f9e0d4a

File tree

15 files changed

+251
-36
lines changed

15 files changed

+251
-36
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
![](https://user-images.githubusercontent.com/18376481/78156268-78aed080-7436-11ea-9da7-57d83ec5ec8a.png)
12
# Vue - Netlify - Fauna
23
## A serverless stack with authentication ready to go!
34

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<meta name="viewport" content="width=device-width,initial-scale=1.0">
88
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
9-
<title>simple-vue-netlify-auth</title>
9+
<title>Vue Netlify Fauna</title>
1010
</head>
1111

1212
<body>

src/assets/styles/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvet
88

99
}
1010

11-
h1 {
11+
h1, h2, h3 , p , a, input, textarea{
1212
color: var(--primary);
1313
}
1414

src/assets/styles/theme-colours.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
* === COLORS ===
33
*/
44
[data-theme="light"] {
5-
--app-background-color: #F1E7D0;
6-
--app-secondary-background-color: rgb(245, 245, 245);
5+
--app-background-color: #FCFAF6;
6+
--app-secondary-background-color: white;
77
--primary: rgb(44, 44, 44);
88
}
99

1010
[data-theme="dark"] {
11-
--app-background-color: #091A28;
11+
--app-background-color: #093050;
12+
--app-secondary-background-color: #094f88;
1213
--primary: #FFFFFF
1314
}
1415

src/components/AllJournals.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default {
120120

121121
<style lang="scss" scoped>
122122
#create-journal-container {
123-
background: #f5f5f5;
123+
background: var(--app-secondary-background-color);
124124
flex-direction: column;
125125
justify-content: center;
126126
text-align: center;
@@ -132,7 +132,7 @@ export default {
132132
}
133133
134134
input[type="text"] {
135-
background: #f5f5f5;
135+
background: var(--app-secondary-background-color);
136136
}
137137
}
138138

src/components/AllPosts.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,18 @@ export default {
104104

105105
<style lang="scss" scoped>
106106
#create-post-container {
107-
background: #f5f5f5;
107+
background: var(--app-secondary-background-color);
108108
flex-direction: column;
109109
justify-content: center;
110110
text-align: center;
111111
padding: 10px;
112112
border-radius: 15px;
113113
114114
input[type="text"] {
115-
background: #f5f5f5;
115+
background: var(--app-secondary-background-color);
116116
}
117117
textarea {
118-
background: #f5f5f5;
118+
background: var(--app-secondary-background-color);
119119
}
120120
}
121121

src/components/AppLayout.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
<SideBar />
44

55
<router-view />
6+
7+
<Footer />
68
</div>
79
</template>
810

911
<script>
1012
import SideBar from "./SideBar.vue";
13+
import Footer from "./Footer.vue";
1114
1215
export default {
1316
components: {
14-
SideBar
17+
SideBar,
18+
Footer
1519
}
1620
};
1721
</script>

src/components/Footer.vue

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<template>
2+
<footer>
3+
made by<a href="https://twitter.com/chiubaca">chiubaca</a>
4+
<div id="links"></div>
5+
</footer>
6+
</template>
7+
8+
<script>
9+
export default {};
10+
</script>
11+
12+
<style lang="scss" scoped>
13+
footer {
14+
display: flex;
15+
align-items: center;
16+
justify-content: center;
17+
position: fixed;
18+
right: 0;
19+
bottom: 0;
20+
padding: 0px 5px 0px 5px;
21+
border-radius: 15px 0 0 0;
22+
23+
height: 50px;
24+
text-align: center;
25+
color: black;
26+
background-color: var(--app-secondary-background-color);
27+
a {
28+
text-decoration: none;
29+
text-decoration: underline;
30+
color: black;
31+
margin-left: 5px;
32+
}
33+
a:hover {
34+
background-color: rgb(52, 52, 255);
35+
border-radius: 5px;
36+
}
37+
}
38+
</style>

src/components/GithubCorner.vue

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<template>
2+
<a :href="url" class="github-corner" aria-label="View source on GitHub"
3+
><svg
4+
width="80"
5+
height="80"
6+
viewBox="0 0 250 250"
7+
style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;"
8+
aria-hidden="true"
9+
>
10+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
11+
<path
12+
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
13+
fill="currentColor"
14+
style="transform-origin: 130px 106px;"
15+
class="octo-arm"
16+
></path>
17+
<path
18+
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
19+
fill="currentColor"
20+
class="octo-body"
21+
></path></svg
22+
></a>
23+
</template>
24+
25+
<script>
26+
export default {
27+
props: ["url"]
28+
};
29+
</script>
30+
31+
<style scoped>
32+
.github-corner:hover .octo-arm {
33+
animation: octocat-wave 560ms ease-in-out;
34+
}
35+
@keyframes octocat-wave {
36+
0%,
37+
100% {
38+
transform: rotate(0);
39+
}
40+
20%,
41+
60% {
42+
transform: rotate(-25deg);
43+
}
44+
40%,
45+
80% {
46+
transform: rotate(10deg);
47+
}
48+
}
49+
@media (max-width: 500px) {
50+
.github-corner:hover .octo-arm {
51+
animation: none;
52+
}
53+
.github-corner .octo-arm {
54+
animation: octocat-wave 560ms ease-in-out;
55+
}
56+
}
57+
</style>

src/components/Home.vue

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,52 @@
11
<template>
22
<main class="home space">
3-
<h1>Vue - Netlify - Fauna</h1>
4-
<h2>A JAM stack template with authentication baked in</h2>
3+
<img
4+
id="logo"
5+
src="https://user-images.githubusercontent.com/18376481/78156268-78aed080-7436-11ea-9da7-57d83ec5ec8a.png"
6+
alt="logos of Vue, Netlify and Fauna"
7+
/>
8+
<h1 style="text-align:center">Vue - Netlify - Fauna</h1>
9+
<h2>A serverless stack with authentication ready to go!</h2>
10+
11+
<div>
12+
<p>
13+
This is a demo app to show how you can use cool technologies like Fauna
14+
and Netlify to build a CRUD application completely serverless and host
15+
for free! 😎
16+
</p>
17+
18+
<p>
19+
If you want to see how this is all glued together check out the
20+
<a href="https://github.com/chiubaca/vue-netlify-fauna-starter-kit"
21+
>source code</a
22+
>
23+
. Happy hacking!
24+
</p>
25+
</div>
526
<Login v-if="currentUser === null" />
6-
<div v-else>
7-
Welcome Back! <br />
8-
You're already logged in, Go check out your private
9-
<router-link :to="{ name: 'journals' }">journals</router-link>.
27+
<div v-else id="greeting">
28+
<h2>🖐️ Welcome Back!</h2>
29+
<p>
30+
You're logged in. Go check out your
31+
<router-link :to="{ name: 'journals' }">journals ➡️ </router-link>.
32+
</p>
1033
</div>
34+
<GithubCorner
35+
url="https://github.com/chiubaca/vue-netlify-fauna-starter-kit"
36+
/>
1137
</main>
1238
</template>
1339

1440
<script>
1541
import { mapGetters } from "vuex";
1642
import Login from "./Login.vue";
43+
import GithubCorner from "./GithubCorner.vue";
1744
1845
export default {
1946
name: "Home",
2047
components: {
21-
Login
48+
Login,
49+
GithubCorner
2250
},
2351
props: {
2452
msg: String
@@ -38,13 +66,15 @@ export default {
3866
height: 100vh;
3967
}
4068
41-
.test-area {
42-
background-color: beige;
43-
width: 500px;
44-
45-
span {
46-
background-color: red;
47-
padding: 5px;
48-
}
69+
#greeting {
70+
border-style: dashed;
71+
padding: 15px;
72+
border-radius: 15px;
73+
border-color: #c6c6c6;
74+
border-width: 1px;
75+
}
76+
img#logo {
77+
width: 100%;
78+
height: auto;
4979
}
5080
</style>

0 commit comments

Comments
 (0)