fixed event-type buttons on mobile, added more font-cal classes (#764)
parent
c152e43b82
commit
bb1da8150f
|
@ -61,7 +61,7 @@ export default function Modal(props: {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-3 text-center sm:mt-5">
|
<div className="mt-3 text-center sm:mt-5">
|
||||||
<Dialog.Title as="h3" className="text-lg leading-6 font-medium text-gray-900">
|
<Dialog.Title as="h3" className="font-cal text-lg leading-6 font-medium text-gray-900">
|
||||||
{props.heading}
|
{props.heading}
|
||||||
</Dialog.Title>
|
</Dialog.Title>
|
||||||
<div className="mt-2">
|
<div className="mt-2">
|
||||||
|
|
|
@ -160,7 +160,7 @@ export default function Shell(props) {
|
||||||
<div className="py-8">
|
<div className="py-8">
|
||||||
<div className="block sm:flex justify-between px-4 sm:px-6 md:px-8">
|
<div className="block sm:flex justify-between px-4 sm:px-6 md:px-8">
|
||||||
<div className="mb-8">
|
<div className="mb-8">
|
||||||
<h1 className="text-xl font-bold text-gray-900">{props.heading}</h1>
|
<h1 className="font-cal text-xl font-bold text-gray-900">{props.heading}</h1>
|
||||||
<p className="text-sm text-neutral-500 mr-4">{props.subtitle}</p>
|
<p className="text-sm text-neutral-500 mr-4">{props.subtitle}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-4 flex-shrink-0">{props.CTA}</div>
|
<div className="mb-4 flex-shrink-0">{props.CTA}</div>
|
||||||
|
|
|
@ -29,7 +29,9 @@ export default function ConfirmationDialogContent(props: PropsWithChildren<Confi
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div>
|
<div>
|
||||||
<DialogPrimitive.Title className="text-xl font-bold text-gray-900">{title}</DialogPrimitive.Title>
|
<DialogPrimitive.Title className="font-cal text-xl font-bold text-gray-900">
|
||||||
|
{title}
|
||||||
|
</DialogPrimitive.Title>
|
||||||
<DialogPrimitive.Description className="text-neutral-500">{children}</DialogPrimitive.Description>
|
<DialogPrimitive.Description className="text-neutral-500">{children}</DialogPrimitive.Description>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -67,7 +67,9 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript
|
||||||
className="flex-none inline mr-1.5 mt-0.5 h-4 w-4 text-neutral-400"
|
className="flex-none inline mr-1.5 mt-0.5 h-4 w-4 text-neutral-400"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<span>{eventType.description.substring(0, 100)}</span>
|
<span className="truncate max-w-[200px] sm:max-w-full">
|
||||||
|
{eventType.description.substring(0, 100)}
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -4,7 +4,7 @@ import React from "react";
|
||||||
import { TextProps } from "../Text";
|
import { TextProps } from "../Text";
|
||||||
|
|
||||||
const Headline: React.FunctionComponent<TextProps> = (props: TextProps) => {
|
const Headline: React.FunctionComponent<TextProps> = (props: TextProps) => {
|
||||||
const classes = classnames("text-xl font-bold text-gray-900 dark:text-white", props?.className);
|
const classes = classnames("font-cal text-xl font-bold text-gray-900 dark:text-white", props?.className);
|
||||||
|
|
||||||
return <p className={classes}>{props?.text || props.children}</p>;
|
return <p className={classes}>{props?.text || props.children}</p>;
|
||||||
};
|
};
|
||||||
|
|
|
@ -140,8 +140,12 @@ const EventTypesPage = (props: PageProps) => {
|
||||||
type.$disabled && "opacity-30 cursor-not-allowed pointer-events-none select-none"
|
type.$disabled && "opacity-30 cursor-not-allowed pointer-events-none select-none"
|
||||||
)}
|
)}
|
||||||
data-disabled={type.$disabled ? 1 : 0}>
|
data-disabled={type.$disabled ? 1 : 0}>
|
||||||
<div className={classNames("hover:bg-neutral-50", type.$disabled && "pointer-events-none")}>
|
<div
|
||||||
<div className="flex items-center px-4 py-4 sm:px-6 hover:bg-neutral-50">
|
className={classNames(
|
||||||
|
"hover:bg-neutral-50 flex justify-between items-center ",
|
||||||
|
type.$disabled && "pointer-events-none"
|
||||||
|
)}>
|
||||||
|
<div className="flex items-center w-full justify-between px-4 py-4 sm:px-6 hover:bg-neutral-50">
|
||||||
<Link href={"/event-types/" + type.id}>
|
<Link href={"/event-types/" + type.id}>
|
||||||
<a className="flex-grow text-sm truncate">
|
<a className="flex-grow text-sm truncate">
|
||||||
<div>
|
<div>
|
||||||
|
@ -198,7 +202,7 @@ const EventTypesPage = (props: PageProps) => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-shrink-0 ml-5 sm:hidden">
|
<div className="flex flex-shrink-0 mr-5 sm:hidden">
|
||||||
<Menu as="div" className="inline-block text-left">
|
<Menu as="div" className="inline-block text-left">
|
||||||
{({ open }) => (
|
{({ open }) => (
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -144,7 +144,7 @@ export default function Home({ integrations }: inferSSRProps<typeof getServerSid
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
|
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogHeader title="Connect a new App" subtitle="Connect a new app to your account." />
|
<DialogHeader title="Connect a new App" subtitle="Integrate your account with other services." />
|
||||||
<div className="my-4">
|
<div className="my-4">
|
||||||
<ul className="divide-y divide-gray-200">
|
<ul className="divide-y divide-gray-200">
|
||||||
{integrations
|
{integrations
|
||||||
|
@ -440,7 +440,7 @@ export default function Home({ integrations }: inferSSRProps<typeof getServerSid
|
||||||
</div>
|
</div>
|
||||||
<div className="bg-white border border-gray-200 rounded-sm mb-8">
|
<div className="bg-white border border-gray-200 rounded-sm mb-8">
|
||||||
<div className="px-4 py-5 sm:p-6">
|
<div className="px-4 py-5 sm:p-6">
|
||||||
<h3 className="text-lg leading-6 font-medium text-gray-900">Select calendars</h3>
|
<h3 className="font-cal text-lg leading-6 font-medium text-gray-900">Select calendars</h3>
|
||||||
<div className="mt-2 max-w-xl text-sm text-gray-500">
|
<div className="mt-2 max-w-xl text-sm text-gray-500">
|
||||||
<p>Select which calendars are checked for availability to prevent double bookings.</p>
|
<p>Select which calendars are checked for availability to prevent double bookings.</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -449,7 +449,7 @@ export default function Home({ integrations }: inferSSRProps<typeof getServerSid
|
||||||
</div>
|
</div>
|
||||||
<div className="border border-gray-200 rounded-sm">
|
<div className="border border-gray-200 rounded-sm">
|
||||||
<div className="px-4 py-5 sm:p-6">
|
<div className="px-4 py-5 sm:p-6">
|
||||||
<h3 className="text-lg leading-6 font-medium text-gray-900">Launch your own App</h3>
|
<h3 className="font-cal text-lg leading-6 font-medium text-gray-900">Launch your own App</h3>
|
||||||
<div className="mt-2 max-w-xl text-sm text-gray-500">
|
<div className="mt-2 max-w-xl text-sm text-gray-500">
|
||||||
<p>If you want to add your own App here, get in touch with us.</p>
|
<p>If you want to add your own App here, get in touch with us.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue