登录注册页面(有源码,十分的银杏哦)

2024-01-18 04:36

本文主要是介绍登录注册页面(有源码,十分的银杏哦),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

特色:

一个页面,两个功能,动态展示,简约大气。

话不多说,看展示。


 还在等什么,赶快抄起来吧:https://download.csdn.net/download/liyankang/88754646

没有积分的小伙伴,原代码我放在下面哦,快快白嫖起来吧。

HTML文件

<!DOCTYPE html>
<html><head><meta charset="utf-8" /><link rel="stylesheet" type="text/css" href="index.css"><!-- 确保你已经加载了jQuery库,因为你的代码依赖于它 --><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><title></title></head><body><div class="container"><div class="welcome"><div class="pinkbox"><div class="signup nodisplay"><h1>register</h1><form autocomplete="off"><input type="text" placeholder="username"><input type="email" placeholder="email"><input type="password" placeholder="password"><input type="password" placeholder="confirm password"><button class="button submit">create account </button></form></div><div class="signin"><h1>sign in</h1><form class="more-padding" autocomplete="off"><input type="text" placeholder="username"><input type="password" placeholder="password"><div class="checkbox"><input type="checkbox" id="remember" /><label for="remember">remember me</label></div><button class="button submit">login</button></form></div></div><div class="leftbox"><h2 class="title"><span>BLOOM</span>&<br>BOUQUET</h2><p class="desc">pick your perfect <span>bouquet</span></p><img class="flower smaller" src="https://image.ibb.co/d5X6pn/1357d638624297b.jpg" alt="1357d638624297b"border="0"><p class="account">have an account?</p><button class="button" id="signin">login</button></div><div class="rightbox"><h2 class="title"><span>BLOOM</span>&<br>BOUQUET</h2><p class="desc"> pick your perfect <span>bouquet</span></p><img class="flower" src="https://preview.ibb.co/jvu2Un/0057c1c1bab51a0.jpg" /><p class="account">don't have an account?</p><button class="button" id="signup">sign up</button></div></div></div></div></body>
</html>
<script src="index.js"></script>

CSS文件

@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400|Lora");body {background: #CBC0D3;
}/* div box styling */
.container {margin: auto;width: 650px;height: 550px;position: relative;
}.welcome {background: #f6f6f6;width: 650px;height: 415px;position: absolute;top: 25%;border-radius: 5px;box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
}.pinkbox {position: absolute;top: -10%;left: 5%;background: #EAC7CC;width: 320px;height: 500px;border-radius: 5px;box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);transition: all 0.5s ease-in-out;z-index: 2;
}.nodisplay {display: none;transition: all 0.5s ease;
}.leftbox,
.rightbox {position: absolute;width: 50%;transition: 1s all ease;
}.leftbox {left: -2%;
}.rightbox {right: -2%;
}/* font & button styling */
h1 {font-family: "Open Sans", sans-serif;text-align: center;margin-top: 95px;text-transform: uppercase;color: #f6f6f6;font-size: 2em;letter-spacing: 8px;
}.title {font-family: "Lora", serif;color: #8E9AAF;font-size: 1.8em;line-height: 1.1em;letter-spacing: 3px;text-align: center;font-weight: 300;margin-top: 20%;
}.desc {margin-top: -8px;
}.account {margin-top: 45%;font-size: 10px;
}p {font-family: "Open Sans", sans-serif;font-size: 0.7em;letter-spacing: 2px;color: #8E9AAF;text-align: center;
}span {color: #EAC7CC;
}.flower {position: absolute;width: 120px;height: 120px;top: 46%;left: 29%;opacity: 0.7;
}.smaller {width: 90px;height: 100px;top: 48%;left: 38%;opacity: 0.9;
}button {padding: 12px;font-family: "Open Sans", sans-serif;text-transform: uppercase;letter-spacing: 3px;font-size: 11px;border-radius: 10px;margin: auto;outline: none;display: block;
}button:hover {background: #EAC7CC;color: #f6f6f6;transition: background-color 1s ease-out;
}.button {margin-top: 3%;background: #f6f6f6;color: #ce7d88;border: solid 1px #EAC7CC;
}/* form styling */
form {display: flex;align-items: center;flex-direction: column;padding-top: 7px;
}.more-padding {padding-top: 35px;
}.more-padding input {padding: 12px;
}.more-padding .submit {margin-top: 45px;
}.submit {margin-top: 25px;padding: 12px;border-color: #ce7d88;
}.submit:hover {background: #CBC0D3;border-color: #bfb1c9;
}input {background: #EAC7CC;width: 65%;color: #ce7d88;border: none;border-bottom: 1px solid rgba(246, 246, 246, 0.5);padding: 9px;margin: 7px;
}input::placeholder {color: #f6f6f6;letter-spacing: 2px;font-size: 1.3em;font-weight: 100;
}input:focus {color: #ce7d88;outline: none;border-bottom: 1.2px solid rgba(206, 125, 136, 0.7);font-size: 1em;transition: 0.8s all ease;
}input:focus::placeholder {opacity: 0;
}label {font-family: "Open Sans", sans-serif;color: #ce7d88;font-size: 0.8em;letter-spacing: 1px;
}.checkbox {display: inline;white-space: nowrap;position: relative;left: -62px;top: 5px;
}input[type=checkbox] {width: 7px;background: #ce7d88;
}.checkbox input[type=checkbox]:checked+label {color: #ce7d88;transition: 0.5s all ease;
}

