Browse Source

feat(blog): make everything darker

Signed-off-by: Muthu Kumar <muthukumar@thefeathers.in>
pull/1/head
Muthu Kumar 3 years ago
parent
commit
78c3069295
Signed by: mkrhere GPG Key ID: 3FD688398897097E
  1. 14
      src/pages/blog/Home.tsx
  2. 1
      src/pages/blog/components/BlogContent.tsx

14
src/pages/blog/Home.tsx

@ -76,7 +76,7 @@ const BlogHome: React.FC = () => {
{ "article-open": isArticleOpen, "aside-closed": isAsideClosed }, { "article-open": isArticleOpen, "aside-closed": isAsideClosed },
css` css`
display: flex; display: flex;
background: #1d1d1d; background: #1a1a1a;
height: 100%; height: 100%;
width: 100vw; width: 100vw;
overflow: hidden; overflow: hidden;
@ -101,13 +101,13 @@ const BlogHome: React.FC = () => {
} }
& > aside { & > aside {
transition: all 350ms; transition: all 800ms;
} }
&:is(.aside-closed) { &:is(.aside-closed) {
aside { aside {
overflow: hidden; overflow: hidden;
transform: translateX(-500%); transform: translateX(-1000%);
min-width: 0; min-width: 0;
max-width: 0; max-width: 0;
} }
@ -126,7 +126,7 @@ const BlogHome: React.FC = () => {
min-width: 3.6rem; min-width: 3.6rem;
max-width: 3.6rem; max-width: 3.6rem;
transition: background-color 100ms; transition: background-color 100ms;
background-color: #262626; background-color: #151515;
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -134,7 +134,7 @@ const BlogHome: React.FC = () => {
z-index: 1000; z-index: 1000;
&:hover { &:hover {
background-color: #323232; background-color: #0c0c0c;
} }
`, `,
!isArticleOpen && !isArticleOpen &&
@ -199,7 +199,7 @@ const BlogHome: React.FC = () => {
transition: all 300ms; transition: all 300ms;
&:hover { &:hover {
background: #262626; background: #111111;
} }
& h3 { & h3 {
@ -242,7 +242,7 @@ const BlogHome: React.FC = () => {
key="blog-content" key="blog-content"
className={classNames( className={classNames(
css` css`
background-color: #262626; background: #111111;
position: absolute; position: absolute;
transition: all 300ms; transition: all 300ms;
transform: translateX(100%); transform: translateX(100%);

1
src/pages/blog/components/BlogContent.tsx

@ -172,6 +172,7 @@ export const BlogPost: React.FC = () => {
className={css` className={css`
max-width: 100%; max-width: 100%;
height: 100%; height: 100%;
border-radius: 0.5rem;
`} `}
src={"/blog/assets/" + article["featured-img"]} src={"/blog/assets/" + article["featured-img"]}
alt="Featured" alt="Featured"

Loading…
Cancel
Save