Event Carousel
Example
See Kitchen Sink.
Code
HTML
<section class="events">
<div class="grid-xxl">
<header>
<h2 class="contact-head">Upcoming Events</h2>
<div class="more-button">
<a href="#" class="more">More Events</a>
</div>
</header>
<div class="event-wrapper">
<a class="event">
<div class="month-date">
<div class="month">NOV</div>
<div class="day">6</div>
</div>
<div class="card-details">
<h2 class="card-head">Go Blue Friday</h2>
<p class="event-date">
<img src="/icons/date.svg" aria-hidden="true" alt="Date icon" />
Friday, March 29
</p>
<p class="event-time">
<img src="/icons/time.svg" aria-hidden="true" alt="Time icon" /> 10
a.m-12 p.m.
</p>
<p class="event-location">
<img
src="/icons/location.svg"
aria-hidden="true"
alt="Location icon"
/>
Fairlane Center South (FCS)
</p>
</div>
</a>
<a class="event">
<div class="month-date">
<div class="month">NOV</div>
<div class="day">6</div>
</div>
<div class="card-details">
<h2 class="card-head">Go Blue Friday</h2>
<p class="event-date">
<img src="/icons/date.svg" aria-hidden="true" alt="Date icon" />
Friday, March 29
</p>
<p class="event-time">
<img src="/icons/time.svg" aria-hidden="true" alt="Time icon" /> 10
a.m-12 p.m.
</p>
<p class="event-location">
<img
src="/icons/location.svg"
aria-hidden="true"
alt="Location icon"
/>
Fairlane Center South (FCS)
</p>
</div>
</a>
<a class="event">
<div class="month-date">
<div class="month">NOV</div>
<div class="day">6</div>
</div>
<div class="card-details">
<h2 class="card-head">Go Blue Friday</h2>
<p class="event-date">
<img src="/icons/date.svg" aria-hidden="true" alt="Date icon" />
Friday, March 29
</p>
<p class="event-time">
<img src="/icons/time.svg" aria-hidden="true" alt="Time icon" /> 10
a.m-12 p.m.
</p>
<p class="event-location">
<img
src="/icons/location.svg"
aria-hidden="true"
alt="Location icon"
/>
Fairlane Center South (FCS)
</p>
</div>
</a>
</div>
</div>
</section>
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
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
CSS
.events {
background-color: #ffcb05;
padding: 5.625rem 0;
}
.events header {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin-bottom: 3.125rem;
width: 100%;
}
@media screen and (max-width: 39.9375em) {
.events header {
display: block;
}
}
.events header h2 {
font-family: "Montserrat", sans-serif;
font-size: 30px;
font-weight: 700;
color: rgba(0, 0, 0, 0.87);
letter-spacing: 0.23px;
margin: 0;
padding-right: 2.5rem;
text-align: left;
}
@media screen and (max-width: 39.9375em) {
.events header h2 {
margin-bottom: 1rem;
padding: 0;
}
}
.events header .more-button a {
background: #00274c;
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 3px;
-webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 1px -1px rgba(0, 0, 0, 0.12),
0 1px 1px 0 rgba(0, 0, 0, 0.14);
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 1px -1px rgba(0, 0, 0, 0.12),
0 1px 1px 0 rgba(0, 0, 0, 0.14);
font-family: "Montserrat", sans-serif;
font-size: 14px;
font-weight: 800;
color: #fafafa;
letter-spacing: 1.25px;
text-align: center;
line-height: 16px;
padding: 0.5rem 1rem;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
@media screen and (max-width: 39.9375em) {
.events header .more-button a {
display: block;
margin: 0 0.9375rem;
}
}
.events header .more-button a:hover,
.events header .more-button a:focus {
-webkit-box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
0 8px 10px 1px rgba(0, 0, 0, 0.14);
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
0 8px 10px 1px rgba(0, 0, 0, 0.14);
color: #ffcb05;
}
.events .event-wrapper {
display: flex;
flex-direction: row;
font-family: Montserrat;
justify-content: space-between;
margin-bottom: 1.875rem;
}
.events .event-wrapper .event {
align-items: flex-start;
display: flex;
width: 32%;
}
.events .event-wrapper .event .month-date {
background-color: #00274c;
border-radius: 2px;
color: #fafafa;
height: auto;
padding: 0.5rem 0.75rem;
text-align: center;
text-transform: uppercase;
transition: all 0.2s ease-in-out;
}
.events .event-wrapper .event .month {
font-size: 1.875rem;
font-weight: 700;
border-bottom: 1px solid hsla(0, 0%, 98%, 0.5);
padding-bottom: 0.25rem;
}
.events .event-wrapper .event .day {
font-size: 3.125rem;
line-height: 1;
padding-top: 0.25rem;
}
.events .event-wrapper .event .card-details {
margin-left: 1rem;
}
.events .event-wrapper .event .card-head {
border-bottom: 0;
color: rgba(0, 0, 0, 0.87);
font-size: 1.125rem;
font-weight: 700;
margin: 0 0 0.5rem;
}
.events .event-wrapper .event .event-date,
.events .event-wrapper .event .event-time,
.events .event-wrapper .event .event-location {
color: rgba(0, 0, 0, 0.87);
font-size: 0.875rem;
margin-bottom: 0;
}
.events .event-wrapper a.event:hover .card-details .card-head,
.events .event-wrapper a.event:focus .card-details .card-head,
.events .event-wrapper a.event:hover .card-details p,
.events .event-wrapper a.event:focus .card-details p {
color: #00274c;
transition: all 0.2s ease-in-out;
}
.events .event-wrapper a.event:hover .month-date,
.events .event-wrapper a.event:focus .month-date {
background-color: #000;
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
0 8px 10px 1px rgba(0, 0, 0, 0.14);
color: #ffcb05;
}
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
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
← Event Event Filters →