Skip to content

Commit

Permalink
πŸŒ›πŸͺ ↝ [#114]: Beginning to integrate cloud data into component
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Jun 29, 2024
1 parent 61bff5c commit 87edb01
Show file tree
Hide file tree
Showing 9 changed files with 157 additions and 167 deletions.
143 changes: 141 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

import "@/styles/globals.css";
import { createPagesBrowserClient } from "@supabase/auth-helpers-nextjs";
import { SessionContextProvider } from "@supabase/auth-helpers-react";
import { useEffect, useState } from "react";
import { SessionContextProvider, useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
import { useEffect, useState, ReactNode } from "react";
import Head from "next/head";
import { ActivePlanetProvider, useActivePlanet } from "@/context/ActivePlanet";
import dynamic from 'next/dynamic';
import { InventoryProvider } from "@/context/InventoryContext";
import { UserAnomaliesProvider } from "@/context/UserAnomalies";
import { bgImage, backgroundImages } from "@/constants/backgrounds";

export default function RootLayout({ children }: { children: React.ReactNode }) {
const [supabaseClient] = useState(() => createPagesBrowserClient());
Expand Down Expand Up @@ -66,12 +67,150 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<ActivePlanetProvider>
<UserAnomaliesProvider>
<InventoryProvider>
<FrontendLayout bg={true}>
{children}
</FrontendLayout>
</InventoryProvider>
</UserAnomaliesProvider>
</ActivePlanetProvider>
</SessionContextProvider>
</body>
</html>
);
};

interface LayoutProps {
children: ReactNode;
bg: any;
}

function FrontendLayout({ children }: LayoutProps) {
// Layout components
const supabase = useSupabaseClient();
const session = useSession();

const { activePlanet, updatePlanetLocation } = useActivePlanet();

const [showSidebar, setShowSidebar] = useState(false);
const [showFeed, setShowFeed] = useState(false);
const [showAnimation, setShowAnimation] = useState(false);
const [showClassificationsFeed, setShowClassificationsFeed] = useState(false);
const [canChangePlanet, setCanChangePlanet] = useState(false);

useEffect(() => {
const checkInventory = async () => {
const { data, error } = await supabase
.from('inventory')
.select('*')
.eq('owner', session?.user.id);

if (error) {
console.error('Error fetching inventory:', error);
return;
}

if (data) {
const hasSpacecraft = data.some(
(item) => item.item === 29 && item.anomaly === activePlanet?.id
);
const hasLaunchpad = data.some(
(item) => item.item === 33 && item.anomaly && item.time_of_deploy
);

setCanChangePlanet(hasSpacecraft && hasLaunchpad);
}
};

if (session?.user.id && activePlanet?.id) {
checkInventory();
}
}, [session?.user.id, activePlanet?.id]);

const handleLeftArrowClick = () => {
if (canChangePlanet && activePlanet?.id && parseInt(activePlanet.id) > 1) {
const newId = parseInt(activePlanet.id) - 1;
setShowAnimation(true);
setTimeout(() => {
updatePlanetLocation(newId);
setShowAnimation(false);
}, 2000);
}
};

const handleRightArrowClick = () => {
if (canChangePlanet && activePlanet?.id && parseInt(activePlanet.id) < 6) {
const newId = parseInt(activePlanet.id) + 1;
setShowAnimation(true);
setTimeout(() => {
updatePlanetLocation(newId);
setShowAnimation(false);
}, 2000);
}
};

const activePlanetId = activePlanet?.id ? parseInt(activePlanet.id) : null;

const handleOpenFeed = () => {
setShowFeed(!showFeed);
};

const handleCloseFeed = (e: React.MouseEvent) => {
if ((e.target as HTMLElement).id === 'overlay') {
setShowFeed(false);
}
};

const handleOpenSlideover = () => {
setShowSidebar(!showSidebar);
};

const handleCloseSlideover = (e: React.MouseEvent) => {
if ((e.target as HTMLElement).id === 'overlay') {
setShowSidebar(false);
}
};

const handleOpenClassificationsFeed = () => {
setShowClassificationsFeed(true);
document.body.style.overflow = 'hidden'; // Disable body scroll
};

const handleCloseClassificationsFeed = (e: React.MouseEvent) => {
if ((e.target as HTMLElement).id === 'overlay' || (e.target as HTMLElement).id === 'close-btn') {
setShowClassificationsFeed(false);
document.body.style.overflow = 'auto'; // Enable body scroll
}
};

// For background context
// const { activePlanet } = useActivePlanet(); - already called
const planetId = Number(activePlanet?.id ?? 1);

if (!activePlanet || activePlanet == null) {
return (
<div
className="min-h-screen flex flex-col"
style={{
backgroundImage: `url(${bgImage})`,
backgroundSize: "cover",
backgroundPosition: "center",
}}
>
{children}
</div>
);
};

return (
<div
className="min-h-screen flex flex-col"
style={{
backgroundImage: `url(${(backgroundImages as any)[planetId]})`,
backgroundSize: "cover",
backgroundPosition: "center",
}}
>
{children}
</div>
);
};
2 changes: 1 addition & 1 deletion components/Content/MissionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
CardContent,
CardFooter,
Card,
} from "@/ui/Card";
} from "@/components/ui/card";
import React, { useEffect, useState } from 'react';
import { useSession, useSupabaseClient } from '@supabase/auth-helpers-react';

