mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-17 02:55:11 +00:00
feat: rehauled console (#3525)
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * lock Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
00f7dbe875
commit
08ae39ae19
@@ -1,23 +1,25 @@
|
||||
<div [ngClass]="{'max-width-container': maxWidth, 'enlarged-container': !maxWidth}">
|
||||
<div class="detail-container">
|
||||
<div class="detail-left">
|
||||
<a *ngIf="backRouterLink" [routerLink]="backRouterLink" mat-icon-button>
|
||||
<mat-icon class="icon">arrow_back</mat-icon>
|
||||
<div class="max-width-container">
|
||||
<div class="enlarged-container">
|
||||
<div class="detail-layout-head">
|
||||
<div class="detail-layout-top-view">
|
||||
<div>
|
||||
<div class="back-row">
|
||||
<a *ngIf="hasBackButton" cnslBack mat-icon-button>
|
||||
<mat-icon class="icon">arrow_back</mat-icon>
|
||||
</a>
|
||||
</div>
|
||||
<div class="detail-right">
|
||||
<div class="head">
|
||||
<div class="top-view">
|
||||
<div>
|
||||
<h1>{{ title }}</h1>
|
||||
<p class="head-desc">{{ description }}</p>
|
||||
</div>
|
||||
<div class="actions-wrap">
|
||||
<ng-content select="[actions]"></ng-content>
|
||||
</div>
|
||||
</div>
|
||||
<ng-content></ng-content>
|
||||
<div>
|
||||
<h1>{{ title }}</h1>
|
||||
<ng-content select="[sub]"></ng-content>
|
||||
</div>
|
||||
</div>
|
||||
<p class="head-desc cnsl-secondary-text max-width-description">{{ description }}</p>
|
||||
</div>
|
||||
<div class="actions-wrap">
|
||||
<ng-content select="[actions]"></ng-content>
|
||||
</div>
|
||||
</div>
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,73 +1,44 @@
|
||||
@use '@angular/material' as mat;
|
||||
|
||||
@mixin detail-layout-theme($theme) {
|
||||
/* stylelint-disable */
|
||||
$primary: map-get($theme, primary);
|
||||
$primary-color: mat.get-color-from-palette($primary, 500);
|
||||
$is-dark-theme: map-get($theme, is-dark);
|
||||
/* stylelint-enable */
|
||||
$lighter-color: rgba(mat.get-color-from-palette($primary, 300), 0.5);
|
||||
|
||||
$lighter-color: rgba(mat.get-color-from-palette($primary, 300), .5);
|
||||
.detail-layout-head {
|
||||
margin-bottom: 2rem;
|
||||
|
||||
.detail-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-bottom: 3rem;
|
||||
|
||||
@media only screen and (min-width: 550px) {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.detail-left {
|
||||
align-self: flex-start;
|
||||
.detail-layout-top-view {
|
||||
display: flex;
|
||||
padding: 1rem;
|
||||
padding-top: 0;
|
||||
justify-content: center;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 1rem;
|
||||
|
||||
@media only screen and (min-width: 550px) {
|
||||
width: 100px;
|
||||
}
|
||||
.back-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
margin-top: 13px;
|
||||
color: inherit;
|
||||
a {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right {
|
||||
flex: 1;
|
||||
padding-left: 1rem;
|
||||
|
||||
@media only screen and (max-width: 500px) {
|
||||
flex-basis: 100%;
|
||||
div {
|
||||
h1 {
|
||||
font-size: 1.8rem;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.head {
|
||||
margin-bottom: 2rem;
|
||||
|
||||
.top-view {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
div {
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.head-desc {
|
||||
display: block;
|
||||
font-size: .9rem;
|
||||
color: var(--grey);
|
||||
}
|
||||
}
|
||||
|
||||
.actions-wrap {
|
||||
padding-top: .5rem;
|
||||
}
|
||||
.head-desc {
|
||||
display: block;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.actions-wrap {
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,7 @@ import { Component, Input } from '@angular/core';
|
||||
styleUrls: ['./detail-layout.component.scss'],
|
||||
})
|
||||
export class DetailLayoutComponent {
|
||||
@Input() backRouterLink: any = undefined;
|
||||
@Input() hasBackButton: boolean = true;
|
||||
@Input() title: string | null = '';
|
||||
@Input() description: string | null = '';
|
||||
@Input() maxWidth: boolean = true;
|
||||
}
|
||||
|
||||
@@ -1,21 +1,15 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { BackModule } from 'src/app/directives/back/back.module';
|
||||
|
||||
import { DetailLayoutComponent } from './detail-layout.component';
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [DetailLayoutComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatIconModule,
|
||||
RouterModule,
|
||||
],
|
||||
exports: [
|
||||
DetailLayoutComponent,
|
||||
],
|
||||
declarations: [DetailLayoutComponent],
|
||||
imports: [CommonModule, MatIconModule, BackModule, MatButtonModule, RouterModule],
|
||||
exports: [DetailLayoutComponent],
|
||||
})
|
||||
export class DetailLayoutModule { }
|
||||
export class DetailLayoutModule {}
|
||||
|
||||
Reference in New Issue
Block a user