Skip to content

Instantly share code, notes, and snippets.

@willianjusten
Created May 6, 2020 04:24
Show Gist options
  • Save willianjusten/160d44e56301608d7886546cc8b5681e to your computer and use it in GitHub Desktop.
Save willianjusten/160d44e56301608d7886546cc8b5681e to your computer and use it in GitHub Desktop.
Patch to fix
diff --git a/anabneriblog/src/components/Layout/Index.js b/anabneriblog/src/components/Layout/Index.js
deleted file mode 100644
index 68faa4a..0000000
--- a/anabneriblog/src/components/Layout/Index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from "react"
-import PropTypes from "prop-types"
-import Sidebar from "../Sidebar"
-import MenuBar from "../MenuBar"
-
-import * as S from "./styled"
-import GlobalStyles from '../../styles/global'
-
-const Layout = ({ children }) => {
- return (
- <S.LayoutWrapper>
- <GlobalStyles />
- <Sidebar />
- <S.LayoutMain>{children}</S.LayoutMain>
- <MenuBar />
- </S.LayoutWrapper>
-
- )
-}
-
-Layout.propTypes = {
- children: PropTypes.node.isRequired,
-}
-
-export default Layout
diff --git a/anabneriblog/src/components/PostItem/index.js b/anabneriblog/src/components/PostItem/index.js
index 667c312..4901f1d 100644
--- a/anabneriblog/src/components/PostItem/index.js
+++ b/anabneriblog/src/components/PostItem/index.js
@@ -1,16 +1,22 @@
-import React from 'react'
+import React from "react"
-import * as S from './styled'
+import * as S from "./styled"
const PostItem = () => (
- <S.PostItemLink to="/slug/">
- <S.PostItemWrapper>
- <S.PostItemTag>Teste</S.PostItemTag>
- <S.PostItemInfo>30 de julho de 2020 - 300 min de leitura</S.PostItemInfo>
- <S.PostItemTitle>Teste ao teste, tentando o teste</S.PostItemTitle>
- <S.PostItemDescription>testenao 12332dahsndjsadbsldbasdlasbdjwdb</S.PostItemDescription>
- </S.PostItemWrapper>
- </S.PostItemLink>
+ <S.PostItemLink to="/slug/">
+ <S.PostItemWrapper>
+ <S.PostItemTag>Teste</S.PostItemTag>
+ <S.PostItemInfo>
+ <S.PostItemDate>
+ 30 de julho de 2020 - 300 min de leitura
+ </S.PostItemDate>
+ <S.PostItemTitle>Teste ao teste, tentando o teste</S.PostItemTitle>
+ <S.PostItemDescription>
+ testenao 12332dahsndjsadbsldbasdlasbdjwdb
+ </S.PostItemDescription>
+ </S.PostItemInfo>
+ </S.PostItemWrapper>
+ </S.PostItemLink>
)
-export default PostItem
\ No newline at end of file
+export default PostItem
diff --git a/anabneriblog/src/styles/global.js b/anabneriblog/src/styles/global.js
index f5515df..f00bec0 100644
--- a/anabneriblog/src/styles/global.js
+++ b/anabneriblog/src/styles/global.js
@@ -1,67 +1,66 @@
-import { createGlobalStyle } from 'styled-components'
-
+import { createGlobalStyle } from "styled-components"
const GlobalStyles = createGlobalStyle`
-/* http://meyerweb.com/eric/tools/css/reset/
-v2.0 | 20110126
-License: none (public domain)
-*/
-
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-b, u, i, center,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td,
-article, aside, canvas, details, embed,
-figure, figcaption, footer, header, hgroup,
-menu, nav, output, ruby, section, summary,
-time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
-}
-/* HTML5 display-role reset for older browsers */
-article, aside, details, figcaption, figure,
-footer, header, hgroup, menu, nav, section {
- display: block;
-}
-body {
- line-height: 1;
-}
-ol, ul {
- list-style: none;
-}
-blockquote, q {
- quotes: none;
-}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: '';
- content: none;
-}
-table {
- border-collapse: collapse;
- border-spacing: 0;
-
- body {
- background: #243447.
- line-height: 1;
- font-size: 100%;
- font-family: -apple-system, BlinkMacSystemFont, "Sergoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
- }
- img {
- display:block;
- width: 100%;
- height: auto;
- }
-
- `
-
- export default GlobalStyles
\ No newline at end of file
+ /* http://meyerweb.com/eric/tools/css/reset/
+ v2.0 | 20110126
+ License: none (public domain)
+ */
+ html, body, div, span, applet, object, iframe,
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+ a, abbr, acronym, address, big, cite, code,
+ del, dfn, em, img, ins, kbd, q, s, samp,
+ small, strike, strong, sub, sup, tt, var,
+ b, u, i, center,
+ dl, dt, dd, ol, ul, li,
+ fieldset, form, label, legend,
+ table, caption, tbody, tfoot, thead, tr, th, td,
+ article, aside, canvas, details, embed,
+ figure, figcaption, footer, header, hgroup,
+ menu, nav, output, ruby, section, summary,
+ time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+ }
+ /* HTML5 display-role reset for older browsers */
+ article, aside, details, figcaption, figure,
+ footer, header, hgroup, menu, nav, section {
+ display: block;
+ }
+ body {
+ line-height: 1;
+ }
+ ol, ul {
+ list-style: none;
+ }
+ blockquote, q {
+ quotes: none;
+ }
+ blockquote:before, blockquote:after,
+ q:before, q:after {
+ content: '';
+ content: none;
+ }
+ table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ }
+ * {
+ box-sizing: border-box;
+ }
+ body {
+ background: #243447;
+ line-height: 1;
+ font-size: 100%;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+ }
+ img {
+ display: block;
+ width: 100%;
+ height: auto;
+ }
+`
+export default GlobalStyles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment