admin管理员组

文章数量:1122846

android:windowSoftInputMode="adjustResize"

.bg-img {
  --background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9)), url('./assets/imgs/bg1.jpg') no-repeat center center fixed;

  //--background: url('./assets/imgs/bg1.jpg') no-repeat center center fixed;    
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  position: relative;
  background-position: center center;
  background-attachment: fixed;
  height: 100vh;
  width: 100%;
  object-fit:cover;
}
<ion-content class="bg-img" padding>
  <div class="login-box">
    <div class="logo">
      <img src="assets/imgs/logo.png" />
    </div>
  
    <form [formGroup]="loginForm">

      <ion-item>
        <ion-icon name="person" class="text-primary"></ion-icon>
        <ion-input #inputLogin type="text" formControlName="username" required label-placement="floating" fill="solid" 
        label="User Id"></ion-input>
      </ion-item>
      
    
      <ion-item>   
        <ion-icon name="lock-closed" class="text-primary"></ion-icon>
        <ion-input
          type="Password"
          fill="solid"
          label="Pssword"
          labelPlacement="floating" formControlName="password" required></ion-input>
      </ion-item>
    

      <ion-item class="text-input remember-me" style="margin-left: -30px;">
        <ion-checkbox color="light" class="custom-checkbox" formControlName="rememberMe"></ion-checkbox>
        <ion-label style="margin-left: -75px;">REMEMBER_ME</ion-label>
      </ion-item>
      
      <ion-row>
        <ion-button class="btn-login" (click)="loginBtnClicked()">
            <ion-icon slot="start" name="arrow-forward-outline"></ion-icon>
        <span>Login</span> 
        </ion-button>
      </ion-row>
      <ion-row>
        <ion-button class="btn-access-request" (click)="goToWebSite()">
          <ion-icon name="key-outline"></ion-icon>
         Access
        </ion-button>
      </ion-row>
    </form>
  </div>
</ion-content>

本文标签: