Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.6 KB
Raw Blame
import { cn } from '@ui';
import { type JSX, type ParentProps, Show } from 'solid-js';

export function PublicBookingLayout(
  props: ParentProps<{
    brandTarget?: '_blank';
    branding?: JSX.Element;
    embedded?: boolean;
  }>
) {
  return (
    <div class="@container/public-booking flex min-h-full flex-1 flex-col bg-panel text-ink">
      <div
        class={cn(
          'flex flex-1 flex-col px-4 @min-[640px]/public-booking:px-8',
          props.embedded ? 'py-4' : 'py-6 @min-[640px]/public-booking:py-10'
        )}
      >
        <div class="mx-auto flex w-full max-w-5xl flex-1 flex-col">
          <Show when={!props.embedded}>
            {props.branding ?? (
              <PublicBookingBrand target={props.brandTarget} />
            )}
          </Show>
          <div
            class={cn(
              !props.embedded && 'mt-8 @min-[640px]/public-booking:mt-12'
            )}
          >
            {props.children}
          </div>
          <Show when={!props.embedded}>
            <p class="mt-auto pt-8 text-center text-xs text-ink-muted">
              Scheduling by Macro
            </p>
          </Show>
        </div>
      </div>
    </div>
  );
}

export function PublicBookingBrand(props: { target?: '_blank' }) {
  return (
    <a
      href="https://macro.com"
      aria-label="Macro Scheduling"
      target={props.target}
      rel={props.target ? 'noopener noreferrer' : undefined}
      class="inline-flex items-center gap-2 self-start text-sm font-semibold tracking-tight"
    >
      Macro <span class="font-normal text-ink-muted">/ Scheduling</span>
    </a>
  );
}