Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added apps/website/public/douglas-icon.png
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 apps/website/src/components/cto/Values.astro
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ import InfoBlock from "./InfoBlock.astro";
</p>
<img src="/quotes.svg" class="hidden md:block" />
<div class="flex gap-3 col-span-2">
<img src="/" class="h-[72px] w-[72px]" alt="Douglas Barr" />
<img src="/douglas-icon.png" class="h-[72px] w-[72px]" alt="Douglas Barr" />
<p class="text-xl text-secondary">
<strong>Douglas Barr</strong>
<br />
Expand Down
20 changes: 19 additions & 1 deletion apps/website/src/components/navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
md:rounded-r-lg
md:overflow-hidden
relative
gap-24
gap:12
md:gap-24
md:has-[img[data-navhidden='false']]:gap-7
max-md:has-[input:checked]:bg-secondary"
>
Expand All @@ -53,6 +54,17 @@
data-navhidden
/>
</a>
<ul id="mobile-contact" class="flex 2max-md:flex max-md:ml-auto max-md:mr-4 md:hidden">
<li>
<a class="flex font-medium w-fit h-[45px] items-center px-4 py-2 rounded-md text-base text-center whitespace-nowrap bg-crocoder-yellow text-contrast hover:opacity-90"
href="/contact">
Contact us
</a>
</li>
</ul>



<input
id="nav-menu-toggle"
type="checkbox"
Expand Down Expand Up @@ -140,6 +152,8 @@
const allDataHidden = document.querySelectorAll("[data-navhidden]");
const bookACallAction = document.getElementById("book-a-call-action");
const navMenuToggle = document.getElementById("nav-menu-toggle");
const mobileContact = document.getElementById("mobile-contact");


function onScroll() {
const currentScrollTop =
Expand Down Expand Up @@ -184,6 +198,10 @@
});
}

navMenuToggle.addEventListener("change", () => {
mobileContact.classList.toggle("hidden", navMenuToggle.checked);
});

function handleBookACall() {
navMenuToggle.checked = false;
window.navScroll = true;
Expand Down