Skip to content

Commit 0fc3cd1

Browse files
committed
Changed the Welcome Message to Welcome to The Admin Portal instead of the Welcome to The Admin Page message. Added Hover effect for the _Content_ Section and made it scrollable horizontally to make large tables visible.
1 parent 0c32269 commit 0fc3cd1

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

WebApplication2/Customer/Pages/CustomerComponent.aspx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
margin-right: 15px;
179179
font-weight:500;
180180
}
181-
.dark-mode .number-box {
181+
.dark-mode .number-box {
182182
background-color: #4fa3d1;
183183
color: black;
184184
padding: 15px 20px;
@@ -258,7 +258,7 @@
258258
color:black;
259259
}
260260
261-
/* Styled TextBox */
261+
/* Styled TextBox */
262262
.styled-textbox {
263263
width: 300px;
264264
padding: 10px;

WebApplication2/Pages/Home/Home.aspx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Admin Page
44
</asp:Content>
55
<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
6-
<h1>Welcome to the Admin Page </h1>
6+
<h1>Welcome to the Admin Portal </h1>
77
</asp:Content>
88

99
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

WebApplication2/Styles/site.css

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,22 @@ form,
2727
}
2828

2929
.content {
30+
flex: 1;
3031
margin: 0;
3132
padding: 20px;
3233
background-color: white;
3334
border-radius: 15px;
3435
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
36+
transition: background-color 0.3s ease, box-shadow 0.3s ease;
37+
display: flex;
38+
flex-direction: column; /* Ensure the content area expands with its children */
39+
overflow: auto;
40+
min-width: 0; /* Ensure the content area can shrink if needed */
41+
}
42+
43+
44+
.content:hover {
45+
box-shadow: 0 4px 20px rgba(80, 80, 80, 0.6);
3546
}
3647

3748
.content h1 {
@@ -76,7 +87,7 @@ h1 {
7687
/* GridView styles */
7788
.grid-view {
7889
width: 100%;
79-
border-collapse: separate;
90+
border-collapse: collapse;
8091
/* Separate to apply border radius */
8192
border-spacing: 0;
8293
background-color: white;
@@ -85,7 +96,7 @@ h1 {
8596
overflow: hidden;
8697
/* Apply rounded corners */
8798
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
88-
table-layout: fixed;
99+
/* table-layout: fixed; */
89100
/* Ensure that table columns evenly distribute the space */
90101
}
91102

@@ -94,14 +105,14 @@ h1 {
94105
padding: 10px 12px;
95106
text-align: center;
96107
border: 1px solid #ddd;
97-
word-wrap: break-word;
108+
/*word-wrap: break-word;*/
98109
}
99110

100111
.grid-view th {
101112
background-color: #212121;
102113
/* Dark blue header */
103114
color: white;
104-
word-wrap: normal;
115+
/* word-wrap: normal; */
105116
}
106117

107118
.grid-view tr:nth-child(even) {
@@ -180,13 +191,13 @@ h1 {
180191

181192
}
182193

183-
#sidebar li.active a {
184-
/* Or any other styling you prefer */
185-
background-color: #C2185B;
186-
/* Light gray background */
187-
color: #fff;
188-
/* Darker text color for contrast */
189-
}
194+
#sidebar li.active a {
195+
/* Or any other styling you prefer */
196+
background-color: #C2185B;
197+
/* Light gray background */
198+
color: #fff;
199+
/* Darker text color for contrast */
200+
}
190201

191202
#sidebar i {
192203
font-size: 1.2em;

0 commit comments

Comments
 (0)