Skip to content
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

feat: lootsurvivor theme #7

Merged
merged 1 commit into from
Sep 10, 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
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}

if (
!data ||

Check failure on line 61 in apps/arkmarket/src/app/collection/[collectionAddress]/components/collection-items-buy-now.tsx

View workflow job for this annotation

GitHub Actions / lint

Unnecessary conditional, value is always falsy
data.value < BigInt(tokenMarketData.listing.start_amount ?? 0)
) {
sonner.error("Insufficient balance");
Expand All @@ -74,7 +74,7 @@
tokenId: token.token_id,
orderHash: tokenMarketData.listing.order_hash,
startAmount: tokenMarketData.listing.start_amount,
currencyAddress: tokenMarketData.listing.currency_address,
currencyAddress: env.NEXT_PUBLIC_LORDS_TOKEN_ADDRESS,
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function CollectionItemsDataGridView({
/>
</NftCardMedia>
<NftCardContent>
<div className="flex w-full justify-between">
<div className="flex w-full justify-between text-foreground">
<div className="w-full">
<p
className={cn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {

import type { CollectionToken } from "~/types";
import Media from "~/components/media";
import { PriceTag } from "@ark-market/ui/price-tag";

const gridTemplateColumnValue =
"grid-cols-[minmax(10rem,2fr)_repeat(5,minmax(7.25rem,1fr))]";
Expand Down
8 changes: 4 additions & 4 deletions apps/arkmarket/src/app/components/main-carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
CarouselContent,
CarouselItem,
} from "@ark-market/ui/carousel";
import { Ethereum } from "@ark-market/ui/icons";

Check failure on line 15 in apps/arkmarket/src/app/components/main-carousel.tsx

View workflow job for this annotation

GitHub Actions / lint

'Ethereum' is defined but never used. Allowed unused vars must match /^_/u

import { homepageConfig } from "~/config/homepage";

Expand Down Expand Up @@ -69,7 +69,7 @@
}

return (
<div className="md:text-white">
<div className="text-primary">
<Carousel setApi={setApi}>
<CarouselContent>
{homepageConfig.mainCarousel.map((carouselItem, index) => {
Expand Down Expand Up @@ -98,11 +98,11 @@
</h1>
<div className="flex items-center text-sm font-semibold">
<p className="mr-1">{carouselItem.itemsCount}</p>
<p className="mr-1 text-muted-foreground">
<p className="mr-1">
ITEMS
</p> | <Ethereum className="size-4" />
</p>
{/* <p className="mr-1">{carouselItem.floorPrice}</p> */}
<p className="text-muted-foreground">ETH</p>
{/* <p> ETH</p> */}
</div>
</div>
</div>
Expand Down
32 changes: 31 additions & 1 deletion apps/arkmarket/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@
--chart-5: 27 87% 67%;
}
.realms.dark {

--background: 69 9% 15%;
--foreground: 36 88.9% 85.9%;
--card: 69 9% 15%;
Expand Down Expand Up @@ -215,6 +214,37 @@
--limit: 320;
--distance: 8;
}

.lootsurvivor.dark, .lootsurvivor.light {
--font-spacemono: var(--font-vt323);
--font-baebasneue: var(--font-vt323);
--font-silkscreen: var(--font-vt323);
--background: 0 0 8%;
--foreground: 110 92% 56%;
--card: var(--background);
--card-foreground: 36 5% 10%;
--popover: var(--background);
--popover-foreground: var(--primary);
--primary: 110 92% 56%;
--primary-foreground: 0 0% 0%;
--secondary: var(--background);
--secondary-foreground: var(--primary);
--muted: var(--background);
--muted-foreground: var(--primary);
--accent: 110 92% 56%;
--accent-foreground: var(--background);
--destructive: 0 50% 30%;
--destructive-foreground: 36 5% 90%;
--border: 110 92% 56%;
--input: 110 92% 56%;
--ring: 36 88.9% 85.9%;
--radius: 0.3rem;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
}
}

@layer base {
Expand Down
9 changes: 8 additions & 1 deletion apps/arkmarket/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Metadata, Viewport } from "next";
import { Bebas_Neue, Space_Mono } from "next/font/google";
import { Bebas_Neue, Space_Mono, VT323 } from "next/font/google";
import { SpeedInsights } from "@vercel/speed-insights/next";

import { cn } from "@ark-market/ui";
Expand Down Expand Up @@ -113,6 +113,12 @@ const inconsolata = Space_Mono({
weight: "400",
display: "swap",
});
const vt323 = VT323({
subsets: ["latin"],
variable: "--font-vt323",
weight: "400",
display: "swap",
})

const backgroundImageStyle = {
backgroundImage: `url(/backgrounds/map.svg)`,
Expand All @@ -137,6 +143,7 @@ export default function RootLayout({ children }: PropsWithChildren) {
"min-h-screen overscroll-y-none bg-background text-foreground antialiased lg:pb-10",
silkscreen.variable,
inconsolata.variable,
vt323.variable,
)}
>
<CustomFonts />
Expand Down
2 changes: 1 addition & 1 deletion apps/arkmarket/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const env = createEnv({
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: z.string(),
NEXT_PUBLIC_IMAGE_CDN_URL: z.string().url(),
NEXT_PUBLIC_IMAGE_PROXY_URL: z.string().url(),
NEXT_PUBLIC_THEME: z.enum(["unframed", "realms", "default"]).default("default"),
NEXT_PUBLIC_THEME: z.enum(["unframed", "realms", "lootsurvivor", "default"]).default("default"),
NEXT_PUBLIC_MOBULA_API_KEY: z.string(),
NEXT_PUBLIC_LORDS_TOKEN_ADDRESS: z.string(),
NEXT_PUBLIC_RPC_API_KEY: z.string(),
Expand Down
Loading