|
|
@ -76,7 +76,7 @@ const BlogHome: React.FC = () => { |
|
|
|
{ "article-open": isArticleOpen, "aside-closed": isAsideClosed }, |
|
|
|
css` |
|
|
|
display: flex; |
|
|
|
background: #1d1d1d; |
|
|
|
background: #1a1a1a; |
|
|
|
height: 100%; |
|
|
|
width: 100vw; |
|
|
|
overflow: hidden; |
|
|
@ -100,17 +100,21 @@ const BlogHome: React.FC = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
& > aside { |
|
|
|
transition: all 350ms; |
|
|
|
& > aside, |
|
|
|
& > aside .blog-list { |
|
|
|
transition: transform 300ms, min-width 300ms, max-width 300ms; |
|
|
|
} |
|
|
|
|
|
|
|
&:is(.aside-closed) { |
|
|
|
aside { |
|
|
|
& aside { |
|
|
|
overflow: hidden; |
|
|
|
transform: translateX(-500%); |
|
|
|
min-width: 0; |
|
|
|
max-width: 0; |
|
|
|
} |
|
|
|
|
|
|
|
& aside .blog-list { |
|
|
|
transform: translateX(-1000%); |
|
|
|
} |
|
|
|
} |
|
|
|
`,
|
|
|
|
)}> |
|
|
@ -126,7 +130,7 @@ const BlogHome: React.FC = () => { |
|
|
|
min-width: 3.6rem; |
|
|
|
max-width: 3.6rem; |
|
|
|
transition: background-color 100ms; |
|
|
|
background-color: #262626; |
|
|
|
background-color: #151515; |
|
|
|
position: absolute; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
@ -134,7 +138,7 @@ const BlogHome: React.FC = () => { |
|
|
|
z-index: 1000; |
|
|
|
|
|
|
|
&:hover { |
|
|
|
background-color: #323232; |
|
|
|
background-color: #0c0c0c; |
|
|
|
} |
|
|
|
`,
|
|
|
|
!isArticleOpen && |
|
|
@ -163,23 +167,25 @@ const BlogHome: React.FC = () => { |
|
|
|
width: 100%; |
|
|
|
flex: 2; |
|
|
|
max-width: 45rem; |
|
|
|
overflow-y: auto; |
|
|
|
`}>
|
|
|
|
<div |
|
|
|
className={css` |
|
|
|
height: 100%; |
|
|
|
width: 100%; |
|
|
|
overflow-y: auto; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 1rem; |
|
|
|
padding: 8vw; |
|
|
|
min-width: min(30rem, 100vw); |
|
|
|
className={classNames( |
|
|
|
"blog-list", |
|
|
|
css` |
|
|
|
width: 100%; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 1rem; |
|
|
|
padding: 8vw; |
|
|
|
min-width: min(30rem, 100vw); |
|
|
|
|
|
|
|
@media screen and (max-width: 50rem) { |
|
|
|
padding-block-start: 4rem; |
|
|
|
padding-block-end: 6rem; |
|
|
|
} |
|
|
|
`}>
|
|
|
|
@media screen and (max-width: 50rem) { |
|
|
|
padding-block-start: 4rem; |
|
|
|
padding-block-end: 6rem; |
|
|
|
} |
|
|
|
`,
|
|
|
|
)}> |
|
|
|
<Header /> |
|
|
|
<Spacer y={2} /> |
|
|
|
{articles.map(article => { |
|
|
@ -196,10 +202,10 @@ const BlogHome: React.FC = () => { |
|
|
|
gap: 0.25rem; |
|
|
|
padding: 1rem; |
|
|
|
border-radius: 0.5rem; |
|
|
|
transition: all 300ms; |
|
|
|
transition: background 300ms; |
|
|
|
|
|
|
|
&:hover { |
|
|
|
background: #262626; |
|
|
|
background: #111111; |
|
|
|
} |
|
|
|
|
|
|
|
& h3 { |
|
|
@ -242,9 +248,9 @@ const BlogHome: React.FC = () => { |
|
|
|
key="blog-content" |
|
|
|
className={classNames( |
|
|
|
css` |
|
|
|
background-color: #262626; |
|
|
|
background: #111111; |
|
|
|
position: absolute; |
|
|
|
transition: all 300ms; |
|
|
|
transition: transform 300ms; |
|
|
|
transform: translateX(100%); |
|
|
|
overflow-y: auto; |
|
|
|
overflow-x: hidden; |
|
|
|