Skip to content

Commit

Permalink
📧🎮 ↝ [ SGV2-10 SGV2-9 SGV2-2 FCDB-24 ] Fixing mobile orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Apr 6, 2024
1 parent 16d7786 commit 155bf0a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/Gameplay/onboarding.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import { useState } from "react";
import { useSession } from "@supabase/auth-helpers-react";
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
import Link from "next/link";
import { InventoryBlock } from "../dashboard-logs";
import { ItemsVerticalList } from "../Content/Inventory/UserOwnedItems";
import { UserOwnedSectorGrid } from "../Content/Planets/Sectors/SectorSetup";
import { useMediaQuery } from "react-responsive";

export function OnboardingWindows() {
const session = useSession();

const isDesktopOrLaptop = useMediaQuery({ query: '(min-width: 1224px)' });
const isTabletOrMobile = useMediaQuery({ query: '(max-width: 1224px)' });

return (
<div className="w-full">
<div className="container px-4 md:px-6">
<div className="grid max-w-6xl grid-cols-3 md:grid-cols-2 lg:grid-cols-3 gap-4 items-start min-h-[calc(10vh-1px)] py-6 mx-auto">
<div className={`grid max-w-6xl ${isTabletOrMobile ? 'grid-cols-1' : 'grid-cols-3 md:grid-cols-2 lg:grid-cols-3'} gap-4 items-start min-h-[calc(10vh-1px)] py-6 mx-auto`}>
{Array.from({ length: 6 }, (_, index) => (
<div key={index} className="collapse bg-base-200">
<input type="radio" name="my-accordion-1" id={`accordion-${index}`} />
Expand All @@ -32,7 +36,7 @@ export function OnboardingWindows() {
`}</style>
</div>
</div>
);
);
};

function getAccordionIcon(index) {
Expand Down

0 comments on commit 155bf0a

Please sign in to comment.