Skip to content

Commit 19151dd

Browse files
committed
chore: update assets and others
1 parent 74efb36 commit 19151dd

File tree

15 files changed

+46
-13
lines changed

15 files changed

+46
-13
lines changed

assets/css/theme/button.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@layer components {
44
.btn {
5-
@apply text-sm font-semibold mt-2 px-3 py-1 capitalize text-gray-400 hover:text-gray-700 focus:to-gray-900 hover:border-gray-700;
5+
@apply text-sm font-light mt-2 px-3 py-1 capitalize text-gray-500 hover:text-gray-800 focus:to-gray-900 hover:border-gray-700;
66
}
77

88
.btn-xs {

assets/css/theme/card.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616

1717
.boxed-bottom-link {
18-
@apply px-3 py-1 border border-gray-400 bg-gray-200 text-gray-400 mb-4 block rounded-full uppercase text-xs;
18+
@apply px-3 py-1 border border-gray-400 bg-gray-200 text-gray-400 mb-4 block rounded-full uppercase text-xs hover:bg-gray-300 hover:text-gray-500;
1919
}
2020

2121
.boxed-bottom-content::before {

assets/css/theme/form.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@layer components {
44
form {
5-
@apply my-4 py-12;
5+
@apply my-4 py-8;
66
}
77

88
input,

assets/css/theme/page.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@layer components {
44
.page-content {
5-
@apply relative py-12 max-w-7xl mx-auto;
5+
@apply relative py-12 mx-auto max-w-7xl;
66
}
77

88
.page-content::before,
@@ -34,4 +34,8 @@
3434
opacity: 0.25;
3535
border: 4px solid #cdcdcd;
3636
}
37+
38+
.page-content-single {
39+
@apply relative py-12 mx-auto max-w-7xl h-screen;
40+
}
3741
}

components/cards/Article.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
params: { slug: item.slug }
8484
}"
8585
class="btn btn-sm btn-default btn-hidden text-muted"
86-
><span class="underline hover:no-underline">read more</span>
86+
><span class="no-underline">read more</span>
8787
<span>
8888
&rarr;
8989
<!-- <font-awesome-icon :icon="['fa', 'arrow-right']"/> -->

components/cards/ArticleHeadline.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
xl:text-5xl
3838
"
3939
>
40-
<span class="block xl:inline">{{ item.title }}</span>
40+
{{ item.title }}
4141
<!-- <span
4242
class="block text-indigo-600 xl:inline"
4343
data-primary="indigo-600"

components/form/Forgot.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</label>
1616
</div>
1717
<div class="col-auto">
18-
<button class="btn btn-lg btn-outline">Submit</button>
18+
<button class="btn btn-lg btn-outline shadow-lg">Submit</button>
1919
</div>
2020
</form>
2121
</section>

components/form/SignIn.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
</label>
2828
</div>
2929
<div class="col-auto">
30-
<button class="btn btn-lg btn-outline btn-muted">Sign In</button>
30+
<button class="btn btn-lg btn-outline btn-muted shadow-lg">
31+
Sign In
32+
</button>
3133
<Nuxt-Link
3234
to="/forgot"
3335
class="

components/form/SignUp.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
</label>
4040
</div>
4141
<div class="col-auto">
42-
<button class="btn btn-lg btn-outline btn-muted">Sign Up</button>
42+
<button class="btn btn-lg btn-outline btn-muted shadow-lg">
43+
Sign Up
44+
</button>
4345
<Nuxt-Link
4446
to="/signin"
4547
class="

layouts/default.vue

+10
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,13 @@ export default {
5555
}
5656
}
5757
</script>
58+
<style>
59+
.page-enter-active,
60+
.page-leave-active {
61+
transition: opacity 0.5s;
62+
}
63+
.page-enter,
64+
.page-leave-active {
65+
opacity: 0;
66+
}
67+
</style>

middleware/userAgent.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* eslint-disable no-param-reassign */
2+
export default function (context) {
3+
let serverUserAgent = ''
4+
if (context && context.req && context.req.headers) {
5+
serverUserAgent = context.req.headers['user-agent'] || ''
6+
}
7+
8+
let clientUserAgent = ''
9+
if (typeof navigator !== 'undefined' && typeof navigator === 'object') {
10+
const { userAgent = '' } = navigator
11+
clientUserAgent = userAgent
12+
}
13+
14+
context.userAgent = (process.server && serverUserAgent) || clientUserAgent
15+
}

nuxt.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
},
2323

2424
// Global CSS: https://go.nuxtjs.dev/config-css
25-
css: [],
25+
css: ['@/assets/css/tailwind.css'],
2626

2727
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
2828
plugins: [],

pages/forgot.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="page-content">
2+
<div class="page-content-single">
33
<Form-Forgot />
44
</div>
55
</template>

pages/signin.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="page-content">
2+
<div class="page-content-single">
33
<Form-SignIn />
44
</div>
55
</template>

pages/signup.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="page-content">
2+
<div class="page-content-single">
33
<Form-SignUp />
44
</div>
55
</template>

0 commit comments

Comments
 (0)