-
Notifications
You must be signed in to change notification settings - Fork 0
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 c9df95b
Showing
35 changed files
with
9,261 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,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,20 @@ | ||
# sneakers-vue-nuxt | ||
|
||
## Build Setup | ||
|
||
```bash | ||
# install dependencies | ||
$ yarn install | ||
|
||
# serve with hot reload at localhost:3000 | ||
$ yarn dev | ||
|
||
# build for production and launch server | ||
$ yarn build | ||
$ yarn start | ||
|
||
# generate static project | ||
$ yarn 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,8 @@ | ||
.page-enter-active, | ||
.page-leave-active { | ||
transition: opacity 0.5s; | ||
} | ||
.page-enter, | ||
.page-leave-active { | ||
opacity: 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,11 @@ | ||
@import "tailwindcss/base"; | ||
@import "tailwindcss/components"; | ||
@import "tailwindcss/utilities"; | ||
|
||
form input:focus-within ~ label { | ||
@apply text-black; | ||
} | ||
form input:focus-within ~ label, | ||
input:not(:placeholder-shown) ~ label { | ||
@apply transform scale-75 -translate-y-6; | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,15 @@ | ||
@font-face { | ||
font-family: "Futura book"; | ||
src: url("Futura-Book.woff") format("woff"), | ||
url("Futura-Book.woff2") format("woff2"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
@font-face { | ||
font-family: "Futura bold"; | ||
src: url("Futura_bold.woff") format("woff"), | ||
url("Futura_bold.woff2") format("woff2"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} |
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,188 @@ | ||
<template> | ||
<header> | ||
<div class="header__container"> | ||
<input id="burger" class="burger__checkbox" type="checkbox" /> | ||
<label for="burger" class="burger__menu"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</label> | ||
<nav class="nav burger__nav"> | ||
<nuxt-link to="/">Accueil</nuxt-link> | ||
</nav> | ||
<nuxt-link to="/" class="logo-container"> | ||
<img class="logo" src="~/assets/img/logo.svg" alt /> | ||
</nuxt-link> | ||
</div> | ||
<nav class="nav desktop__nav"> | ||
<nuxt-link to="/">Accueil</nuxt-link> | ||
</nav> | ||
</header> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "Header", | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
body { | ||
margin: 0; | ||
} | ||
header { | ||
background-color: black; | ||
padding: 10px 20px; | ||
} | ||
.header__container { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
color: white; | ||
position: relative; | ||
} | ||
.logo-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
transition: all 0.2s ease; | ||
} | ||
.logo { | ||
height: 35px; | ||
} | ||
input { | ||
opacity: 0; | ||
position: absolute; | ||
z-index: 10; | ||
} | ||
input[type="checkbox"] { | ||
position: absolute; | ||
z-index: 5; | ||
opacity: 0; | ||
} | ||
.burger__menu { | ||
height: 25px; | ||
width: 30px; | ||
position: relative; | ||
} | ||
.burger__menu span { | ||
position: absolute; | ||
width: 100%; | ||
height: 2px; | ||
top: 11px; | ||
left: 0; | ||
display: block; | ||
background: #ffffff; | ||
transition: all 0.2s ease; | ||
} | ||
.burger__menu span:first-child { | ||
top: 0px; | ||
} | ||
.burger__menu span:last-child { | ||
top: 21px; | ||
} | ||
input[type="checkbox"]:checked + .burger__menu span { | ||
opacity: 0; | ||
top: 50%; | ||
} | ||
input[type="checkbox"]:checked + .burger__menu span:first-child { | ||
opacity: 1; | ||
transform: rotate(45deg); | ||
} | ||
input[type="checkbox"]:checked + .burger__menu span:last-child { | ||
opacity: 1; | ||
transform: rotate(-45deg); | ||
} | ||
.nav a { | ||
color: white; | ||
text-decoration: none; | ||
position: relative; | ||
} | ||
.nav a::after { | ||
content: ""; | ||
position: absolute; | ||
left: 0; | ||
bottom: -3px; | ||
height: 2px; | ||
width: 0%; | ||
background: #ffffff; | ||
transition: all 0.2s ease; | ||
} | ||
.nav a:hover::after { | ||
width: 100%; | ||
} | ||
.burger__nav { | ||
padding: 0; | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
left: 80px; | ||
z-index: 5; | ||
opacity: 0; | ||
pointer-events: none; | ||
transition: all 0.2s ease; | ||
} | ||
.burger__nav a:first-child { | ||
margin-right: 60px; | ||
} | ||
input[type="checkbox"]:checked ~ .burger__nav { | ||
opacity: 1; | ||
pointer-events: all; | ||
} | ||
input[type="checkbox"]:checked ~ .logo-container { | ||
opacity: 0; | ||
pointer-events: none; | ||
} | ||
.desktop__nav { | ||
display: none; | ||
} | ||
@media (min-width: 800px) { | ||
header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 20px 80px; | ||
} | ||
.burger__menu { | ||
display: none; | ||
} | ||
.burger__nav { | ||
display: none; | ||
} | ||
.nav { | ||
display: block; | ||
color: white; | ||
padding: 0; | ||
} | ||
.desktop__nav a { | ||
margin-left: 40px; | ||
} | ||
} | ||
</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,29 @@ | ||
<template> | ||
<svg class="NuxtLogo" width="245" height="180" viewBox="0 0 452 342" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
d="M139 330l-1-2c-2-4-2-8-1-13H29L189 31l67 121 22-16-67-121c-1-2-9-14-22-14-6 0-15 2-22 15L5 303c-1 3-8 16-2 27 4 6 10 12 24 12h136c-14 0-21-6-24-12z" | ||
fill="#00C58E" | ||
/> | ||
<path | ||
d="M447 304L317 70c-2-2-9-15-22-15-6 0-15 3-22 15l-17 28v54l39-67 129 230h-49a23 23 0 0 1-2 14l-1 1c-6 11-21 12-23 12h76c3 0 17-1 24-12 3-5 5-14-2-26z" | ||
fill="#108775" | ||
/> | ||
<path | ||
d="M376 330v-1l1-2c1-4 2-8 1-12l-4-12-102-178-15-27h-1l-15 27-102 178-4 12a24 24 0 0 0 2 15c4 6 10 12 24 12h190c3 0 18-1 25-12zM256 152l93 163H163l93-163z" | ||
fill="#2F495E" | ||
/> | ||
</svg> | ||
</template> | ||
|
||
<style> | ||
.NuxtLogo { | ||
animation: 1s appear; | ||
margin: auto; | ||
} | ||
@keyframes appear { | ||
0% { | ||
opacity: 0; | ||
} | ||
} | ||
</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,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._ |
Oops, something went wrong.