Remove font weights from Cal Sans text (#2158)

This commit is contained in:
Bailey Pumfleet 2022-03-15 16:59:04 +00:00 committed by GitHub
parent 7f270649b4
commit 04cd821a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 17 deletions

View file

@ -119,7 +119,7 @@ export default function ImageUploader({
<DialogContent> <DialogContent>
<div className="mb-4 sm:flex sm:items-start"> <div className="mb-4 sm:flex sm:items-start">
<div className="mt-3 text-center sm:mt-0 sm:text-left"> <div className="mt-3 text-center sm:mt-0 sm:text-left">
<h3 className="font-cal text-lg font-bold leading-6 text-gray-900" id="modal-title"> <h3 className="font-cal text-lg leading-6 text-gray-900" id="modal-title">
{t("upload_target", { target })} {t("upload_target", { target })}
</h3> </h3>
</div> </div>

View file

@ -248,7 +248,7 @@ export default function Shell(props: {
</nav> </nav>
</div> </div>
<TrialBanner /> <TrialBanner />
<div className="rounded-sm pb-2 pl-3 pt-2 pr-2 hover:bg-gray-100 lg:mx-2 lg:pl-2"> <div className="rounded-sm pt-2 pb-2 pl-3 pr-2 hover:bg-gray-100 lg:mx-2 lg:pl-2">
<span className="hidden lg:inline"> <span className="hidden lg:inline">
<UserDropdown /> <UserDropdown />
</span> </span>
@ -309,9 +309,7 @@ export default function Shell(props: {
<div className="block min-h-[80px] justify-between px-4 sm:flex sm:px-6 md:px-8"> <div className="block min-h-[80px] justify-between px-4 sm:flex sm:px-6 md:px-8">
{props.HeadingLeftIcon && <div className="ltr:mr-4">{props.HeadingLeftIcon}</div>} {props.HeadingLeftIcon && <div className="ltr:mr-4">{props.HeadingLeftIcon}</div>}
<div className="mb-8 w-full"> <div className="mb-8 w-full">
<h1 className="font-cal mb-1 text-xl font-bold tracking-wide text-gray-900"> <h1 className="font-cal mb-1 text-xl text-gray-900">{props.heading}</h1>
{props.heading}
</h1>
<p className="text-sm text-neutral-500 ltr:mr-4 rtl:ml-4">{props.subtitle}</p> <p className="text-sm text-neutral-500 ltr:mr-4 rtl:ml-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>

View file

@ -52,9 +52,7 @@ export default function ConfirmationDialogContent(props: PropsWithChildren<Confi
</div> </div>
)} )}
<div> <div>
<DialogPrimitive.Title className="font-cal text-xl font-bold text-gray-900"> <DialogPrimitive.Title className="font-cal text-xl text-gray-900">{title}</DialogPrimitive.Title>
{title}
</DialogPrimitive.Title>
<DialogPrimitive.Description className="text-sm text-neutral-500"> <DialogPrimitive.Description className="text-sm text-neutral-500">
{children} {children}
</DialogPrimitive.Description> </DialogPrimitive.Description>

View file

@ -21,7 +21,7 @@ export default function AuthContainer(props: React.PropsWithChildren<Props>) {
<img className="mx-auto h-6" src="/calendso-logo-white-word.svg" alt="Cal.com Logo" /> <img className="mx-auto h-6" src="/calendso-logo-white-word.svg" alt="Cal.com Logo" />
)} )}
{props.heading && ( {props.heading && (
<h2 className="font-cal mt-6 text-center text-3xl font-bold text-neutral-900">{props.heading}</h2> <h2 className="font-cal mt-6 text-center text-3xl text-neutral-900">{props.heading}</h2>
)} )}
</div> </div>
{props.loading && ( {props.loading && (

View file

@ -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("font-cal text-xl font-bold text-gray-900 dark:text-white", props?.className); const classes = classnames("font-cal text-xl 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>;
}; };

View file

@ -49,7 +49,7 @@ export default function User(props: inferSSRProps<typeof getServerSideProps>) {
<main className="mx-auto max-w-3xl px-4 py-24"> <main className="mx-auto max-w-3xl px-4 py-24">
<div className="mb-8 text-center"> <div className="mb-8 text-center">
<AvatarSSR user={user} className="mx-auto mb-4 h-24 w-24" alt={nameOrUsername}></AvatarSSR> <AvatarSSR user={user} className="mx-auto mb-4 h-24 w-24" alt={nameOrUsername}></AvatarSSR>
<h1 className="font-cal mb-1 text-3xl font-bold text-neutral-900 dark:text-white"> <h1 className="font-cal mb-1 text-3xl text-neutral-900 dark:text-white">
{nameOrUsername} {nameOrUsername}
{user.verified && ( {user.verified && (
<BadgeCheckIcon className="mx-1 -mt-1 inline h-6 w-6 text-blue-500 dark:text-white" /> <BadgeCheckIcon className="mx-1 -mt-1 inline h-6 w-6 text-blue-500 dark:text-white" />
@ -61,7 +61,7 @@ export default function User(props: inferSSRProps<typeof getServerSideProps>) {
{user.away ? ( {user.away ? (
<div className="overflow-hidden rounded-sm border dark:border-gray-900"> <div className="overflow-hidden rounded-sm border dark:border-gray-900">
<div className="p-8 text-center text-gray-400 dark:text-white"> <div className="p-8 text-center text-gray-400 dark:text-white">
<h2 className="font-cal mb-2 text-3xl font-semibold text-gray-600 dark:text-white"> <h2 className="font-cal mb-2 text-3xl text-gray-600 dark:text-white">
😴{" " + t("user_away")} 😴{" " + t("user_away")}
</h2> </h2>
<p className="mx-auto max-w-md">{t("user_away_description")}</p> <p className="mx-auto max-w-md">{t("user_away_description")}</p>
@ -116,9 +116,7 @@ export default function User(props: inferSSRProps<typeof getServerSideProps>) {
{eventTypes.length === 0 && ( {eventTypes.length === 0 && (
<div className="overflow-hidden rounded-sm border dark:border-gray-900"> <div className="overflow-hidden rounded-sm border dark:border-gray-900">
<div className="p-8 text-center text-gray-400 dark:text-white"> <div className="p-8 text-center text-gray-400 dark:text-white">
<h2 className="font-cal mb-2 text-3xl font-semibold text-gray-600 dark:text-white"> <h2 className="font-cal mb-2 text-3xl text-gray-600 dark:text-white">{t("uh_oh")}</h2>
{t("uh_oh")}
</h2>
<p className="mx-auto max-w-md">{t("no_event_types_have_been_setup")}</p> <p className="mx-auto max-w-md">{t("no_event_types_have_been_setup")}</p>
</div> </div>
</div> </div>

View file

@ -67,7 +67,7 @@ function HideBrandingInput(props: { hideBrandingRef: RefObject<HTMLInputElement>
</div> </div>
<div className="mb-4 sm:flex sm:items-start"> <div className="mb-4 sm:flex sm:items-start">
<div className="mt-3 sm:mt-0 sm:text-left"> <div className="mt-3 sm:mt-0 sm:text-left">
<h3 className="font-cal text-lg font-bold leading-6 text-gray-900" id="modal-title"> <h3 className="font-cal text-lg leading-6 text-gray-900" id="modal-title">
{t("only_available_on_pro_plan")} {t("only_available_on_pro_plan")}
</h3> </h3>
</div> </div>

View file

@ -120,7 +120,7 @@ export function TeamSettingsPage() {
)} )}
</div> </div>
<div className="mb-3 mt-7 flex items-center justify-between"> <div className="mb-3 mt-7 flex items-center justify-between">
<h3 className="font-cal text-xl font-bold leading-6 text-gray-900">{t("members")}</h3> <h3 className="font-cal text-xl leading-6 text-gray-900">{t("members")}</h3>
{isAdmin && ( {isAdmin && (
<div className="relative flex items-center"> <div className="relative flex items-center">
<Button <Button