-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starting to change the blog layout and copy some classes and styles from the dracula theme, see also: #12
- Loading branch information
Showing
16 changed files
with
352 additions
and
228 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from "react"; | ||
import styles from "./styles.module.scss"; | ||
|
||
import HeaderHome from "../HeaderHome"; | ||
import HeaderPost from "../HeaderPost"; | ||
|
||
export const siteTitle = "64j0 Blog"; | ||
|
||
interface LayoutProps { | ||
home?: any; | ||
} | ||
|
||
const Layout: React.FC<LayoutProps> = ({ children, home }) => { | ||
return ( | ||
<> | ||
<div className={styles['layout-container']}> | ||
<header className={styles.header}> | ||
{home ? (<HeaderHome />) : (<HeaderPost />)} | ||
</header> | ||
|
||
<main className={styles.main}> | ||
{children} | ||
</main> | ||
|
||
<footer className={`${styles.footer} drac-text-white`}> | ||
<span> | ||
© Vinícius Gajo Marques Oliveira. All rights reserved. | ||
</span> | ||
<span> | ||
twitter-logo; github-logo; linkedin-logo; | ||
</span> | ||
</footer> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
$max-width: 72rem; | ||
|
||
.layout-container { | ||
height: 100%; | ||
width: 100%; | ||
|
||
margin: 0 auto; | ||
padding: 0; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
text-align: center; | ||
|
||
margin: 0; | ||
border-radius: 5rem 5rem 0 0; | ||
|
||
.headerImage { | ||
width: 7rem; | ||
height: 7rem; | ||
margin: 0 auto; | ||
} | ||
|
||
.headerHomeImage { | ||
width: 11rem; | ||
height: 11rem; | ||
margin: 0 auto; | ||
border: 4px solid rgba(255, 255, 255, 0.5); | ||
} | ||
|
||
.backToHome { | ||
margin: 3rem 0 0; | ||
} | ||
} | ||
|
||
.main { | ||
padding: 0.6rem 1.2rem; | ||
margin: 0 auto; | ||
max-width: $max-width; | ||
} | ||
|
||
.footer { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
margin: 5rem auto 3rem; | ||
max-width: $max-width; | ||
} | ||
|
||
@media (max-width: 34rem) { | ||
.container { | ||
margin: 0 auto; | ||
padding: 0; | ||
width: 100%; | ||
} | ||
|
||
.main { | ||
padding: 1rem 2rem; | ||
font-size: 20px; | ||
} | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.