STYLED - Drop section cards in the project form, lay content flat on the page
Experiment: remove the AppCard wrappers around Basic Information, Localized Content, Sections and Cover/Assets, plus the action bar, so the form content sits directly on the page. Section headers now carry a thin underline and the action bar a top divider to keep structure without card chrome. Two-column layout preserved. No field-name or save-logic changes.
This commit is contained in:
@@ -337,7 +337,7 @@ function SectionHeader({
|
||||
action?: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between">
|
||||
<div className="flex flex-col gap-4 border-b border-border/60 pb-3 lg:flex-row lg:items-end lg:justify-between">
|
||||
<div className="space-y-1">
|
||||
<h3 className="text-lg font-semibold text-foreground">{title}</h3>
|
||||
<p className="text-sm text-muted-foreground">{description}</p>
|
||||
@@ -595,8 +595,6 @@ export function PortfolioProjectForm({
|
||||
<input ref={intentRef} type="hidden" name="intent" defaultValue="save" />
|
||||
|
||||
<div className="grid gap-6 xl:grid-cols-2 xl:items-start">
|
||||
<div>
|
||||
<AppCard level={3} padding="md">
|
||||
<section className="space-y-5">
|
||||
<SectionHeader
|
||||
title="Basic Information"
|
||||
@@ -754,11 +752,7 @@ export function PortfolioProjectForm({
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
</AppCard>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<AppCard level={3} padding="md">
|
||||
<section className="space-y-5">
|
||||
<SectionHeader
|
||||
title="Localized Content"
|
||||
@@ -805,11 +799,7 @@ export function PortfolioProjectForm({
|
||||
multiline
|
||||
/>
|
||||
</section>
|
||||
</AppCard>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<AppCard level={3} padding="md">
|
||||
<section className="space-y-5">
|
||||
<SectionHeader
|
||||
title="Sections"
|
||||
@@ -1011,11 +1001,7 @@ export function PortfolioProjectForm({
|
||||
</Accordion>
|
||||
)}
|
||||
</section>
|
||||
</AppCard>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<AppCard level={3} padding="md">
|
||||
<div className="space-y-6">
|
||||
<section className="space-y-4">
|
||||
<SectionHeader
|
||||
@@ -1168,11 +1154,9 @@ export function PortfolioProjectForm({
|
||||
)}
|
||||
</section>
|
||||
</div>
|
||||
</AppCard>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AppCard level={3} padding="md" contentClassName="space-y-4">
|
||||
<div className="space-y-4 border-t border-border/60 pt-6">
|
||||
{showValidation && firstIncompleteStep ? (
|
||||
<div className="rounded-nested border border-status-warning/30 bg-status-warning-soft px-4 py-3">
|
||||
<div className="flex items-start gap-3">
|
||||
@@ -1202,7 +1186,7 @@ export function PortfolioProjectForm({
|
||||
<SubmitButton onSelect={() => setIntent("save")} />
|
||||
</div>
|
||||
</div>
|
||||
</AppCard>
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user