Fix alignment and responsive

This commit is contained in:
Çetin 2022-01-17 22:20:31 +03:00
parent 4c77faed04
commit 2ea818e811
5 changed files with 99 additions and 88 deletions

View File

@ -1,9 +1,12 @@
<div class="grid m-0 py-3 md:p-0 flex-row md:flex-column surface-card align-items-center justify-content-center h-screen"> <div class="surface-card flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden">
<div class="grid justify-content-center p-2 lg:p-0" style="min-width:80%">
<div class="col-12 mt-5 xl:mt-0 text-center">
<img src="assets/layout/images/logo-orange.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;"> <img src="assets/layout/images/logo-orange.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;">
<div class="col-12 md:col-5" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(247, 149, 48, 0.4) 10%, rgba(247, 149, 48, 0) 30%);"> </div>
<div class="col-12 xl:col-5" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(247, 149, 48, 0.4) 10%, rgba(247, 149, 48, 0) 30%);">
<div class="surface-card h-full w-full m-0 py-7 px-4" style="border-radius:53px;"> <div class="surface-card h-full w-full m-0 py-7 px-4" style="border-radius:53px;">
<div class="grid flex flex-column align-items-center" style="height:600px;"> <div class="grid flex flex-column align-items-center">
<div class="flex justify-content-center align-items-center bg-orange-500 border-circle" style="width:3.2rem; height:3.2rem;"> <div class="flex justify-content-center align-items-center bg-orange-500 border-circle" style="width:3.2rem; height:3.2rem;">
<i class="pi pi-fw pi-lock text-2xl text-50"></i> <i class="pi pi-fw pi-lock text-2xl text-50"></i>
</div> </div>
@ -16,4 +19,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>

View File

@ -1,8 +1,11 @@
<div class="grid m-0 py-3 md:p-0 flex-row md:flex-column surface-card align-items-center justify-content-center h-screen"> <div class="surface-card flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden">
<div class="grid justify-content-center p-2 lg:p-0" style="min-width:80%;">
<div class="col-12 mt-5 xl:mt-0 text-center">
<img src="assets/layout/images/logo-error.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;"> <img src="assets/layout/images/logo-error.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;">
<div class="col-12 md:col-5" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(233, 30, 99, 0.4) 10%, rgba(33, 150, 243, 0) 30%);"> </div>
<div class="col-12 xl:col-5" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(233, 30, 99, 0.4) 10%, rgba(33, 150, 243, 0) 30%);">
<div class="surface-card h-full w-full m-0 py-7 px-4" style="border-radius:53px;"> <div class="surface-card h-full w-full m-0 py-7 px-4" style="border-radius:53px;">
<div class="grid flex flex-column align-items-center" style="height:600px;"> <div class="grid flex flex-column align-items-center">
<div class="flex justify-content-center align-items-center bg-pink-500 border-circle" style="height:3.2rem; width:3.2rem;"> <div class="flex justify-content-center align-items-center bg-pink-500 border-circle" style="height:3.2rem; width:3.2rem;">
<i class="pi pi-fw pi-exclamation-circle text-2xl text-50"></i> <i class="pi pi-fw pi-exclamation-circle text-2xl text-50"></i>
</div> </div>
@ -15,4 +18,5 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>

View File

@ -1,32 +1,31 @@
<div class="grid m-0 py-3 md:p-0 flex-row md:flex-column surface-card align-items-center justify-content-center h-screen"> <div class="surface-card flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden">
<div class="grid justify-content-center p-2 lg:p-0" style="min-width:80%">
<div class="col-12 mt-5 xl:mt-0 text-center">
<img src="assets/layout/images/logo-blue.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;"> <img src="assets/layout/images/logo-blue.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;">
<div class="col-12 md:col-6" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(33, 150, 243, 0.4) 10%, rgba(33, 150, 243, 0) 30%);"> </div>
<div class="col-12 xl:col-5" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(33, 150, 243, 0.4) 10%, rgba(33, 150, 243, 0) 30%);">
<div class="surface-card h-full w-full m-0 py-7 px-4" style="border-radius:53px;"> <div class="surface-card h-full w-full m-0 py-7 px-4" style="border-radius:53px;">
<div class="grid flex flex-column align-items-center" style="height:600px;"> <div class="text-center mb-5">
<img src="assets/layout/images/avatar.png" alt="Profile avatar" style="width:56px; height:56px;"> <img src="assets/layout/images/avatar.png" alt="Image" height="50" class="mb-3">
<h4 class="font-medium text-gray-900 text-5xl mb-2">Welcome, Isabel!</h4> <div class="text-900 text-3xl font-medium mb-3">Welcome, Isabel!</div>
<span class="text-gray-600 text-2xl">Sign in to continue</span> <span class="text-600 font-medium">Sign in to continue</span>
<div class="col-11 md:col-10 mt-5">
<div class="grid">
<div class="col-12 my-2">
<label htmlFor="email" class="text-gray-900 text-2xl font-medium block mb-2 line-height-3">Email Address</label>
<input pInputText id="email" placeholder="Email address" type="text" style="width:100%; padding:1.25rem; font-size:21px;"/>
</div> </div>
<div class="col-12 my-2">
<label htmlFor="password" class="text-gray-900 text-2xl font-medium block mb-2 line-height-3">Password</label> <div class="w-full lg:w-10 mx-auto">
<p-password [(ngModel)]="password" placeholder="Password" [toggleMask]="true" styleClass="w-full"></p-password> <label for="email1" class="block text-900 text-xl font-medium mb-2">Email</label>
</div> <input id="email1" type="text" pInputText class="w-full mb-3" style="padding:1rem;">
<div class="col-6 field-checkbox">
<p-checkbox name="group1" value="remember" [(ngModel)]="valCheck" id="checkbox"></p-checkbox> <label for="password1" class="block text-900 font-medium text-xl mb-2">Password</label>
<label for="checkbox" class="text-gray-900 text-2xl">Remember me</label> <p-password id="password1" [(ngModel)]="password" placeholder="Password" [toggleMask]="true" styleClass="w-full mb-3"></p-password>
</div>
<div class="col-6 text-right"> <div class="flex align-items-center justify-content-between mb-5">
<a href="#" class="text-blue-500 text-2xl">Forgot your password ?</a> <div class="flex align-items-center">
</div> <p-checkbox id="rememberme1" [binary]="true" styleClass="mr-2"></p-checkbox>
<div class="col-12"> <label for="rememberme1">Remember me</label>
<button pButton pRipple type="button" class="w-full p-3 mt-2"><span class="text-2xl text-center w-full">Sign In</span></button>
</div> </div>
<a class="font-medium no-underline ml-2 text-blue-500 text-right cursor-pointer">Forgot password?</a>
</div> </div>
<button pButton pRipple label="Sign In" class="w-full p-3 text-xl"></button>
</div> </div>
</div> </div>
</div> </div>

