Skip to content

Commit

Permalink
Merge pull request #35 from Priyanshu-su30/login-signup
Browse files Browse the repository at this point in the history
Login and signup pages are workin
  • Loading branch information
vigneshs-dev authored Oct 12, 2024
2 parents c225b02 + bd95e8a commit 75b57cf
Show file tree
Hide file tree
Showing 6 changed files with 409 additions and 38 deletions.
Binary file modified src/db/votes.db
Binary file not shown.
160 changes: 160 additions & 0 deletions src/static/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'poppins',sans-serif;
}

body {
background-image: url(https://user-images.githubusercontent.com/13468728/233847739-219cb494-c265-4554-820a-bd3424c59065.jpg);
background-repeat: no-repeat;
background-position: center;
min-height: 100vh;
background-size: cover;
}

section {
margin-left: 40%;
margin-top: 6vw;
max-width: 400px;
background-color: transparent;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 20px;
backdrop-filter: blur(55px);
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 3rem;
}

h1 {
font-size: 2rem;
color: #fff;
text-align: center;
}

.inputbox {
position: relative;
margin: 30px 0;
max-width: 310px;
border-bottom: 2px solid #fff;
}

.inputbox label {
position: absolute;
top: 50%;
left: 5px;
transform: translateY(-50%);
color: #fff;
font-size: 1rem;
pointer-events: none;
transition: all 0.5s ease-in-out;
}

input:focus ~ label,
input:valid ~ label {
top: -5px;
}

.inputbox input {
width: 100%;
height: 60px;
background: transparent;
border: none;
outline: none;
font-size: 1rem;
padding: 0 35px 0 5px;
color: #fff;
}

.inputbox ion-icon {
position: absolute;
right: 8px;
color: #fff;
font-size: 1.2rem;
top: 20px;
}

button {
width: 100%;
height: 40px;
border-radius: 40px;
background-color: rgb(255, 255,255, 1);
border: none;
outline: none;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: all 0.4s ease;
}

button:hover {
background-color: rgb(255, 255,255, 0.5);
}

.register {
font-size: 0.9rem;
color: #fff;
text-align: center;
margin: 25px 0 10px;
}

.register p a {
text-decoration: none;
color: #fff;
font-weight: 600;
}

.register p a:hover {
text-decoration: underline;
}


*,
*:before,
*:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #fff;
}
#header {
top: 0;
background: #1e262d;
width: 100%;
position: relative;
border-radius: 0px 0px 40px 40px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 0px 20px 0 rgba(0, 0, 0, 0.19);
}
#header:after {
content: "";
clear: both;
display: block;
}
.logo {
padding: 26px 0 26px;
}
.logo a {
font-size: 28px;
display: block;
padding: 0 0 0 20px;
}
#header nav a {
color: #fff;
padding: 8px;
}
#header nav a:hover {
background: #fff;
color: #333;
border-radius: 3px;
}
a:hover {
text-decoration: underline;
}
160 changes: 160 additions & 0 deletions src/static/register.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'poppins',sans-serif;
}

body {
background-image: url(https://user-images.githubusercontent.com/13468728/233847739-219cb494-c265-4554-820a-bd3424c59065.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
min-height: 100vh;
}

section {
position: relative;
max-width: 400px;
background-color: transparent;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 20px;
backdrop-filter: blur(55px);
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 3rem;
}

h1 {
font-size: 2rem;
color: #fff;
text-align: center;
}

.inputbox {
position: relative;
margin: 30px 0;
max-width: 310px;
border-bottom: 2px solid #fff;
}

.inputbox label {
position: absolute;
top: 50%;
left: 5px;
transform: translateY(-50%);
color: #fff;
font-size: 1rem;
pointer-events: none;
transition: all 0.5s ease-in-out;
}

input:focus ~ label,
input:valid ~ label {
top: -5px;
}

.inputbox input {
width: 100%;
height: 60px;
background: transparent;
border: none;
outline: none;
font-size: 1rem;
padding: 0 35px 0 5px;
color: #fff;
}

.inputbox ion-icon {
position: absolute;
right: 8px;
color: #fff;
font-size: 1.2rem;
top: 20px;
}


button {
width: 100%;
height: 40px;
border-radius: 40px;
background-color: rgb(255, 255,255, 1);
border: none;
outline: none;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: all 0.4s ease;
}

button:hover {
background-color: rgb(255, 255,255, 0.5);
}

.register {
font-size: 0.9rem;
color: #fff;
text-align: center;
margin: 25px 0 10px;
}

.register p a {
text-decoration: none;
color: #fff;
font-weight: 600;
}

.register p a:hover {
text-decoration: none;
}


*,
*:before,
*:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #fff;
}
#header {
top: 0;
background: #1e262d;
width: 100%;
position: relative;
border-radius: 0px 0px 40px 40px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 0px 20px 0 rgba(0, 0, 0, 0.19);
}
#header:after {
content: "";
clear: both;
display: block;
}
.logo {
padding: 26px 0 26px;
}
.logo a {
font-size: 28px;
display: block;
padding: 0 0 0 20px;
}
#header nav a {
color: #fff;
padding: 8px;
}
#header nav a:hover {
background: #fff;
color: #333;
border-radius: 3px;
}
a:hover {
text-decoration: none;
}
26 changes: 24 additions & 2 deletions src/static/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* General styles */
General styles
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
Expand All @@ -10,14 +10,36 @@ h1 {
text-align: center;
color: #333;
}

/*
.container {
max-width: 600px;
margin: 50px auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */
#header {
background: #1e262d;
top: 0;
width: 100%;
position: relative;
border-radius: 0px 0px 40px 40px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 0px 20px 0 rgba(0, 0, 0, 0.19);
}
#header:after {
content: "";
clear: both;
display: block;
}
.logo {
float: left;
padding: 26px 0 26px;
}
.logo a {
font-size: 28px;
display: block;
padding: 0 0 0 20px;
}

/* Form styles */
Expand Down
Loading

0 comments on commit 75b57cf

Please sign in to comment.