mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: upgrade font-weight in <Welcome /> heading (#22067)
This pull-request ensures we're globally using a similar `font-weight` in the `<Welcome />` component (specifically noticed on `cli-auth`).
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
import type { FC, PropsWithChildren } from "react";
|
||||
import { CoderIcon } from "../Icons/CoderIcon";
|
||||
|
||||
const Language = {
|
||||
defaultMessage: (
|
||||
<>
|
||||
Welcome to <strong>Coder</strong>
|
||||
</>
|
||||
),
|
||||
};
|
||||
|
||||
type WelcomeProps = Readonly<
|
||||
PropsWithChildren<{
|
||||
className?: string;
|
||||
@@ -21,8 +13,8 @@ export const Welcome: FC<WelcomeProps> = ({ children, className }) => {
|
||||
<CoderIcon className="w-12 h-12" />
|
||||
</div>
|
||||
|
||||
<h1 className="text-center text-3xl font-normal m-0 leading-[1.1] pb-4 [&_strong]:font-semibold">
|
||||
{children || Language.defaultMessage}
|
||||
<h1 className="text-3xl font-semibold m-0 flex justify-center items-center text-center leading-snug">
|
||||
{children || "Welcome to Coder"}
|
||||
</h1>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user