From 7ddd1a61f4be6de1efa399ebde98e4657ca56b23 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 4 Feb 2019 20:07:50 +0000 Subject: [PATCH 1/4] Add live server script --- scripts/server.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/server.sh diff --git a/scripts/server.sh b/scripts/server.sh new file mode 100755 index 0000000..1f7857a --- /dev/null +++ b/scripts/server.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +bash ./scripts/build.sh + +hugo server --noHTTPCache --disableFastRender --gc From d211c0a2aaacc5a021e8c468815f1138913367f8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 4 Feb 2019 21:48:02 +0000 Subject: [PATCH 2/4] Add cards for accounts --- content/monzo.md | 5 +++++ content/paypal.md | 5 +++++ layouts/_default/single.html | 10 ++++++++++ layouts/index.html | 25 +++++++++++++++++++++++++ package-lock.json | 5 +++++ package.json | 1 + scripts/build.sh | 1 + static/src/scss/index.scss | 9 +++++++++ 8 files changed, 61 insertions(+) create mode 100644 content/monzo.md create mode 100644 content/paypal.md create mode 100644 layouts/_default/single.html diff --git a/content/monzo.md b/content/monzo.md new file mode 100644 index 0000000..ed242b2 --- /dev/null +++ b/content/monzo.md @@ -0,0 +1,5 @@ +--- +title: Monzo +image: https://upload.wikimedia.org/wikipedia/en/thumb/a/a3/Monzo_logo.svg/1920px-Monzo_logo.svg.png +link: https://monzo.me/jakehoward +--- diff --git a/content/paypal.md b/content/paypal.md new file mode 100644 index 0000000..700a98f --- /dev/null +++ b/content/paypal.md @@ -0,0 +1,5 @@ +--- +title: PayPal +image: https://upload.wikimedia.org/wikipedia/commons/thumb/b/b7/PayPal_Logo_Icon_2014.svg/887px-PayPal_Logo_Icon_2014.svg.png +link: https://www.paypal.me/TheOrangeOne +--- diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..4c2417a --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,10 @@ + + + Redirecting to {{ .Params.link }} + + + + +

Redirecting to {{ .Params.link }}...

+ + diff --git a/layouts/index.html b/layouts/index.html index 719d2d5..7e6e02f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,9 +3,34 @@ {{ .Title }} {{ partial "style.html" "css/font-awesome.css" }} + {{ partial "style.html" "css/animate.css" }} {{ partial "style.html" "scss/index.scss" }} +
+
+

{{ .Site.Title }}

+

You should give me money. Here's how:

+

+ +

+
+
+ +
+
+
+ {{ range .Pages.ByTitle }} +
+ + {{ .Title }} logo + +
+ {{ end }} +
+
+
+ {{ partial "script.html" "js/bootstrap.js" }} diff --git a/package-lock.json b/package-lock.json index da04024..6a288d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,11 @@ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.7.1.tgz", "integrity": "sha512-gukWJ7Mwf0WXQbkcwcm5zi8+H8aT5MMnphf5hpydOw898H1ibgm2cyejHgk6Km/FTvrPp5ppUHLrlFwt0QxsQw==" }, + "animate.css": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/animate.css/-/animate.css-3.7.0.tgz", + "integrity": "sha512-u3iMXDJr0cxMdQocIciDiou9Au4L5f9uT+/jCtprw3s1j3HcfCuI+khF+90Ps2KdsEhM2soF7SXB4WUvI3HlXg==" + }, "bootstrap": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.2.1.tgz", diff --git a/package.json b/package.json index 34b8dc0..726c8d2 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "homepage": "https://github.com/RealOrangeOne/givemoneyto.me#readme", "dependencies": { "@fortawesome/fontawesome-free": "^5.7.1", + "animate.css": "^3.7.0", "bootstrap": "4.2.1" }, "devDependencies": {} diff --git a/scripts/build.sh b/scripts/build.sh index b9feb64..9ad101d 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -9,6 +9,7 @@ mkdir -p static/build/js static/build/css cp -r static/src/* static/build cp node_modules/bootstrap/dist/js/bootstrap.bundle.min.js static/build/js/bootstrap.js +cp node_modules/animate.css/animate.min.css static/build/css/animate.css cp -r node_modules/@fortawesome/fontawesome-free/css/all.min.css static/build/css/font-awesome.css cp -r node_modules/@fortawesome/fontawesome-free/webfonts static/build diff --git a/static/src/scss/index.scss b/static/src/scss/index.scss index 2f67600..9cd942f 100644 --- a/static/src/scss/index.scss +++ b/static/src/scss/index.scss @@ -1 +1,10 @@ @import "node_modules/bootstrap/scss/bootstrap"; + +.vertical-center { + display: flex; + align-items: center; +} + +.hero-jumbotron { + height: 100vh; +} From 287a5323da9e07844329333a13278d8ef6d0bd52 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 4 Feb 2019 21:51:20 +0000 Subject: [PATCH 3/4] Make everything fit on 1 page --- layouts/index.html | 2 +- static/src/scss/index.scss | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 7e6e02f..96653e5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,7 +7,7 @@ {{ partial "style.html" "scss/index.scss" }} -
+

{{ .Site.Title }}

You should give me money. Here's how:

diff --git a/static/src/scss/index.scss b/static/src/scss/index.scss index 9cd942f..bb818a3 100644 --- a/static/src/scss/index.scss +++ b/static/src/scss/index.scss @@ -5,6 +5,8 @@ align-items: center; } -.hero-jumbotron { - height: 100vh; +@include media-breakpoint-up(lg) { + .jumbotron { + height: 50vh; + } } From 13113def5e51873df1db36d7f543b55d8815eff9 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 4 Feb 2019 22:04:16 +0000 Subject: [PATCH 4/4] Add netlify status badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6463c7a..73c6b61 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ # Give money to me + +[![Netlify Status](https://api.netlify.com/api/v1/badges/1945adf5-cda6-4ac8-86b2-c19ede389ae8/deploy-status)](https://app.netlify.com/sites/give-money-to-me/deploys)