Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
YueSteveYin committed Sep 14, 2024
1 parent 2233483 commit 7c85f3b
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 49 deletions.
1 change: 0 additions & 1 deletion layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ <h3 class="text-lg font-medium leading-6 text-black">Contact Us</h3>
class="parallax relative overflow-hidden p-8 text-white"
style="background-image: url(/img/background/bodyBackground.webp);"
>

<section class="no-js-hide p-8">
{{ partial "search.html" . }}
</section>
Expand Down
67 changes: 33 additions & 34 deletions layouts/_default/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1 class="break-word font-bold leading-tight">
<!-- Basic Information Section -->
<div class="links-blue-darker enter4 mt-2 text-sm sm:flex sm:flex-wrap">
<!-- Institution of Ph.D. -->
<p class="sm:w-1/2" id = college>
<p class="sm:w-1/2" id="college">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<use xlink:href="#university-svg"></use>
Expand All @@ -35,7 +35,7 @@ <h1 class="break-word font-bold leading-tight">
</p>

<!-- Field of Ph.D. -->
<p class="sm:w-1/2" id = major>
<p class="sm:w-1/2" id="major">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<use xlink:href="#phd"></use>
Expand All @@ -45,7 +45,7 @@ <h1 class="break-word font-bold leading-tight">
</p>

<!-- Year of Ph.D. -->
<p class="sm:w-1/2" id = "years">
<p class="sm:w-1/2" id="years">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<use xlink:href="#year"></use>
Expand All @@ -55,7 +55,7 @@ <h1 class="break-word font-bold leading-tight">
</p>

<!-- Research Areas -->
<p class="sm:w-1/2" id = researchArea>
<p class="sm:w-1/2" id="researchArea">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<use xlink:href="#research"></use>
Expand All @@ -70,7 +70,7 @@ <h1 class="break-word font-bold leading-tight">
</p>

<!-- Relevant Courses -->
<p class="sm:w-1/2" id = relevantCourses>
<p class="sm:w-1/2" id="relevantCourses">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<use xlink:href="#open-book"></use>
Expand All @@ -85,7 +85,7 @@ <h1 class="break-word font-bold leading-tight">
</p>

<!-- Wikipedia Link -->
<p class=" flex items-center sm:w-1/2" id = wiki>
<p class=" flex items-center sm:w-1/2" id="wiki">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<title>Website</title>
Expand All @@ -100,7 +100,7 @@ <h1 class="break-word font-bold leading-tight">
</p>

<!-- college level -->
<p class=" flex items-center sm:w-1/2" id = levels>
<p class=" flex items-center sm:w-1/2" id="levels">
<span class="mr-5 text-g-6">
<svg class="inline-block h-4 w-4 fill-current align-text-bottom">
<title>level</title>
Expand Down Expand Up @@ -162,8 +162,7 @@ <h2 class="text-lg font-bold">Scientist Biography</h2>
<div
class="mb-4 w-full text-center sm:mb-0 sm:mr-4 sm:w-auto sm:text-left"
>
<a href="{{ $img.RelPermalink }}" download
id = imageDownload>
<a href="{{ $img.RelPermalink }}" download id="imageDownload">
<img
data-pagefind-meta="image[src], image_alt[alt], image_srcset[srcset], image_width[width], image_height[height]"
class="image-zoom mx-auto rounded bg-g-4 shadow transition-shadow duration-500 hover:shadow-lg sm:mx-0"
Expand Down Expand Up @@ -473,38 +472,38 @@ <h2 class="text-lg font-bold">Citations</h2>
<script src="https://unpkg.com/tippy.js@6"></script>

