add wordpress migration
This commit is contained in:
1 parent
d1be264bc5
commit
1bb0fd252f
36 files changed
+1234
-63
No files matched your search
@@ -6,6 +6,17 @@ import { Image } from "@/components/general/Image";
|
||||
export const VenueItem = ({ venue }: { venue: VenueFragment }) => {
|
||||
const featuredImage: any = venue.featuredImage;
|
||||
|
||||
const { capacitySitting, capacityStanding, usedFor } = venue;
|
||||
let capacity = null;
|
||||
if (
|
||||
!isNaN(capacitySitting) &&
|
||||
capacitySitting &&
|
||||
!isNaN(capacityStanding) &&
|
||||
capacityStanding
|
||||
) {
|
||||
capacity = `${capacitySitting}—${capacityStanding}`;
|
||||
}
|
||||
|
||||
return (
|
||||
<li className={`${styles.venueItem} linkItem`}>
|
||||
<div className={styles.image}>
|
||||
@@ -21,13 +32,15 @@ export const VenueItem = ({ venue }: { venue: VenueFragment }) => {
|
||||
</div>
|
||||
<div className={styles.text}>
|
||||
<h1 className={styles.title}>{venue.title}</h1>
|
||||
<div className={styles.details}>
|
||||
<strong>Passer for:</strong>
|
||||
<ul>
|
||||
<li>50—115 personer</li>
|
||||
<li>Konsert, foredrag, fest, debatt, teater, filmvisning</li>
|
||||
</ul>
|
||||
</div>
|
||||
{(capacity || usedFor) && (
|
||||
<div className={styles.details}>
|
||||
<strong>Passer for:</strong>
|
||||
<ul>
|
||||
{capacity && <li>{capacity} personer</li>}
|
||||
{usedFor && <li>{usedFor}</li>}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<Link href={`/lokaler/${venue.slug}`} className="hiddenLink">
|
||||
Mer om lokalet {venue.title}
|
||||
|
||||
Reference in new issue
Block a user