Skip to content

Commit

Permalink
Merge pull request #320 from BibliothecaDAO/main
Browse files Browse the repository at this point in the history
remove events
  • Loading branch information
RedBeardEth authored Dec 11, 2024
2 parents 414d2ab + 2a303cb commit 0ac7e17
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
39 changes: 28 additions & 11 deletions apps/nextjs/src/app/(app)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand All @@ -37,7 +44,7 @@ export default async function Home() {
{carouselItems.map((item, index) => (
<CarouselItem key={index}>
<Link href={item.href}>
<div className="relative h-[300px] sm:h-[400px] md:h-[500px] lg:h-[700px] border-b">
<div className="relative h-[300px] border-b sm:h-[400px] md:h-[500px] lg:h-[700px]">
<Image
src={item.src}
alt={item.alt}
Expand All @@ -46,9 +53,15 @@ export default async function Home() {
className="h-full w-full rounded object-cover"
/>
<div className="absolute bottom-0 left-0 right-0 rounded bg-gradient-to-r from-black to-transparent p-4 sm:p-6 md:p-8">
<h2 className="text-xl sm:text-2xl md:text-3xl lg:text-4xl">{item.title}</h2>
<p className="mb-2 sm:mb-3 md:mb-4 text-sm sm:text-base md:text-lg lg:text-xl">{item.description}</p>
<Button variant="outline" className="text-sm sm:text-base">View game</Button>
<h2 className="text-xl sm:text-2xl md:text-3xl lg:text-4xl">
{item.title}
</h2>
<p className="mb-2 text-sm sm:mb-3 sm:text-base md:mb-4 md:text-lg lg:text-xl">
{item.description}
</p>
<Button variant="outline" className="text-sm sm:text-base">
View game
</Button>
</div>
</div>
</Link>
Expand All @@ -61,24 +74,28 @@ export default async function Home() {
<div className="px-4 sm:px-6 md:px-8">
<Partners />

<h2 className="mb-4 font-sans text-xl sm:text-2xl md:text-3xl">All Games</h2>
<h2 className="mb-4 font-sans text-xl sm:text-2xl md:text-3xl">
All Games
</h2>
<div className="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
{games.map((game, index) => (
<GameCard key={index} game={game.entry} slug={game.slug} />
))}
</div>

<div className="my-12 sm:my-16 md:my-20 lg:my-24">
<h2 className="mb-4 font-sans text-xl sm:text-2xl md:text-3xl">News</h2>
<h2 className="mb-4 font-sans text-xl sm:text-2xl md:text-3xl">
News
</h2>
<BlogGrid />
</div>

<div className="my-12 sm:my-16 md:my-20 lg:my-24">
{/*<div className="my-12 sm:my-16 md:my-20 lg:my-24">
<h2 className="mb-4 font-sans text-xl sm:text-2xl md:text-3xl">Events</h2>
<EventGrid isHomepage={true} />
</div>
</div>*/}

<hr className="my-6 sm:my-8 border" />
<hr className="my-6 border sm:my-8" />
<div className="my-12 sm:my-16 md:my-20">
<h2 className="mb-4 font-sans text-xl sm:text-2xl md:text-3xl">
Featured Collections
Expand Down
9 changes: 4 additions & 5 deletions apps/nextjs/src/app/_components/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -38,11 +37,11 @@ const Sidebar = () => {
href: "/collection",
icon: <Album className="w-[25px]" />,
},
{
/* {
name: "Events",
href: "/events",
icon: <Calender className="w-[25px]" />,
},
},*/
{
name: "Blog",
href: "/blogs",
Expand Down

0 comments on commit 0ac7e17

Please sign in to comment.