first look on homepage layout #9
+5
-3
@@ -15,16 +15,18 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 300px;
|
width: 330px;
|
||||||
/* Adjust the width as needed */
|
/* Adjust the width as needed */
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #fff;
|
background-color: #5c2684;
|
||||||
|
color: #FFFFFF;
|
||||||
|
padding-top: .9375rem;
|
||||||
/* Set the background color */
|
/* Set the background color */
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
||||||
/* Add a box-shadow for visual separation */
|
/* Add a box-shadow for visual separation */
|
||||||
transform: translateX(-100%);
|
transform: translateX(-100%);
|
||||||
/* Initially hide the sidebar */
|
/* Initially hide the sidebar */
|
||||||
transition: transform 0.3s ease-in-out;
|
transition: transform 0.4s ease;
|
||||||
/* Add a transition for smooth animation */
|
/* Add a transition for smooth animation */
|
||||||
|
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
|
|||||||
@@ -55,11 +55,15 @@ const Header = () => {
|
|||||||
</ul>
|
</ul>
|
||||||
<div className="flex lg:hidden">
|
<div className="flex lg:hidden">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="currentColor"
|
fill="none"
|
||||||
onClick={toggleSidebar}
|
stroke="currentColor"
|
||||||
className="w-6 h-6"
|
strokeWidth="1"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
onClick={toggleSidebar}
|
||||||
|
className="w-6 h-6 stroke-[#A6368C]"
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
fillRule="evenodd"
|
fillRule="evenodd"
|
||||||
|
|||||||
Reference in New Issue
Block a user