PR with too many features #58

Merged
BobdaFett merged 56 commits from feat/admin-page into main 2026-02-10 14:31:49 +00:00
4 changed files with 13 additions and 16 deletions
Showing only changes of commit 9427810026 - Show all commits

No files matched your search

+1 -3
View File
@@ -12,7 +12,5 @@ pub fn AdminLoginContext(
"/providers/callback" "/providers/callback"
); );
view! { view! { {children()} }
{children()}
}
} }
+6 -7
View File
@@ -18,10 +18,12 @@ fn SidebarTab(
}); });
view! { view! {
<A href={move || path.get()}> <A href=move || path.get()>
<div class="p-3 transition-all font-bold" <div
class="p-3 transition-all font-bold"
class=(["bg-transparent", "text-white"], move || !selected.get()) class=(["bg-transparent", "text-white"], move || !selected.get())
class=(["bg-white", "text-black"], move || selected.get())> class=(["bg-white", "text-black"], move || selected.get())
>
{name} {name}
</div> </div>
</A> </A>
@@ -42,10 +44,7 @@ pub fn TabSidebarList(
key=|info| info.name.clone() key=|info| info.name.clone()
let(TabInfo { name, path }) let(TabInfo { name, path })
> >
<SidebarTab <SidebarTab name=name path=path />
name=name
path=path
/>
</For> </For>
</nav> </nav>
+3 -5
View File
@@ -14,8 +14,7 @@ pub fn AdminShell() -> impl IntoView {
<AdminLoginContext> <AdminLoginContext>
<Banner title="R15 Scholarships Admin" logo="/PHS_Stacked_Acronym.png" /> <Banner title="R15 Scholarships Admin" logo="/PHS_Stacked_Acronym.png" />
// We'll put the tabs here. // We'll put the tabs here.
<TabSidebarList <TabSidebarList tabs=vec![
tabs=vec![
TabInfo { TabInfo {
name: "Home".to_string(), name: "Home".to_string(),
path: "/admin/home".to_string(), path: "/admin/home".to_string(),
@@ -23,9 +22,8 @@ pub fn AdminShell() -> impl IntoView {
TabInfo { TabInfo {
name: "Test".to_string(), name: "Test".to_string(),
path: "/admin/testing".to_string(), path: "/admin/testing".to_string(),
} },
] ] />
/>
</AdminLoginContext> </AdminLoginContext>
} }
} }
+3 -1
View File
@@ -8,7 +8,9 @@ pub fn ApplicantsPageFallback() -> impl IntoView {
<div class="flex flex-col gap-4 mt-3 items-center justify-center"> <div class="flex flex-col gap-4 mt-3 items-center justify-center">
<h1 class="text-3xl font-bold">"Applicants Page"</h1> <h1 class="text-3xl font-bold">"Applicants Page"</h1>
<p>"This page is under construction! It will show all the students that are eligible for your scholarship(s)."</p> <p>
"This page is under construction! It will show all the students that are eligible for your scholarship(s)."
</p>
<p>"Come back soon!"</p> <p>"Come back soon!"</p>
</div> </div>
} }