-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheweek.css
More file actions
175 lines (152 loc) · 3.77 KB
/
eweek.css
File metadata and controls
175 lines (152 loc) · 3.77 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
/* General styles */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
margin: 0;
padding: 0;
}
nav {
background-color: #333;
padding: 15px;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
}
nav .logo {
font-size: 24px;
font-weight: bold;
}
nav .back-link {
color: white;
text-decoration: none;
font-size: 16px;
padding: 8px 15px;
background-color: #0056b3;
border-radius: 5px;
transition: background-color 0.3s;
}
nav .back-link:hover {
background-color: #003d80;
}
/* Event Page Section */
.event-page {
max-width: 800px;
margin: 40px auto;
padding: 20px;
background-color: rgb(255, 255, 255);
border-radius: 8px;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
text-align: center;
overflow: hidden;
}
/* Event Heading */
.event-name {
font-size: 32px;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
color: #160053;
margin-bottom: 20px;
opacity: 0;
animation: fadeInText 0.2s forwards 0.3s; /* Event heading fade-in */
}
/* Event Image Container */
.event-image-container {
opacity: 0;
transform: translateY(30px);
animation: fadeInImage 0.5s forwards 1s; /* Image fade-in */
display: flex;
justify-content: center;
gap: 20px;
}
.event-image-container img {
width: 600px;
height: 300px;
border-radius: 10px;
transition: transform 0.5s ease, box-shadow 0.3s ease; /* Smooth transition */
}
.event-image-container img:hover {
transform: translateY(-10px) scale(1.05); /* Moves the image up and slightly enlarges it */
box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3); /* Adds shadow for a lifted effect */
}
/* Fade-in Keyframes for Text and Image */
@keyframes fadeInText {
100% {
opacity: 1;
}
}
@keyframes fadeInImage {
100% {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.event-page {
padding: 15px;
margin: 20px;
}
.event-name {
font-size: 35px;
}
.event-description {
font-size: 16px;
}
.event-date {
font-size: 14px;
}
.event-image {
width: 100%; /* Adjust image size for smaller screens */
}
}
/* Event List Container */
.event-page1 {
display: flex;
justify-content: center;
margin: 20px;
}
.event-list-container1 {
background-color: #333333;
color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, background-color 0.3s ease;
width: 450px; /* Match image container width */
text-align: left;
}
.event-list-container1:hover {
transform: scale(1.05);
background-color: #555;
}
/* Event Item */
.event-item {
margin: 10px 0;
padding: 10px;
background-color: #444; /* Different background for each item */
border-radius: 5px;
opacity: 0;
transform: translateY(20px); /* Start each item slightly below */
transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth appearance */
}
/* When in view, the list items fade in and slide up */
.event-item.visible {
opacity: 1;
transform: translateY(0);
}
/* Event Item Paragraph */
.event-item p {
margin: 0;
font-size: 16px;
text-align: center;
}
/* Animation for fading in list items */
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
.event-page p {
animation: fadeIn 0.7s ease forwards;
animation-delay: 0.8s;
opacity: 0;
}