-
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.
- Loading branch information
Showing
21 changed files
with
243 additions
and
27 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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
"postcss-import": {}, | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import React, { Children, PropsWithChildren, ReactNode } from "react"; | ||
import Navbar from "./layout/Navbar"; | ||
import { WindowLocation } from "@reach/router"; | ||
|
||
export const Layout = ({ | ||
location, | ||
title, | ||
children, | ||
}: { | ||
location: string; | ||
location: WindowLocation<unknown>; | ||
title: string; | ||
children: ReactNode; | ||
}) => { | ||
return ( | ||
<div className="site"> | ||
<h1>LaunchWare</h1> | ||
{children} | ||
</div> | ||
<> | ||
<Navbar /> | ||
<div className="site">{children}</div> | ||
</> | ||
); | ||
}; |
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,92 @@ | ||
import React from 'react' | ||
import { Disclosure } from '@headlessui/react' | ||
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline' | ||
|
||
import "../../css/index.css" | ||
import "./css/navbar.css"; | ||
|
||
import { LaunchWareLogo } from '../LaunchWareLogo' | ||
import { Link } from 'gatsby'; | ||
|
||
function classNames(...classes: string[]) { | ||
return classes.filter(Boolean).join(' ') | ||
} | ||
|
||
export default function Navbar() { | ||
return ( | ||
<Disclosure as="nav" className="primary-nav"> | ||
{({ open }) => ( | ||
<> | ||
<div className="primary-nav_container"> | ||
<div className="primary-nav_mobile-button-container"> | ||
<div className="primary-nav_mobile-button"> | ||
{/* Mobile menu button */} | ||
<Disclosure.Button className="primary-nav_mobile-button-disclosure"> | ||
<span className="primary-nav_mobile-button-spacer" /> | ||
<span className="primary-nav_mobile-button-accessible-message">Open main menu</span> | ||
{open ? ( | ||
<XMarkIcon className="primary-nav_mobile-button-icon" aria-hidden="true" /> | ||
) : ( | ||
<Bars3Icon className="primary-nav_mobile-button-icon" aria-hidden="true" /> | ||
)} | ||
</Disclosure.Button> | ||
</div> | ||
<div className="primary-nav-container__desktop"> | ||
<div className="primary-nav_logo"> | ||
<Link to="/"> | ||
<LaunchWareLogo /> | ||
</Link> | ||
</div> | ||
<div className="menu__desktop"> | ||
{/* Current: "border-indigo-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" */} | ||
<a | ||
href="#" | ||
className="menu-item__desktop" | ||
> | ||
Services | ||
</a> | ||
<a | ||
href="#" | ||
className="menu-item__desktop" | ||
> | ||
About | ||
</a> | ||
<a href="#" className="menu-item__desktop menu-item__desktop-button button">Book Launch Call</a> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<Disclosure.Panel className="sm:hidden"> | ||
<div className="primary-nav_disclosure-panel"> | ||
{/* Current: "bg-indigo-50 border-indigo-500 text-indigo-700", Default: "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700" */} | ||
<Disclosure.Button | ||
as="a" | ||
href="#" | ||
className="primary-nav_disclosure-panel-item" | ||
> | ||
Services | ||
</Disclosure.Button> | ||
<Disclosure.Button | ||
as="a" | ||
href="#" | ||
className="primary-nav_disclosure-panel-item" | ||
> | ||
About | ||
</Disclosure.Button> | ||
|
||
<Disclosure.Button | ||
href="#" | ||
as="a" | ||
className="primary-nav_disclosure-panel-item menu-item__desktop menu-item__mobile-button button"> | ||
Book Launch Call | ||
</Disclosure.Button> | ||
</div> | ||
</Disclosure.Panel> | ||
</> | ||
) | ||
} | ||
</Disclosure > | ||
) | ||
} |
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,63 @@ | ||
.primary-nav { | ||
@apply bg-white text-launch-black-90; | ||
} | ||
|
||
.primary-nav_mobile-button { | ||
@apply absolute inset-y-0 right-0 flex items-center sm:hidden; | ||
} | ||
|
||
.primary-nav_mobile-button-container { | ||
@apply relative flex h-16 justify-between | ||
} | ||
|
||
.primary-nav_mobile-button-disclosure { | ||
@apply relative inline-flex items-center justify-center px-2; | ||
} | ||
|
||
.primary-nav_mobile-button-icon { | ||
@apply block h-6 w-6; | ||
} | ||
|
||
.primary-nav_mobile-button-spacer { | ||
@apply absolute -inset-0.5; | ||
} | ||
|
||
.primary-nav_mobile-button-accessible-message { | ||
@apply sr-only; | ||
} | ||
|
||
.menu__desktop { | ||
@apply ml-6 hidden md:flex sm:space-x-8 mx-4 my-4 items-center; | ||
} | ||
|
||
.menu-item__desktop { | ||
@apply hover:text-launch-orange; | ||
} | ||
|
||
.primary-nav_logo { | ||
@apply flex flex-shrink-0 items-center; | ||
} | ||
|
||
.primary-nav_container { | ||
@apply mx-auto max-w-7xl pad-container; | ||
} | ||
|
||
.primary-nav-container__desktop { | ||
@apply flex flex-1 items-center justify-start sm:items-stretch sm:justify-between; | ||
} | ||
|
||
.primary-nav-container__desktop { | ||
@apply pl-6; | ||
} | ||
|
||
.primary-nav_disclosure-panel { | ||
@apply space-y-1 pb-4 shadow-md; | ||
} | ||
|
||
.primary-nav_disclosure-panel-item { | ||
@apply block border-l-4 border-transparent py-2 pl-3 pr-4 text-base; | ||
} | ||
|
||
.menu-item__mobile-button { | ||
@apply mx-2 text-center; | ||
} |
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,3 @@ | ||
.button { | ||
@apply bg-launch-orange text-white font-bold py-1 px-3 rounded-md hover:text-launch-orange hover:bg-white border-launch-orange border-x-2 border-y-2; | ||
} |
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