From d211c0a2aaacc5a021e8c468815f1138913367f8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 4 Feb 2019 21:48:02 +0000 Subject: [PATCH] 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; +}