-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathevents.css
More file actions
150 lines (124 loc) · 2.34 KB
/
Copy pathevents.css
File metadata and controls
150 lines (124 loc) · 2.34 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
body, p {
margin: 0;
padding: 0;
}
/* Add a background color to the body */
body {
background-color: #f5f5f5;
font-family: 'Arial', sans-serif;
}
/* Style the navigation bar */
nav {
background-color: #2c3e50;
color: #ecf0f1;
padding: 1rem 0;
text-align: center;
}
nav #mainlogo {
width: 150px;
}
nav .nav_icon {
display: flex;
justify-content: space-between;
align-items: center;
}
nav .nav__menu {
list-style: none;
padding: 0;
}
nav .nav__menu li {
display: inline;
margin-right: 20px;
}
nav .nav__menu a {
text-decoration: none;
color: #ecf0f1;
font-weight: 600;
}
/* Style the section containing events */
.events {
padding: 3rem 0;
background-color: #ecf0f1;
}
.events h2 {
font-size: 1.5rem;
color: #34495e;
text-align: center;
margin-bottom: 2rem;
}
.events__container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
.event {
background-color: #ffffff;
border: 1px solid #ecf0f1;
border-radius: 15px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event:hover {
transform: translateY(-10px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.event img {
max-width: 100%;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
}
.event__info {
padding: 1.5rem;
text-align: center;
}
.event__info h4 {
font-size: 1.2rem;
margin: 1rem 0;
}
/* Style the footer */
.footer {
background-color: #34495e;
color: #ecf0f1;
padding: 2rem 0;
text-align: center;
}
.footer__container {
display: flex;
justify-content: space-between;
}
.footer h4 {
font-size: 1.2rem;
margin-bottom: 1rem;
}
.footer__1, .footer__2, .footer__3 {
flex: 1;
}
.footer__1 p {
font-size: 0.9rem;
}
.footer__logo h4 {
font-size: 1.5rem;
}
.footer__2 li, .footer__3 li {
list-style: none;
margin-bottom: 0.5rem;
}
.footer__2 a, .footer__3 a {
text-decoration: none;
color: #ecf0f1;
}
.footer__socials i {
font-size: 1.2rem;
margin: 0 0.5rem;
}
/* Adjustments for smaller screens */
@media screen and (max-width: 1024px) {
.events__container {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 600px) {
.events__container {
grid-template-columns: 1fr;
padding: 0 1rem;
}
}