From afbf05bacba10873f00be496bbfa6cae8c61ebba Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Tue, 18 Jun 2024 18:35:26 -0700 Subject: [PATCH] adjust responsive styles --- .../nodes/pages/sup-book/sup-book-page.tsx | 239 ++++++++++-------- 1 file changed, 134 insertions(+), 105 deletions(-) diff --git a/src/components/nodes/pages/sup-book/sup-book-page.tsx b/src/components/nodes/pages/sup-book/sup-book-page.tsx index 28936b4c..9ac9bfe0 100644 --- a/src/components/nodes/pages/sup-book/sup-book-page.tsx +++ b/src/components/nodes/pages/sup-book/sup-book-page.tsx @@ -37,13 +37,13 @@ const SupBookPage = async ({node, ...props}: Props) => { return (
-
-
-
-
+
+
+
+

{node.title}

{node.supBookSubjects && ( @@ -59,73 +59,152 @@ const SupBookPage = async ({node, ...props}: Props) => { {node.supBookSubtitle &&
{node.supBookSubtitle}
} - {node.supBookAuthorsFull &&
{node.supBookAuthorsFull}
} - - {awards && ( -
-

- - Award Winner -

- - {awards.map(award => ( -
{award.name}
- ))} -
-
- )} + {node.supBookAuthorsFull &&
{node.supBookAuthorsFull}
}
+
+ +
+
+
+
+
+
+

{node.title}

-
- {node.supBookImprint &&
Imprint: {node.supBookImprint.name}
} - -

Book Details

+ {node.supBookSubjects && ( + + )} - {node.supBookCopublisherName &&
{node.supBookCopublisherName}
} + {node.supBookSubtitle &&
{node.supBookSubtitle}
} - {node.supBookPubDateCloth?.time && ( -
- {new Date(node.supBookPubDateCloth.time).toLocaleDateString("en-us", { - month: "long", - year: "numeric", - })} + {node.supBookAuthorsFull &&
{node.supBookAuthorsFull}
}
- )} - {node.supBookPages &&
{node.supBookPages} Pages
} + {awards && ( +
+

+ + Award Winner +

+ + {awards.map(award => ( +
{award.name}
+ ))} +
+
+ )} +
- {lowestPrice &&
From {formatCurrency(lowestPrice)}
} +
+ {node.supBookImprint &&
Imprint: {node.supBookImprint.name}
} - {node.supBookSeries?.name && ( -
- Series -
- - {node.supBookSeries.name} - +

Book Details

+ + {node.supBookCopublisherName &&
{node.supBookCopublisherName}
} + + {node.supBookPubDateCloth?.time && ( +
+ {new Date(node.supBookPubDateCloth.time).toLocaleDateString("en-us", { + month: "long", + year: "numeric", + })} +
+ )} + + {node.supBookPages &&
{node.supBookPages} Pages
} + + {lowestPrice &&
From {formatCurrency(lowestPrice)}
} + + {node.supBookSeries?.name && ( + + )} +
+
+ {node.supBookIsbn13Cloth &&
Hardcover ISBN: {node.supBookIsbn13Cloth}
} + {node.supBookIsbn13Paper &&
Paperback ISBN: {node.supBookIsbn13Paper}
} + {node.supBookIsbn13Digital &&
Ebook ISBN: {node.supBookIsbn13Digital}
} +
+
+ +
+
+ +
+ + {node.supBookERetailers && ( +
+
Also Available from
+
)} -
-
- {node.supBookIsbn13Cloth &&
Hardcover ISBN: {node.supBookIsbn13Cloth}
} - {node.supBookIsbn13Paper &&
Paperback ISBN: {node.supBookIsbn13Paper}
} - {node.supBookIsbn13Digital &&
Ebook ISBN: {node.supBookIsbn13Digital}
} + + + {" "} + Desk, Examination, or Review Copy Requests +
-
- +
+
+ +
{hasExcerptAndMore && ( Excerpts + more { )}
- -
-
- -
- - {node.supBookERetailers && ( -
-
Also Available from
- -
- )} - - - {" "} - Desk, Examination, or Review Copy Requests - -