login.eft 1.39 KB
>div.ui.middle.aligned.center.aligned.grid
  #style = margin-top: 5em
  >div.column.row
    >div.column.aligned.center.centered
      >h2.ui.teal.header.aligned.center
        .登录到 阿米巴·轻
  >div.column.row
    >div.column.aligned.center.centered.ten.wide
      >div.ui.large.form
        @keypress.13 = login
        >div.ui.stacked.segment.aligned.center
          >div.field
            >div.ui.left.icon.input
              >i.user.icon
              >input
                #type = text
                #placeholder = 用户名
                %value = {{username}}
          >div.field
            >div.ui.left.icon.input
              >i.user.icon
              >input
                #type = password
                #placeholder = 密码
                %value = {{password}}
          >div.ui.fluid.large.teal.submit.button#loginbtn
            @click = login
            .登录
      >div.ui.error.message#errmsg
        #style = display: none
        .{{errmsg}}
      >div.ui.icon.error.message#notsecurehttp
        >i.warning.sign.icon
        #style = display: none
        >div.header
          .安全风险: 阿米巴·轻 正在通过非安全的方式连接!
      >div.ui.icon.error.message#notsecureport
        >i.warning.sign.icon
        #style = display: none
        >div.header
          .安全风险: 阿米巴·轻 发现轻正运行于非标准端口上!
  >div.column.row