From bb29ec2d8d13af9fafeb36e45cef90195c0afaa2 Mon Sep 17 00:00:00 2001 From: beyaz Date: Tue, 26 Nov 2024 23:52:02 +0300 Subject: [PATCH] . --- .../Pages/doc/PageDocumentation_Start.cs | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/ReactWithDotNet.WebSite/Pages/doc/PageDocumentation_Start.cs b/ReactWithDotNet.WebSite/Pages/doc/PageDocumentation_Start.cs index b64ea32f..3825e82e 100644 --- a/ReactWithDotNet.WebSite/Pages/doc/PageDocumentation_Start.cs +++ b/ReactWithDotNet.WebSite/Pages/doc/PageDocumentation_Start.cs @@ -4,8 +4,6 @@ sealed class PageDocumentation_Start : PageDocumentation { protected override Element CreateContent() { - - return new FlexRow(JustifyContentCenter, WidthFull) { new article(PaddingTopBottom(4 * rem)) @@ -55,7 +53,7 @@ class PrintHello extends React.Component """ } }, - + new h2(FontSize20, FontWeight400, LineHeight32, MarginBottom(1 * rem)) { "In ReactWithDotNet system, the c# version of this component is" @@ -94,7 +92,6 @@ protected override Element render() } }, - new h2(FontSize20, FontWeight400, LineHeight32, MarginBottom(1 * rem)) { "Let's create simple functional component" @@ -111,7 +108,7 @@ protected override Element render() ); }; - + // sample usage
@@ -119,7 +116,7 @@ protected override Element render() """ } }, - + new h2(FontSize20, FontWeight400, LineHeight32, MarginBottom(1 * rem)) { "Here is c# version" @@ -136,7 +133,7 @@ Element HelloWorld() new h1 { "Hello World!" } }; } - + // sample usage new div(ClassName("App")) { @@ -145,7 +142,7 @@ Element HelloWorld() """ } }, - + new h2(FontSize20, FontWeight400, LineHeight32, MarginBottom(1 * rem)) { "Here is c# async version" @@ -161,7 +158,7 @@ async Task GetMessageFromDb() return "Hello World!"; } - + async Task HelloWorld() { return new div(ClassName("App")) @@ -178,15 +175,16 @@ async Task HelloWorld() """ } }, - + new p(LineHeight28, MarginBottom(1.5 * rem)) { "As you can see, main idea is writing react components in c# language at serverside.", br, - "Our aim is to combine the strengths of both platforms (C# and ReactJS) to provide an easier web development environment." - }, + "Our aim is to combine the strengths of both platforms (C# and ReactJS) to provide an easier web development environment.", + br, + "You dont need to import or compile any js library. All you need to reference ReactWithDotNet.dll to your .net core webapi project." + } } }; - } } \ No newline at end of file