登录页面模板

直接复制代码 vue登录页面模板 

<template>
    <div class='login-wrap'>
        <div class='main-box'>
            <div
                :class="['container', 'container-login']"
            >
                <form>
                    <h2 class='title'>我的网页登录页面</h2>
                    <input v-model='param.username' class='form__input' placeholder='请输入用户名' type='text' />
                    <input v-model='param.password' class='form__input' placeholder='请输入密码' type='password' />
                    <div class='primary-btn' @click='submitForm()'>立即登录</div>
                </form>
            </div>
            <div :class="['switch']">
                <div class='switch__circle'></div>
                <div class='switch__circle switch__circle_top'></div>
                <div class='switch__container'>
                    123
                </div>
            </div>
        </div>
    </div>

</template>

<script>

export default {
    data: function() {
        return {
            addresss: [],
            param: {
                username: '',
                password: ''
            },
            rules: {
                username: [{ required: true, message: '请输入用户名', trigger: 'blur' }],
                password: [{ required: true, message: '请输入密码', trigger: 'blur' }]
            }
        };
    },
    mounted() {
    },
    methods: {
        submitForm() {
            
        }
    }
};
</script>

<style scoped>
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    width: 600px;
    height: 100%;
    /*background-color: #ecf0f3;*/
    transition: all 1.25s;
}

.main-box {
    /*width: 100%;*/
    /*height: 100%;*/
    /*border-radius: 20px;*/
    /*font-size: 30px;*/
    /*letter-spacing: 0.5em;*/
    /*backdrop-filter: blur(20px);*/
    /*color: #fff;*/
    /*box-shadow: 0 0 10px 5px #eee;*/
    position: relative;
    width: 1000px;
    height: 600px;
    padding: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px 5px #eee;
    /*box-shadow: 10px 10px 10px #d1d9e6, -10px -10px 10px #f9f9f9;*/
    border-radius: 12px;
    overflow: hidden;
}


form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: #a0a5a8;
}

.title {
    font-size: 34px;
    font-weight: 700;
    line-height: 3;
    color: #181818;
}

.text {
    margin-top: 30px;
    margin-bottom: 12px;
}

.form__input {
    width: 350px;
    height: 40px;
    margin: 4px 0;
    padding-left: 25px;
    font-size: 13px;
    letter-spacing: 0.15px;
    border: none;
    outline: none;
    /*background-color: #ecf0f3;*/
    transition: 0.25s ease;
    border-radius: 8px;
    box-shadow: inset 2px 2px 4px #d1d9e6, inset -2px -2px 4px #f9f9f9;
}

.container-register {
    z-index: 100;
    left: calc(100% - 600px);
}

.container-login {
    left: calc(100% - 600px);
    z-index: 0;
}

.is-txl {
    left: 0;
    transition: 1.25s;
    transform-origin: right;
}

.is-z200 {
    z-index: 200;
    transition: 1.25s;
}

.switch {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 450px;
    z-index: 200;
    transition: 1.25s;
    /*background-color: #ecf0f3;*/
    overflow: hidden;
    box-shadow: 4px 4px 10px #d1d9e6, -4px -4px 10px #f9f9f9;
    /*color: #a0a5a8;*/
}

.switch__circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    /*background-color: #ecf0f3;*/
    box-shadow: inset 8px 8px 12px #d1d9e6, inset -8px -8px 12px #f9f9f9;
    bottom: -60%;
    left: -60%;
    transition: 1.25s;
}

.switch__circle_top {
    top: -30%;
    left: 60%;
    width: 300px;
    height: 300px;
}

.switch__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    width: 400px;
    /*padding: 50px 55px;*/
    transition: 1.25s;
    color: #333333;
}

h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 3;
    color: #181818;
}

p {
    font-size: 14px;
    letter-spacing: 0.25px;
    text-align: center;
    line-height: 1.6;
}


.login {
    left: calc(100% - 400px);
}

.switch__circle {
    left: 0;
}


.primary-btn {
    width: 180px;
    height: 50px;
    border-radius: 25px;
    margin-top: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 14px;
    letter-spacing: 2px;
    background-color: #4b70e2;
    color: #f9f9f9;
    cursor: pointer;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #f9f9f9;
}


.login-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url(../assets/img/login-bg.jpg);
    background-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ms-title {
    width: 100%;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    border-bottom: 1px solid #ddd;
}

