前端第一周,视屏登录界面

这一周我学习了前端的技术,放上一个仿梨视频登录界面做的界面,这段时间还是学了蛮多的,而且发现前端是很需要耐心的,界面,你想做的好看的话,就需要,进行调整,有的地方,可能要条很久才能达到自己要的效果,所以这个东西,也还是要多看看.多做,多模仿

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="css/login.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
    <div class="cover">
        <div class="login-box">
            <div class="title">
                <h1>手机快捷登录</h1>
            </div>
            <!--表单输入区域-->
            <div class="login-form">
                <div class="input-group">
                    <i class="label-icon fa fa-mobile-phone fa-2x"></i>
                    <input type="text" class="input-box" placeholder="请输入手机号">
                </div>
                <!--验证滑块-->
                <div class="input-group seekbar">
                    <span>请按住滑块.拖动到右边</span>
                    <div class="thumb">&gt;&gt;</div>
                </div>
                <div class="input-group" style="margin-bottom: 5px">
                    <i class="label-icon icon-vcode fa fa-id-card"></i>
                    <input type="number" class="input-box input-vcode" placeholder="请输入验证码">
                    <span class="split"></span>
                    <a href="">获取验证码</a>
                </div>
                <span class="tips">未注册手机验证后自动登录</span>
                <button class="btn-login">登录</button>
            </div>
            <!--切换登录方式,协议,第三方登录-->
            <div class="footer">
                <div class="reg">
                    <a href="">账号登录</a>
                </div>
                <div class="lis">
                    <span>
                        登录或注册即统一梨视频
                        <a href="">「用户协议」</a><a href="">「隐私政策」</a>
                    </span>
                </div>
                <div class="unin">
                    <ul>
                        <li><a href="" class="login-wechat"><i class="fa fa-wechat"></i>&nbsp;微信登录</a></li>
                        <li><a href="" class="login-qq"><i class="fa fa-qq"></i>&nbsp;QQ登录</a></li>
                        <li><a href="" class="login-weibo"><i class="fa fa-weibo"></i>&nbsp;微博登录</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

</body>
</html>
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}
ul,
ol,
li{
    list-style: none;
}
.cover{
    height: 942px;
    background: rgba(0,0,0,0.9);
}
.login-box{
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -270px 0 0 -230px;
    width: 400px;
    height: 540px;
}
h1{
    height: 80px;
    font-weight: 500;
    font-size: 2.5em;
    color: #eee;
}
.input-group{
    position: relative;
    margin: 0 0 20px;
    padding: 0 10px;
    width: 400px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius:3px ;
}
.label-icon{
    margin-top: 2px;
    height: 100%;
    line-height: 40px;
    color: #eee;
}
.input-group>*{
    float: left;
}
.input-box{
    margin-left: 10px;
    width: 350px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
}
/*滑块样式*/
.seekbar{
    position: relative;
    height: 34px;
    line-height: 34px;
    background: #999;
    border-color: #999;
    text-align: center;
    font-size: 0.8em;
    color: #666;
}
.thumb{
    position: absolute;
    left: -1px;
    top: -1px;
    float: left;
    width: 30px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    color: #999;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius:3px ;
    background: #fff;
}
.seekbar span{
    display: block;
    width: 100%;
    line-height: 32px;
    text-align: center;
}
.icon-vcode{
    position: absolute;
    top:8px;
}
.input-vcode{
    margin-left: 30px;
    width: 200px;
}
.split{
    margin: 10px 20px;
    height: 20px;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

a{
    margin-top: 10px;
    color: #ccc;
    font-size: 0.8em;
    text-decoration: none;

}
a:hover{
    color: #FDDE01;
}

.tips{
    margin-top: 30px;
    font-size: 0.8em;
    color: #999;
}
/*登录按钮样式*/
.btn-login{
    display: block;
    margin-top: 40px;
    width: 400px;
    height: 50px;
    background: #FDDE01;
    color: #222;
    font-size: 1.2em;
    letter-spacing: 5px;
    border: 1px solid #FDDE01;
    cursor: pointer;
}
.btn-login:hover{
    opacity: 0.9;
}
/*切换登录方式连接*/
.reg{
    height: 100px;
    line-height: 100px;
    text-align: center;
}
.reg>a{
    color: #FDDE01;
    font-size: 16px;
    border-bottom: 1px solid #FDDE01;
}
.reg>a:hover{
    color: #ff6700;
    border-color: #ff6700;
}
.lis{
    text-align: center;
    font-size: 0.8em;
    color: #999;
}
.lis a{
    color: #FDDE01;
}
.lis a:hover{
    color: #ff6700;
}
/*第三方登录*/
.unin{
    margin-top: 20px;
    height: 44px;
}
.unin>ul{
    display: flex;
}
.unin>ul li{
    flex: 1;
    float: left;
    width: 120px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #FDDE01;
}
.unin>ul li:not(:last-child){
    margin-right: 10px;
}
.unin a{
    display: block;
    margin-top: 0;
    height: 100%;
    color: #fff;
}
.login-wechat{
    background: #31b658;

}
.login-qq{
    background: #5892d9;

}
.login-weibo{
    background: #dd3f3f;
}
.unin i{
    font-size: 1.2em !important;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值