DefaultPageNoFoundView.cs 477 B

12345678910111213141516171819202122
  1. using Bridge.Html5;
  2. namespace FrontendRouting
  3. {
  4. internal class DefaultPageNoFoundView : FeRoutingView
  5. {
  6. private readonly HTMLElement _holdText = new HTMLHeadingElement(HeadingType.H1)
  7. {
  8. TextContent = "Page Not Found"
  9. };
  10. public override void Leave()
  11. {
  12. _holdText.Remove();
  13. }
  14. public override void Enter(Node parent)
  15. {
  16. parent.AppendChild(_holdText);
  17. }
  18. }
  19. }