JS文件

$('#signup').click(function() {$('.pinkbox').css('transform', 'translateX(80%)');$('.signin').addClass('nodisplay');$('.signup').removeClass('nodisplay');
});$('#signin').click(function() {$('.pinkbox').css('transform', 'translateX(0%)');$('.signup').addClass('nodisplay');$('.signin').removeClass('nodisplay');
});

这篇关于登录注册页面(有源码,十分的银杏哦)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/618085

相关文章

springboot security验证码的登录实例

《springbootsecurity验证码的登录实例》:本文主要介绍springbootsecurity验证码的登录实例,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,... 目录前言代码示例引入依赖定义验证码生成器定义获取验证码及认证接口测试获取验证码登录总结前言在spring

Python实现无痛修改第三方库源码的方法详解

《Python实现无痛修改第三方库源码的方法详解》很多时候,我们下载的第三方库是不会有需求不满足的情况,但也有极少的情况,第三方库没有兼顾到需求,本文将介绍几个修改源码的操作,大家可以根据需求进行选择... 目录需求不符合模拟示例 1. 修改源文件2. 继承修改3. 猴子补丁4. 追踪局部变量需求不符合很

最新Spring Security实战教程之表单登录定制到处理逻辑的深度改造(最新推荐)

《最新SpringSecurity实战教程之表单登录定制到处理逻辑的深度改造(最新推荐)》本章节介绍了如何通过SpringSecurity实现从配置自定义登录页面、表单登录处理逻辑的配置,并简单模拟... 目录前言改造准备开始登录页改造自定义用户名密码登陆成功失败跳转问题自定义登出前后端分离适配方案结语前言

Spring 中 BeanFactoryPostProcessor 的作用和示例源码分析

《Spring中BeanFactoryPostProcessor的作用和示例源码分析》Spring的BeanFactoryPostProcessor是容器初始化的扩展接口,允许在Bean实例化前... 目录一、概览1. 核心定位2. 核心功能详解3. 关键特性二、Spring 内置的 BeanFactory

Spring Cloud之注册中心Nacos的使用详解

《SpringCloud之注册中心Nacos的使用详解》本文介绍SpringCloudAlibaba中的Nacos组件,对比了Nacos与Eureka的区别,展示了如何在项目中引入SpringClo... 目录Naacos服务注册/服务发现引⼊Spring Cloud Alibaba依赖引入Naco编程s依

Android WebView无法加载H5页面的常见问题和解决方法

《AndroidWebView无法加载H5页面的常见问题和解决方法》AndroidWebView是一种视图组件,使得Android应用能够显示网页内容,它基于Chromium,具备现代浏览器的许多功... 目录1. WebView 简介2. 常见问题3. 网络权限设置4. 启用 JavaScript5. D

Flutter监听当前页面可见与隐藏状态的代码详解

《Flutter监听当前页面可见与隐藏状态的代码详解》文章介绍了如何在Flutter中使用路由观察者来监听应用进入前台或后台状态以及页面的显示和隐藏,并通过代码示例讲解的非常详细,需要的朋友可以参考下... flutter 可以监听 app 进入前台还是后台状态,也可以监听当http://www.cppcn

Oracle登录时忘记用户名或密码该如何解决

《Oracle登录时忘记用户名或密码该如何解决》:本文主要介绍如何在Oracle12c中忘记用户名和密码时找回或重置用户账户信息,文中通过代码介绍的非常详细,对同样遇到这个问题的同学具有一定的参... 目录一、忘记账户:二、忘记密码:三、详细情况情况 1:1.1. 登录到数据库1.2. 查看当前用户信息1.

MySQL表锁、页面锁和行锁的作用及其优缺点对比分析

《MySQL表锁、页面锁和行锁的作用及其优缺点对比分析》MySQL中的表锁、页面锁和行锁各有特点,适用于不同的场景,表锁锁定整个表,适用于批量操作和MyISAM存储引擎,页面锁锁定数据页,适用于旧版本... 目录1. 表锁(Table Lock)2. 页面锁(Page Lock)3. 行锁(Row Lock

MobaXterm远程登录工具功能与应用小结

《MobaXterm远程登录工具功能与应用小结》MobaXterm是一款功能强大的远程终端软件,主要支持SSH登录,拥有多种远程协议,实现跨平台访问,它包括多会话管理、本地命令行执行、图形化界面集成和... 目录1. 远程终端软件概述1.1 远程终端软件的定义与用途1.2 远程终端软件的关键特性2. 支持的