Update app.py
Browse files
app.py
CHANGED
|
@@ -33,8 +33,11 @@ BASE_TEMPLATE = """
|
|
| 33 |
body {
|
| 34 |
margin: 0;
|
| 35 |
font-family: 'Segoe UI', sans-serif;
|
| 36 |
-
background: #
|
|
|
|
| 37 |
}
|
|
|
|
|
|
|
| 38 |
.sidebar {
|
| 39 |
width: 240px;
|
| 40 |
height: 100vh;
|
|
@@ -44,6 +47,8 @@ body {
|
|
| 44 |
display: flex;
|
| 45 |
flex-direction: column;
|
| 46 |
}
|
|
|
|
|
|
|
| 47 |
.sidebar-header {
|
| 48 |
display: flex;
|
| 49 |
align-items: center;
|
|
@@ -52,12 +57,8 @@ body {
|
|
| 52 |
font-weight: bold;
|
| 53 |
background: #1f1f1f;
|
| 54 |
}
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
height: 18px;
|
| 58 |
-
margin-right: 8px;
|
| 59 |
-
flex-shrink: 0;
|
| 60 |
-
}
|
| 61 |
.sidebar-item {
|
| 62 |
padding: 10px 18px;
|
| 63 |
cursor: pointer;
|
|
@@ -89,11 +90,6 @@ body {
|
|
| 89 |
.sidebar-item.active svg {
|
| 90 |
fill: #fff;
|
| 91 |
}
|
| 92 |
-
.sidebar-item-arrow {
|
| 93 |
-
width: 14px;
|
| 94 |
-
height: 14px;
|
| 95 |
-
fill: #aaa;
|
| 96 |
-
}
|
| 97 |
.sidebar-section {
|
| 98 |
margin-top: 14px;
|
| 99 |
padding: 8px 18px;
|
|
@@ -102,6 +98,8 @@ body {
|
|
| 102 |
text-transform: uppercase;
|
| 103 |
color: #aaa;
|
| 104 |
}
|
|
|
|
|
|
|
| 105 |
.topbar {
|
| 106 |
height: 52px;
|
| 107 |
background: #0078d4;
|
|
@@ -142,9 +140,87 @@ body {
|
|
| 142 |
font-size: 12px;
|
| 143 |
font-weight: bold;
|
| 144 |
}
|
|
|
|
|
|
|
| 145 |
.main {
|
| 146 |
margin-left: 240px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
padding: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
}
|
| 149 |
</style>
|
| 150 |
</head>
|
|
|
|
| 33 |
body {
|
| 34 |
margin: 0;
|
| 35 |
font-family: 'Segoe UI', sans-serif;
|
| 36 |
+
background: #f3f2f1;
|
| 37 |
+
color: #323130;
|
| 38 |
}
|
| 39 |
+
|
| 40 |
+
/* Sidebar */
|
| 41 |
.sidebar {
|
| 42 |
width: 240px;
|
| 43 |
height: 100vh;
|
|
|
|
| 47 |
display: flex;
|
| 48 |
flex-direction: column;
|
| 49 |
}
|
| 50 |
+
|
| 51 |
+
/* Sidebar header */
|
| 52 |
.sidebar-header {
|
| 53 |
display: flex;
|
| 54 |
align-items: center;
|
|
|
|
| 57 |
font-weight: bold;
|
| 58 |
background: #1f1f1f;
|
| 59 |
}
|
| 60 |
+
|
| 61 |
+
/* Sidebar items */
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
.sidebar-item {
|
| 63 |
padding: 10px 18px;
|
| 64 |
cursor: pointer;
|
|
|
|
| 90 |
.sidebar-item.active svg {
|
| 91 |
fill: #fff;
|
| 92 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
.sidebar-section {
|
| 94 |
margin-top: 14px;
|
| 95 |
padding: 8px 18px;
|
|
|
|
| 98 |
text-transform: uppercase;
|
| 99 |
color: #aaa;
|
| 100 |
}
|
| 101 |
+
|
| 102 |
+
/* Topbar */
|
| 103 |
.topbar {
|
| 104 |
height: 52px;
|
| 105 |
background: #0078d4;
|
|
|
|
| 140 |
font-size: 12px;
|
| 141 |
font-weight: bold;
|
| 142 |
}
|
| 143 |
+
|
| 144 |
+
/* --- MAIN CONTENT AREA --- */
|
| 145 |
.main {
|
| 146 |
margin-left: 240px;
|
| 147 |
+
padding: 30px 40px;
|
| 148 |
+
background: #faf9f8;
|
| 149 |
+
min-height: 100vh;
|
| 150 |
+
box-sizing: border-box;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
/* Card Layout for PowerApps Look */
|
| 154 |
+
.card {
|
| 155 |
+
background: #fff;
|
| 156 |
+
border-radius: 10px;
|
| 157 |
+
box-shadow: 0 1px 5px rgba(0,0,0,0.1);
|
| 158 |
padding: 20px;
|
| 159 |
+
margin-bottom: 20px;
|
| 160 |
+
transition: box-shadow 0.2s ease;
|
| 161 |
+
}
|
| 162 |
+
.card:hover {
|
| 163 |
+
box-shadow: 0 3px 10px rgba(0,0,0,0.15);
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
/* Headings and sections */
|
| 167 |
+
.card h2, .card h3 {
|
| 168 |
+
margin-top: 0;
|
| 169 |
+
font-weight: 600;
|
| 170 |
+
color: #323130;
|
| 171 |
+
}
|
| 172 |
+
.section-title {
|
| 173 |
+
font-size: 18px;
|
| 174 |
+
font-weight: 600;
|
| 175 |
+
margin-bottom: 12px;
|
| 176 |
+
color: #201f1e;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
/* Grid layout for multiple cards */
|
| 180 |
+
.grid {
|
| 181 |
+
display: grid;
|
| 182 |
+
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
| 183 |
+
gap: 20px;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
/* Buttons */
|
| 187 |
+
button, .btn {
|
| 188 |
+
display: inline-block;
|
| 189 |
+
background: #0078d4;
|
| 190 |
+
color: #fff;
|
| 191 |
+
border: none;
|
| 192 |
+
padding: 8px 16px;
|
| 193 |
+
border-radius: 6px;
|
| 194 |
+
font-size: 14px;
|
| 195 |
+
cursor: pointer;
|
| 196 |
+
font-weight: 500;
|
| 197 |
+
}
|
| 198 |
+
button:hover, .btn:hover {
|
| 199 |
+
background: #106ebe;
|
| 200 |
+
}
|
| 201 |
+
.btn-secondary {
|
| 202 |
+
background: transparent;
|
| 203 |
+
border: 1px solid #8a8886;
|
| 204 |
+
color: #323130;
|
| 205 |
+
}
|
| 206 |
+
.btn-secondary:hover {
|
| 207 |
+
background: #f3f2f1;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
/* Tables or lists inside cards */
|
| 211 |
+
table {
|
| 212 |
+
width: 100%;
|
| 213 |
+
border-collapse: collapse;
|
| 214 |
+
font-size: 14px;
|
| 215 |
+
}
|
| 216 |
+
table th, table td {
|
| 217 |
+
border-bottom: 1px solid #edebe9;
|
| 218 |
+
padding: 8px;
|
| 219 |
+
text-align: left;
|
| 220 |
+
}
|
| 221 |
+
table th {
|
| 222 |
+
background: #f3f2f1;
|
| 223 |
+
font-weight: 600;
|
| 224 |
}
|
| 225 |
</style>
|
| 226 |
</head>
|