View File

@ -6,8 +6,7 @@ import { Component, OnInit } from '@angular/core';
styles:[` styles:[`
:host ::ng-deep .p-password input { :host ::ng-deep .p-password input {
width: 100%; width: 100%;
padding:1.25rem; padding:1rem;
font-size:21px;
} }
:host ::ng-deep .pi-eye{ :host ::ng-deep .pi-eye{

View File

@ -1,12 +1,15 @@
<div class="grid m-0 py-3 md:p-0 flex-row md:flex-column surface-card align-items-center justify-content-center h-screen"> <div class="surface-card flex align-items-center justify-content-center min-h-screen min-w-screen overflow-hidden">
<div class="grid justify-content-center p-2 lg:p-0" style="min-width:80%">
<div class="col-12 mt-5 xl:mt-0 text-center">
<img src="assets/layout/images/logo-blue.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;"> <img src="assets/layout/images/logo-blue.svg" alt="Sakai logo" class="mb-5" style="width:81px; height:60px;">
<div class="col-12 md:col-5" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(33, 150, 243, 0.4) 10%, rgba(33, 150, 243, 0) 30%);"> </div>
<div class="col-12 xl:col-5" style="border-radius:56px; padding:0.3rem; background: linear-gradient(180deg, rgba(33, 150, 243, 0.4) 10%, rgba(33, 150, 243, 0) 30%);">
<div class="surface-card flex justify-content-center h-full w-full m-0 py-7 px-4" style="border-radius:53px;"> <div class="surface-card flex justify-content-center h-full w-full m-0 py-7 px-4" style="border-radius:53px;">
<div class="grid flex-column align-items-center" style="width:90%; height:600px;"> <div class="grid flex-column align-items-center">
<span class="text-blue-500 font-bold text-3xl">404</span> <span class="text-blue-500 font-bold text-3xl">404</span>
<h1 class="text-gray-900 font-bold text-3xl lg:text-5xl mb-2">Looks like you are lost</h1> <h1 class="text-gray-900 font-bold text-3xl lg:text-5xl mb-2">Looks like you are lost</h1>
<span class="text-gray-600">Requested resource is not available.</span> <span class="text-gray-600">Requested resource is not available.</span>
<div class="col-11 lg:col-10 flex align-items-center py-5 mt-6 border-300 border-bottom-1"> <div class="col-12 flex align-items-center py-5 mt-6 border-300 border-bottom-1">
<div class="flex justify-content-center align-items-center bg-cyan-400 border-round" style="height:3.5rem; width:3.5rem;"> <div class="flex justify-content-center align-items-center bg-cyan-400 border-round" style="height:3.5rem; width:3.5rem;">
<i class="pi pi-fw pi-table text-50 text-2xl"></i> <i class="pi pi-fw pi-table text-50 text-2xl"></i>
</div> </div>
@ -15,7 +18,7 @@
<span class="text-gray-600 lg:text-xl">Ultricies mi quis hendrerit dolor.</span> <span class="text-gray-600 lg:text-xl">Ultricies mi quis hendrerit dolor.</span>
</div> </div>
</div> </div>
<div class="col-11 lg:col-10 flex align-items-center py-5 border-300 border-bottom-1"> <div class="col-12 flex align-items-center py-5 border-300 border-bottom-1">
<div class="flex justify-content-center align-items-center bg-orange-400 border-round" style="height:3.5rem; width:3.5rem;"> <div class="flex justify-content-center align-items-center bg-orange-400 border-round" style="height:3.5rem; width:3.5rem;">
<i class="pi pi-fw pi-question-circle text-50 text-2xl"></i> <i class="pi pi-fw pi-question-circle text-50 text-2xl"></i>
</div> </div>
@ -24,7 +27,7 @@
<span class="text-gray-600 lg:text-xl">Phasellus faucibus scelerisque eleifend.</span> <span class="text-gray-600 lg:text-xl">Phasellus faucibus scelerisque eleifend.</span>
</div> </div>
</div> </div>
<div class="col-11 lg:col-10 flex align-items-center py-5 border-300 border-bottom-1"> <div class="col-12 flex align-items-center py-5 border-300 border-bottom-1">
<div class="flex justify-content-center align-items-center bg-indigo-400 border-round" style="height:3.5rem; width:3.5rem;"> <div class="flex justify-content-center align-items-center bg-indigo-400 border-round" style="height:3.5rem; width:3.5rem;">
<i class="pi pi-fw pi-unlock text-50 text-2xl"></i> <i class="pi pi-fw pi-unlock text-50 text-2xl"></i>
</div> </div>
@ -39,4 +42,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>