-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
154 lines (130 loc) · 2.64 KB
/
styles.css
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
/* General styling for the body */
body {
font-family: 'Poppins', sans-serif;
background-color: #f0f0f5;
margin: 0;
padding: 0;
color: #333;
}
/* Styling for the header */
header {
background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
padding: 20px 20px;
display: flex;
align-items: center; /* Align items vertically */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Logo styling */
.logo {
width: 100px; /* Adjust logo size */
height: auto;
margin-right: 20px; /* Space between logo and title */
}
/* Header title and navigation styling */
.header-title {
flex-grow: 1; /* Take remaining space */
}
.header-title h1 {
color: white;
font-size: 28px;
margin: 0;
margin-left: 290px;
}
nav ul {
list-style-type: none;
margin: 20px 0 0 0;
padding: 0;
}
nav ul li {
display: inline-block;
margin: 0 20px;
}
nav ul li a {
color: white;
text-decoration: none;
font-size: 16px;
padding: 10px 20px;
border-radius: 5px;
transition: background 0.3s ease;
}
nav ul li a:hover {
background: rgba(255, 255, 255, 0.2);
}
/* Main section styling */
main {
padding: 50px;
text-align: center;
}
.intro h2 {
font-size: 28px;
color: #444;
margin-bottom: 10px;
}
.intro p {
font-size: 20px;
color: #666;
}
/* Attendance Statistics Section */
.statistics {
margin-top: 40px;
text-align: center;
}
.stats {
display: flex;
justify-content: space-around; /* Space out the cards evenly */
margin-top: 20px;
}
.stat-card {
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 200px;
}
.stat-card h3 {
margin: 0;
color: #333;
}
.stat-card p {
font-size: 24px;
font-weight: bold;
color: #4CAF50; /* Change color for better visibility */
}
/* Footer styling */
footer {
background-color: #333;
color: white;
padding: 15px;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}
/* Add some hover effects and interactive styling */
a {
transition: all 0.3s ease;
}
a:hover {
color: #ffecb3;
}
/* Responsive Design: Adjust for smaller screens */
@media (max-width: 768px) {
.header-title h1 {
font-size: 24px;
}
nav ul li {
display: block;
margin: 10px 0;
}
main {
padding: 20px;
}
.stats {
flex-direction: column; /* Stack the cards on smaller screens */
}
.stat-card {
margin: 10px 0; /* Add margin between cards */
width: auto; /* Allow cards to resize */
}
}