diff --git a/pkg/view/src/layouts/RootLayout.tsx b/pkg/view/src/layouts/RootLayout.tsx
index a0f453a..aabec0a 100644
--- a/pkg/view/src/layouts/RootLayout.tsx
+++ b/pkg/view/src/layouts/RootLayout.tsx
@@ -36,20 +36,23 @@ export default function RootLayout(props: any) {
const mainContentStyles = createMemo(() => {
if (!searchParams["embedded"]) {
- return "h-[calc(100vh-64px)] mt-[64px]";
+ return "h-[calc(100vh-64px)] max-md:mb-[64px] md:mt-[64px]";
} else {
return "h-[100vh]";
}
});
return (
-
-
-
- }>
+ }
+ >
@@ -57,4 +60,4 @@ export default function RootLayout(props: any) {
{props.children}
);
-}
\ No newline at end of file
+}
diff --git a/pkg/view/src/layouts/shared/Navbar.tsx b/pkg/view/src/layouts/shared/Navbar.tsx
index 91c7f5c..c996884 100644
--- a/pkg/view/src/layouts/shared/Navbar.tsx
+++ b/pkg/view/src/layouts/shared/Navbar.tsx
@@ -4,6 +4,7 @@ import { useNavigate } from "@solidjs/router";
import { useWellKnown } from "../../stores/wellKnown.tsx";
interface MenuItem {
+ icon: string;
label: string;
href?: string;
children?: MenuItem[];
@@ -11,9 +12,9 @@ interface MenuItem {
export default function Navbar() {
const nav: MenuItem[] = [
- { label: "Creators", href: "/creators" },
- { label: "Feed", href: "/" },
- { label: "Realms", href: "/realms" }
+ { icon: "fa-solid fa-pen-nib", label: "Creators", href: "/creators" },
+ { icon: "fa-solid fa-newspaper", label: "Feed", href: "/" },
+ { icon: "fa-solid fa-people-group", label: "Realms", href: "/realms" },
];
const wellKnown = useWellKnown();
@@ -26,89 +27,97 @@ export default function Navbar() {
}
return (
-
-
-
-
-
+ <>
+
-
-
+
+
+
+ {(item) => (
+
+
+
+ )}
+
-
-
-
-
-
-
- Login
-
-
-
-
+ >
);
}
diff --git a/pkg/view/src/pages/creators/view.tsx b/pkg/view/src/pages/creators/view.tsx
index 7a9da23..f4481bf 100644
--- a/pkg/view/src/pages/creators/view.tsx
+++ b/pkg/view/src/pages/creators/view.tsx
@@ -1,16 +1,28 @@
+import { createMemo } from "solid-js";
+import { useSearchParams } from "@solidjs/router";
+
import styles from "./view.module.css";
export default function CreatorView(props: any) {
+ const [searchParams] = useSearchParams();
+
+ const scrollContentStyles = createMemo(() => {
+ if (!searchParams["embedded"]) {
+ return "max-md:mb-[64px] md:mt-[64px]";
+ } else {
+ return "h-[100vh]";
+ }
+ });
+
return (
Creator Hub
-
);
-}
\ No newline at end of file
+}
diff --git a/pkg/view/src/pages/view.module.css b/pkg/view/src/pages/view.module.css
index 0f47b16..b5b7d39 100644
--- a/pkg/view/src/pages/view.module.css
+++ b/pkg/view/src/pages/view.module.css
@@ -1,13 +1,11 @@
.wrapper {
- display: grid;
- grid-template-columns: 1fr;
- column-gap: 20px;
-
- max-height: calc(100vh - 64px);
+ display: grid;
+ grid-template-columns: 1fr;
+ column-gap: 20px;
}
@media (min-width: 1024px) {
- .wrapper {
- grid-template-columns: 1fr 2fr 1fr;
- }
-}
\ No newline at end of file
+ .wrapper {
+ grid-template-columns: 1fr 2fr 1fr;
+ }
+}
diff --git a/pkg/view/src/pages/view.tsx b/pkg/view/src/pages/view.tsx
index 2f1445d..79a0e48 100644
--- a/pkg/view/src/pages/view.tsx
+++ b/pkg/view/src/pages/view.tsx
@@ -1,16 +1,28 @@
+import { createMemo } from "solid-js";
+import { useSearchParams } from "@solidjs/router";
+
import styles from "./view.module.css";
export default function FeedView(props: any) {
+ const [searchParams] = useSearchParams();
+
+ const scrollContentStyles = createMemo(() => {
+ if (!searchParams["embedded"]) {
+ return "max-md:mb-[64px] md:mt-[64px]";
+ } else {
+ return "h-[100vh]";
+ }
+ });
+
return (
-
);
-}
\ No newline at end of file
+}