Skip to content

Commit

Permalink
Update css button and input in index page
Browse files Browse the repository at this point in the history
  • Loading branch information
TheeDouglasAM3 committed Jan 27, 2021
1 parent 7a180fa commit e9d8204
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ const GlobalStyle = createGlobalStyle`
display: flex;
flex-direction: column;
}
::placeholder {
color: ${({ theme }) => theme.colors.contrastText};
opacity: 1; /* Firefox */
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: ${({ theme }) => theme.colors.contrastText};
}
::-ms-input-placeholder { /* Microsoft Edge */
color: ${({ theme }) => theme.colors.contrastText};
}
`

const { theme } = db
Expand Down
41 changes: 40 additions & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,51 @@ import GitHubCorner from '../src/components/GitHubCorner'
export const QuizContainer = styled.div`
width: 100%;
max-width: 350px;
padding-top: 45px;
padding-top: 15px;
margin: auto 10%;
@media screen and (max-width: 500px) {
margin: auto;
padding-top: 15px;
}
form {
display: flex;
align-items: center;
flex-direction: column;
}
form > input {
color: ${db.theme.colors.contrastText};
border: 1px solid ${db.theme.colors.contrastText};
border-radius: 3.5px;
background: none;
width: 100%;
padding: 10px 0px 10px 10px;
margin-bottom: 10px;
font-family: Lato;
}
form > button {
background: ${db.theme.colors.primary};
color: ${db.theme.colors.contrastText};
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.12), 0px 2px 2px rgba(0, 0, 0, 0.24);
border-radius: 4px;
width: 100%;
padding: 10px 0px 10px 0px;
font-family: Lato;
text-transform: uppercase;
cursor: pointer;
font-weight: 400;
}
form > button:hover {
background: ${db.theme.colors.primary}DD;
}
form > button:disabled{
background: ${db.theme.colors.mainBg};
cursor: not-allowed;
}
`

export default function Home() {
Expand Down

2 comments on commit e9d8204

@vercel
Copy link

@vercel vercel bot commented on e9d8204 Jan 27, 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-git-master.theedouglasam.vercel.app
pato-quiz.vercel.app

@vercel
Copy link

@vercel vercel bot commented on e9d8204 Jan 27, 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.