Expand Down
4 changes: 2 additions & 2 deletions components/Gameplay/Inventory/UserPlanets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Dialog, Transition } from '@headlessui/react';
import { CompassIcon, ArrowLeftIcon, ArrowRightIcon, BookOpenIcon } from "@/ui/Sections/PlanetLayout";
import { useActivePlanet } from "@/context/ActivePlanet";

import { Button } from "@/ui/button";
import { Button } from "@/components/ui/button";
import { AllAutomatons, SingleAutomaton, SingleAutomatonCraftItem } from "./Automatons/Automaton";
import { AllStructures } from "./Structures/Structure";
import Link from "next/link";
Expand All @@ -14,7 +14,7 @@ import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
import { ProfileCard } from "@/auth/UserProfileFields";
import GoToYourPlanet from "../Travel/InitTravel";
import UserItemsUndeployed from "./InactiveItems";
import { Card } from "@/ui/Card";
import { Card } from "@/components/ui/card";
import CraftStructure from "./Actions/CraftStructure";
import FirstClassification from "@/Classifications/FirstClassification";
import UserAnomaliesComponent from "@/components/Content/Anomalies/YourAnomalies";
Expand Down
2 changes: 1 addition & 1 deletion components/Gameplay/Travel/InitTravel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { useEffect, useState } from "react";
import { useActivePlanet } from "@/context/ActivePlanet";
import { Button } from "@/ui/button";
import { Button } from "@/components/ui/button";
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";

interface GoToYourPlanetProps {
Expand Down
29 changes: 1 addition & 28 deletions components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,13 @@ import { ReactNode } from "react";
import { useSession } from "@supabase/auth-helpers-react";
import { useActivePlanet } from "@/context/ActivePlanet";
import { PlanetLayout } from "@/ui/Sections/PlanetLayout";
import { backgroundImages, bgImage } from "@/constants/backgrounds";

interface LayoutProps {
children: ReactNode;
bg: any;
}

const backgroundImages = {
1: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
2: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
3: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
4: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
5: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
6: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024"
};

const bgImage = "https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?q=80&w=2372&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D";

export default function Layout({ children }: LayoutProps) {
const session = useSession();
const { activePlanet } = useActivePlanet();
Expand All @@ -40,21 +30,4 @@ export default function Layout({ children }: LayoutProps) {
</PlanetLayout>
</div>
);
};

export function LayoutNoPlanet({ children }: LayoutProps) {
return (
<div
className="min-h-screen flex flex-col"
style={{
backgroundImage: `url(${bgImage})`,
backgroundSize: "cover",
backgroundPosition: "center",
}}
>
<PlanetLayout>
{children}
</PlanetLayout>
</div>
);
};
10 changes: 10 additions & 0 deletions constants/backgrounds.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const backgroundImages = {
1: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
2: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
3: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
4: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
5: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024",
6: "https://cdn.cloud.scenario.com/assets-transform/asset_kndmNKAPEUtbXsQ8vDQzbT9e?p=100&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uY2xvdWQuc2NlbmFyaW8uY29tL2Fzc2V0cy10cmFuc2Zvcm0vYXNzZXRfa25kbU5LQVBFVXRiWHNROHZEUXpiVDllP3A9MTAwKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMDM5Njc5OX19fV19&Key-Pair-Id=K36FIAB9LE2OLR&Signature=FTz7yIDNNxwS86IhY4imtBY0YJCqLt8PXlmhWFBaL632VuIP13qIzTREaIcxJICHQ7nO2EW-Wi7n97fPlIC580li1uzbeE~ulDXFp2XywZEmwrsybJV82GBTmcUqjAYMcIrZjATFSrIYv9-lA~QH3OtJtyrFAvZrpcLSWlQ4ncxe26-lppuqSrJSlZ4EnuhcCvCqZZYnOQ2de2B0DCi9Qmlqmes4l2AFFXA8oVy9Tsult5x4GxHGvWissoz2PXWHGalLz2b6oIf3kGfcNvj2nWLn1~XlzN1THWkQ4d4uERGsC8x2nn-Wap-~JSmyTvqPmJFFkhIhGFx1roaV1x-6ew__&quality=80&format=jpeg&width=1024"
};

export const bgImage = "https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?q=80&w=2372&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D";
76 changes: 0 additions & 76 deletions ui/Card.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion ui/Sections/PlanetLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import MissionList from "@/components/Content/MissionList";
import { useActivePlanet } from "@/context/ActivePlanet";
import { Button } from "@/ui/button";
import { Button } from "@/components/ui/button";
import { PaintRollerIcon, ArrowRightIcon as LucideArrowRightIcon, ArrowLeftIcon as LucideArrowLeftIcon, BookOpenIcon as LucideBookOpenIcon } from "lucide-react";
import Link from "next/link";
import { ReactNode, useEffect, useState } from "react";
Expand Down
Loading

0 comments on commit 87edb01

Please sign in to comment.