vue+vuelidate实现的登录表单输入验证效果代码

代码语言:html

所属分类:验证

代码描述:vue+vuelidate实现的登录表单输入验证效果代码

代码标签: vue vuelidate 验证 表单 登录

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700" rel="stylesheet">




    <style>
        body {
          background-color: #dcdcf0;
        }
        
        #app {
          width: 800px;
          height: 550px;
          background-color: white;
          margin: 80px auto;
          display: flex;
          font-family: "Montserrat";
          box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2), 0px 16px 32px rgba(0, 0, 0, 0.1);
        }
        #app .right {
          background-color: #005DFF;
          width: 35%;
          color: white;
          display: flex;
          justify-content: center;
          align-items: center;
          flex-direction: column;
          padding: 40px;
        }
        #app .right .quotes__title {
          font-weight: bold;
          font-size: 24px;
          margin-bottom: 16px;
        }
        #app .right .quotes__desc {
          font-size: 14px;
          text-align: center;
          line-height: 1.65;
        }
        #app .left {
          width: 65%;
          background-color: #fff;
          display: flex;
          align-items: center;
          flex-direction: column;
          padding-top: 64px;
        }
        #app .left .form__title {
          font-weight: bold;
          font-size: 32px;
          margin-bottom: 32px;
        }
        #app .left .form__group {
          margin-bottom: 16px;
          width: 250px;
        }
        #app .left .form__group label {
          font-size: 12px;
          display: block;
          margin-bottom: 8px;
          font-weight: 500;
        }
        #app .left .form__group input {
          padding: 10px 12px;
          border: 1px solid #dcdcf0;
          border-radius: 6px;
          outline: none;
          width: 100%;
          font-family: "Montserrat";
          transition: border 0.3s ease;
          margin-bottom: 4px;
        }
        #app .left .form__group input:focus {
          border: 1px solid #005DFF;
        }
        #app .left .form__group span {
          color: red;
          font-size: 12px;
          font-weight: 500;
        }
        
        button {
          background-color: #005DFF;
          color: white;
          border-radius: 20px;
          border: none;
          cursor: pointer;
          height: auto;
          margin-bottom: 32px;
          margin-top: 32px;
          min-width: 110px;
          outline: none;
          padding: 12px 24px;
          width: 240px;
          transition: all 0.3s ease-in-out;
          font-size: 14px;
          font-weight: 500;
          font-family: "Montserrat";
        }
        button:hover {
          background-color: #003899;
        }
    </style>



</head>

<body>
    <div id="app">
        <div class="right">
            <div class="quotes__title">
                Get in Touch
            </div>
            <div class="quotes__desc">
                if you have any questions regarding our services or want to tell us about your business or startup ideas, this is the place..........完整代码请登录后点击上方下载按钮下载查看

网友评论0