Skip to content

Commit 1cb824e

Browse files
committed
Design App layout with responsivness just skeleton
1 parent 34449f8 commit 1cb824e

4 files changed

Lines changed: 65 additions & 54 deletions

File tree

Client/src/Theme/index.css

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -42,72 +42,72 @@
4242
}
4343

4444
:root {
45-
--radius: 0.625rem;
45+
--radius: 0.65rem;
4646
--background: oklch(1 0 0);
47-
--foreground: oklch(0.145 0 0);
47+
--foreground: oklch(0.141 0.005 285.823);
4848
--card: oklch(1 0 0);
49-
--card-foreground: oklch(0.145 0 0);
49+
--card-foreground: oklch(0.141 0.005 285.823);
5050
--popover: oklch(1 0 0);
51-
--popover-foreground: oklch(0.145 0 0);
52-
--primary: oklch(0.205 0 0);
53-
--primary-foreground: oklch(0.985 0 0);
54-
--secondary: oklch(0.97 0 0);
55-
--secondary-foreground: oklch(0.205 0 0);
56-
--muted: oklch(0.97 0 0);
57-
--muted-foreground: oklch(0.556 0 0);
58-
--accent: oklch(0.97 0 0);
59-
--accent-foreground: oklch(0.205 0 0);
51+
--popover-foreground: oklch(0.141 0.005 285.823);
52+
--primary: oklch(0.541 0.281 293.009);
53+
--primary-foreground: oklch(0.969 0.016 293.756);
54+
--secondary: oklch(0.967 0.001 286.375);
55+
--secondary-foreground: oklch(0.21 0.006 285.885);
56+
--muted: oklch(0.967 0.001 286.375);
57+
--muted-foreground: oklch(0.552 0.016 285.938);
58+
--accent: oklch(0.967 0.001 286.375);
59+
--accent-foreground: oklch(0.21 0.006 285.885);
6060
--destructive: oklch(0.577 0.245 27.325);
61-
--border: oklch(0.922 0 0);
62-
--input: oklch(0.922 0 0);
63-
--ring: oklch(0.708 0 0);
64-
--chart-1: oklch(0.646 0.222 41.116);
65-
--chart-2: oklch(0.6 0.118 184.704);
66-
--chart-3: oklch(0.398 0.07 227.392);
67-
--chart-4: oklch(0.828 0.189 84.429);
68-
--chart-5: oklch(0.769 0.188 70.08);
61+
--border: oklch(0.92 0.004 286.32);
62+
--input: oklch(0.92 0.004 286.32);
63+
--ring: oklch(0.702 0.183 293.541);
64+
--chart-1: oklch(0.811 0.111 293.571);
65+
--chart-2: oklch(0.606 0.25 292.717);
66+
--chart-3: oklch(0.541 0.281 293.009);
67+
--chart-4: oklch(0.491 0.27 292.581);
68+
--chart-5: oklch(0.432 0.232 292.759);
6969
--sidebar: oklch(0.985 0 0);
70-
--sidebar-foreground: oklch(0.145 0 0);
71-
--sidebar-primary: oklch(0.205 0 0);
72-
--sidebar-primary-foreground: oklch(0.985 0 0);
73-
--sidebar-accent: oklch(0.97 0 0);
74-
--sidebar-accent-foreground: oklch(0.205 0 0);
75-
--sidebar-border: oklch(0.922 0 0);
76-
--sidebar-ring: oklch(0.708 0 0);
70+
--sidebar-foreground: oklch(0.141 0.005 285.823);
71+
--sidebar-primary: oklch(0.541 0.281 293.009);
72+
--sidebar-primary-foreground: oklch(0.969 0.016 293.756);
73+
--sidebar-accent: oklch(0.967 0.001 286.375);
74+
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
75+
--sidebar-border: oklch(0.92 0.004 286.32);
76+
--sidebar-ring: oklch(0.702 0.183 293.541);
7777
}
7878

