Skip to content

Commit 844cc5b

Browse files
Add dynamic block-shadow to icon
1 parent e010fb8 commit 844cc5b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

web/pages/posts/[slug].js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const MainContent = styled.div`
1515
font-size: 1.25em;
1616
line-height: 1.75em;
1717
`
18-
const PostTitle = styled.h2`
19-
`
18+
// const PostTitle = styled.h2`
19+
// `
2020
const PostDescription = styled.p`
2121
font-size: 1.3em;
2222
font-weight: 600;
@@ -102,12 +102,13 @@ const H3 = styled.h3`
102102
const UL = styled.ul`
103103
margin-bottom: 15px;
104104
`
105+
105106
const InfoIcon = styled.img`
106107
float: left;
107108
margin: 0 15px 0 0;
108109
border-radius: 50%;
109-
background-color: ${({ theme }) => theme.secondaryColor};;
110-
/* box-shadow: 0 0 15px white; */
110+
background-color: ${({ theme }) => theme.secondaryColor};
111+
box-shadow: ${({ theme }) => `0 0 15px ${theme.secondaryColor}`};
111112
@media screen and (max-width: 600px) {
112113
margin: 0 5px 0 0;
113114
}
@@ -359,7 +360,7 @@ function Post(props) {
359360
themeString={props.themeString}
360361
>
361362
<article>
362-
<PostTitle>{props.title}</PostTitle>
363+
<h2>{props.title}</h2>
363364

364365
<PostDescription>{props.description}</PostDescription>
365366

0 commit comments

Comments
 (0)