From ec0dc661467d1de409c12923fc58fcb08f9ead06 Mon Sep 17 00:00:00 2001 From: Matt Hawk Date: Thu, 28 Dec 2023 16:03:17 -0500 Subject: [PATCH] Add bootstrap and SCSS setup --- .gitignore | 4 +++ package-lock.json | 40 +++++++++++++++++++++++ package.json | 15 +++++++++ themes/landing-page/assets/scss/main.scss | 22 +++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 themes/landing-page/assets/scss/main.scss diff --git a/.gitignore b/.gitignore index 3b735ec..6c8ea21 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ # Go workspace file go.work + +# Hugo and Node related +/resources/ +/node_modules/ \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..e8345c8 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,40 @@ +{ + "name": "hugo-landing-page-bootstrap", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "bootstrap": "^5.3.2" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/bootstrap": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.2.tgz", + "integrity": "sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..5ad7f3b --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "dependencies": { + "bootstrap": "^5.3.2" + }, + "name": "hugo-landing-page-bootstrap", + "description": "Hugo Landing Page Template", + "version": "1.0.0", + "main": "index.js", + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Matt Hawk", + "license": "ISC" +} diff --git a/themes/landing-page/assets/scss/main.scss b/themes/landing-page/assets/scss/main.scss new file mode 100644 index 0000000..05ab093 --- /dev/null +++ b/themes/landing-page/assets/scss/main.scss @@ -0,0 +1,22 @@ +// Functions first +@import "../node_modules/bootstrap/scss/functions"; + +// Variable overrides second +$primary: #900; +$enable-shadows: true; +$prefix: "mo-"; + +// Required Bootstrap imports +@import "../node_modules/bootstrap/scss/variables"; +@import "../node_modules/bootstrap/scss/variables-dark"; +@import "../node_modules/bootstrap/scss/maps"; +@import "../node_modules/bootstrap/scss/mixins"; +@import "../node_modules/bootstrap/scss/root"; + +// Optional components +@import "../node_modules/bootstrap/scss/utilities"; +@import "../node_modules/bootstrap/scss/reboot"; +@import "../node_modules/bootstrap/scss/containers"; +@import "../node_modules/bootstrap/scss/grid"; +@import "../node_modules/bootstrap/scss/helpers"; +@import "../node_modules/bootstrap/scss/utilities/api";