diff --git a/src/pages/index.html b/src/pages/index.html index f36492e..6a36125 100644 --- a/src/pages/index.html +++ b/src/pages/index.html @@ -1,3 +1,7 @@ +
+ +
+

Create secure and GDPR-compliant web apps using only static JavaScript, HTML, and CSS.

diff --git a/src/partials/footer.html b/src/partials/footer.html deleted file mode 100644 index dadfd78..0000000 --- a/src/partials/footer.html +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/src/partials/header.html b/src/partials/header.html deleted file mode 100644 index 97d2a6d..0000000 --- a/src/partials/header.html +++ /dev/null @@ -1,21 +0,0 @@ -
-
-
-
- -
-
- -
-
- -
-
\ No newline at end of file diff --git a/src/partials/logo.html b/src/partials/logo.html new file mode 100644 index 0000000..704c214 --- /dev/null +++ b/src/partials/logo.html @@ -0,0 +1,3 @@ +
+ Userbase +
\ No newline at end of file diff --git a/src/template.html b/src/template.html index 607eb73..91770eb 100644 --- a/src/template.html +++ b/src/template.html @@ -8,10 +8,40 @@ - <%= require('html-loader!./partials/' + header + '.html') %> +
+
+
+
+ <%= page !== 'index' ? require('html-loader!./partials/logo.html') : null %> +
+
+ +
+
+ +
+
<%= require('html-loader!./pages/' + page + '.html') %> - <%= require('html-loader!./partials/' + footer + '.html') %> +
diff --git a/webpack.config.js b/webpack.config.js index 93f07ca..c935982 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,10 +15,12 @@ module.exports = (env, argv) => { const pages = [] fs.readdirSync('./src/pages/').forEach(file => { + const page = file.split('.')[0] + pages.push(new HtmlWebPackPlugin({ template: './src/template.html', filename: './' + file, - templateParameters() { return { header: 'header', footer: 'footer', page: file.split('.')[0] } } + templateParameters() { return { page: file.split('.')[0] } } })) })