Skip to content

Commit

Permalink
nav fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YueSteveYin committed Sep 17, 2024
1 parent 5ce389f commit 068c188
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
18 changes: 15 additions & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,23 @@
/>
{{ if .IsHome }}
<!-- Preload images for the homepage -->
<link rel="preload" href="/img/background/bodyBackground.webp" as="image" />
<link rel="preload" href="/img/background/titleBackground.webp" as="image" />
<link
rel="preload"
href="/img/background/bodyBackground.webp"
as="image"
/>
<link
rel="preload"
href="/img/background/titleBackground.webp"
as="image"
/>
{{ else }}
<!-- Preload image for other pages -->
<link rel="preload" href="/img/background/personBackground.webp" as="image" />
<link
rel="preload"
href="/img/background/personBackground.webp"
as="image"
/>
{{ end }}

{{ $cssTW := resources.Get "css/main.css" }}
Expand Down
12 changes: 3 additions & 9 deletions layouts/partials/contactus-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ <h3 class="text-lg font-medium leading-6 text-black">Contact Us</h3>
<div class="mt-2">
<form>
<div class="mb-4">
<label
for="name"
class="text-gray-700 block text-sm font-medium"
<label for="name" class="text-gray-700 block text-sm font-medium"
>Name</label
>
<input
Expand All @@ -42,9 +40,7 @@ <h3 class="text-lg font-medium leading-6 text-black">Contact Us</h3>
/>
</div>
<div class="mb-4">
<label
for="email"
class="text-gray-700 block text-sm font-medium"
<label for="email" class="text-gray-700 block text-sm font-medium"
>Email</label
>
<input
Expand All @@ -55,9 +51,7 @@ <h3 class="text-lg font-medium leading-6 text-black">Contact Us</h3>
/>
</div>
<div class="mb-4">
<label
for="message"
class="text-gray-700 block text-sm font-medium"
<label for="message" class="text-gray-700 block text-sm font-medium"
>Message</label
>
<textarea
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
class="self-center text-blue duration-500 hover:text-blue-darker"
href="{{ .URL }}"
{{ with .Post }}target="{{ . }}"{{ end }}
@click="showModal = true; console.log(showModal)"
{{ if eq .Name "Contact Us" }}
@click="showModal = true;"
{{ end }}
>
{{- .Name -}}
</a>
Expand Down

0 comments on commit 068c188

Please sign in to comment.