From 2e66cdd6d8f20d8231e299a72e9630ed56b0e358 Mon Sep 17 00:00:00 2001 From: YueSteveYin Date: Wed, 18 Sep 2024 22:08:13 -0700 Subject: [PATCH] fixes --- assets/img/logos/copy.svg | 4 ++ layouts/_default/about.html | 2 +- layouts/_default/home.html | 60 ++++++++++++++--------------- layouts/_default/person.html | 6 ++- layouts/partials/contactus-box.html | 15 ++++++++ layouts/partials/svg.html | 1 + 6 files changed, 55 insertions(+), 33 deletions(-) create mode 100644 assets/img/logos/copy.svg diff --git a/assets/img/logos/copy.svg b/assets/img/logos/copy.svg new file mode 100644 index 0000000..853d1cf --- /dev/null +++ b/assets/img/logos/copy.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/layouts/_default/about.html b/layouts/_default/about.html index 5eb5252..adbb99e 100644 --- a/layouts/_default/about.html +++ b/layouts/_default/about.html @@ -10,7 +10,7 @@

About Us

Our Mission

-

+

{{ .Params.mission }}

diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 3c2b216..331de71 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -4,37 +4,37 @@
-

- {{ .Title }} - {{ $img := resources.Get `img/logos/hiddenfigs_logo.png` }} - {{ $imgSmall := $img.Resize "400x" }} - {{ $imgMedium := $img.Resize "1000x" }} - Hidden Figures logo -

- -
- {{ .Content }} +
+

+ {{ .Title }} + {{ $img := resources.Get `img/logos/hiddenfigs_logo.png` }} + {{ $imgSmall := $img.Resize "400x" }} + {{ $imgMedium := $img.Resize "1000x" }} + Hidden Figures logo +

+ +
+ {{ .Content }} +
diff --git a/layouts/_default/person.html b/layouts/_default/person.html index 964f41a..7446de5 100644 --- a/layouts/_default/person.html +++ b/layouts/_default/person.html @@ -23,7 +23,7 @@

-

Contact Us

+
+ +
@@ -107,4 +114,12 @@

Contact Us

} document.querySelector("form").addEventListener("submit", submitForm); + function copyEmailToClipboard() { + const emailText = 'your-email@example.com'; + navigator.clipboard.writeText(emailText).then(function() { + alert('Email copied to clipboard!'); + }, function(err) { + console.error('Could not copy text: ', err); + }); + } diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 04126d4..3695d1a 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -28,6 +28,7 @@ "phd" "/img/logos/phd-icon.svg" "year" "/img/logos/year.svg" "level" "/img/logos/level.svg" + "copy" "/img/logos/copy.svg" }}