feat: polish app loading screen and home section emphasis
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 1m52s

Refine the global loading experience to feel smoother and less flashy while keeping brand accents. Simplify the home continue-reading highlight by styling the section header instead of using a heavy card wrapper.
This commit is contained in:
2026-03-01 22:01:56 +01:00
parent fdc9da7f8f
commit 4288e4c541
5 changed files with 88 additions and 12 deletions

View File

@@ -8,11 +8,24 @@ export interface SectionProps extends React.HTMLAttributes<HTMLElement> {
description?: string;
actions?: React.ReactNode;
headerClassName?: string;
titleClassName?: string;
iconClassName?: string;
}
const Section = React.forwardRef<HTMLElement, SectionProps>(
(
{ title, icon: Icon, description, actions, children, className, headerClassName, ...props },
{
title,
icon: Icon,
description,
actions,
children,
className,
headerClassName,
titleClassName,
iconClassName,
...props
},
ref
) => {
return (
@@ -21,9 +34,9 @@ const Section = React.forwardRef<HTMLElement, SectionProps>(
<div className={cn("flex items-center justify-between", headerClassName)}>
{title && (
<div className="flex items-center gap-2">
{Icon && <Icon className="h-5 w-5 text-muted-foreground" />}
{Icon && <Icon className={cn("h-5 w-5 text-muted-foreground", iconClassName)} />}
<div>
<h2 className="text-2xl font-bold tracking-tight">{title}</h2>
<h2 className={cn("text-2xl font-bold tracking-tight", titleClassName)}>{title}</h2>
{description && (
<p className="text-sm text-muted-foreground mt-1">{description}</p>
)}