位置: IT常识 - 正文

Vue精美简洁登录页(用vue做的登录界面)

发布时间:2024-01-09
Vue精美简洁登录页

推荐整理分享Vue精美简洁登录页(用vue做的登录界面),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:简单的vue写登录页面,简单的vue写登录页面,vue简单登录页面,vue登录怎么做,vue用户登录界面,vue用户登录界面,用vue做的登录界面,vue简单登录页面,内容如对您有帮助,希望把文章链接给更多的朋友!

LoginBox.vue

<template> <div class="main-box"> <div :class="['container', 'container-register', { 'is-txl': isLogin }]"> <form> <h2 class="title">Create Account</h2> <span class="text">or use email for registration</span> <input class="form__input" type="text" placeholder="Name" /> <input class="form__input" type="text" placeholder="Email" /> <input class="form__input" type="password" placeholder="Password" /> <div class="primary-btn">立即注册</div> </form> </div> <div :class="['container', 'container-login', { 'is-txl is-z200': isLogin }]" > <form> <h2 class="title">Sign in to Website</h2> <span class="text">or use email for registration</span> <input class="form__input" type="text" placeholder="Email" /> <input class="form__input" type="password" placeholder="Password" /> <div class="primary-btn">立即登录</div> </form> </div> <div :class="['switch', { login: isLogin }]"> <div class="switch__circle"></div> <div class="switch__circle switch__circle_top"></div> <div class="switch__container"> <h2>{{ isLogin ? 'Hello Friend !' : 'Welcome Back !' }}</h2> <p> {{ isLogin ? 'Enter your personal details and start journey with us' : 'To keep connected with us please login with your personal info' }} </p> <div class="primary-btn" @click="isLogin = !isLogin"> {{ isLogin ? '立即注册' : '立即登录' }} </div> </div> </div> </div></template><script>export default { name: 'LoginBox', data() { return { isLogin: false, loginForm: { email: '', password: '', }, registerForm: { name: '', email: '', password: '', }, } }, methods: { login() {}, register() {}, },}</script><style lang="scss" scoped>.main-box { position: relative; width: 1000px; min-width: 1000px; min-height: 600px; height: 600px; padding: 25px; background-color: #ecf0f3; box-shadow: 10px 10px 10px #d1d9e6, -10px -10px 10px #f9f9f9; border-radius: 12px; overflow: hidden; .container { display: flex; justify-content: center; align-items: center; position: absolute; top: 0; width: 600px; height: 100%; padding: 25px; background-color: #ecf0f3; transition: all 1.25s; 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; // font-family: 'Montserrat', sans-serif; background-color: #ecf0f3; transition: 0.25s ease; border-radius: 8px; box-shadow: inset 2px 2px 4px #d1d9e6, inset -2px -2px 4px #f9f9f9; &::placeholder { color: #a0a5a8; } } } } .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: 400px; padding: 50px; 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; 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; &:hover { box-shadow: 4px 4px 6px 0 rgb(255 255 255 / 50%), -4px -4px 6px 0 rgb(116 125 136 / 50%), inset -4px -4px 6px 0 rgb(255 255 255 / 20%), inset 4px 4px 6px 0 rgb(0 0 0 / 40%); } }}</style>
本文链接地址:https://www.jiuchutong.com/zhishi/290234.html 转载请保留说明!

上一篇:还在用夸克?这3款能安装插件的手机浏览器不香吗(还在用夸克?这3款能安装插件的手机浏览器不香吗_Via_)

下一篇:在HTML 中嵌入 JS 代码的三种方式(html怎么嵌入js)

  • 增值税发票综合服务平台验证口令失败
  • 跨月如何开具增值税发票
  • 增值税留抵税额是什么意思
  • 2021年超市发票税率是多少
  • 视同销售的销售额如何确定
  • 最新的税收政策
  • 行政事业单位凭证培训课件
  • 出口不报关账务处理
  • 未结转损益可以结账吗
  • 金税三期个人所得税扣缴系统手机版
  • 代开的专票开错了怎么办?
  • 不需要缴纳增值税的有
  • 代收代付差额征税
  • 支付境外服务费税务如何处理
  • 金融企业哪些呆账损失可以在税前扣除?
  • 季度所得税弥补亏损
  • 给子公司员工发放奖金合法吗
  • 用友t3新账套总账设置
  • 存货监盘计划要求,在对存货盘点结果进行测试时
  • 进口关税和进口增值税怎么算
  • 什么是租赁公司的主营业务
  • win10系统通知中心在哪
  • 当人力资源短缺时,用什么方法增加人力资源?
  • 取得增值税发票的认证期限是多久?
  • 发票开具的有哪些原则
  • 母公司收取子公司管理费的税率
  • 工商年报的社保缴费基数怎么算
  • php获取当前页面
  • 业务招待费专票可以抵扣增值税吗
  • yii2框架中文手册
  • js实现功能
  • 购入固定资产计入应付账款还是其他应付款
  • 出租房屋收取跨年度的预收租金收入
  • 蔬菜免征增值税优惠
  • 二手车减免增值税的规定
  • 运输公司税务筹划
  • 中介公司服务范围都有哪些
  • 利息收入为什么冲减财务费用
  • 结转成本计入
  • 跨月红字发票开错了可以撤销吗
  • 资产负债表中没有专项储备怎么填写
  • 承兑汇票是属于什么科目
  • 一般整形医院的药在哪进货
  • 完全卸载mysql8.0
  • 物业代收代缴是什么意思
  • 应收应付票据包括什么
  • 一般纳税人认定书是什么样子
  • 小型数据库软件有哪些
  • 企业支付的佣金计算多少税率呢
  • 小微企业季度收入
  • 计提工会经费是什么凭证
  • 会计科目中其期末余额应列入资产负债表存货项目的有
  • 收到商业承兑汇票的会计分录
  • 停车费怎么入账会计分录
  • 增加委托代理人
  • sql server real
  • mysql停不掉
  • linux下mysql 5.7.16 免安装版本图文教程
  • ARP欺骗攻击原理
  • linux 新手
  • centos6.10配置网络
  • window10运行框
  • win7卸载软件提示停止工作
  • ubuntu21.04中文
  • linux如何调出鼠标
  • msworks.exe - msworks是什么进程 有什么用
  • windows7 dns
  • win7开机错误代码
  • cocos2dx tableview基础:实现多图片的滑动显示
  • jquery示例
  • mvp功能
  • Node.js中的事件循环是什么意思
  • 关于js的描述错误的是
  • powercli命令
  • 解决在基层
  • 基于网络创新形成的大数据的最突出特征是什么?( )
  • android刷新activity
  • 税务局约谈记录
  • 北京同仁堂怎么挂专家号
  • 个人所得税扣缴手续费退付是什么意思
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号