.ms-login {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 350px;
    margin: -190px 0 0 -175px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.ms-content {
    padding: 30px 30px;
}

.login-btn {
    text-align: center;
}

.login-btn button {
    width: 100%;
    height: 36px;
    margin-bottom: 10px;
}

.login-tips {
    font-size: 12px;
    line-height: 30px;
    color: #fff;
}
</style>

 

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
### 回答1: Element UI是一套基于Vue.js的组件库,提供了丰富的组件和模板供开发者使用。它的登录界面模板是其中之一。 Element UI的登录界面模板包含了登录表单、注册链接和找回密码等常见元素。该模板具有响应式设计,能够适应不同设备的屏幕尺寸,带来良好的用户体验。 登录表单是该模板的核心部分,包含了用户名和密码输入框、记住密码复选框和登录按钮等。开发者可以灵活地添加自定义表单验证规则和逻辑,以满足实际需求。此外,Element UI还提供了一系列美观的表单样式和交互动画,使表单使用更加友好和直观。 在登录界面模板中,注册链接和找回密码是常用的功能补充。注册链接可引导用户到注册页面进行新用户的注册,而找回密码则提供了找回密码的功能,帮助用户恢复登录密码。这些功能的实现可以通过跳转页面或弹出模态框等方式完成,方便用户的操作。 除此之外,Element UI的登录界面模板还提供了多语言支持和自定义主题功能。开发者可以根据项目的需要选择合适的语言或自定义主题,以满足不同用户的需求。 综上所述,Element UI的登录界面模板是一个功能完善、易于使用和美观的模板,能够帮助开发者快速构建符合要求的登录界面,并提供了丰富的可定制选项满足不同项目的需求。 ### 回答2: Element UI是一套基于Vue.js的开源UI框架,它提供了丰富的组件和模板,方便开发者快速构建用户界面。在Element UI中,有一个登录界面模板,可以用于实现用户登录的功能。 Element UI登录界面模板有以下几个主要部分: 1. Logo:登录界面的上方通常会放置一个Logo,用于展示企业或产品的品牌标识。 2. 输入框:登录界面需要两个输入框,一个用于输入用户名,另一个用于输入密码。Element UI的输入框组件具有样式美观、交互友好的特点,可以很方便地集成到登录界面中。 3. 按钮:登录界面还需要一个按钮,用于触发登录操作。Element UI的按钮组件支持不同的样式和尺寸配置,可以根据需求设置登录按钮的样式。 4. 错误提示:当用户输入错误的用户名或密码时,登录界面需要提供相应的错误提示。Element UI的提示组件可以方便地实现错误提示的功能。 5. 其它功能:登录界面还可以添加一些其它的功能,比如记住密码、忘记密码等。Element UI提供了丰富的组件和模板,可以很方便地集成这些功能。 综上所述,Element UI的登录界面模板提供了一套完整的UI组件和样式,可以帮助开发者快速构建一个美观、功能完善的登录界面。使用Element UI的登录界面模板,开发者只需少量的代码就可以实现登录功能,并且可以通过配置不同的组件、样式和功能,满足不同项目的需求。 ### 回答3: ElementUI是一套基于Vue.js的前端UI框架,提供了许多现成的组件和模板,可以在前端开发中快速构建出美观、功能完善的用户界面。其中,ElementUI也提供了登录界面模板,方便我们进行网站或应用的登录页设计。 ElementUI的登录界面模板通常包括以下几个组件: 1. 输入框组件:用于用户输入账号和密码。可以设置格式校验、密码显示与隐藏等特性,确保输入的安全性和便捷性。 2. 按钮组件:用于登录操作和其他功能按钮。通常有登录、注册、忘记密码等按钮,可以根据具体需求进行添加和定制。 3. 图片组件:可以添加网站或品牌的Logo,增加界面的个性化和识别度。 4. 表单组件:用于显示验证信息和错误提示。例如,密码错误、账号不存在等情况,可以通过表单组件进行友好的提示和展示。 5. 背景组件:可以设置页面的背景图片或颜色,增加页面的视觉效果和吸引力。 除了以上组件,ElementUI的登录界面模板还可以进行自定义配置,例如:调整字体大小和颜色、修改按钮样式、添加验证码等。同时,ElementUI还可以与其他Vue.js插件和工具库配合使用,实现更复杂的登录界面功能,例如:使用axios与后端进行数据交互、使用路由进行页面跳转等等。 综上所述,ElementUI的登录界面模板提供了丰富的组件和样式,使我们能够快速构建出符合用户需求的登录界面,提升用户体验和用户界面的可用性。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值