l-min-components 1.0.277 → 1.0.283
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/assets/images/pattern.png +0 -0
- package/src/components/AppMainLayout/index.jsx +3 -3
- package/src/components/AppMainLayout/index.styled.js +4 -2
- package/src/components/header/index.jsx +4 -4
- package/src/components/header/index.styled.js +20 -3
- package/src/components/sideNav/index.jsx +3 -2
package/package.json
CHANGED
|
Binary file
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import { leftNavMenu, user, sideMenuOptions } from "../../hooks/leftNavMenu";
|
|
17
17
|
// import SideMenu from "../sideBar/sideMenu";
|
|
18
18
|
|
|
19
|
-
const AppMainLayout = () => {
|
|
19
|
+
const AppMainLayout = ({coming}) => {
|
|
20
20
|
const [isOpen, setIsOpen] = useState(true);
|
|
21
21
|
const location = useLocation();
|
|
22
22
|
const [rightLayout, setRightLayout] = useState(true);
|
|
@@ -27,9 +27,9 @@ const AppMainLayout = () => {
|
|
|
27
27
|
<OutletContext.Provider
|
|
28
28
|
value={{ setRightComponent, setRightLayout, generalData, setGeneralData }}
|
|
29
29
|
>
|
|
30
|
-
<Layout>
|
|
30
|
+
<Layout coming={coming}>
|
|
31
31
|
<HeaderComponent />
|
|
32
|
-
<MainLayout>
|
|
32
|
+
<MainLayout coming={coming}>
|
|
33
33
|
<LeftLayout>
|
|
34
34
|
<SideBar routes={leftNavMenu} />
|
|
35
35
|
{!window.location.host.includes("coming") && (
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
+
import Pattern from "../../assets/images/pattern.png";
|
|
2
3
|
|
|
3
4
|
/* styles for main layout component */
|
|
4
5
|
export const Layout = styled.div`
|
|
5
|
-
background-color: #e5e5e5;
|
|
6
|
+
background-color: ${({coming}) => coming ? "#FEBF10" : "#e5e5e5"};
|
|
7
|
+
background-image: ${({coming}) => coming ? `url(${Pattern})` : "none"};
|
|
6
8
|
min-height: 100vh;
|
|
7
9
|
width: 100%;
|
|
8
10
|
`;
|
|
9
11
|
|
|
10
12
|
export const MainLayout = styled.div`
|
|
11
|
-
background-color: #e5e5e5;
|
|
13
|
+
background-color: ${({coming}) => coming ? "none" : "#e5e5e5"};
|
|
12
14
|
display: flex;
|
|
13
15
|
justify-content: space-between;
|
|
14
16
|
width: 100%;
|
|
@@ -183,7 +183,7 @@ const HeaderComponent = (props) => {
|
|
|
183
183
|
<BookIcon /> Learning
|
|
184
184
|
</a>
|
|
185
185
|
</li>
|
|
186
|
-
|
|
186
|
+
<li>
|
|
187
187
|
<a href="#">
|
|
188
188
|
<PeopleIcon /> Friends
|
|
189
189
|
</a>
|
|
@@ -192,7 +192,7 @@ const HeaderComponent = (props) => {
|
|
|
192
192
|
<a href="#">
|
|
193
193
|
<MessageIcon /> Messages
|
|
194
194
|
</a>
|
|
195
|
-
</li>
|
|
195
|
+
</li>
|
|
196
196
|
<li>
|
|
197
197
|
<a
|
|
198
198
|
onClick={() => {
|
|
@@ -204,11 +204,11 @@ const HeaderComponent = (props) => {
|
|
|
204
204
|
<SettingIcon /> Settings
|
|
205
205
|
</a>
|
|
206
206
|
</li>
|
|
207
|
-
|
|
207
|
+
<li>
|
|
208
208
|
<a href="#">
|
|
209
209
|
<NotificationIcon /> Notifications
|
|
210
210
|
</a>
|
|
211
|
-
</li>
|
|
211
|
+
</li>
|
|
212
212
|
</Nav>
|
|
213
213
|
|
|
214
214
|
<NavGroup
|
|
@@ -103,15 +103,32 @@ export const Nav = styled.ul`
|
|
|
103
103
|
text-decoration: none;
|
|
104
104
|
display: flex;
|
|
105
105
|
align-items: center;
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
color: #4A4D4D;
|
|
107
|
+
font-size: 15px;
|
|
108
|
+
font-style: normal;
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
line-height: normal;
|
|
111
|
+
position: relative;
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
&:hover:after {
|
|
115
|
+
content: "";
|
|
116
|
+
position: absolute;
|
|
117
|
+
left: 0;
|
|
118
|
+
bottom: -9px;
|
|
119
|
+
width: 40px;
|
|
120
|
+
height: 4px;
|
|
121
|
+
background-color: rgba(0, 194, 194, 1);
|
|
122
|
+
transition: width 0.3s ease-in-out;
|
|
123
|
+
}
|
|
108
124
|
|
|
109
125
|
& svg {
|
|
110
126
|
margin-right: 12px;
|
|
111
127
|
}
|
|
112
128
|
|
|
113
129
|
&:hover {
|
|
114
|
-
color: rgba(0,
|
|
130
|
+
color: rgba(0, 194, 194, 1);
|
|
131
|
+
// border-bottom: 2px solid rgba(0, 194, 194, 1);
|
|
115
132
|
& svg path {
|
|
116
133
|
stroke: rgba(0, 194, 194, 1);
|
|
117
134
|
}
|
|
@@ -78,9 +78,10 @@ const SideBar = ({ routes }) => {
|
|
|
78
78
|
window.location.hostname.includes("staging")
|
|
79
79
|
) {
|
|
80
80
|
window.location.href =
|
|
81
|
-
"demo-test-01.learngual.com/login/developer";
|
|
81
|
+
"https://demo-test-01.learngual.com/login/developer";
|
|
82
82
|
} else {
|
|
83
|
-
window.location.href =
|
|
83
|
+
window.location.href =
|
|
84
|
+
"https://demo.learngual.com/login/developer";
|
|
84
85
|
}
|
|
85
86
|
}, 500);
|
|
86
87
|
}}
|