Skip to content

Commit 5b34222

Browse files
lighter color for header
1 parent 44ae175 commit 5b34222

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/components/ui/sectionheader.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
type SectionHeaderProps = {
22
children: string
3+
light?: boolean
34
}
45

5-
export const SectionHeader = ({ children }: SectionHeaderProps) => {
6+
export const SectionHeader = ({
7+
children,
8+
light = false,
9+
}: SectionHeaderProps) => {
610
return (
7-
<h2 className="self-start text-very-large font-semibold underline">
11+
<h2
12+
className={`self-start text-very-large font-semibold underline ${
13+
light ? 'text-zinc-50' : ''
14+
}`}
15+
>
816
{children}
917
</h2>
1018
)

src/components/users/Users.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const Users = () => {
6262
>
6363
<div className="w-full flex flex-col items-center">
6464
<div className="w-full flex flex-col gap-0 sm:gap-4">
65-
<SectionHeader>Most Active Users</SectionHeader>
65+
<SectionHeader light>Most Active Users</SectionHeader>
6666
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 w-full">
6767
<div className="md:col-span-2 grid grid-cols-1 sm:grid-cols-2 gap-4">
6868
{users.length > 0

0 commit comments

Comments
 (0)