diff --git a/restaurant/src/background.jpg b/restaurant/src/background.jpg new file mode 100644 index 0000000..d571321 Binary files /dev/null and b/restaurant/src/background.jpg differ diff --git a/restaurant/src/style.css b/restaurant/src/style.css index 851805d..792624b 100644 --- a/restaurant/src/style.css +++ b/restaurant/src/style.css @@ -8,6 +8,8 @@ body, html { margin: 0; padding: 0; font-size: var(--font-size); + background: url('./background.jpg'); + background-size: cover; } header { diff --git a/restaurant/webpack.config.js b/restaurant/webpack.config.js index 5b3b9b2..ad5bf2a 100644 --- a/restaurant/webpack.config.js +++ b/restaurant/webpack.config.js @@ -26,6 +26,10 @@ module.exports = { test: /\.css$/i, use: ['style-loader', 'css-loader'], }, + { + test: /\.(png|svg|jpg|jpeg|gif)$/i, + type: 'asset/resource', + } ], }, };