Skip to content

Instantly share code, notes, and snippets.

@koolkishan
Last active June 7, 2022 10:07
Show Gist options
  • Save koolkishan/7731b36bc3b1447c43a303355570c920 to your computer and use it in GitHub Desktop.
Save koolkishan/7731b36bc3b1447c43a303355570c920 to your computer and use it in GitHub Desktop.
React Firebase Auth Styled Components styles
// Login / Signup Component
const Section = styled.section`
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
h1 {
margin: 0;
}
.container {
height: 50vh;
width: 25vw;
background-color: #2c384a;
border-radius: 1rem;
color: white;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 1rem;
input {
background-color: #5c5f63a3;
border: none;
font-size: 1.2rem;
padding: 1rem;
border-radius: 0.3rem;
color: white;
&:focus {
outline: 1px solid;
outline-color: #f57c00;
-moz-outline-radius: 0.3rem;
}
}
.button {
display: flex;
flex-direction: column;
gap: 1rem;
a {
color: #039be5;
text-decoration: none;
}
button {
background-color: #f57c00;
border: none;
color: white;
padding: 0.5rem 2rem;
border-radius: 0.3rem;
font-size: 1.2rem;
cursor: pointer;
transition: 0.3s ease-in-out;
text-transform: uppercase;
&:hover {
background-color: #ffa000;
}
}
}
}
`;
// User Component
const Section = styled.section`
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
.container {
height: 50vh;
width: 40vw;
background-color: #2c384a;
border-radius: 1rem;
color: white;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
h1 {
font-size: 2rem;
vertical-align: middle;
}
button {
background-color: #f57c00;
border: none;
color: white;
padding: 1rem 2rem;
border-radius: 0.3rem;
font-size: 1.4rem;
cursor: pointer;
transition: 0.3s ease-in-out;
&:hover {
background-color: #ffa000;
}
}
}
`;
// Index.css
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
background: #fdc830; /* fallback for old browsers */
background: -webkit-linear-gradient(
to right,
#f37335,
#fdc830
); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(
to right,
#f37335,
#fdc830
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment