@@ -5,9 +5,13 @@ import { transparentize } from "polished";
55
66import { Link , Tag , Reaction } from "@components" ;
77import { darkPink , pink } from "@utils/theme" ;
8+ import { ShowMore } from "./ShowMore" ;
89
910const Wrapper = styled . article `
10- &:not(:last-of-type) {
11+ border-top: 2px solid ${ pink } ;
12+ margin-top: 2.5rem;
13+
14+ &:last-of-type {
1115 border-bottom: 2px solid ${ pink } ;
1216 margin-bottom: 2.5rem;
1317 }
@@ -16,16 +20,14 @@ const Wrapper = styled.article`
1620 }
1721` ;
1822const PostBody = styled . div `
19- margin -bottom: 1.75rem;
23+ padding -bottom: 1.75rem;
2024` ;
2125const Tags = styled . div `
2226 display: flex;
2327 flex-wrap: wrap;
2428 margin-bottom: 0.5rem;
2529` ;
26- const Reactions = styled ( Tags ) `
27- padding-bottom: 2rem;
28- ` ;
30+ const Reactions = styled ( Tags ) `` ;
2931
3032const GetInTouch = styled . button `
3133 background: none;
@@ -87,29 +89,31 @@ export const Offer = ({
8789} ) => {
8890 return (
8991 < Wrapper >
90- < Author
91- authorHref = { getAuthorLink ( author . id ) }
92- name = { author . displayName }
93- messageHref = { messageLink }
94- authorImageSrc = { author . avatar }
95- postTime = { createdAt }
96- onInfoClick = { onClickGetInTouch }
97- />
98- < Tags >
99- { tags . map ( ( tag ) => (
100- < Tag key = { tag } > { tag } </ Tag >
101- ) ) }
102- </ Tags >
103- < PostBody dangerouslySetInnerHTML = { { __html : description } } />
104- { reactions . length > 0 && (
105- < Reactions >
106- { reactions . map ( ( [ e , c ] ) => (
107- < Reaction key = { e } >
108- { e } { c }
109- </ Reaction >
92+ < ShowMore >
93+ < Author
94+ authorHref = { getAuthorLink ( author . id ) }
95+ name = { author . displayName }
96+ messageHref = { messageLink }
97+ authorImageSrc = { author . avatar }
98+ postTime = { createdAt }
99+ onInfoClick = { onClickGetInTouch }
100+ />
101+ < Tags >
102+ { tags . map ( ( tag ) => (
103+ < Tag key = { tag } > { tag } </ Tag >
110104 ) ) }
111- </ Reactions >
112- ) }
105+ </ Tags >
106+ { reactions . length > 0 && (
107+ < Reactions >
108+ { reactions . map ( ( [ e , c ] ) => (
109+ < Reaction key = { e } >
110+ { e } { c }
111+ </ Reaction >
112+ ) ) }
113+ </ Reactions >
114+ ) }
115+ < PostBody dangerouslySetInnerHTML = { { __html : description } } />
116+ </ ShowMore >
113117 </ Wrapper >
114118 ) ;
115119} ;
0 commit comments