Skip to content

add zkube, add video to game pages, next 15 #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/frontinus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"@starknet-react/core": "^3.0.3",
"@tanstack/react-query": "^5.59.15",
"@tanstack/react-query-devtools": "^5.59.15",
"@tanstack/react-router": "^1.74.4",
"@tanstack/react-router-with-query": "^1.74.4",
"@tanstack/router-devtools": "^1.74.4",
"@tanstack/start": "^1.74.4",
"@tanstack/react-router": "^1.74.6",
"@tanstack/react-router-with-query": "^1.74.6",
"@tanstack/router-devtools": "^1.74.6",
"@tanstack/start": "^1.74.6",
"date-fns": "^4.1.0",
"get-starknet-core": "^3.3.4",
"graphql": "^16.9.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: zConqueror
title: zKrown
color: '#f5f5f5'
status: beta
developer: zkorp
Expand Down Expand Up @@ -28,4 +28,4 @@ links:
twitter: https://twitter.com/zKorp_
playable: true
---
zConqueror is a strategy game based on Risk, focusing on conquest and realm defense. Players compete to dominate the map and win rewards. You can compete up to 6 players
zKrown is a strategy game based on Risk, focusing on conquest and realm defense. Players compete to dominate the map and win rewards. You can compete up to 6 players
32 changes: 32 additions & 0 deletions apps/nextjs/content/games/zkube.mdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: zKube
color: 085f9b
status: mainnet
developer: zkorp
genres:
- Strategy
- Mobile
- Casual
description: Chill with this casual puzzle game
operatingSystems:
- Web Browser
chains:
- '0x534e5f4d41494e'
- '555'
collections: []
tokens:
- Lords
icon: icon.png
coverImage: coverImage.png
screenshots:
- screenshots/0.webm
- screenshots/1.png
- screenshots/2.png
- screenshots/3.png
links:
homepage: https://app.zkube.xyz/
twitter: https://twitter.com/zKube_game
mainnet: https://app.zkube.xyz/
playable: true
---
zKube is a casual puzzle game you can play on your mobile seamlessly. Join the daily or monthly tournament to conquer the leaderboard and earn rewards!
4 changes: 2 additions & 2 deletions apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@
"date-fns": "3.6.0",
"embla-carousel-autoplay": "8.3.0",
"embla-carousel-react": "8.3.0",
"eslint-config-next": "^15.0.0-rc.1",
"eslint-config-next": "^15.0.0",
"framer-motion": "^11.11.9",
"frames.js": "^0.15.1",
"gray-matter": "^4.0.3",
"keccak256": "^1.0.6",
"lodash": "4.17.21",
"lucide-react": "^0.441.0",
"merkletreejs": "^0.3.11",
"next": "^15.0.0-rc.1",
"next": "^15.0.0",
"nuqs": "^1.20.0",
"react": "catalog:react19",
"react-dom": "catalog:react19",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added apps/nextjs/public/content/games/zkube/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 24 additions & 9 deletions apps/nextjs/src/app/(app)/games/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from "react";
import Image from "next/image";
import Link from "next/link";
import { StatusDot } from "@/app/_components/StatusDot";
import keystatic from "@/app/(keystatic)/keystatic/keystatic";
import { reader } from "@/utils/keystatic";
import Markdoc from "@markdoc/markdoc";
import { CHAIN_IDS_TO_NAMES } from "@realms-world/constants";
Expand Down Expand Up @@ -235,25 +236,39 @@ export default async function Page(props: {
</div>
<div className="flex gap-x-8">
<div className="w-full px-12 sm:w-9/12">
{keyStaticGame.screenshots.length && (
{keyStaticGame.screenshots.length ? (
<Carousel className="w-full sm:h-96 sm:max-h-[750px] sm:min-h-[750px]">
<CarouselContent>
{list.map((image, index) => (
<CarouselItem key={index}>
<Image
src={image.src}
alt={image.alt}
width={1096}
height={750}
className="h-full w-full rounded border object-cover"
/>
{image.src.endsWith("webm") ? (
<video
width={400}
height={750}
controls
autoPlay
preload="none"
className="mx-auto sm:min-h-[650px]"
>
<source src={image.src} type="video/webm" />
Your browser does not support the video tag.
</video>
) : (
<Image
src={image.src}
alt={image.alt}
width={1096}
height={750}
className="h-full w-full rounded border object-cover"
/>
)}
</CarouselItem>
))}
</CarouselContent>
<CarouselPrevious />
<CarouselNext />
</Carousel>
)}
) : null}
</div>

<div className="pl-4 sm:w-3/12">
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
},
"dependencies": {
"@manypkg/cli": "^0.22.0",
"@turbo/gen": "^2.2.1",
"@turbo/gen": "^2.2.3",
"million": "^3.1.11",
"npm-check-updates": "^17.1.4",
"prettier": "catalog:",
"tsup": "^8.3.0",
"turbo": "2.2.1",
"turbo": "2.2.3",
"typescript": "catalog:"
},
"pnpm": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@realms-world/db": "workspace:*",
"@realms-world/utils": "workspace:*",
"@trpc/server": "11.0.0-rc.477",
"drizzle-pagination": "1.0.10",
"drizzle-pagination": "1.0.11",
"superjson": "2.2.1",
"zod": "catalog:"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@auth/drizzle-adapter": "^1.4.2",
"@realms-world/db": "workspace:*",
"@t3-oss/env-nextjs": "^0.11.1",
"next": "^15.0.0-rc.1",
"next": "^15.0.0",
"next-auth": "5.0.0-beta.19",
"react": "catalog:react19",
"react-dom": "catalog:react19",
Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@neondatabase/serverless": "0.10.1",
"@t3-oss/env-nextjs": "^0.11.1",
"drizzle-orm": "^0.35.1",
"drizzle-orm": "^0.35.2",
"drizzle-zod": "^0.5.1",
"zod": "catalog:"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@realms-world/db": "workspace:*",
"garph": "^0.6.8",
"graphql": "^16.9.0",
"graphql-yoga": "^5.6.0"
"graphql-yoga": "^5.7.0"
},
"devDependencies": {
"@realms-world/eslint-config": "workspace:*",
Expand Down
Loading
Loading