-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Admin] Component: Navigation Top List Bar - UI component #272 #327
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,52 @@ | ||
@inherits LayoutComponentBase | ||
|
||
<div class="page"> | ||
@if (this._isAdmin == true) | ||
{ | ||
<div class="sidebar"> | ||
<NavMenu /> | ||
<FluentLayout Style="margin-top: 10px;"> | ||
|
||
<FluentHeader> | ||
Azure OpenAI Proxy Playground | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 여기서 |
||
<div style="margin-left: auto;"> | ||
<FluentButton IconEnd="@(new Icons.Regular.Size20.Person().WithColor("Blue"))"> | ||
Login | ||
</FluentButton> | ||
Comment on lines
+8
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://simpleicons.org 여기 참조해 보면 좋을 듯? |
||
</div> | ||
</FluentHeader> | ||
|
||
<FluentStack Orientation="Orientation.Horizontal" Width="100%"> | ||
<div> | ||
<FluentNavMenu Width="250"> | ||
<FluentNavLink Icon="@(new Icons.Regular.Size24.Globe())" Href="/">AOAI Proxy Playground | ||
</FluentNavLink> | ||
<FluentNavLink Icon="@(new Icons.Regular.Size24.Home())" Href="/">Home</FluentNavLink> | ||
@if (this._isAdmin == true) | ||
{ | ||
<FluentNavLink Icon="@(new Icons.Regular.Size24.Board())" Href="/admin">Admin Dashboard</FluentNavLink> | ||
} | ||
</FluentNavMenu> | ||
</div> | ||
Comment on lines
+15
to
25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 네비 메뉴는 어드민 페이지에서만 보이게 해 주세욥. 플레이그라운드에서는 화면을 풀로 다 쓸 수 있으면 좋겠습니다. |
||
} | ||
|
||
<main> | ||
<article class="content px-4"> | ||
@Body | ||
</article> | ||
</main> | ||
<div style="width: 100%;"> | ||
<div> | ||
@Body | ||
</div> | ||
</div> | ||
</FluentStack> | ||
</FluentLayout> | ||
|
||
@* <div class="page"> | ||
<AdminTopListBar /> | ||
@if (this._isAdmin == true) | ||
{ | ||
<div class="sidebar"> | ||
<NavMenu /> | ||
</div> | ||
} | ||
|
||
<main> | ||
<article class="content px-4"> | ||
@Body | ||
</article> | ||
</main> | ||
</div> *@ | ||
|
||
<div id="blazor-error-ui"> | ||
An unhandled error has occurred. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
@page "/admin" | ||
|
||
<PageTitle>Admin Page</PageTitle> | ||
@* | ||
<AdminTopListBar /> *@ | ||
|
||
<h1>Admin Dashboard Page</h1> | ||
<h3>Admin Dashboard Page</h3> | ||
Comment on lines
3
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 앞서 남긴 코멘트대로 하면 여기서 살짝 논리를 바꾸면 될 듯? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout
컴포넌트하고MainLayout
컴포넌트하고 어떤게 더 맞을 것 같은가요? 저는MainLayout
같아 보이긴 하는데... 어떻게 생각하세요?