Skip to content

Commit

Permalink
first commit :)
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jul 23, 2019
0 parents commit 3bbdbb6
Show file tree
Hide file tree
Showing 25 changed files with 11,177 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.js
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
}
}
88 changes: 88 additions & 0 deletions .gitignore
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
37 changes: 37 additions & 0 deletions README.md
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/)
18 changes: 18 additions & 0 deletions app/prismic/link-resolver.js
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 '/'
}
7 changes: 7 additions & 0 deletions assets/img/burger-closed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/img/burger-opened.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/footer-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions assets/scss/main.scss
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;
}
}
Loading

0 comments on commit 3bbdbb6

Please sign in to comment.