From 4f9361d7fb917393f017805e851f1be42faeb23b Mon Sep 17 00:00:00 2001 From: Seonkyu_Kim Date: Wed, 7 May 2025 17:31:37 +0900 Subject: [PATCH] =?UTF-8?q?[=E2=9C=A8]=20=EB=A6=AC=EB=8B=A4=EC=9D=B4?= =?UTF-8?q?=EB=A0=89=ED=8A=B8=20=EA=B2=BD=EB=A1=9C=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B0=8F=20=EA=B8=B0=ED=83=80=20=EC=BD=94=EB=93=9C=20=ED=95=99?= =?UTF-8?q?=EC=8A=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.razor | 23 ++++++++++++++++++++- Front.csproj | 3 --- Program/Layout/MainLayout.razor | 1 + Program/Views/Project/About.razor.cs | 2 +- Program/Views/Project/RedirectPage.razor | 1 + Program/Views/Project/RedirectPage.razor.cs | 15 ++++++++++++++ Program/Views/Project/TopBanner.razor | 2 -- 7 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 Program/Views/Project/RedirectPage.razor create mode 100644 Program/Views/Project/RedirectPage.razor.cs diff --git a/App.razor b/App.razor index b43127c..ba4fb94 100644 --- a/App.razor +++ b/App.razor @@ -1,10 +1,31 @@ - + + + @* *@ + Not found diff --git a/Front.csproj b/Front.csproj index c7e0319..7104658 100644 --- a/Front.csproj +++ b/Front.csproj @@ -29,9 +29,6 @@ - - - diff --git a/Program/Layout/MainLayout.razor b/Program/Layout/MainLayout.razor index 2604c48..c31225c 100644 --- a/Program/Layout/MainLayout.razor +++ b/Program/Layout/MainLayout.razor @@ -9,6 +9,7 @@
+ @* *@ @Body
diff --git a/Program/Views/Project/About.razor.cs b/Program/Views/Project/About.razor.cs index 145471c..d1722ad 100644 --- a/Program/Views/Project/About.razor.cs +++ b/Program/Views/Project/About.razor.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Components; -namespace Front.Program.Views.Company; +namespace Front.Program.Views.Project; public partial class About : ComponentBase { diff --git a/Program/Views/Project/RedirectPage.razor b/Program/Views/Project/RedirectPage.razor new file mode 100644 index 0000000..1d13264 --- /dev/null +++ b/Program/Views/Project/RedirectPage.razor @@ -0,0 +1 @@ +@page "/" diff --git a/Program/Views/Project/RedirectPage.razor.cs b/Program/Views/Project/RedirectPage.razor.cs new file mode 100644 index 0000000..521d797 --- /dev/null +++ b/Program/Views/Project/RedirectPage.razor.cs @@ -0,0 +1,15 @@ +using Microsoft.AspNetCore.Components; + +namespace Front.Program.Views.Project; + +public partial class RedirectPage : ComponentBase +{ + [Inject] + private NavigationManager NavigationManager { get; set; } = default!; + + protected override void OnInitialized() + { + // Redirect to the desired URL + NavigationManager.NavigateTo("/about",true); + } +} \ No newline at end of file diff --git a/Program/Views/Project/TopBanner.razor b/Program/Views/Project/TopBanner.razor index 90f1369..9293b44 100644 --- a/Program/Views/Project/TopBanner.razor +++ b/Program/Views/Project/TopBanner.razor @@ -5,7 +5,6 @@ @* *@
-
Icon @@ -16,5 +15,4 @@
-