-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add responsive header; update README
- Loading branch information
1 parent
0f515bd
commit 50794e8
Showing
13 changed files
with
331 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
import DarkModeToggle from "src/components/DarkModeToggle"; | ||
--- | ||
|
||
<header | ||
id="header" | ||
class="fixed h-20 flex w-full items-center justify-center bg-gradientHeader backdrop-blur-xl" | ||
> | ||
<div class="flex w-full justify-between items-center xl:w-4/5"> | ||
<a href="https://www.coders51.com" class="ml-4"> | ||
<img | ||
id="header-logo" | ||
src="/assets/logo_white_big.png" | ||
alt="Coders51 Logo" | ||
class="xl:w-40 w-32" | ||
/> | ||
</a> | ||
<div class="flex items-center gap-x-8"> | ||
<nav id="nav"> | ||
<ul class="flex text-white nav items-center gap-x-8 m-0"> | ||
<li><a href="https://www.coders51.com/#whoweare">Who we are</a></li> | ||
<li><a href="https://www.coders51.com/#whatwedo">What we do</a></li> | ||
<li> | ||
<a href="https://www.coders51.com/#customers">Success Stories</a> | ||
</li> | ||
<li><a href="https://www.coders51.com/#community">Community</a></li> | ||
<li><a class="active-link" href="/">Blog</a></li> | ||
<li> | ||
<a | ||
href="https://coders51.typeform.com/to/BpB9pe" | ||
data-mode="popup" | ||
class="typeform-share">Contact Us</a | ||
> | ||
</li> | ||
</ul> | ||
</nav> | ||
<div class="flex items-center gap-x-4"> | ||
<DarkModeToggle client:only /> | ||
<button class="navbar-toggle" transition:persist> | ||
<span></span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<script is:inline> | ||
(function () { | ||
var qs, | ||
js, | ||
q, | ||
s, | ||
d = document, | ||
gi = d.getElementById, | ||
ce = d.createElement, | ||
gt = d.getElementsByTagName, | ||
id = "typef_orm_share", | ||
b = "https://embed.typeform.com/"; | ||
if (!gi.call(d, id)) { | ||
js = ce.call(d, "script"); | ||
js.id = id; | ||
js.src = b + "embed.js"; | ||
q = gt.call(d, "script")[0]; | ||
q.parentNode.insertBefore(js, q); | ||
} | ||
})(); | ||
|
||
const navbarToggle = document.getElementsByClassName("navbar-toggle")[0]; | ||
|
||
navbarToggle?.addEventListener("click", () => { | ||
const header = document.querySelector("header"); | ||
if (header) { | ||
header.classList.toggle("nav-collapse"); | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.