Skip to content
Snippets Groups Projects
Unverified Commit 87bfaac9 authored by Augustin Wenger's avatar Augustin Wenger Committed by Mauko Quiroga
Browse files

Mise en place d'une image de background

parent 276a184f
No related branches found
No related tags found
No related merge requests found
const env = process.env.NODE_ENV
const withSass = require("@zeit/next-sass")
const withImages = require('next-images')
const DotenvPlugin = require("dotenv-webpack")
const { EnvironmentPlugin } = require("webpack") // eslint-disable-line import/no-extraneous-dependencies
const { assign, concat } = require("lodash/fp")
const { assign, concat, flow } = require("lodash/fp")
function envPlugin() {
if (env === "production") {
......@@ -25,4 +26,4 @@ const nextConfig = {
distDir: "build",
}
module.exports = withSass(nextConfig)
module.exports = flow([withSass, withImages])(nextConfig)
......@@ -6025,6 +6025,15 @@
"flat-cache": "^2.0.1"
}
},
"file-loader": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/file-loader/-/file-loader-4.0.0.tgz",
"integrity": "sha512-roAbL6IdSGczwfXxhMi6Zq+jD4IfUpL0jWHD7fvmjdOVb7xBfdRUHe4LpBgO23VtVK5AW1OlWZo0p34Jvx3iWg==",
"requires": {
"loader-utils": "^1.2.2",
"schema-utils": "^1.0.0"
}
},
"filesize": {
"version": "3.6.1",
"resolved": "https://registry.npmjs.org/filesize/-/filesize-3.6.1.tgz",
......@@ -6343,8 +6352,7 @@
},
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"optional": true
"bundled": true
},
"aproba": {
"version": "1.2.0",
......@@ -6362,13 +6370,11 @@
},
"balanced-match": {
"version": "1.0.0",
"bundled": true,
"optional": true
"bundled": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
......@@ -6381,18 +6387,15 @@
},
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"optional": true
"bundled": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
"optional": true
"bundled": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"optional": true
"bundled": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -6495,8 +6498,7 @@
},
"inherits": {
"version": "2.0.3",
"bundled": true,
"optional": true
"bundled": true
},
"ini": {
"version": "1.3.5",
......@@ -6506,7 +6508,6 @@
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -6519,20 +6520,17 @@
"minimatch": {
"version": "3.0.4",
"bundled": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
},
"minimist": {
"version": "0.0.8",
"bundled": true,
"optional": true
"bundled": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -6549,7 +6547,6 @@
"mkdirp": {
"version": "0.5.1",
"bundled": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -6622,8 +6619,7 @@
},
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"optional": true
"bundled": true
},
"object-assign": {
"version": "4.1.1",
......@@ -6633,7 +6629,6 @@
"once": {
"version": "1.4.0",
"bundled": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -6709,8 +6704,7 @@
},
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"optional": true
"bundled": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -6740,7 +6734,6 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -6758,7 +6751,6 @@
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
......@@ -6797,13 +6789,11 @@
},
"wrappy": {
"version": "1.0.2",
"bundled": true,
"optional": true
"bundled": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
"optional": true
"bundled": true
}
}
},
......@@ -11588,6 +11578,15 @@
}
}
},
"next-images": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/next-images/-/next-images-1.1.2.tgz",
"integrity": "sha512-6w7D9seVQKANuFPCfEfpfjQAs4zpl//ldGtjggQK6gwQjchJ3HGyMuOP8cf5t/PzMOQ3NhoJ/WzJMJuvemBsLQ==",
"requires": {
"file-loader": "^4.0.0",
"url-loader": "^2.0.0"
}
},
"next-tick": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz",
......@@ -16719,6 +16718,23 @@
}
}
},
"url-loader": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/url-loader/-/url-loader-2.0.0.tgz",
"integrity": "sha512-RT3cz+Lw+kFMCKLabMyogFrc/aRoAMJHmY5os1VDBlav+4t5vxUxKDn47zCSFAYAl+hM8YLg4TZwG4TkJaafkg==",
"requires": {
"loader-utils": "^1.1.0",
"mime": "^2.0.3",
"schema-utils": "^1.0.0"
},
"dependencies": {
"mime": {
"version": "2.4.4",
"resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz",
"integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA=="
}
}
},
"url-parse-lax": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz",
......
......@@ -2,14 +2,15 @@
.main-index {
background-color: #FFFCB2;
//background-color: #FFFCB2;
background-image: url(../static/images/tramebackground.png);
width: auto;
/*background-image: url("tramebackground.png");*/
}
html {
background-color: #FFFCB2;
//background-image: url(https://mdn.mozillademos.org/files/11991/startransparent.gif),
//background-color: #FFFCB2;
background-image: url(../static/images/tramebackground.png);
}
@media screen and (min-width: 500px) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment