Skip to content

Commit c08d58b

Browse files
authored
Merge pull request #3 from SyncfusionExamples/EJ2-932509-ui-change
932509: Need to change the attractive ui for employee management application
2 parents 8a92a09 + e18799a commit c08d58b

File tree

8 files changed

+78
-34
lines changed

8 files changed

+78
-34
lines changed

Employee_Managment_App/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
rel="stylesheet"
88
/>
99
<link
10-
href="https://cdn.syncfusion.com/ej2/25.1.35/material3.css"
10+
href="https://cdn.syncfusion.com/ej2/28.1.33/tailwind3.css"
1111
rel="stylesheet"
1212
/>
1313
<script src="https://cdn.syncfusion.com/ej2/syncfusion-helper.js"></script>

Employee_Managment_App/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ function App() {
1212

1313
return (
1414
<div className="xyz-management">
15-
<div className="xyz-management-header">
16-
<div className="header-content">XYZ Software PVT LTD</div>
17-
</div>
1815
<Router>
1916
<div className="xyz-management-content" style={{ width: '100%' }}>
2017
<div className="row">

Employee_Managment_App/src/components/Achievements.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import * as React from 'react';
33
const Achievements = () => {
44
return (
55
<div className="achievementspage">
6-
<div className="achievements-header">
7-
<div>Achievements</div>
8-
</div>
96
<div className="achievements-content">
107
<div className="col-lg-12 control-section card-control-section horizontal_card_layout">
118
<div className="e-card-resize-container">

Employee_Managment_App/src/components/Announcement.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import * as React from 'react';
33
const Announcement = () => {
44
return (
55
<div className="announcementpage">
6-
<div className="announcement-header">
7-
<div>Announcement</div>
8-
</div>
96
<div className="announcement-content">
107
<div className="col-lg-12 card-control-section basic_card_layout">
118
<div className="e-card-resize-container">

Employee_Managment_App/src/components/EmployeeInfo.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,6 @@ const EmployeeInfo = (props: { employeeData?: EmployeeDetails; userInfo?: Employ
237237
};
238238
return (
239239
<div className="employeeinfopage">
240-
<div className="employeeinfo-header">
241-
{employeeData.Name === userInfo.Name ? 'My' : employeeData.Name + "'s"}{' '}
242-
Profile
243-
</div>
244240
<div className="employeeinfo-content">
245241
<TabComponent heightAdjustMode="Auto">
246242
<TabItemsDirective>

Employee_Managment_App/src/components/Organization.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ const Organization = () => {
3131
};
3232
return (
3333
<div className="employeespage">
34-
<div className="employees-header">
35-
<div>Organization</div>
36-
</div>
3734
<div className="employees-content">
3835
<TabComponent heightAdjustMode="Auto">
3936
<TabItemsDirective>

Employee_Managment_App/src/components/Policies.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import * as React from 'react';
33
const Policies = () => {
44
return (
55
<div className="policiespage">
6-
<div className="policies-header">
7-
<div>Policies</div>
8-
</div>
96
<div className="policies-content">
107
<div className="col-lg-12 card-control-section basic_card_layout">
118
<div className="e-card-resize-container">

Employee_Managment_App/src/index.css

Lines changed: 77 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,18 @@
1919

2020
.xyz-management-content {
2121
position: absolute;
22-
top: 75px;
2322
height: 650px;
2423
}
2524

2625
.xyz-management-content .col-md-2.sidebar {
27-
height: 650px;
28-
border-right: 1px solid rgb(0, 0, 0, 0.2);
29-
box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.04);
30-
background-color: #ecf2f9;
31-
padding-right: 0px;
26+
width: 240px;
27+
background-color: #ffffff;
28+
color: #3a3b3c;
3229
position: fixed;
30+
height: 100%;
31+
padding-top: 20px;
32+
border-right: 1px solid #e0e0e0;
33+
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
3334
}
3435

3536
.xyz-management-content .col-md-10.main-content {
@@ -39,7 +40,20 @@
3940
left: 170px;
4041
}
4142

42-
@media (min-width: 400px) {
43+
@media (max-width: 426px) {
44+
.xyz-management-content .col-md-2.sidebar {
45+
width: 155px;
46+
float: left;
47+
}
48+
.xyz-management-content .col-md-10.main-content {
49+
width: calc(100% - 170px);
50+
float: left;
51+
position: sticky;
52+
left: 200px;
53+
}
54+
}
55+
56+
@media (min-width: 426px) and (max-width: 768px) {
4357
.xyz-management-content .col-md-2.sidebar {
4458
width: 185px;
4559
float: left;
@@ -49,11 +63,44 @@
4963
float: left;
5064
}
5165
}
66+
@media (min-width:1024px) {
67+
.xyz-management-content .col-md-2.sidebar {
68+
width: 185px;
69+
float: left;
70+
}
71+
.xyz-management-content .col-md-10.main-content {
72+
width: calc(100% - 170px);
73+
float: left;
74+
}
75+
}
76+
77+
@media (max-width:600px) {
78+
.detail .information {
79+
display: block;
80+
padding-left: 0px;
81+
}
82+
.detail .sub-heading {
83+
width: 130px;
84+
padding-right: 10px;
85+
}
86+
}
87+
88+
.nav > li {
89+
align-items: center;
90+
/* padding: 15px 20px; */
91+
color: #3a3b3c;
92+
text-decoration: none;
93+
transition: background-color 0.3s ease, color 0.3s ease;
94+
font-weight: 500;
95+
margin-left: 10px;
96+
}
97+
5298
.nav > li > a:focus,
5399
.nav > li > a.active,
54100
.nav > li > a:hover {
55101
text-decoration: none;
56-
background-color: #eaddff;
102+
background-color: #f0f2f5;
103+
color: #007bff;
57104
}
58105
.policiespage a:focus,
59106
.policiespage a.active,
@@ -106,21 +153,21 @@ a.employee-popover:hover {
106153

107154
/* Tooltip */
108155

109-
.e-tooltip-template-css.e-tooltip-wrap.e-popup {
156+
.e-tooltip-wrap.e-popup {
110157
background-color: #eaddff;
111158
border: 1px solid #e0e0e0;
112159
}
113-
.e-tooltip-template-css.e-tooltip-wrap .e-arrow-tip-outer.e-tip-bottom {
160+
.e-tooltip-wrap .e-arrow-tip-outer.e-tip-bottom {
114161
border-top: 8px solid #e0e0e0;
115162
}
116-
.e-tooltip-template-css.e-tooltip-wrap .e-tip-content {
163+
.e-tooltip-wrap .e-tip-content {
117164
color: rgba(0, 0, 0, 0.87);
118165
}
119-
.e-tooltip-template-css.e-tooltip-wrap {
166+
.e-tooltip-wrap {
120167
opacity: 1;
121168
}
122-
.e-tooltip-template-css.e-tooltip-wrap .e-arrow-tip-inner.e-tip-bottom,
123-
.e-tooltip-template-css.e-tooltip-wrap .e-arrow-tip-inner.e-tip-top {
169+
.e-tooltip-wrap .e-arrow-tip-inner.e-tip-bottom,
170+
.e-tooltip-wrap .e-arrow-tip-inner.e-tip-top {
124171
color: #eaddff;
125172
}
126173

@@ -321,6 +368,22 @@ td.cardcell.separateline {
321368
}
322369
}
323370

371+
@media (max-width: 600px) {
372+
.card-control-section.basic_card_layout .col-xs-6.col-sm-6.col-lg-6.col-md-6 {
373+
width: 100%;
374+
}
375+
376+
.achievements-content
377+
.card-control-section.basic_card_layout
378+
.col-xs-6.col-sm-6.col-lg-6.col-md-6 {
379+
width: 100%;
380+
}
381+
382+
.card-control-section.basic_card_layout .card-layout {
383+
max-width: 600px;
384+
}
385+
}
386+
324387
/* Horizontal Card Layout Customization */
325388

326389
.card-control-section.horizontal_card_layout

0 commit comments

Comments
 (0)