l-min-components 1.0.511 → 1.0.517
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/AdminAppMainLayout/index.jsx +11 -4
- package/src/components/AdminAppMainLayout/index.styled.js +16 -3
- package/src/components/AdminNavbar/index.jsx +39 -36
- package/src/components/AdminNavbar/index.styled.js +14 -7
- package/src/components/fullPageLoader/index.jsx +2 -2
package/package.json
CHANGED
|
@@ -6,7 +6,13 @@ import React, {
|
|
|
6
6
|
useContext,
|
|
7
7
|
} from "react";
|
|
8
8
|
import { Outlet, useLocation } from "react-router-dom";
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
Layout,
|
|
11
|
+
CenterLayout,
|
|
12
|
+
LeftLayout,
|
|
13
|
+
MainLayout,
|
|
14
|
+
InnerCenterLayout,
|
|
15
|
+
} from "./index.styled";
|
|
10
16
|
import AdminSideMenu from "../AdminSidebar";
|
|
11
17
|
import AdminNavbar from "../AdminNavbar";
|
|
12
18
|
|
|
@@ -33,10 +39,11 @@ const AdminAppMainLayout = () => {
|
|
|
33
39
|
<LeftLayout>
|
|
34
40
|
<AdminSideMenu />
|
|
35
41
|
</LeftLayout>
|
|
36
|
-
<CenterLayout
|
|
42
|
+
<CenterLayout>
|
|
37
43
|
<AdminNavbar />
|
|
38
|
-
<
|
|
39
|
-
|
|
44
|
+
<InnerCenterLayout isOpen={isOpen} style={centerLayoutStyle}>
|
|
45
|
+
<Outlet />
|
|
46
|
+
</InnerCenterLayout>
|
|
40
47
|
</CenterLayout>
|
|
41
48
|
</MainLayout>
|
|
42
49
|
</Layout>
|
|
@@ -4,26 +4,39 @@ import LayoutBackgroundImage from "../../assets/images/layout_background.png";
|
|
|
4
4
|
|
|
5
5
|
/* styles for main layout component */
|
|
6
6
|
export const Layout = styled.div`
|
|
7
|
-
background-color:
|
|
7
|
+
background-color: #ffffff;
|
|
8
8
|
height: 100vh;
|
|
9
9
|
width: 100%;
|
|
10
10
|
`;
|
|
11
11
|
|
|
12
12
|
export const MainLayout = styled.div`
|
|
13
|
-
background-color:
|
|
13
|
+
background-color: #ffffff;
|
|
14
14
|
width: 100%;
|
|
15
15
|
height: 100vh;
|
|
16
|
-
|
|
17
16
|
`;
|
|
18
17
|
|
|
19
18
|
export const LeftLayout = styled.div`
|
|
20
19
|
background-color: transparent;
|
|
20
|
+
position: fixed;
|
|
21
|
+
width: 280px;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
height: 100vh;
|
|
21
25
|
`;
|
|
22
26
|
|
|
23
27
|
export const CenterLayout = styled.div`
|
|
24
28
|
width: 100%;
|
|
29
|
+
/* margin-left: 280px; */
|
|
30
|
+
overflow-x: hidden;
|
|
31
|
+
position: relative;
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
export const InnerCenterLayout = styled.div`
|
|
35
|
+
/* width: 100%; */
|
|
36
|
+
padding-top: 80px;
|
|
25
37
|
margin-left: 280px;
|
|
26
38
|
overflow-y: scroll;
|
|
39
|
+
overflow-x: hidden;
|
|
27
40
|
scrollbar-width: thin;
|
|
28
41
|
/* "auto" or "thin" depending on browser support */
|
|
29
42
|
scrollbar-color: transparent transparent;
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
SearchInput,
|
|
6
6
|
NavGroup,
|
|
7
7
|
AdminAccount,
|
|
8
|
+
NavHeader,
|
|
8
9
|
} from "./index.styled";
|
|
9
10
|
import { SearchIcon } from "./assets/svg/search";
|
|
10
11
|
import { NotificationIcon } from "./assets/svg/notification";
|
|
@@ -16,46 +17,48 @@ const AdminNavbar = () => {
|
|
|
16
17
|
|
|
17
18
|
return (
|
|
18
19
|
<Navbar>
|
|
19
|
-
<
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
<NavHeader>
|
|
21
|
+
<SearchInputGroup>
|
|
22
|
+
<SearchIcon />
|
|
23
|
+
<SearchInput
|
|
24
|
+
type="search"
|
|
25
|
+
value=""
|
|
26
|
+
id="adminSearch"
|
|
27
|
+
name="search"
|
|
28
|
+
placeholder="Type to search..."
|
|
29
|
+
onChange={(e) => setSearch(e.target.value)}
|
|
30
|
+
/>
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
{searchResultOpen && (
|
|
33
|
+
<div className="search-result-wrapper">
|
|
34
|
+
<p>
|
|
35
|
+
Website <span>UIUX </span> Design
|
|
36
|
+
</p>
|
|
37
|
+
</div>
|
|
38
|
+
)}
|
|
39
|
+
</SearchInputGroup>
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
<NavGroup>
|
|
42
|
+
<span className="notification__bell">
|
|
43
|
+
<NotificationIcon />
|
|
44
|
+
</span>
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
<AdminAccount>
|
|
47
|
+
<div className="admin__info">
|
|
48
|
+
<p className="admin_name"> Thomas Anree</p>
|
|
49
|
+
<p className="admin_role"> Ux Designer </p>
|
|
50
|
+
</div>
|
|
51
|
+
<div className="profile__box">
|
|
52
|
+
<div className="img_box">
|
|
53
|
+
<img src="" alt="" />
|
|
54
|
+
</div>
|
|
55
|
+
<span>
|
|
56
|
+
<ArrowDownIcon />
|
|
57
|
+
</span>
|
|
52
58
|
</div>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</div>
|
|
57
|
-
</AdminAccount>
|
|
58
|
-
</NavGroup>
|
|
59
|
+
</AdminAccount>
|
|
60
|
+
</NavGroup>
|
|
61
|
+
</NavHeader>
|
|
59
62
|
</Navbar>
|
|
60
63
|
);
|
|
61
64
|
};
|
|
@@ -2,19 +2,26 @@ import styled from "styled-components";
|
|
|
2
2
|
|
|
3
3
|
/* styles for header component authenticated users */
|
|
4
4
|
export const Navbar = styled.nav`
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
/* position: absolute; */
|
|
7
|
+
z-index: 555;
|
|
8
|
+
position: fixed;
|
|
9
|
+
width: 100%;
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
export const NavHeader = styled.div`
|
|
5
13
|
background-color: rgba(255, 255, 255, 1);
|
|
6
|
-
|
|
14
|
+
border-bottom: 1px solid #c6cccc;
|
|
7
15
|
display: flex;
|
|
8
16
|
font-family: "Nunito";
|
|
9
|
-
width: 100%;
|
|
10
17
|
align-items: center;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
padding: 17px 30px;
|
|
20
|
+
margin-left: 280px;
|
|
14
21
|
`;
|
|
15
22
|
|
|
16
23
|
export const NavGroup = styled.div`
|
|
17
|
-
width: 24%;
|
|
24
|
+
/* width: 24%; */
|
|
18
25
|
display: flex;
|
|
19
26
|
justify-content: end;
|
|
20
27
|
align-items: center;
|
|
@@ -97,7 +104,7 @@ export const Nav = styled.ul`
|
|
|
97
104
|
|
|
98
105
|
export const SearchInputGroup = styled.div`
|
|
99
106
|
background-color: transparent;
|
|
100
|
-
width: 45%;
|
|
107
|
+
/* width: 45%; */
|
|
101
108
|
transition: 0.5s;
|
|
102
109
|
display: flex;
|
|
103
110
|
align-items: center;
|
|
@@ -21,9 +21,9 @@ const Backdrop = styled.div`
|
|
|
21
21
|
${({ isSectionLoader, hasBackground, fixed, zIndex }) =>
|
|
22
22
|
isSectionLoader
|
|
23
23
|
? css`
|
|
24
|
-
position:
|
|
24
|
+
position: static;
|
|
25
25
|
width: 100%;
|
|
26
|
-
height: 100%;
|
|
26
|
+
/* height: 100%; */
|
|
27
27
|
background: transparent;
|
|
28
28
|
`
|
|
29
29
|
: css`
|