-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMainLayout.razor
39 lines (33 loc) · 1.21 KB
/
MainLayout.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@using Photino.Blazor.CustomWindow.Components
@using System.Drawing;
@inherits LayoutComponentBase
@* Custom window *@
<CustomWindow Title="Custom Window Demo">
<HeaderExtraControlsLayout>
<div style="width: @(ProfileClicked ? "125px" : "0"); transition: 0.5s; overflow: hidden">
<p style="margin: auto; text-wrap: nowrap; color: white">Profile message!</p>
</div>
<button class="pb-custom-window-control-button" style="background: transparent"
@onclick="() => ProfileClicked = !ProfileClicked">
<img src="avatar.png" style="border-radius: 50%; border: 1px solid lightblue" />
</button>
</HeaderExtraControlsLayout>
<WindowContent>
<div class="app">
<div class="sidebar">
<NavMenu />
</div>
<div class="main">
<div class="top-row px-4">
<a href="http://blazor.net" target="_blank" class="ml-md-auto">About</a>
</div>
<div class="content px-4">
@Body
</div>
</div>
</div>
</WindowContent>
</CustomWindow>
@code {
private bool ProfileClicked { get; set; }
}