-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3bbdbb6
Showing
25 changed files
with
11,177 additions
and
0 deletions.
There are no files selected for viewing
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,18 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
}, | ||
extends: [ | ||
'@nuxtjs', | ||
'plugin:nuxt/recommended' | ||
], | ||
// add your custom rules here | ||
rules: { | ||
'vue/no-v-html': 0 | ||
} | ||
} |
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,88 @@ | ||
# 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 | ||
.editorconfig | ||
|
||
# Service worker | ||
sw.* | ||
|
||
# Mac OSX | ||
.DS_Store |
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,37 @@ | ||
# Showcase: Nuxt.js + Prismic.io | ||
|
||
## Project setup | ||
|
||
``` | ||
yarn install | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
|
||
``` | ||
yarn dev | ||
``` | ||
|
||
### Compiles and minifies for production | ||
|
||
``` | ||
yarn build | ||
``` | ||
|
||
### Run in production (with Nuxt.js server) | ||
|
||
``` | ||
yarn start | ||
``` | ||
|
||
### Export to statically generated | ||
|
||
``` | ||
yarn generate | ||
``` | ||
|
||
### Links | ||
|
||
- [Nuxt.js](https://nuxtjs.org) | ||
- [Prismic](https://prismic.io) | ||
- [prismic-nuxt module](https://prismic-nuxt.js.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,18 @@ | ||
module.exports = function (doc) { | ||
if (doc.type === 'homepage') { | ||
return '/' | ||
} | ||
if (doc.type === 'products') { | ||
return '/products' | ||
} | ||
if (doc.type === 'product') { | ||
return `/products/${doc.uid}` | ||
} | ||
if (doc.type === 'blog_home') { | ||
return '/blog' | ||
} | ||
if (doc.type === 'blog_post') { | ||
return `/blog/${doc.uid}` | ||
} | ||
return '/' | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,37 @@ | ||
.l-wrapper { | ||
max-width: 1190px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
.a-button { | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 50px; | ||
padding: 0 32px; | ||
border: 1px solid #121212; | ||
border-radius: 2px; | ||
color: #121212; | ||
font-weight: 500; | ||
white-space: nowrap; | ||
transition-property: background-color, color; | ||
transition-duration: 150ms; | ||
|
||
&:hover { | ||
background-color: #121212; | ||
color: white; | ||
} | ||
} | ||
|
||
.a-button--filled { | ||
background-color: #121212; | ||
color: white; | ||
|
||
&:hover { | ||
background-color: white; | ||
color: #121212; | ||
} | ||
} |
Oops, something went wrong.