Skip to content

Commit

Permalink
Update index.js page adding Head component
Browse files Browse the repository at this point in the history
  • Loading branch information
TheeDouglasAM3 committed Jan 26, 2021
1 parent 59bf198 commit e2b0373
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styled from 'styled-components'
import db from '../db.json'
import Head from '../src/components/Head'
import Widget from '../src/components/Widget'
import QuizLogo from '../src/components/QuizLogo'
import QuizBackground from '../src/components/QuizBackground'
Expand All @@ -20,28 +21,31 @@ export const QuizContainer = styled.div`

export default function Home() {
return (
<QuizBackground backgroundImage={db.bg}>
<QuizContainer>
<QuizLogo />
<Widget>
<Widget.Header>
<h1>{db.title}</h1>
</Widget.Header>
<Widget.Content>
<p>{db.description}</p>
</Widget.Content>
</Widget>
<>
<Head title={db.title} bg={db.bg} />
<QuizBackground backgroundImage={db.bg}>
<QuizContainer>
<QuizLogo />
<Widget>
<Widget.Header>
<h1>{db.title}</h1>
</Widget.Header>
<Widget.Content>
<p>{db.description}</p>
</Widget.Content>
</Widget>

<Widget>
<Widget.Content>
<h1>Quizes da Galera</h1>
<Widget>
<Widget.Content>
<h1>Quizes da Galera</h1>

<p>lorem ipsum dolor sit amet...</p>
</Widget.Content>
</Widget>
<Footer />
</QuizContainer>
<GitHubCorner projectUrl="https://github.com/theedouglasam3" />
</QuizBackground>
<p>lorem ipsum dolor sit amet...</p>
</Widget.Content>
</Widget>
<Footer />
</QuizContainer>
<GitHubCorner projectUrl="https://github.com/theedouglasam3" />
</QuizBackground>
</>
)
}

2 comments on commit e2b0373

@vercel
Copy link

@vercel vercel bot commented on e2b0373 Jan 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pato-quiz – ./

pato-quiz.theedouglasam.vercel.app
pato-quiz.vercel.app
pato-quiz-git-master.theedouglasam.vercel.app

@vercel
Copy link

@vercel vercel bot commented on e2b0373 Jan 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.