Skip to content

Commit ade340a

Browse files
Merge pull request #228 from harshitap1305/shadow
adding perfect shadow to layout
2 parents 90693f3 + d6228b6 commit ade340a

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

frontend/src/Components/common/Layout.jsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
22
import Sidebar from "./Sidebar";
3-
import { useProfile } from "../../hooks/useProfile";
43
import UserIcon from "./userIcon";
54
import { useSidebar } from "../../hooks/useSidebar";
65

@@ -55,7 +54,17 @@ const Layout = ({ headerText, gridConfig, components, children = null }) => {
5554
<div
5655
className={`h-screen p-6 transition-all duration-300 ${isCollapsed ? "ml-20" : "ml-56"}`}
5756
>
58-
<div className="bg-[#FDFAE2] rounded-[3rem] h-full flex flex-col p-6">
57+
<div
58+
className="bg-[#FDFAE2] rounded-[3rem] h-full flex flex-col p-6"
59+
style={{
60+
boxShadow: `
61+
inset 0 8px 12px rgba(0,0,0,0.18),
62+
inset 0 -8px 12px rgba(0,0,0,0.18),
63+
inset 8px 0 12px rgba(0,0,0,0.18),
64+
inset -8px 0 12px rgba(0,0,0,0.18)
65+
`,
66+
}}
67+
>
5968
{/* Header Section */}
6069
<div className="flex items-center justify-between mb-4 flex-shrink-0">
6170
<h1 className="text-3xl text-black">

0 commit comments

Comments
 (0)