Skip to content

Commit 82fe0f5

Browse files
committed
chore: update layout demo
1 parent e8dba29 commit 82fe0f5

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

examples-standalone/kendoangular-landing-page/src/app/components/layout/my-layout.component.css

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,30 @@ html {
3131

3232
.custom-toolbar {
3333
width: 100%;
34-
background-color: #f6f6f6;
35-
line-height: 10px;
34+
height: 48px;
35+
background-color: #757575;
3636
border-bottom: inset;
3737
border-bottom-width: 1px;
3838
padding: 3px;
39-
color: #656565;
39+
color: #ffffff;
4040
flex-shrink: 0;
41+
display: flex;
42+
justify-content: space-between;
43+
align-items: center;
44+
}
45+
46+
.custom-toolbar kendo-avatar {
47+
margin-right: 10px;
4148
}
49+
4250
.mail-box {
4351
font-weight: bold;
4452
font-size: 17px;
53+
padding-left: 8px;
4554
}
4655
h5 {
47-
font-size: 1.25rem!important;
56+
font-size: 1.25rem !important;
4857
font-weight: 500;
4958
margin: 0;
5059
padding: 0;
51-
}
60+
}

examples-standalone/kendoangular-landing-page/src/app/components/layout/my-layout.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<div class="wrapper">
22
<div class="custom-toolbar">
33
<button kendoButton [svgIcon]="layoutSvg" fillMode="flat" (click)="drawer.toggle()">
4-
<span class="mail-box">Drawer component</span>
4+
<h1 class="mail-box">Drawer component</h1>
55
</button>
6+
<kendo-avatar
7+
[imageSrc]="kendokaAvatar"
8+
shape="circle"
9+
width="38px"
10+
height="40px"
11+
></kendo-avatar>
612
</div>
713
<kendo-drawer-container class="customClass">
814
<kendo-drawer

examples-standalone/kendoangular-landing-page/src/app/components/layout/my-layout.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, ViewEncapsulation } from '@angular/core';
2-
import { DrawerSelectEvent, KENDO_DRAWER } from '@progress/kendo-angular-layout';
2+
import { DrawerSelectEvent, KENDO_DRAWER, KENDO_LAYOUT } from '@progress/kendo-angular-layout';
33
import {
44
alignJustifyIcon,
55
cellsMergeVerticallyIcon,
@@ -21,7 +21,7 @@ import { KENDO_BUTTONS } from '@progress/kendo-angular-buttons';
2121
@Component({
2222
selector: 'app-layout',
2323
encapsulation: ViewEncapsulation.None,
24-
imports: [KENDO_DRAWER, KENDO_BUTTONS, LayoutComponent],
24+
imports: [KENDO_DRAWER, KENDO_BUTTONS, KENDO_LAYOUT, LayoutComponent],
2525
templateUrl: './my-layout.component.html',
2626
styleUrl: './my-layout.component.css',
2727
})
@@ -56,4 +56,6 @@ export class MyLayoutComponent {
5656
public onSelect(ev: DrawerSelectEvent): void {
5757
this.selected = ev.item.text;
5858
}
59+
public kendokaAvatar = "assets/kendoka-angular.png";
60+
5961
}
Loading

0 commit comments

Comments
 (0)