return <div className="episodes-list">
{Object.entries(grouped).map(([day, group]) => <div key={day}>
- <h2 className="text-center my-5">{moment(day).format('dddd, L')}</h2>
+ <h2 className="text-center episodes-group-heading">
+ {moment(day).format('dddd, L')}
+ </h2>
{group.map(episode =>
<Item
episode={episode}
+.episodes-group-heading {
+ position: sticky;
+ top: 0;
+ margin: 2rem 0 0 0;
+ padding: 1rem 0 3rem 0;
+ background: $body-bg;
+ background: linear-gradient(180deg, $body-bg, $body-bg 65%, transparent);
+ z-index: 1;
+}
+
.episodes-item {
&.is-active {
border-color: $success !important;