Skip to content

Commit 4831926

Browse files
committed
fix: project card design and nebula text (#5686)
Fixes: DASH-580 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving the UI layout and styling of the `nebula-waitlist-page-ui.client.tsx` and `TeamProjectsPage.tsx` components within the dashboard application. It enhances spacing and text presentation for a better user experience. ### Detailed summary - Increased gap in `nebula-waitlist-page-ui.client.tsx` from `gap-3` to `gap-6`. - Adjusted paragraph width in `nebula-waitlist-page-ui.client.tsx` for better text alignment. - Reduced height of a div from `h-10` to `h-6` in `nebula-waitlist-page-ui.client.tsx`. - Increased padding in project card from `p-4` to `p-5` in `TeamProjectsPage.tsx`. - Changed the class of `CopyButton` from `hover:bg-background` to `hover:bg-secondary` in `TeamProjectsPage.tsx`. - Adjusted text presentation and layout for project details in `TeamProjectsPage.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 2fccfc0 commit 4831926

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

apps/dashboard/src/app/team/[team_slug]/(team)/~/projects/TeamProjectsPage.tsx

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
} from "@/components/ui/select";
2020
import { useDashboardRouter } from "@/lib/DashboardRouter";
2121
import { LazyCreateAPIKeyDialog } from "components/settings/ApiKeys/Create/LazyCreateAPIKeyDialog";
22-
import { format } from "date-fns";
2322
import { ChevronDownIcon, SearchIcon } from "lucide-react";
2423
import Link from "next/link";
2524
import { useState } from "react";
@@ -120,31 +119,29 @@ function ProjectCard(props: {
120119
return (
121120
<div
122121
key={project.id}
123-
className="relative flex items-center gap-4 rounded-lg border border-border bg-muted/50 p-4 transition-colors hover:bg-muted/70"
122+
className="relative flex items-center gap-4 rounded-lg border border-border bg-muted/50 p-5 transition-colors hover:bg-muted/70"
124123
>
125124
{/* TODO - set image */}
126125
<ProjectAvatar className="size-10 rounded-full" src="" />
127126

128-
<div>
129-
<Link
130-
className="group static before:absolute before:top-0 before:right-0 before:bottom-0 before:left-0 before:z-0"
131-
// remove /connect when we have overview page
132-
href={`/team/${team_slug}/${project.slug}`}
133-
>
134-
<h2 className="font-medium text-base">{project.name}</h2>
135-
</Link>
136-
137-
<p className="mb-1 flex items-center gap-0.5 text-muted-foreground text-xs">
138-
{truncate(project.publishableKey, 32)}
127+
<div className="flex-grow flex-col gap-1">
128+
<div className="flex items-center justify-between gap-2">
129+
<Link
130+
className="group static before:absolute before:top-0 before:right-0 before:bottom-0 before:left-0 before:z-0"
131+
// remove /connect when we have overview page
132+
href={`/team/${team_slug}/${project.slug}`}
133+
>
134+
<h2 className="font-medium text-base">{project.name}</h2>
135+
</Link>
139136
<CopyButton
140137
text={project.publishableKey}
141138
iconClassName="z-10 size-3"
142-
className="!h-auto !w-auto -translate-x-1 p-2 hover:bg-background"
139+
className="!h-auto !w-auto -translate-x-1 p-2 hover:bg-secondary"
143140
/>
144-
</p>
141+
</div>
145142

146-
<p className="my-1 text-muted-foreground/70 text-xs">
147-
Created on {format(new Date(project.createdAt), "MMM dd, yyyy")}
143+
<p className="flex items-center text-muted-foreground text-sm">
144+
{truncate(project.publishableKey, 32)}
148145
</p>
149146
</div>
150147
</div>

apps/dashboard/src/app/team/[team_slug]/[project_slug]/nebula/components/nebula-waitlist-page-ui.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export function NebulaWaitListPageUI(props: {
3030
title="You're on the waitlist"
3131
description="You should receive access to Nebula soon!"
3232
footer={
33-
<div className="flex flex-col items-center gap-3">
33+
<div className="flex flex-col items-center gap-6">
3434
<ShareButton teamId={props.teamId} />
35-
<p className="text-balance text-center text-muted-foreground">
35+
<p className="w-full max-w-[340px] text-center text-muted-foreground text-sm">
3636
Share this invite link and get moved up the list when your
3737
friends sign up!
3838
</p>
@@ -97,7 +97,7 @@ function CenteredCard(props: {
9797
{props.description}
9898
</p>
9999

100-
<div className="h-10" />
100+
<div className="h-6" />
101101

102102
{props.footer}
103103
</div>

0 commit comments

Comments
 (0)