Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Deno Hunt beta site banner #122

Merged
merged 1 commit into from
Apr 26, 2023
Merged
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
19 changes: 19 additions & 0 deletions components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,29 @@
import type { ComponentChild, ComponentChildren, JSX } from "preact";
import {
BUTTON_STYLES,
NOTICE_STYLES,
SITE_NAME,
SITE_WIDTH_STYLES,
} from "@/utils/constants.ts";
import Logo from "./Logo.tsx";

function Notice() {
return (
<div class={`${NOTICE_STYLES} rounded-none`}>
<div class={`text-center px-8`}>
Deno Hunt powered by Deno SaaSKit is currently in beta. Check out
progress in the{" "}
<a
href="https://github.com/denoland/saaskit/issues/60"
class="underline"
>
roadmap
</a>.
</div>
</div>
);
}

interface NavProps extends JSX.HTMLAttributes<HTMLElement> {
active?: string;
items: (JSX.HTMLAttributes<HTMLAnchorElement> & { inner: ComponentChild })[];
Expand Down Expand Up @@ -108,6 +126,7 @@ export default function Layout(props: LayoutProps) {

return (
<div class="flex flex-col min-h-screen">
<Notice />
<Header>
<Nav items={headerNavItems} />
</Header>
Expand Down