Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login and sign in page design in html and css #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Elecktra/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST' : '127.0.0.1',
'USER': '',
'PASSWORD': '',
'USER': 'root',
'PASSWORD': 'root',
'NAME': 'elecktra',
}
}
Expand Down
Binary file added Login-and-sign-in/Elektra_Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions Login-and-sign-in/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/64d58efce2.js"crossorigin="anonymous"></script>
<title>Login</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="account-page">
<div class="container">
<div class="form-container">
<!--Image-->
<div class="img">
<img src="Elektra_Logo.png" width="30%">
</div>
<!--Login Label-->
<div class="form-btn">
<label>Login</label>
</div>

<!--Form Layout-->
<form>
<input type="text" placeholder="Username">
<input type="password" placeholder="password">
<a href="#">Forgot password</a>
<!--Login Button-->
<button type="submit" class="btn">Login</button>

<p class="social-text">Or Sign in with social platforms</p>

<!--Social Media Icon-->
<div class="social-media">
<a href="#" class="social-icon">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="social-icon">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="social-icon">
<i class="fab fa-google"></i>
</a>
<a href="#" class="social-icon">
<i class="fab fa-linkedin-in"></i>
</a>
</div>
</form>
</div>
</div>
</div>
</body>
</html>
54 changes: 54 additions & 0 deletions Login-and-sign-in/sign-in.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/64d58efce2.js"crossorigin="anonymous"></script>
<title>Sign in</title>
<link rel="stylesheet" type="text/css" href="signin-style.css">
</head>
<body>
<div class="account-page">
<div class="container">
<div class="form-container">
<div class="img">
<img src="Elektra_Logo.png" width="20%">
</div>
<!--Sign in Label-->
<div class="form-btn">
<label>Sign in</label>
</div>

<form>
<input type="email" placeholder="Email">
<input type="text" placeholder="Username">
<input type="password" placeholder="password">
<a href="#">Help</a>
<!--Sign up Button-->
<button type="submit" class="btn">Sign in</button>


<p class="social-text">Or Sign in with social platforms</p>

<!--Social Media Icon-->
<div class="social-media">
<a href="#" class="social-icon">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="social-icon">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="social-icon">
<i class="fab fa-google"></i>
</a>
<a href="#" class="social-icon">
<i class="fab fa-linkedin-in"></i>
</a>
</div>
</form>
</div>
</div>
</div>
</body>
</html>
120 changes: 120 additions & 0 deletions Login-and-sign-in/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}

body{
font-family: 'Poppins', sans-serif;
overflow: hidden;
background: radial-gradient(#fff, #3486ed)
}

.account-page{
padding: 40px 0;
margin: auto;
}

/* decoration of form layout */
.form-container{
background: #fff;
width: 300px;
height: 350px;
position: relative;
text-align: center;
padding: 20px 0;
margin: auto;
box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.5);
overflow: hidden;
}

/* decoration of label i.e Login */
.form-container label{
font-weight: bold;
padding: 0, 10;
color: #555;
cursor: pointer;
width: 100px;
display: inline-block;
}

.form-btn{
display: inline-block;
}

.form-container form{
max-width: 300px;
padding: 0 20px;
position: absolute;
top: 100px;
transition: transform 1s;
}

/* decoration of text contents i.e username, password */
form input{
width: 100%;
height: 30px;
margin-top: 10px;
padding: 0 10px;
border: 1px solid #ccc;
}

/* Highligting a tag i.e forgot password */
a{
display: block;
text-align: left;
margin-top: 10px;
text-decoration: none;
color: #999;
font-size: 0.9rem;
transition: .3s;
}

a:hover{
color: #3486ed;
}

/* Login button */
form .btn{
width: 100%;
border: none;
cursor: pointer;
margin: 20px 0;
}

.btn{
width: 100%;
height: 30px;
background-color: #3486ed;
border-radius: 50px;
color: #fff;
}

form .btn:focus{
outline: none;
}

/* Social Media Icons */
.social-media {
display: flex;
justify-content: center;
margin-top: 10px;
}

.social-icon {
height: 30px;
width: 30px;
display: flex;
justify-content: center;
align-items: center;
margin: 0 0.45rem;
color: #333;
border-radius: 50%;
border: 1px solid #333;
text-decoration: none;
font-size: 1.1rem;
transition: 0.3s;
}



125 changes: 125 additions & 0 deletions Login-and-sign-in/style1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}

body{
font-family: 'Poppins', sans-serif;
overflow: hidden;
background: radial-gradient(#fff, #3486ed)
}

.account-page{
padding: 40px 0;
margin: auto;
}

.form-container{
background: #fff;
width: 300px;
height: 350px;
position: relative;
text-align: center;
padding: 20px 0;
margin: auto;
box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.5);
overflow: hidden;
}

.form-container label{
font-weight: bold;
padding: 0, 10;
color: #555;
cursor: pointer;
width: 100px;
display: inline-block;
}

.form-btn{
display: inline-block;
}

/* Form Layout */
.form-container form{
max-width: 300px;
padding: 0 20px;
position: absolute;
top: 75px;
transition: transform 1s;
}

/* Decoration of form input i.e username, password */
form input{
width: 100%;
height: 30px;
margin-top: 7px;
padding: 0 10px;
border: 1px solid #ccc;
}

/* Decoration of Help */
a{
display: block;
text-align: left;
margin-top: 10px;
text-decoration: none;
color: #999;
font-size: 0.9rem;
transition: .3s;
}

a:hover{
color: #3486ed;
}

/* Sign in button */
form .btn{
width: 100%;
border: none;
cursor: pointer;
margin: 20px 0;
}

.btn{
width: 100%;
height: 30px;
background-color: #3486ed;
border-radius: 50px;
color: #fff;
}

form .btn:focus{
outline: none;
}

/* Social Media text */
.social-text{
margin-top: 1px;
padding-top: 10px 0;
}

/* Social Media Icons */
.social-media {
display: flex;
justify-content: center;
margin-top: 5px;
}

.social-icon {
height: 30px;
width: 30px;
display: flex;
justify-content: center;
align-items: center;
margin: 0 0.45rem;
color: #333;
border-radius: 50%;
border: 1px solid #333;
text-decoration: none;
font-size: 1.1rem;
transition: 0.3s;
}