-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontDashboard.css
More file actions
248 lines (224 loc) · 6.88 KB
/
Copy pathfrontDashboard.css
File metadata and controls
248 lines (224 loc) · 6.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
/* ========================================
CSS Custom Properties (Variables)
======================================== */
:root {
--color-primary: #007bff;
--color-primary-hover: #0056b3;
--color-background: #f0f2f5; /* Slightly darker background for more contrast */
--color-surface: #ffffff;
--color-heading-text: #212529;
--color-body-text: #495057;
--color-subtle-border: #dee2e6;
--font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--border-radius-lg: 12px;
--border-radius-md: 8px;
--card-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* More prominent shadow */
}
/* ========================================
Global Reset & Base Styles
======================================== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--font-main);
background-color: var(--color-background);
color: var(--color-body-text);
line-height: 1.6;
min-height: 100vh;
display: flex;
}
/* ========================================
Main Layout
======================================== */
.main-container {
display: flex;
flex-direction: column;
width: 100%;
}
.hero-panel {
height: 250px;
background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('hero-image.jpg');
background-size: cover;
background-position: center;
}
.content-panel {
display: flex;
justify-content: center;
padding: 2rem 1.5rem;
background-color: var(--color-background); /* Use a slightly darker background for contrast */
flex-grow: 1;
/* Minimalist background texture to fill space without being empty */
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e3e7' fill-opacity='0.6'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.content-wrapper {
width: 100%;
max-width: 600px;
display: flex;
flex-direction: column;
gap: 1.5rem; /* Consistent spacing between sections */
}
/* ========================================
Animations
======================================== */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(15px); }
to { opacity: 1; transform: translateY(0); }
}
.brand-logo { animation: fadeIn 0.5s ease-out; animation-fill-mode: backwards; }
.main-hero-card { animation: fadeIn 0.5s ease-out 0.1s; animation-fill-mode: backwards; }
.access-portal-card { animation: fadeIn 0.5s ease-out 0.2s; animation-fill-mode: backwards; }
.key-focus-card { animation: fadeIn 0.5s ease-out 0.3s; animation-fill-mode: backwards; }
footer { animation: fadeIn 0.5s ease-out 0.4s; animation-fill-mode: backwards; }
@keyframes ripple {
0% { transform: scale(0, 0) translate(-50%, -50%); opacity: 1; }
100% { transform: scale(20, 20) translate(-50%, -50%); opacity: 0; }
}
/* ========================================
Content Modules & Card Style (3D)
======================================== */
.brand-logo {
display: flex;
align-items: center;
gap: 0.75rem;
align-self: flex-start;
margin-bottom: 0.5rem; /* Add some space below logo */
}
.brand-logo span {
font-weight: 500;
color: var(--color-body-text);
font-size: 0.9rem;
}
/* Card Style for 3D effect */
.card {
background-color: var(--color-surface);
border: 1px solid var(--color-subtle-border);
border-radius: var(--border-radius-lg);
padding: 1.75rem;
box-shadow: var(--card-shadow);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
transform: translateY(-3px);
box-shadow: 0 7px 15px rgba(0, 0, 0, 0.12); /* Slightly more pronounced hover shadow */
}
.main-hero-content h1 {
font-size: 1.8rem;
font-weight: 700;
color: var(--color-heading-text);
line-height: 1.25;
margin-bottom: 0.75rem;
}
.hero-subtitle {
font-size: 1.05rem;
color: var(--color-body-text);
}
.access-portal h2 {
font-size: 1.25rem;
color: var(--color-heading-text);
font-weight: 700;
margin-bottom: 1rem;
text-align: center;
}
.role-buttons {
display: grid;
grid-template-columns: 1fr;
gap: 0.75rem;
}
.btn {
background-color: var(--color-primary);
color: var(--color-surface);
text-decoration: none;
font-weight: 500;
padding: 0.8rem 1rem;
border-radius: var(--border-radius-md);
transition: background-color 0.2s ease, transform 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-size: 0.95rem;
text-align: center;
border: none;
position: relative;
overflow: hidden; /* For ripple effect */
}
.btn:hover, .btn:focus {
background-color: var(--color-primary-hover);
transform: translateY(-2px);
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
/* Shimmer effect on hover */
.btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 5px;
background: rgba(255,255,255,0.5);
opacity: 0;
border-radius: 50%;
transform: scale(1, 1) translate(-50%, -50%);
transform-origin: 50% 50%;
}
.btn:hover::after {
animation: ripple 1s ease-out;
}
.key-focus {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem; /* Slightly reduced gap inside card for density */
}
.focus-item {
text-align: center;
}
.focus-item h3 {
font-size: 0.9rem;
font-weight: 700;
color: var(--color-heading-text);
}
.focus-item p {
font-size: 0.85rem;
color: var(--color-body-text);
}
/* Footer */
footer {
text-align: center;
padding-top: 1rem; /* Reduced padding for more compact look */
}
footer p {
font-size: 0.8rem;
color: #6c757d;
}
/* ========================================
Tablet & Desktop Responsiveness
======================================== */
@media (min-width: 768px) {
.role-buttons { grid-template-columns: 1fr 1fr; }
.content-wrapper { gap: 1.75rem; } /* Slightly more space between cards on larger screens */
.card { padding: 2rem; } /* More padding inside cards on larger screens */
}
@media (min-width: 1024px) {
.main-container {
flex-direction: row;
}
.hero-panel {
flex: 1 1 45%;
height: 100vh;
}
.content-panel {
flex: 1 1 55%;
align-items: center;
padding: 3rem;
overflow: hidden;
}
.content-wrapper {
max-width: 600px;
gap: 2rem;
}
.main-hero-content h1 { font-size: 2.2rem; }
}