@@ -86,7 +86,7 @@ const EventPost: React.FC<PostProps> = ({ slug, frontMatter, postContent }) => {
8686 />
8787
8888 < Link href = "/events" passHref >
89- < div className = "text-url top -0 left -0 mx-4 my-4 cursor-pointer py-1 text-[14px] font-semibold hover:underline sm:absolute sm:text-base" >
89+ < div className = "text-url left -0 top -0 mx-4 my-4 cursor-pointer py-1 text-[14px] font-semibold hover:underline sm:absolute sm:text-base" >
9090 < div className = "flex items-center justify-center" >
9191 < Icon icon = "eva:arrow-ios-back-fill" /> All Events
9292 </ div >
@@ -111,7 +111,7 @@ const EventPost: React.FC<PostProps> = ({ slug, frontMatter, postContent }) => {
111111 aria-label = "Image author"
112112 target = "_blank"
113113 rel = "noopener"
114- className = "absolute right -1 bottom -1 z-20 flex flex-row justify-center opacity-0 transition-all group-hover:opacity-100"
114+ className = "absolute bottom -1 right -1 z-20 flex flex-row justify-center opacity-0 transition-all group-hover:opacity-100"
115115 >
116116 < div className = "glass-container flex items-center justify-center rounded-md px-1 py-[2px] text-slate-700 transition-all hover:text-black" >
117117 < Icon icon = "ic:baseline-photo-camera-front" />
@@ -123,27 +123,29 @@ const EventPost: React.FC<PostProps> = ({ slug, frontMatter, postContent }) => {
123123 </ div >
124124 < div className = " " >
125125 < Link href = { `/category/${ category } ` } passHref >
126- < h3 className = "text-accent mb-2 cursor-pointer text-lg font-bold hover:underline" >
126+ < h3 className = "mb-2 cursor-pointer text-lg font-bold text-accent hover:underline" >
127127 { category }
128128 </ h3 >
129129 </ Link >
130130
131- < div className = "my-2 flex items-center space-x-2" >
132- < span className = "me-2 rounded bg-purple-100 px-2.5 py-0.5 text-sm font-medium text-purple-800" >
133- { type }
134- </ span >
135- < span className = "me-2 rounded bg-pink-100 px-2.5 py-0.5 text-sm font-medium text-pink-800" >
136- { location }
131+ < div className = "my-2 flex items-center justify-between" >
132+ < div className = "flex items-center gap-2" >
133+ < span className = "me-2 rounded bg-purple-100 px-2.5 py-0.5 text-sm font-medium text-purple-800" >
134+ { type }
135+ </ span >
136+ < span className = "me-2 rounded bg-pink-100 px-2.5 py-0.5 text-sm font-medium text-pink-800" >
137+ { location }
138+ </ span >
139+ </ div >
140+
141+ < span className = "inline-flex items-center rounded-lg border border-white bg-primary px-2 py-0.5" >
142+ < EventDates
143+ startDateTime = { startDateTime }
144+ endDateTime = { endDateTime }
145+ />
137146 </ span >
138147 </ div >
139148
140- < span className = "bg-primary inline-flex items-center rounded-lg border border-white px-2 py-0.5" >
141- < EventDates
142- startDateTime = { startDateTime }
143- endDateTime = { endDateTime }
144- />
145- </ span >
146-
147149 < hr className = "my-4 border-dashed border-slate-200" />
148150
149151 < h1 className = "mb-6 text-5xl font-extrabold text-slate-700" >
@@ -164,7 +166,7 @@ const EventPost: React.FC<PostProps> = ({ slug, frontMatter, postContent }) => {
164166 href = { `http://twitter.com/share?text=I just read this article and think y'all need to take a look at this&url=https://fairdataihub.org/events/${ slug } &hashtags=FAIRData,OpenScience,OpenSource` }
165167 target = "_blank"
166168 rel = "noopener"
167- className = "hover:text-accent mx-2 text-slate-500 transition-all"
169+ className = "mx-2 text-slate-500 transition-all hover:text-accent "
168170 data-umami-event = "Share article"
169171 data-umami-event-type = "Twitter"
170172 aria-label = "Share on Twitter"
@@ -175,7 +177,7 @@ const EventPost: React.FC<PostProps> = ({ slug, frontMatter, postContent }) => {
175177 href = { `https://www.facebook.com/sharer/sharer.php?u=https://fairdataihub.org/events/${ slug } "` }
176178 target = "_blank"
177179 rel = "noopener"
178- className = "hover:text-accent mx-2 text-slate-500 transition-all"
180+ className = "mx-2 text-slate-500 transition-all hover:text-accent "
179181 data-umami-event = "Share article"
180182 data-umami-event-type = "Facebook"
181183 aria-label = "Share on Facebook"
@@ -186,7 +188,7 @@ const EventPost: React.FC<PostProps> = ({ slug, frontMatter, postContent }) => {
186188 href = { `https://www.linkedin.com/sharing/share-offsite/?url=https://fairdataihub.org/events/${ slug } ` }
187189 target = "_blank"
188190 rel = "noopener"
189- className = "hover:text-accent mx-2 text-slate-500 transition-all"
191+ className = "mx-2 text-slate-500 transition-all hover:text-accent "
190192 data-umami-event = "Share article"
191193 data-umami-event-type = "LinkedIn"
192194 aria-label = "Share on LinkedIn"
@@ -199,7 +201,7 @@ const EventPost: React.FC<PostProps> = ({ slug, frontMatter, postContent }) => {
199201 </ a >
200202 < div
201203 onClick = { copyLinkToClipboard }
202- className = "hover:text-accent mx-2 cursor-pointer text-slate-500 transition-all"
204+ className = "mx-2 cursor-pointer text-slate-500 transition-all hover:text-accent "
203205 data-umami-event = "Share article"
204206 data-umami-event-type = "Copy URL"
205207 aria-label = "Copy to clipboard"
@@ -208,7 +210,7 @@ const EventPost: React.FC<PostProps> = ({ slug, frontMatter, postContent }) => {
208210 </ div >
209211 </ div >
210212
211- < div className = "mt -10 mb -10" >
213+ < div className = "mb -10 mt -10" >
212214 < Giscus
213215 key = { slug }
214216 id = "comments"
0 commit comments