Skip to content

Commit

Permalink
Merge pull request #128 from Kinto/101/welcome-background
Browse files Browse the repository at this point in the history
Add a background image to the welcome screen
  • Loading branch information
sbvhev authored Jun 20, 2016
2 parents 8847156 + 2005866 commit 9949f49
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
Binary file added formbuilder/assets/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion formbuilder/components/Welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Welcome(props) {

return (
<div>
<div className="jumbotron">
<div className="jumbotron background">
<div className="container">
<h1>Create your own forms</h1>
<p>
Expand Down
9 changes: 9 additions & 0 deletions formbuilder/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,12 @@ textarea.json-viewer {
margin-right: auto;
margin-left: auto;
}

.background {
background-image: url(assets/background.jpg);
background-position: bottom;
color: white;
}
.background h1 {
color: white;
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"extract-text-webpack-plugin": "^0.9.1",
"gh-pages": "^0.4.0",
"html": "0.0.10",
"image-webpack-loader": "^1.8.0",
"jsdom": "^7.2.1",
"mocha": "^2.3.0",
"react-addons-test-utils": "^0.14.3",
Expand Down
7 changes: 7 additions & 0 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ module.exports = {
path.join(__dirname, "formbuilder"),
path.join(__dirname, "node_modules"),
],
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loaders: [
"file?hash=sha512&digest=hex&name=[hash].[ext]",
"image-webpack?bypassOnDebug&optimizationLevel=7&interlaced=false"
]
}
]
}
Expand Down

0 comments on commit 9949f49

Please sign in to comment.