7979
.dark {
80-
--background: oklch(0.145 0 0);
80+
--background: oklch(0.141 0.005 285.823);
8181
--foreground: oklch(0.985 0 0);
82-
--card: oklch(0.205 0 0);
82+
--card: oklch(0.21 0.006 285.885);
8383
--card-foreground: oklch(0.985 0 0);
84-
--popover: oklch(0.205 0 0);
84+
--popover: oklch(0.21 0.006 285.885);
8585
--popover-foreground: oklch(0.985 0 0);
86-
--primary: oklch(0.922 0 0);
87-
--primary-foreground: oklch(0.205 0 0);
88-
--secondary: oklch(0.269 0 0);
86+
--primary: oklch(0.606 0.25 292.717);
87+
--primary-foreground: oklch(0.969 0.016 293.756);
88+
--secondary: oklch(0.274 0.006 286.033);
8989
--secondary-foreground: oklch(0.985 0 0);
90-
--muted: oklch(0.269 0 0);
91-
--muted-foreground: oklch(0.708 0 0);
92-
--accent: oklch(0.269 0 0);
90+
--muted: oklch(0.274 0.006 286.033);
91+
--muted-foreground: oklch(0.705 0.015 286.067);
92+
--accent: oklch(0.274 0.006 286.033);
9393
--accent-foreground: oklch(0.985 0 0);
9494
--destructive: oklch(0.704 0.191 22.216);
9595
--border: oklch(1 0 0 / 10%);
9696
--input: oklch(1 0 0 / 15%);
97-
--ring: oklch(0.556 0 0);
98-
--chart-1: oklch(0.488 0.243 264.376);
99-
--chart-2: oklch(0.696 0.17 162.48);
100-
--chart-3: oklch(0.769 0.188 70.08);
101-
--chart-4: oklch(0.627 0.265 303.9);
102-
--chart-5: oklch(0.645 0.246 16.439);
103-
--sidebar: oklch(0.205 0 0);
97+
--ring: oklch(0.38 0.189 293.745);
98+
--chart-1: oklch(0.811 0.111 293.571);
99+
--chart-2: oklch(0.606 0.25 292.717);
100+
--chart-3: oklch(0.541 0.281 293.009);
101+
--chart-4: oklch(0.491 0.27 292.581);
102+
--chart-5: oklch(0.432 0.232 292.759);
103+
--sidebar: oklch(0.21 0.006 285.885);
104104
--sidebar-foreground: oklch(0.985 0 0);
105-
--sidebar-primary: oklch(0.488 0.243 264.376);
106-
--sidebar-primary-foreground: oklch(0.985 0 0);
107-
--sidebar-accent: oklch(0.269 0 0);
105+
--sidebar-primary: oklch(0.606 0.25 292.717);
106+
--sidebar-primary-foreground: oklch(0.969 0.016 293.756);
107+
--sidebar-accent: oklch(0.274 0.006 286.033);
108108
--sidebar-accent-foreground: oklch(0.985 0 0);
109109
--sidebar-border: oklch(1 0 0 / 10%);
110-
--sidebar-ring: oklch(0.556 0 0);
110+
--sidebar-ring: oklch(0.38 0.189 293.745);
111111
}
112112

113113
@layer base {

Client/src/components/Layout/AppLayout.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { Outlet } from "react-router-dom";
22
import Navbar from "./Navbar";
3+
import SideBar from "./SideBar";
34

45
const AppLayout = () => {
56
return (
6-
<div className="flex min-h-screen bg-background text-foreground">
7-
<h1>sidebar</h1>
8-
<div className="flex-1 flex flex-col">
9-
<Navbar />
10-
<main className="flex 1 p-4">
7+
<div className="flex gap-1 flex-col min-h-screen text-foreground bg-background lg:ml-[120px] md:ml-[60px] ml-5 mt-1.5 lg:mr-[120px] md:mr-[60px] mr-5">
8+
<Navbar />
9+
<div className="flex flex-1 w-full">
10+
<SideBar />
11+
<main className="bg-amber-800 w-full md:w-[75%]">
1112
<Outlet />
13+
<h1>Hello</h1>
1214
</main>
1315
</div>
1416
</div>

Client/src/components/Layout/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const Navbar = () => {
22
return (
3-
<nav className="flex flex-row p-3 justify-between h-24">
3+
<div className=" min-w-full h-[77px] bg-red-500 flex justify-between items-center px-4 py-2 border-b ">
44
<div>logo</div>
55
<div>button</div>
6-
</nav>
6+
</div>
77
);
88
};
99

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const SideBar = () => {
2+
return (
3+
<div className="hidden md:block bg-amber-100 w-[25%] min-h-dvh">
4+
<h1 className="">sideBar</h1>
5+
</div>
6+
);
7+
};
8+
9+
export default SideBar;

0 commit comments

Comments
 (0)