From a001140037884a34f92b9c074e6cb25301324b19 Mon Sep 17 00:00:00 2001 From: RedBeardEth <90423049+RedBeardEth@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:05:45 +1100 Subject: [PATCH] hide events --- apps/nextjs/src/app/(app)/page.tsx | 39 ++++++++++++++------ apps/nextjs/src/app/_components/SideMenu.tsx | 9 ++--- 2 files changed, 32 insertions(+), 16 deletions(-) diff --git a/apps/nextjs/src/app/(app)/page.tsx b/apps/nextjs/src/app/(app)/page.tsx index 32b3f913..9453cb93 100644 --- a/apps/nextjs/src/app/(app)/page.tsx +++ b/apps/nextjs/src/app/(app)/page.tsx @@ -15,13 +15,20 @@ import { PageLayout } from "../_components/PageLayout"; import { Partners } from "../_components/Partners"; import { BlogGrid } from "./blogs/BlogGrid"; import CollectionsList from "./collection/CollectionsList"; -import { EventGrid } from "./events/EventGrid"; + +//import { EventGrid } from "./events/EventGrid"; export default async function Home() { const games = await reader().collections.games.all(); const carouselItems = games .filter((a) => a.slug === "realms-eternum") - .concat(games.filter((a) => (a.slug !== "realms-eternum" && (a.entry.status === "beta" || a.entry.status === "mainnet")))) + .concat( + games.filter( + (a) => + a.slug !== "realms-eternum" && + (a.entry.status === "beta" || a.entry.status === "mainnet"), + ), + ) .map((game) => ({ alt: game.entry.title, src: `/content/games/${game.slug}/${game.entry.coverImage}`, @@ -37,7 +44,7 @@ export default async function Home() { {carouselItems.map((item, index) => ( -
+
{item.alt}
-

{item.title}

-

{item.description}

- +

+ {item.title} +

+

+ {item.description} +

+
@@ -61,7 +74,9 @@ export default async function Home() {
-

All Games

+

+ All Games +

{games.map((game, index) => ( @@ -69,16 +84,18 @@ export default async function Home() {
-

News

+

+ News +

-
+ {/*

Events

-
+
*/} -
+

Featured Collections diff --git a/apps/nextjs/src/app/_components/SideMenu.tsx b/apps/nextjs/src/app/_components/SideMenu.tsx index 9709aaff..7574c3d3 100644 --- a/apps/nextjs/src/app/_components/SideMenu.tsx +++ b/apps/nextjs/src/app/_components/SideMenu.tsx @@ -13,11 +13,10 @@ import Gamepad from "@/icons/gamepad.svg"; import LordsIcon from "@/icons/lords.svg"; import RWLogo from "@/icons/rw-logo.svg"; import SideHeaderImg from "@/icons/side-header.svg"; -import { Github, Newspaper, Twitter, User } from "lucide-react"; -import { cn } from "@realms-world/utils"; - import { Button } from "@realms-world/ui/components/ui/button"; import { ScrollArea } from "@realms-world/ui/components/ui/scroll-area"; +import { cn } from "@realms-world/utils"; +import { Github, Newspaper, Twitter, User } from "lucide-react"; import { useUIStore } from "../../providers/UIStoreProvider"; @@ -38,11 +37,11 @@ const Sidebar = () => { href: "/collection", icon: , }, - { + /* { name: "Events", href: "/events", icon: , - }, + },*/ { name: "Blog", href: "/blogs",