From 155864e59add288150b36f7d242fb7b54553f8a8 Mon Sep 17 00:00:00 2001 From: Tim Zielonko Date: Tue, 10 May 2022 14:41:11 -0500 Subject: [PATCH] responsive spacing on press and blog list items --- src/components/Blog/BlogListItem.tsx | 48 +++++++++++--------- src/components/Blog/PressReleaseListItem.tsx | 48 +++++++++++--------- 2 files changed, 54 insertions(+), 42 deletions(-) diff --git a/src/components/Blog/BlogListItem.tsx b/src/components/Blog/BlogListItem.tsx index 64f7abf9..b4d899c6 100644 --- a/src/components/Blog/BlogListItem.tsx +++ b/src/components/Blog/BlogListItem.tsx @@ -35,29 +35,35 @@ export const BlogListItem: FunctionComponent = ({ {slugPath && (
-
- {frontmatter.description ? ( -

{truncate(frontmatter.description, { length: 300 })}

- ) : ( -

{excerpt}

+
+
+ {frontmatter.description ? ( +

{truncate(frontmatter.description, { length: 300 })}

+ ) : ( +

{excerpt}

+ )} +
+ + {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} + Read more + +
+
+ {frontmatter.heroImage && ( +
+ + {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} + + {frontmatter.title} + + +
)} - - {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} - Read more -
- {frontmatter.heroImage && ( - - {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} - - {frontmatter.title} - - - )}
)}
diff --git a/src/components/Blog/PressReleaseListItem.tsx b/src/components/Blog/PressReleaseListItem.tsx index 068cf620..4532418c 100644 --- a/src/components/Blog/PressReleaseListItem.tsx +++ b/src/components/Blog/PressReleaseListItem.tsx @@ -34,29 +34,35 @@ export const PressReleaseListItem: FunctionComponent = ({ {slugPath && (
-
- {frontmatter.description ? ( -

{truncate(frontmatter.description, { length: 300 })}

- ) : ( -

{excerpt}

+
+
+ {frontmatter.description ? ( +

{truncate(frontmatter.description, { length: 300 })}

+ ) : ( +

{excerpt}

+ )} +
+ + {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} + Read more + +
+
+ {frontmatter.heroImage && ( +
+ + {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} + + {frontmatter.title} + + +
)} - - {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} - Read more -
- {frontmatter.heroImage && ( - - {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} - - {frontmatter.title} - - - )}
)}