Skip to content

Commit

Permalink
feat: change header and sidebar folder again
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentina DOrazio committed May 5, 2024
1 parent ce6ac87 commit 738e166
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 74 deletions.
13 changes: 0 additions & 13 deletions src/backoffice-header/Header.astro

This file was deleted.

2 changes: 1 addition & 1 deletion src/backoffice-layout/Sidebar.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import Header from "~/backoffice-layout/Header.astro";
import SidebarItems from "../backoffice-sidebar./backoffice-layout/SidebarItems.astro";
import SidebarItems from "./SidebarItems.astro";
---


Expand Down
36 changes: 0 additions & 36 deletions src/backoffice-sidebar/Sidebar.astro

This file was deleted.

24 changes: 0 additions & 24 deletions src/backoffice-sidebar/SidebarItems.astro

This file was deleted.

6 changes: 6 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import i18next, { changeLanguage } from "i18next";
import { UserRecord, getAuth } from "firebase-admin/auth";
import { app } from "../firebase/server";
import BackofficeLayout from "~/backoffice-layout/BackofficeLayout.astro";
changeLanguage("en");
Expand Down Expand Up @@ -30,6 +31,9 @@ if (sessionCookie) {
</head>
<body>
<main role="main">
<BackofficeLayout>
<p>My page content, wrapped in a layout!</p>

<h1>Welcome to Hedwig!</h1>
<p>We are happy to see you here</p>
{user && (
Expand All @@ -38,6 +42,8 @@ if (sessionCookie) {
<button type="submit">Sign out</button>
</form>
)}
</BackofficeLayout>

</main>
</body>
</html>

0 comments on commit 738e166

Please sign in to comment.