Skip to content

Instantly share code, notes, and snippets.

@koolkishan
Created March 8, 2022 17:54
Show Gist options
  • Save koolkishan/efb218e1fea6b76e0d7fe8365aa617dc to your computer and use it in GitHub Desktop.
Save koolkishan/efb218e1fea6b76e0d7fe8365aa617dc to your computer and use it in GitHub Desktop.
Index CSS Code for JWT login with react and nodejs
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(236, 236, 238);
overflow: hidden;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.container {
background-color: white;
padding: 1rem 3rem;
padding-bottom: 2rem;
border-radius: 0.5rem;
border-top: rgb(80, 98, 255) 0.5rem solid;
}
h2 {
margin: 1rem 0;
}
form {
display: flex;
flex-direction: column;
gap: 1.4rem;
}
form div {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
input {
padding: 0.5rem;
border-radius: 0.3rem;
border: 1px solid gray;
font-size: 1.1rem;
}
button {
background-color: rgb(80, 98, 255);
color: white;
border: none;
padding: 0.5rem;
font-size: 1rem;
text-transform: uppercase;
cursor: pointer;
border-radius: 0.3rem;
}
span a {
text-decoration: none;
color: rgb(80, 98, 255);
}
.private {
height: 100vh;
width: 100vw;
background-color: rgb(80, 98, 255);
color: white;
display: flex;
justify-content: center;
align-items: center;
text-transform: uppercase;
font-size: 3rem;
flex-direction: column;
gap: 1rem;
}
.private button {
background-color: black;
padding: 2rem 10rem;
font-size: 4rem;
border-radius: 2rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment