-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
102 lines (87 loc) · 1.84 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
/* Reset some default styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main {
padding: 2rem 0;
display: flex;
justify-content: center;
overflow-y: auto; /* Allow vertical scrolling */
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
/* Header Navigation Styling */
header {
background-color: #54d592;
}
nav {
display: flex;
justify-content: center; /* Center the links */
padding: 1rem;
background-color: #54d592; /* Similar color to the image */
}
nav a {
color: #fff;
text-decoration: none;
font-weight: bold;
margin: 0 1.5rem; /* Space between nav links */
font-size: 1.2rem;
padding: 0.5rem 1rem;
transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}
nav a:hover {
background-color: #2d3e50; /* Add background color on hover */
border-radius: 5px; /* Slightly rounded corners on hover */
}
main {
padding: 2rem 0;
display: flex;
justify-content: center;
}
.assignments {
width: 80%;
max-width: 900px;
}
.assignments h1 {
font-size: 2rem;
margin-bottom: 1.5rem;
text-align: center;
}
.assignment-card {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.assignment-card h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #2d3e50;
}
.assignment-card p {
font-size: 1rem;
margin-bottom: 1rem;
color: #6a7b8c;
}
.assignment-card .btn {
background-color: #007bff;
color: white;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 4px;
display: inline-block;
}
.assignment-card .btn:hover {
background-color: #0056b3;
}
footer {
background-color: #2d3e50;
padding: 1rem;
text-align: center;
color: white;
}