Uniapp编写炫酷登陆

<body>

    <div class="ring">

        <i style="--clr:#ffd500;"></i>

        <i style="--clr:#ff0057;"></i>

        <i style="--clr:#084ee3;"></i>

        <div class="login">

            <h2>用户登录系统</h2>

            <div class="inputBx">

                <input type="text" placeholder="用户名">

            </div>

            <div class="inputBx">

                <input type="password" placeholder="密码">

            </div>

            <div class="inputBx">

                <input type="submit" value="登录">

            </div>

            <div class="links">

                <a href="#">记住密码</a>

                <a href="#">忘记密码</a>

            </div>

</body>

<style>

    * {

        margin: 0;

        padding: 0;

        box-sizing: border-box;

        font-family: "Quicksand", sans-serif;

    }

    body {

        display: flex;

        justify-content: center;

        align-items: center;

        min-height: 100vh;

        background-image: url("https://img.zcool.cn/community/018f1655a384bc6ac72539e3b11741.png@1280w_1l_2o_100sh.png");

        /* background: #9084848e; */

        background-repeat: no-repeat;

        background-size: cover;

        width: 100%;

        overflow: hidden;

    }

    .ring {

        position: relative;

        width: 500px;

        height: 500px;

        display: flex;

        justify-content: center;

        align-items: center;

    }

    .ring i {

        position: absolute;

        inset: 0;

        border: 2px solid #fff;

        transition: 0.5s;

    }

    .ring i:nth-child(1) {

        border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;

        animation: animate 6s linear infinite;

    }

    .ring i:nth-child(2) {

        border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;

        animation: animate 4s linear infinite;

    }

    .ring i:nth-child(3) {

        border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;

        animation: animate2 10s linear infinite;

    }

    .ring:hover i {

        border: 6px solid var(--clr);

        filter: drop-shadow(0 0 20px var(--clr));

    }

    @keyframes animate {

        0% {

            transform: rotate(0deg);

        }

        100% {

            transform: rotate(360deg);

        }

    }

    @keyframes animate2 {

        0% {

            transform: rotate(360deg);

        }

        100% {

            transform: rotate(0deg);

        }

    }

    .login {

        position: absolute;

        width: 300px;

        height: 100;

        display: flex;

        justify-content: center;

        align-items: center;

        flex-direction: column;

        gap: 20px;

    }

    .login h2 {

        font-size: 2em;

        color: #fff;

    }

    .login .inputBx {

        position: relative;

        width: 100%;

    }

    .login .inputBx input {

        position: relative;

        width: 100%;

        padding: 12px 20px;

        background: transparent;

        border: 2px solid #fff;

        border-radius: 40px;

        font-size: 1.2em;

        color: #fff;

        box-shadow: none;

        outline: none;

    }

    .login .inputBx input[type="submit"] {

        width: 100%;

        background: #0078ff;

        background: linear-gradient(45deg, #ff357a, #fff172);

        border: none;

        cursor: pointer;

    }

    .login .inputBx input::placeholder {

        color: rgba(255, 255, 255, 0.75);

    }

    .login .links {

        position: relative;

        width: 100%;

        display: flex;

        align-items: center;

        justify-content: space-between;

        padding: 0 20px;

    }

    .login .links a {

        color: #fff;

        text-decoration: none;

    }

</style>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值