22import { formatInTimeZone } from " date-fns-tz" ;
33import Speakers from " ./speakers.astro" ;
44import { slugify } from " @utils/content" ;
5+ import Icon from " @ui/Icon.astro" ;
56
67export interface props {
78 style: any ;
@@ -47,6 +48,16 @@ const hasFooter = true;
4748 }
4849 </header>
4950 -->
51+ <header >
52+
53+ { session .rooms .length === 1 && (
54+ <div class = " room-info" >
55+ <span class = " sr-only" >Room:</span >
56+ { session .rooms && session .rooms .join (" , " )} ⇢
57+ </div >
58+ )}
59+ </header >
60+
5061
5162 <!-- <div class="time">
5263 <span class="sr-only">Session start:</span>
@@ -65,18 +76,12 @@ const hasFooter = true;
6576 {
6677 hasFooter && (
6778 <footer class :list = { { " has-room" : hasRoom , " has-speakers" : hasSpeakers }} >
68- { session .rooms .length === 1 && (
69- <div class = " room-info" >
70- <span class = " sr-only" >Room:</span >
71- { session .rooms && session .rooms .join (" , " )}
72- { hasSpeakers && <span aria-hidden = " true" > • </span >}
73- </div >
74- )}
7579 { session .speakers && (
7680 <>
7781 <Speakers speakers = { session .speakers } />
7882 </>
7983 )}
84+
8085 </footer >
8186 )
8287 }
@@ -91,7 +96,7 @@ const hasFooter = true;
9196
9297 border: 1px solid transparent;
9398 font-weight: bold;
94- display: grid ;
99+ display: flex ;
95100 flex-direction: column;
96101 /*background-color: var(--color-body-background);*/
97102
@@ -109,15 +114,17 @@ const hasFooter = true;
109114
110115 grid-template-columns: 60px 1fr;
111116
112- @media screen and (min-width: 640px) {
113- display: flex;
114- }
117+ /* @media screen and (min-width: 640px) {*/
118+ /* display: flex;*/
119+ /*}*/
115120 }
116121
117122 .room-info {
118- display: inline;
123+ display: block;
124+ text-align:center;
119125
120- @media screen and (min-width: 640px) {
126+
127+ @media screen and (min-width: 800px) {
121128 display: none;
122129 }
123130 }
@@ -141,7 +148,15 @@ const hasFooter = true;
141148 z-index: 2;
142149 }
143150
144- @media screen and (max-width: 639px) {
151+ @media screen and (max-width: 800px) {
152+ header {
153+ /*text-align:right;*/
154+ }
155+ .session h2{
156+ padding:0 8px ;
157+ margin:0;
158+ }
159+
145160 .session > .time {
146161 grid-area: time;
147162 padding-block: 8px;
@@ -159,7 +174,7 @@ const hasFooter = true;
159174
160175 .session > h2 {
161176 grid-area: title;
162- padding-block: 8px ;
177+ padding-block: 0 ;
163178 }
164179
165180 .session > footer {
@@ -214,24 +229,24 @@ const hasFooter = true;
214229 }
215230
216231 header {
217- background-color: var(--color-primary);
232+ /* background-color: var(--color-primary);*/
218233 /*border-bottom: 2px solid var(--color-primary);*/
219- color: black;
234+ /*background- color: #e6c8ac;*/
220235 text-transform: capitalize;
221236 font-size: 0.8em;
222237 font-weight: 500;
223238 }
224239
225240 .beginner header {
226- background-color: var(--color-session-beginner);
241+ /* background-color: var(--color-session-beginner);*/
227242 }
228243
229244 .intermediate header {
230- background-color: var(--color-session-intermediate);
245+ /* background-color: var(--color-session-intermediate);*/
231246 }
232247
233248 .advanced header {
234- background-color: var(--color-session-advanced);
249+ /* background-color: var(--color-session-advanced);*/
235250 }
236251
237252 .poster header {
0 commit comments