Skip to content

Commit 9acf843

Browse files
authored
[FEAT] Improve blogs and news card footer (#158)
1 parent 91d32fa commit 9acf843

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/theme/components/Post.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ export const Post = ({
3939
{text}
4040
</Text>
4141
<CardFooter bg="primary" color="background" position="bottom-right" round>
42-
{`${date} - ${Math.ceil(time)} min`}
42+
<span>{`${date} - `}</span>
43+
<TimeReadSpan>{`${Math.ceil(time)} min read`}</TimeReadSpan>
4344
</CardFooter>
4445
</PostContainer>
4546
);
4647

48+
const TimeReadSpan = styled.span`
49+
text-transform: none;
50+
`;
51+
4752
type PostContainerProps = {
4853
url: string;
4954
title: string;

0 commit comments

Comments
 (0)