Skip to content

Commit

Permalink
Merge pull request #33 from ckomop0x/chore/small-fixes
Browse files Browse the repository at this point in the history
Just small fixes
  • Loading branch information
ckomop0x authored Feb 18, 2021
2 parents 1f66819 + 0005ae2 commit 9e633da
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 25 deletions.
39 changes: 18 additions & 21 deletions src/components/sections/FeaturedPost/styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled, { css } from 'styled-components';
import { Link } from 'gatsby';
import styled, { css } from 'styled-components';

export const FeaturedPostWrapper = styled.section`
min-height: 100vh;
Expand Down Expand Up @@ -28,23 +28,21 @@ export const ItemImage = styled.div`
}
${({ background }: { background?: string }) =>
background
? css`
.item-image {
/* filter: blur(10px); */
position: absolute;
z-index: 1;
left: 0;
top: 0;
right: 0;
bottom: 0;
opacity: 1;
background-size: cover;
background-position: center;
background-image: url(${background}?tr=w-1080);
}
`
: ''}
background &&
css`
.item-image {
position: absolute;
z-index: 1;
left: 0;
top: 0;
right: 0;
bottom: 0;
opacity: 1;
background-size: cover;
background-position: center;
background-image: url(${background}?tr=w-1080);
}
`}
`;

export const ContentWrapper = styled.div`
Expand Down Expand Up @@ -95,14 +93,13 @@ export const LinkStyled = styled(Link)`
display: inline-block;
padding: 10px 20px;
margin-top: 40px;
box-shadow: 40px 10px 0px #b3710037, -40px -10px 0 #ffa20050,
0 0 10px #0000002e;
box-shadow: 40px 10px 0 #b3710037, -40px -10px 0 #ffa20050, 0 0 10px #0000002e;
transition: all 0.5s ease;
&:hover {
text-decoration: none;
background: #0056b3;
color: #f5f5f5;
box-shadow: 30px 10px 0px #b37100, -30px -10px 0 #ffa200, 0 0 10px #0000004e;
box-shadow: 30px 10px 0 #b37100, -30px -10px 0 #ffa200, 0 0 10px #0000004e;
}
`;
3 changes: 0 additions & 3 deletions src/components/sections/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ const Hero: React.FC<IMainSectionProps> = ({ title, subtitle }) => (
<div className="container main-section__text">
<Title>{title}</Title>
<SubTitle>{subtitle}</SubTitle>
{/* <Link className={styles.startButton} to="/poetry">
Читать стихи →
</Link> */}{' '}
</div>
</MainSection>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/PostsList/Post/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Post: React.FC<IPost> = ({
)}
{publicationDate && (
<p className="item__date">
<b>Дата:</b> {publicationDate}
<b>Опубликовано:</b> {publicationDate}
</p>
)}
<h3 className="item__title">{title}</h3>
Expand Down

0 comments on commit 9e633da

Please sign in to comment.