generated from tinkerhub/Standard_Project_Templates
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from khalby786/master
initial commit for frontend
- Loading branch information
Showing
23 changed files
with
11,235 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Node template | ||
# Logs | ||
/logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# Nuxt generate | ||
dist | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless | ||
|
||
# IDE / Editor | ||
.idea | ||
|
||
# Service worker | ||
sw.* | ||
|
||
# macOS | ||
.DS_Store | ||
|
||
# Vim swap files | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
# Frontend of trviator | ||
Here goes the frontend of trivator project. | ||
# frontend | ||
|
||
## Build Setup | ||
|
||
```bash | ||
# install dependencies | ||
$ npm install | ||
|
||
# serve with hot reload at localhost:3000 | ||
$ npm run dev | ||
|
||
# build for production and launch server | ||
$ npm run build | ||
$ npm run start | ||
|
||
# generate static project | ||
$ npm run generate | ||
``` | ||
|
||
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ASSETS | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript. | ||
|
||
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# COMPONENTS | ||
|
||
**This directory is not required, you can delete it if you don't want to use it.** | ||
|
||
The components directory contains your Vue.js Components. | ||
|
||
_Nuxt.js doesn't supercharge these components._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<template> | ||
<Nuxt /> | ||
</template> | ||
|
||
<style> | ||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;600&display=swap'); | ||
body { | ||
margin: 0px; | ||
font-family: "Montserrat", sans-serif; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<template> | ||
<div> | ||
<img src="/header.svg" width="100%" class="header-img" /> | ||
<h1>Triviator</h1> | ||
|
||
<Nuxt /> | ||
|
||
<footer></footer> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;600&display=swap'); | ||
body { | ||
margin: 0px; | ||
font-family: "Montserrat", sans-serif; | ||
} | ||
h1 { | ||
left: 15vw; | ||
right: 15vw; | ||
margin-top: 200px; | ||
font-family: Montserrat; | ||
font-style: normal; | ||
font-weight: bold; | ||
font-size: calc(100vw / 12.2); | ||
line-height: 112px; | ||
text-transform: lowercase; | ||
color: #F1B12D; | ||
text-align: center; | ||
} | ||
.header-img { | ||
z-index: -1; | ||
position: absolute; | ||
top: 0px; | ||
left: 0px; | ||
right: 0px; | ||
} | ||
button, .huge { | ||
box-shadow: none; | ||
} | ||
footer { | ||
width: 100%; | ||
height: 50px; | ||
background-color: #510075; | ||
margin-top: 70px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
export default { | ||
/* | ||
** Nuxt rendering mode | ||
** See https://nuxtjs.org/api/configuration-mode | ||
*/ | ||
mode: 'universal', | ||
/* | ||
** Nuxt target | ||
** See https://nuxtjs.org/api/configuration-target | ||
*/ | ||
target: 'static', | ||
/* | ||
** Headers of the page | ||
** See https://nuxtjs.org/api/configuration-head | ||
*/ | ||
head: { | ||
title: process.env.npm_package_name || '', | ||
meta: [ | ||
{ charset: 'utf-8' }, | ||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' } | ||
], | ||
link: [ | ||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | ||
] | ||
}, | ||
/* | ||
** Global CSS | ||
*/ | ||
css: [ | ||
], | ||
/* | ||
** Plugins to load before mounting the App | ||
** https://nuxtjs.org/guide/plugins | ||
*/ | ||
plugins: [ | ||
], | ||
/* | ||
** Auto import components | ||
** See https://nuxtjs.org/api/configuration-components | ||
*/ | ||
components: true, | ||
/* | ||
** Nuxt.js dev-modules | ||
*/ | ||
buildModules: [ | ||
], | ||
/* | ||
** Nuxt.js modules | ||
*/ | ||
modules: [ | ||
// Doc: https://axios.nuxtjs.org/usage | ||
'@nuxtjs/axios', | ||
'nuxt-sweetalert2' | ||
], | ||
/* | ||
** Axios module configuration | ||
** See https://axios.nuxtjs.org/options | ||
*/ | ||
axios: {}, | ||
/* | ||
** Build configuration | ||
** See https://nuxtjs.org/api/configuration-build/ | ||
*/ | ||
build: { | ||
} | ||
} |
Oops, something went wrong.