Skip to content

Commit f5cd3ed

Browse files
authored
FE-751: Style username in signup-registration messaging (#8857)
1 parent bf6fe44 commit f5cd3ed

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

apps/hash-frontend/src/pages/signup.page/signup-registration-right-info.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import { PizzaSolidIcon } from "../../shared/icons/pizza-solid-icon";
1010

1111
import type { FunctionComponent, ReactNode } from "react";
1212

13-
const infoItems: { title: string; description: string; icon: ReactNode }[] = [
13+
const infoItems: {
14+
title: string;
15+
description: React.ReactNode;
16+
icon: ReactNode;
17+
}[] = [
1418
/** @todo: add this info item when email verification is supported */
1519
// {
1620
// title: "Skip email verification",
@@ -25,7 +29,11 @@ const infoItems: { title: string; description: string; icon: ReactNode }[] = [
2529
},
2630
{
2731
title: "Reserve your username",
28-
description: "@pizza goes fast!",
32+
description: (
33+
<>
34+
<code>@pizza</code> goes fast!
35+
</>
36+
),
2937
icon: <PizzaSolidIcon />,
3038
},
3139
];
@@ -79,6 +87,16 @@ export const SignupRegistrationRightInfo: FunctionComponent = () => {
7987
color: ({ palette }) => palette.blue[40],
8088
fontSize: 14,
8189
lineHeight: "130%",
90+
code: {
91+
fontFamily:
92+
'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
93+
fontSize: "0.85em",
94+
color: ({ palette }) => palette.blue[25],
95+
background: "rgba(255, 255, 255, 0.1)",
96+
borderRadius: "4px",
97+
paddingX: 0.75,
98+
paddingY: 0.25,
99+
},
82100
}}
83101
>
84102
{description}

0 commit comments

Comments
 (0)