mirror of
https://github.com/dnwSilver/tld.git
synced 2025-04-10 07:16:18 +00:00
47 lines
922 B
C#
47 lines
922 B
C#
using TUI.Controls.Common;
|
|
using TUI.Controls.Components;
|
|
using TUI.Controls.Containers;
|
|
using TUI.Controls.Layouts;
|
|
using TUI.Controls.Statics;
|
|
using TUI.Engine.Attributes;
|
|
using TUI.Engine.Rendering.Canvas;
|
|
|
|
namespace TUI.Pages;
|
|
|
|
public class WelcomePage : PageBase
|
|
{
|
|
private WelcomePage()
|
|
{
|
|
}
|
|
|
|
public static WelcomePage Instance { get; } = new();
|
|
|
|
public override void Initial()
|
|
{
|
|
}
|
|
|
|
public override void Render()
|
|
{
|
|
ICanvas canvas = new ConsoleCanvas();
|
|
|
|
var header = new StubComponent(new Size(1, 1));
|
|
|
|
var logo = new LogoComponent();
|
|
|
|
var breadCrumbs = new BreadCrumbsComponent();
|
|
|
|
var footer = new FooterContainer(breadCrumbs);
|
|
|
|
var layout = new DashboardLayout(header, logo, footer);
|
|
|
|
canvas.Draw(layout);
|
|
}
|
|
|
|
public override void Load()
|
|
{
|
|
}
|
|
|
|
public override void Bind()
|
|
{
|
|
}
|
|
} |