|
@ -5,7 +5,7 @@ import { Spacer } from "../../components/Spacer"; |
|
|
import { ArticleSubHeader } from "./components/ArticleSubHeader"; |
|
|
import { ArticleSubHeader } from "./components/ArticleSubHeader"; |
|
|
import { BlogPost } from "./components/BlogContent"; |
|
|
import { BlogPost } from "./components/BlogContent"; |
|
|
import { articles, getBlogPath } from "../../data"; |
|
|
import { articles, getBlogPath } from "../../data"; |
|
|
import { ReactComponent as DrawClose } from "../../assets/draw-close.svg"; |
|
|
import { ReactComponent as DrawClose } from "../../assets/arrow-thin.svg"; |
|
|
import classNames from "classnames"; |
|
|
import classNames from "classnames"; |
|
|
|
|
|
|
|
|
const Header: React.FC = () => { |
|
|
const Header: React.FC = () => { |
|
@ -121,7 +121,7 @@ const BlogHome: React.FC = () => { |
|
|
css` |
|
|
css` |
|
|
border: none; |
|
|
border: none; |
|
|
padding: 1rem; |
|
|
padding: 1rem; |
|
|
padding-block: 10vw; |
|
|
padding-block: 12vw; |
|
|
display: flex; |
|
|
display: flex; |
|
|
min-width: 3.6rem; |
|
|
min-width: 3.6rem; |
|
|
max-width: 3.6rem; |
|
|
max-width: 3.6rem; |
|
@ -143,14 +143,15 @@ const BlogHome: React.FC = () => { |
|
|
`,
|
|
|
`,
|
|
|
)}> |
|
|
)}> |
|
|
<DrawClose |
|
|
<DrawClose |
|
|
width="2.6rem" |
|
|
style={{ width: "2.6rem", height: "1rem" }} |
|
|
className={classNames( |
|
|
className={classNames( |
|
|
css` |
|
|
css` |
|
|
|
|
|
transform: rotate(180deg); |
|
|
transition: transform 100ms; |
|
|
transition: transform 100ms; |
|
|
`,
|
|
|
`,
|
|
|
{ |
|
|
{ |
|
|
[css` |
|
|
[css` |
|
|
transform: rotate(180deg); |
|
|
transform: rotate(0deg); |
|
|
`]: isAsideClosed,
|
|
|
`]: isAsideClosed,
|
|
|
}, |
|
|
}, |
|
|
)} |
|
|
)} |
|
@ -245,6 +246,11 @@ const BlogHome: React.FC = () => { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
transition: all 300ms; |
|
|
transition: all 300ms; |
|
|
transform: translateX(100%); |
|
|
transform: translateX(100%); |
|
|
|
|
|
overflow-y: auto; |
|
|
|
|
|
overflow-x: hidden; |
|
|
|
|
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
justify-content: center; |
|
|
`,
|
|
|
`,
|
|
|
isArticleOpen && |
|
|
isArticleOpen && |
|
|
css` |
|
|
css` |
|
@ -255,12 +261,12 @@ const BlogHome: React.FC = () => { |
|
|
className={css` |
|
|
className={css` |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
overflow-y: auto; |
|
|
|
|
|
overflow-x: hidden; |
|
|
|
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
padding: 8vw; |
|
|
padding: 8vw; |
|
|
gap: 1.5rem; |
|
|
gap: 1.5rem; |
|
|
|
|
|
max-width: 60rem; |
|
|
|
|
|
height: fit-content; |
|
|
|
|
|
|
|
|
@media screen and (max-width: 50rem) { |
|
|
@media screen and (max-width: 50rem) { |
|
|
padding-block-start: 4rem; |
|
|
padding-block-start: 4rem; |
|
|