<script>
document.addEventListener("DOMContentLoaded", function() {
tippy('#college', {
content: 'Institution of Ph.D.',
placement: "left"
document.addEventListener("DOMContentLoaded", function () {
tippy("#college", {
content: "Institution of Ph.D.",
placement: "left",
});
tippy('#major', {
content: 'Field of Ph.D.',
placement: "right"
tippy("#major", {
content: "Field of Ph.D.",
placement: "right",
});
tippy('#years', {
content: 'Year of Ph.D. or highest degree',
placement: "left"
tippy("#years", {
content: "Year of Ph.D. or highest degree",
placement: "left",
});
tippy('#researchArea', {
content: 'Research Areas',
placement: "right"
tippy("#researchArea", {
content: "Research Areas",
placement: "right",
});
tippy('#relevantCourses', {
content: 'Relevant Courses',
placement: "left"
tippy("#relevantCourses", {
content: "Relevant Courses",
placement: "left",
});
tippy('#wiki', {
content: 'Wikipedia Link',
placement: "right"
tippy("#wiki", {
content: "Wikipedia Link",
placement: "right",
});
tippy('#levels', {
content: 'College Level Assessment',
placement: "left"
tippy("#levels", {
content: "College Level Assessment",
placement: "left",
});
tippy("#imageDownload", {
content: "click the image to download",
});
tippy('#imageDownload', {
content: 'click the image to download',
});
});
</script>
{{ end }}
14 changes: 7 additions & 7 deletions layouts/partials/person-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{{- .Params.name -}}
</h2>
{{ if $xpts := .Params.researchAreas }}
<p class="text-sm leading-normal" id = researchArea>
<p class="text-sm leading-normal" id="researchArea">
<svg
class="relative top-[2px] mr-2 inline-block h-4 w-4 fill-current align-baseline text-g-6"
>
Expand All @@ -77,7 +77,7 @@
</p>
{{ end }}
{{ if $xpts := .Params.relevantCourses }}
<p class="text-sm leading-normal" id = relevantCourses>
<p class="text-sm leading-normal" id="relevantCourses">
<svg
class="relative top-[2px] mr-2 inline-block h-4 w-4 fill-current align-baseline text-g-6"
>
Expand All @@ -102,12 +102,12 @@
<script src="https://unpkg.com/tippy.js@6"></script>

<script>
document.addEventListener("DOMContentLoaded", function() {
tippy('#researchArea', {
content: 'Research Areas',
document.addEventListener("DOMContentLoaded", function () {
tippy("#researchArea", {
content: "Research Areas",
});
tippy('#relevantCourses', {
content: 'Relevant Courses',
tippy("#relevantCourses", {
content: "Relevant Courses",
});
});
</script>
Expand Down
14 changes: 7 additions & 7 deletions layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h2 class="text-white">
></h2>
<h3 class="truncate text-g-6" x-text="p.organization"></h3>
<div class="font-serif text-sm leading-normal text-gray">
<p x-show="p.researchAreas.length" id = "researchArea">
<p x-show="p.researchAreas.length" id="researchArea">
<span class="mr-1 text-g-7">
<svg
class="relative top-[2px] mr-2 inline-block h-4 w-4 fill-current align-baseline text-g-6"
Expand All @@ -182,7 +182,7 @@ <h3 class="truncate text-g-6" x-text="p.organization"></h3>
</span>
<span x-text="andMore(p.researchAreas)"></span>
</p>
<p x-show="p.relevantCourses.length" id = "relevantCourses">
<p x-show="p.relevantCourses.length" id="relevantCourses">
<span class="mr-1 text-g-7">
<svg
class="relative top-[2px] mr-2 inline-block h-4 w-4 fill-current align-baseline text-g-6"
Expand All @@ -201,12 +201,12 @@ <h3 class="truncate text-g-6" x-text="p.organization"></h3>
<script src="https://unpkg.com/tippy.js@6"></script>

<script>
document.addEventListener("DOMContentLoaded", function() {
tippy('#researchArea', {
content: 'Research Areas',
document.addEventListener("DOMContentLoaded", function () {
tippy("#researchArea", {
content: "Research Areas",
});
tippy('#relevantCourses', {
content: 'Relevant Courses',
tippy("#relevantCourses", {
content: "Relevant Courses",
});
});
</script>
Expand Down

0 comments on commit 7c85f3b

Please sign in to comment.