Skip to content

Commit 53abfc5

Browse files
committed
feat(auth): enhance LoginStep with platform description and adjust layout
- Added a descriptive paragraph about Afilmory as a photo gallery platform to the LoginStep component. - Updated layout classes for improved consistency and alignment in the LoginStep and SuperAdminTenantManager components. Signed-off-by: Innei <tukon479@gmail.com>
1 parent a6a7e2b commit 53abfc5

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

be/apps/dashboard/src/modules/auth/components/registration-wizard/steps/LoginStep.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ type LoginStepProps = {
1616
export const LoginStep: FC<LoginStepProps> = ({ user, isAuthenticated, onContinue, isContinuing }) => (
1717
<div className="space-y-8">
1818
<section className="space-y-3">
19+
<p className="text-text text-sm">
20+
Afilmory is a modern SaaS{' '}
21+
<a href="https://github.com/Afilmory/Afilmory/blob/main/README.md" target="_blank" rel="noopener noreferrer">
22+
photo gallery platform
23+
</a>{' '}
24+
that auto-syncs your libraries, renders them with WebGL, and powers tenant workspaces. The dashboard is the
25+
command center for those capabilities, so connecting your account lets us personalize the workspace setup for
26+
your team.
27+
</p>
1928
<h2 className="text-text text-lg font-semibold">Sign in to continue</h2>
2029
<p className="text-text-secondary text-sm">
2130
Use your organization&apos;s identity provider to create a workspace. We&apos;ll use your profile details to set
@@ -25,15 +34,15 @@ export const LoginStep: FC<LoginStepProps> = ({ user, isAuthenticated, onContinu
2534

2635
{!isAuthenticated ? (
2736
<div className="space-y-4">
28-
<div className="bg-fill/40 rounded-2xl border border-white/5 px-6 py-5">
37+
<div className="bg-fill/40 rounded border border-white/5 px-6 py-5">
2938
<p className="text-text-secondary text-sm">
3039
Choose your provider below. After completing the sign-in flow you&apos;ll return here automatically.
3140
</p>
3241
</div>
33-
<SocialAuthButtons className="max-w-sm" requestSignUp layout="row" />
42+
<SocialAuthButtons className="max-w-sm" requestSignUp title="Continue with" layout="row" />
3443
</div>
3544
) : (
36-
<div className="bg-fill/40 rounded-2xl border border-white/5 p-6">
45+
<div className="bg-fill/40 rounded border border-white/5 p-6">
3746
<p className="text-text-secondary text-sm">You&apos;re signed in as</p>
3847
<div className="text-text mt-2 text-lg font-semibold">{user?.name || user?.email}</div>
3948
<div className="text-text-tertiary text-sm">{user?.email}</div>

be/apps/dashboard/src/modules/super-admin/components/SuperAdminTenantManager.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ export function SuperAdminTenantManager() {
110110
<tr className="text-text-tertiary text-xs uppercase tracking-wide">
111111
<th className="px-3 py-2 text-left">租户</th>
112112
<th className="px-3 py-2 text-left">订阅计划</th>
113-
<th className="px-3 py-2 text-left">状态</th>
114-
<th className="px-3 py-2 text-left">封禁</th>
113+
<th className="px-3 py-2 text-center">状态</th>
114+
<th className="px-3 py-2 text-center">封禁</th>
115115
<th className="px-3 py-2 text-left">创建时间</th>
116116
</tr>
117117
</thead>
@@ -130,10 +130,10 @@ export function SuperAdminTenantManager() {
130130
onChange={(nextPlan) => handlePlanChange(tenant, nextPlan)}
131131
/>
132132
</td>
133-
<td className="px-3">
133+
<td className="px-3 flex mt-4 justify-center">
134134
<StatusBadge status={tenant.status} banned={tenant.banned} />
135135
</td>
136-
<td className="px-3 py-3">
136+
<td className="px-3 flex mt-4 justify-center">
137137
<Button
138138
type="button"
139139
size="sm"

0 commit comments

Comments
 (0)