Flat UI Login

Developer
Size
3,358 Kb
Views
30,360

How do I make an flat ui login?

Just a random Login Page designed with Flat UI in mind. Thank you @chriscoyier for the css arrow inspiration and wisdom. Really appreciate it.. What is a flat ui login? How do you make a flat ui login? This script and codes were developed by Saysora on 26 August 2022, Friday.

Flat UI Login Previews

Flat UI Login - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flat UI Login</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="wrap"> <div id="regbar"> <div id="navthing"> <h2><a href="#" id="loginform">Login</a> | <a href="#">Register</a></h2> <div class="login"> <div class="arrow-up"></div> <div class="formholder"> <div class="randompad"> <fieldset> <label name="email">Email</label> <input type="email" value="[email protected]" /> <label name="password">Password</label> <input type="password" /> <input type="submit" value="Login" /> </fieldset> </div> </div> </div> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Flat UI Login - Script Codes CSS Codes

* { margin: 0; padding: 0;
}
body { margin: 0; padding: 0; font-family: Sans-serif; background: #2c3e50;
}
#wrap { margin: 0 auto 30px;
}
#regbar { height: 67px; background: #34495e;
}
#navthing { margin-left: 50px;
}
h2 { padding: 20px; color: #ecf0f1;
}
fieldset { border: none;
}
.login { position: relative; width: 350px; display: none;
}
.arrow-up { width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 15px solid #ECF0F1; left: 10%; position: absolute; top: -10px;
}
.formholder { background: #ecf0f1; width: 350px; border-radius: 5px; padding-top: 5px;
}
.formholder input[type="email"], .formholder input[type="password"] { padding: 7px 5px; margin: 10px 0; width: 96%; display: block; font-size: 18px; border-radius: 5px; border: none; -webkit-transition: 0.3s linear; -moz-transition: 0.3s linear; -o-transition: 0.3s linear; transition: 0.3s linear;
}
.formholder input[type="email"]:focus, .formholder input[type="password"]:focus { outline: none; box-shadow: 0 0 1px 1px #1abc9c;
}
.formholder input[type="submit"] { background: #1abc9c; padding: 10px; font-size: 20px; display: block; width: 100%; border: none; color: #fff; border-radius: 5px;
}
.formholder input[type="submit"]:hover { background: #1bc6a4;
}
.randompad { padding: 10px;
}
.green { color: #1abc9c;
}
a { color: #ecf0f1; text-decoration: none;
}
a:hover { color: #1abc9c;
}

Flat UI Login - Script Codes JS Codes

$('input[type="submit"]').mousedown(function(){ $(this).css('background', '#2ecc71');
});
$('input[type="submit"]').mouseup(function(){ $(this).css('background', '#1abc9c');
});
$('#loginform').click(function(){ $('.login').fadeToggle('slow'); $(this).toggleClass('green');
});
$(document).mouseup(function (e)
{ var container = $(".login"); if (!container.is(e.target) // if the target of the click isn't the container... && container.has(e.target).length === 0) // ... nor a descendant of the container { container.hide(); $('#loginform').removeClass('green'); }
});
Flat UI Login - Script Codes
Flat UI Login - Script Codes
Home Page Home
Developer Saysora
Username azureknight
Uploaded August 26, 2022
Rating 3.5
Size 3,358 Kb
Views 30,360
Do you need developer help for Flat UI Login?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Saysora (azureknight) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!