change nuxt base

This commit is contained in:
Amir Mohamadi
2020-06-03 14:13:34 +04:30
parent b3421baf3c
commit 75f8971cb3
69 changed files with 52497 additions and 689 deletions
-7
View File
@@ -1,7 +0,0 @@
# LAYOUTS
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your Application Layouts.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts).
+16 -51
View File
@@ -1,55 +1,20 @@
<template>
<div>
<nuxt />
</div>
<div>
<langBar/>
<site-header/>
<nuxt/>
</div>
</template>
<style>
html {
font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, 'Helvetica Neue', Arial, sans-serif;
font-size: 16px;
word-spacing: 1px;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: border-box;
margin: 0;
}
.button--green {
display: inline-block;
border-radius: 4px;
border: 1px solid #3b8070;
color: #3b8070;
text-decoration: none;
padding: 10px 30px;
}
.button--green:hover {
color: #fff;
background-color: #3b8070;
}
.button--grey {
display: inline-block;
border-radius: 4px;
border: 1px solid #35495e;
color: #35495e;
text-decoration: none;
padding: 10px 30px;
margin-left: 15px;
}
.button--grey:hover {
color: #fff;
background-color: #35495e;
}
</style>
<script>
export default {
beforeCreate() {
if (this.$route.params.lang === 'fa') {
$('html').attr({lang: 'fa'})
} else if (this.$route.params.lang === 'en') {
$('html').attr({lang: 'en'})
}
}
}
</script>