Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
YueSteveYin committed Sep 19, 2024
1 parent 068c188 commit 2e66cdd
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 33 deletions.
4 changes: 4 additions & 0 deletions assets/img/logos/copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion layouts/_default/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 class="enter-title text-3xl font-bold">About Us</h1>
<!-- Mission and Values Section -->
<section class="enter-mission mt-6">
<h2 class="text-gray-800 text-2xl font-semibold">Our Mission</h2>
<p class="text-gray-700 mt-2">
<p class="text-gray-700 mt-2" style = "display: inline-block; background-color: rgb(39, 39, 39, 0.5); padding: 20px; border-radius: 8px;">
{{ .Params.mission }}
</p>
</section>
Expand Down
60 changes: 30 additions & 30 deletions layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@

<!-- Main Section with Logo and Title -->
<section
class="parallax bg-gray p-8"
style="background-image: url(/img/background/titleBackground.webp);"
class="parallax bg-gray p-8 "
style="background-image: url(/img/background/titleBackground.webp); text-align: center;"
>
<h1>
<span class="sr-only">{{ .Title }}</span>
{{ $img := resources.Get `img/logos/hiddenfigs_logo.png` }}
{{ $imgSmall := $img.Resize "400x" }}
{{ $imgMedium := $img.Resize "1000x" }}
<img
title="{{ $.Title }}"
class="mx-auto h-auto w-[400px] max-w-full"
alt="Hidden Figures logo"
width="{{ $imgSmall.Width }}"
height="{{ $imgSmall.Height }}"
src="{{ $imgSmall.RelPermalink }}"
srcset="
{{ $imgSmall.RelPermalink }} 450w,
{{ $imgMedium.RelPermalink }} 900w
"
/>
</h1>
<h2
class="links-blue-darker text-center font-sans text-xl leading-tight text-white md:text-xl"
>
A Cottrell Scholars Collaborative funded by the
<a class="font-bold" href="https://rescorp.org/"
>Research Corporation for Science Advancement</a
>
</h2>
<div class="content-area mx-auto mt-8 max-w-prose text-white">
{{ .Content }}
<div style="display: inline-block; background-color: rgb(39, 39, 39, 0.5); padding: 20px; border-radius: 8px; ">
<h1>
<span class="sr-only">{{ .Title }}</span>
{{ $img := resources.Get `img/logos/hiddenfigs_logo.png` }}
{{ $imgSmall := $img.Resize "400x" }}
{{ $imgMedium := $img.Resize "1000x" }}
<img
title="{{ $.Title }}"
class="mx-auto h-auto w-[400px] max-w-full"
alt="Hidden Figures logo"
width="{{ $imgSmall.Width }}"
height="{{ $imgSmall.Height }}"
src="{{ $imgSmall.RelPermalink }}"
srcset="
{{ $imgSmall.RelPermalink }} 450w,
{{ $imgMedium.RelPermalink }} 900w
"
/>
</h1>
<h2
class="links-blue-darker text-center font-sans text-xl leading-tight text-white md:text-xl">
A Cottrell Scholars Collaborative funded by the
<a class="font-bold" href="https://rescorp.org/">Research Corporation for Science Advancement</a>
</h2>
<div
class="content-area mx-auto mt-8 max-w-prose text-white">
{{ .Content }}
</div>
</div>
</section>
<!-- Parallax effect CSS -->
Expand Down
6 changes: 4 additions & 2 deletions layouts/_default/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 class="break-word font-bold leading-tight">
</div>

<!-- Basic Information Section -->
<div class="links-blue-darker enter4 mt-2 text-sm sm:flex sm:flex-wrap">
<div class="links-blue-darker enter4 mt-2 text-sm sm:flex sm:flex-wrap" style = "background-color: rgb(39, 39, 39, 0.5); padding: 20px; border-radius: 8px;">
<!-- Institution of Ph.D. -->
<p class="sm:w-1/2" id="college">
<span class="mr-5 text-g-6">
Expand Down Expand Up @@ -146,6 +146,7 @@ <h1 class="break-word font-bold leading-tight">
x-transition:enter-start="transform opacity-0 scale-95"
x-transition:enter-end="transform opacity-100 scale-100"
class="enter6 mt-4"
style = " background-color: rgb(39, 39, 39, 0.5); padding: 20px; border-radius: 8px;"
>
<h2 class="text-lg font-bold">Scientist Biography</h2>

Expand Down Expand Up @@ -209,7 +210,7 @@ <h2 class="sr-only" data-pagefind-ignore>
Biographical information
</h2>
<p>
{{ replaceRE "\\[CITE (\\d+)\\]" "<a href=\"#cite-$1\" class=\"citation-link\" data-cite=\"$1\" >[$1]</a>" .Params.general_bio | safeHTML }}
{{ replaceRE "\\[CITE (\\d+)\\]" "<a href=\"#cite-$1\" class=\"citation-link\" data-cite=\"$1\" @click='isBio = false'>[$1]</a>" .Params.general_bio | safeHTML }}
</p>
</section>
</div>
Expand Down Expand Up @@ -274,6 +275,7 @@ <h2 class="sr-only" data-pagefind-ignore>
x-transition:enter-end="transform opacity-100 scale-100"
x-cloak
class="mt-4"
style = " background-color: rgb(39, 39, 39, 0.5); padding: 20px; border-radius: 8px;"
>
<h2 class="text-lg font-bold">Key Contributions</h2>
<section class="mt-2">
Expand Down
15 changes: 15 additions & 0 deletions layouts/partials/contactus-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
</div>
<div class="px-4 py-5 sm:p-6">
<h3 class="text-lg font-medium leading-6 text-black">Contact Us</h3>
<div class="mt-2 mb-4">
<button class="text-sm cursor-pointer hover:text-blue-darker" id="emailText" onclick="copyEmailToClipboard()">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom ">
<use xlink:href="#copy"></use>
</svg> [email protected]
</button>
</div>
<div class="mt-2">
<form>
<div class="mb-4">
Expand Down Expand Up @@ -107,4 +114,12 @@ <h3 class="text-lg font-medium leading-6 text-black">Contact Us</h3>
}

document.querySelector("form").addEventListener("submit", submitForm);
function copyEmailToClipboard() {
const emailText = '[email protected]';
navigator.clipboard.writeText(emailText).then(function() {
alert('Email copied to clipboard!');
}, function(err) {
console.error('Could not copy text: ', err);
});
}
</script>
1 change: 1 addition & 0 deletions layouts/partials/svg.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}}


Expand Down

0 comments on commit 2e66cdd

Please sign in to comment.