Minor tweaks to design

This commit is contained in:
Thastertyn 2025-03-18 22:26:36 +01:00
parent 09ddb05efe
commit cbb799f879
3 changed files with 7 additions and 40 deletions

View File

@ -8,7 +8,6 @@ import {
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Header } from "@/components/layout/header"; import { Header } from "@/components/layout/header";
import { Main } from "@/components/layout/main"; import { Main } from "@/components/layout/main";
import { TopNav } from "@/components/layout/top-nav";
import { ProfileDropdown } from "@/components/profile-dropdown"; import { ProfileDropdown } from "@/components/profile-dropdown";
import { Search } from "@/components/search"; import { Search } from "@/components/search";
import { ThemeSwitch } from "@/components/theme-switch"; import { ThemeSwitch } from "@/components/theme-switch";
@ -22,7 +21,6 @@ export default function Dashboard() {
<Header> <Header>
<Search /> <Search />
<div className="ml-auto flex items-center space-x-4"> <div className="ml-auto flex items-center space-x-4">
<Search />
<ThemeSwitch /> <ThemeSwitch />
<ProfileDropdown /> <ProfileDropdown />
</div> </div>
@ -177,31 +175,4 @@ export default function Dashboard() {
</Main> </Main>
</> </>
); );
} }
const topNav = [
{
title: "Overview",
href: "dashboard/overview",
isActive: true,
disabled: false
},
{
title: "Customers",
href: "dashboard/customers",
isActive: false,
disabled: true
},
{
title: "Products",
href: "dashboard/products",
isActive: false,
disabled: true
},
{
title: "Settings",
href: "dashboard/settings",
isActive: false,
disabled: true
}
];

View File

@ -121,7 +121,9 @@ export function ShopAboutForm() {
<CardHeader> <CardHeader>
<CardTitle className="text-xl">Contact Information</CardTitle> <CardTitle className="text-xl">Contact Information</CardTitle>
</CardHeader> </CardHeader>
<CardContent className="space-y-4"> <CardContent>
<div className="grid grid-cols-2 gap-4">
<FormField <FormField
control={form.control} control={form.control}
name="contact_email" name="contact_email"
@ -152,6 +154,8 @@ export function ShopAboutForm() {
</FormItem> </FormItem>
)} )}
/> />
</div>
</CardContent> </CardContent>
</Card> </Card>

View File

@ -1,13 +1,5 @@
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle
} from "@/components/ui/card";
import { Header } from "@/components/layout/header"; import { Header } from "@/components/layout/header";
import { Main } from "@/components/layout/main"; import { Main } from "@/components/layout/main";
import { TopNav } from "@/components/layout/top-nav";
import { ProfileDropdown } from "@/components/profile-dropdown"; import { ProfileDropdown } from "@/components/profile-dropdown";
import { ThemeSwitch } from "@/components/theme-switch"; import { ThemeSwitch } from "@/components/theme-switch";
import { ShopAboutForm } from "./components/shop-about-form"; import { ShopAboutForm } from "./components/shop-about-form";
@ -30,7 +22,7 @@ export default function AboutPage() {
{/* ===== Main ===== */} {/* ===== Main ===== */}
<Main> <Main>
<div className="my-4"> <div className="mb-4">
<h1 className="text-2xl font-bold tracking-tight">About Your Shop</h1> <h1 className="text-2xl font-bold tracking-tight">About Your Shop</h1>
<p className="text-muted-foreground"> <p className="text-muted-foreground">
Here&apos;s an overview info about your shop Here&apos;s an overview info about your shop