Terrain
diff --git a/frontend/src/components/starmap/index.tsx b/frontend/src/components/starmap/index.tsx
index 509a682..3fb7e85 100644
--- a/frontend/src/components/starmap/index.tsx
+++ b/frontend/src/components/starmap/index.tsx
@@ -2,11 +2,21 @@ import { useState } from 'react';
import { allPlanets, PlanetProps } from 'fakeData/planets';
import styles from './StarMap.module.scss';
-const StarMap = ({ planet }: { planet: string }) => {
+const StarMap = ({
+ planet,
+ setPlanet
+}: {
+ planet: string,
+ setPlanet?: (planet: PlanetProps) => void
+}) => {
const [hoveredPlanet, setHoveredPlanet] = useState
(null);
const handlePlanetClick = (planetNumber: number) => {
- window.location.href = `/planet/${planetNumber}`;
+ if (setPlanet) {
+ setPlanet(allPlanets[planetNumber - 1]);
+ } else {
+ window.location.href = `/planet/${planetNumber}`;
+ }
};
const handleMouseEnter = (planetName: string) => {
diff --git a/frontend/src/config/routes.tsx b/frontend/src/config/routes.tsx
index 930fe5f..2d60d6b 100644
--- a/frontend/src/config/routes.tsx
+++ b/frontend/src/config/routes.tsx
@@ -33,7 +33,7 @@ export const useNav = () => {
},
{
path: "https://dao.enterprise.money/daos",
- name: "Alliance DAO Staking",
+ name: "Staking",
isExternal: true,
},
]
diff --git a/frontend/src/content/HowItWorks.mdx b/frontend/src/content/HowItWorks.mdx
index fa41cde..adb496e 100644
--- a/frontend/src/content/HowItWorks.mdx
+++ b/frontend/src/content/HowItWorks.mdx
@@ -4,17 +4,22 @@ import styles from './MDX.module.scss';
# How It Works
- ## Alliance DAO
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin cursus enim suscipit, semper arcu ut, egestas odio. Quisque elementum sollicitudin sagittis. Phasellus ultrices consequat luctus. Donec condimentum mi orci, sed pharetra risus viverra sit amet. Donec iaculis turpis vitae maximus vehicula. Vestibulum venenatis diam neque, nec facilisis massa pharetra a. Sed ipsum dui, interdum vitae vulputate vel, vulputate ac lacus. Aliquam tortor risus, feugiat nec ipsum a, tristique iaculis nulla. Vivamus rhoncus, metus non gravida ornare, magna orci rutrum eros, ut aliquet turpis enim sed metus. Etiam at faucibus purus, quis faucibus sapien. Vestibulum vestibulum erat ac consequat facilisis. In fringilla, elit sit amet finibus porta, urna lectus lacinia lorem, nec placerat enim nibh vel risus. Proin facilisis aliquam ex, in tincidunt odio varius eget. Aliquam erat volutpat. In hac habitasse platea dictumst. Sed eget nunc odio.
+ ## Alliance DAO
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin cursus enim suscipit, semper arcu ut, egestas odio. Quisque elementum sollicitudin sagittis. Phasellus ultrices consequat luctus. Donec condimentum mi orci, sed pharetra risus viverra sit amet. Donec iaculis turpis vitae maximus vehicula. Vestibulum venenatis diam neque, nec facilisis massa pharetra a. Sed ipsum dui, interdum vitae vulputate vel, vulputate ac lacus. Aliquam tortor risus, feugiat nec ipsum a, tristique iaculis nulla. Vivamus rhoncus, metus non gravida ornare, magna orci rutrum eros, ut aliquet turpis enim sed metus. Etiam at faucibus purus, quis faucibus sapien. Vestibulum vestibulum erat ac consequat facilisis. In fringilla, elit sit amet finibus porta, urna lectus lacinia lorem, nec placerat enim nibh vel risus. Proin facilisis aliquam ex, in tincidunt odio varius eget. Aliquam erat volutpat. In hac habitasse platea dictumst. Sed eget nunc odio.
## Claiming Your NFT
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin cursus enim suscipit, semper arcu ut, egestas odio. Quisque elementum sollicitudin sagittis. Phasellus ultrices consequat luctus. Donec condimentum mi orci, sed pharetra risus viverra sit amet. Donec iaculis turpis vitae maximus vehicula. Vestibulum venenatis diam neque, nec facilisis massa pharetra a. Sed ipsum dui, interdum vitae vulputate vel, vulputate ac lacus. Aliquam tortor risus, feugiat nec ipsum a, tristique iaculis nulla. Vivamus rhoncus, metus non gravida ornare, magna orci rutrum eros, ut aliquet turpis enim sed metus. Etiam at faucibus purus, quis faucibus sapien. Vestibulum vestibulum erat ac consequat facilisis. In fringilla, elit sit amet finibus porta, urna lectus lacinia lorem, nec placerat enim nibh vel risus. Proin facilisis aliquam ex, in tincidunt odio varius eget. Aliquam erat volutpat. In hac habitasse platea dictumst. Sed eget nunc odio.
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin cursus enim suscipit, semper arcu ut, egestas odio. Quisque elementum sollicitudin sagittis. Phasellus ultrices consequat luctus. Donec condimentum mi orci, sed pharetra risus viverra sit amet. Donec iaculis turpis vitae maximus vehicula. Vestibulum venenatis diam neque, nec facilisis massa pharetra a. Sed ipsum dui, interdum vitae vulputate vel, vulputate ac lacus. Aliquam tortor risus, feugiat nec ipsum a, tristique iaculis nulla. Vivamus rhoncus, metus non gravida ornare, magna orci rutrum eros, ut aliquet turpis enim sed metus. Etiam at faucibus purus, quis faucibus sapien.
## Alliance Rewards
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin cursus enim suscipit, semper arcu ut, egestas odio. Quisque elementum sollicitudin sagittis. Phasellus ultrices consequat luctus. Donec condimentum mi orci, sed pharetra risus viverra sit amet. Donec iaculis turpis vitae maximus vehicula. Vestibulum venenatis diam neque, nec facilisis massa pharetra a. Sed ipsum dui, interdum vitae vulputate vel, vulputate ac lacus. Aliquam tortor risus, feugiat nec ipsum a, tristique iaculis nulla. Vivamus rhoncus, metus non gravida ornare, magna orci rutrum eros, ut aliquet turpis enim sed metus. Etiam at faucibus purus, quis faucibus sapien. Vestibulum vestibulum erat ac consequat facilisis. In fringilla, elit sit amet finibus porta, urna lectus lacinia lorem, nec placerat enim nibh vel risus. Proin facilisis aliquam ex, in tincidunt odio varius eget. Aliquam erat volutpat. In hac habitasse platea dictumst. Sed eget nunc odio.
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet massa euismod, mollis mi quis, dapibus metus. Proin placerat pharetra tellus, ac sagittis urna suscipit vel. Phasellus euismod, odio eu euismod bibendum, neque ipsum ultricies lacus, quis semper erat ligula ac enim. Praesent hendrerit lectus nec turpis vehicula, non mollis ex ultrices. Suspendisse tincidunt, ante a malesuada lobortis, turpis ante euismod leo, vitae facilisis tellus lacus a elit. In facilisis metus id libero iaculis, sed venenatis orci dictum. Aliquam eros nunc, imperdiet quis enim at, iaculis tristique orci.
+
+
+
+ ## Claiming rewards
+ Aenean urna lacus, vehicula eu euismod id, posuere vel tortor. Nam mattis tincidunt tincidunt. Nullam consequat iaculis enim, vitae auctor ex maximus at. Nam tempor urna sit amet leo hendrerit consectetur. Donec euismod, est sit amet euismod viverra, leo enim vestibulum urna, in luctus justo sapien at nisi. Morbi faucibus, libero ut consequat commodo, lacus urna viverra mauris, sed tempus tortor diam a ipsum. Sed ut ex enim. Maecenas eleifend ex neque, vel consequat enim porta imperdiet.
diff --git a/frontend/src/content/MDX.module.scss b/frontend/src/content/MDX.module.scss
index 5898775..4dfd5f4 100644
--- a/frontend/src/content/MDX.module.scss
+++ b/frontend/src/content/MDX.module.scss
@@ -5,6 +5,27 @@
flex-direction: column;
gap: 48px;
+ &.story {
+
+ max-width: unset;
+ margin: 0 auto;
+ padding-bottom: 24px;
+ overflow: scroll;
+
+ h1 {
+ display: none;
+ }
+
+ @media (max-width: 997px) {
+ overflow: unset;
+ }
+
+ @media (max-width: 700px) {
+ overflow: unset;
+ gap: 24px;
+ }
+ }
+
h1 {
text-align: center;
}
diff --git a/frontend/src/content/TheStory.mdx b/frontend/src/content/TheStory.mdx
index f293577..6bb5262 100644
--- a/frontend/src/content/TheStory.mdx
+++ b/frontend/src/content/TheStory.mdx
@@ -1,13 +1,13 @@
import styles from './MDX.module.scss';
-
+
# The Story
Millions of years from now, there are ten planets hosting humanoid life. The planets and their inhabitants are wildly different, and none of them know the others exist, isolated by the vast emptiness of space.
-
+
One day, something inexplicable happened. In a flash, hundreds of people on each planet suddenly vanished. They were transported to one of the other planets or to a different location on their home planet. Thousands were displaced and forced to make their way on strange new worlds.
-
+
This occurrence is known simply as “The Warp.”
@@ -36,11 +36,11 @@ import styles from './MDX.module.scss';
The Alliance devices themselves were also lost, and the thoughts of their use, the Last Journey, and the origins of humanity faded from memory. Some planets have ancient structures with inscriptions describing the Last Journey, but their true meaning has been lost as various cultures and religions rewrote their significance.
-
+
## Survival
For the next seven million years, the inhabitants of the ten planets evolved and adapted to their surroundings, each becoming suited to the environment and climate of their homes. Their bodies changed, and so did the plants and animals around them. Ten planets created ten distinct cultures of human descendants, each with its own civilization and technology.
-
+
The populations on each planet varied, though no planet ever became densely populated. Survival was difficult, even after millions of years. A few planets went through periods of near extinction, resetting civilization and beginning the cycle again. Some went through cycles of technological advancement followed by destruction and cultural decimation from wars and natural disasters. Several planets had achieved societal and technological advancements nearly on par with those of Earth. Despite their differences, the planets all had two things in common: none of them knew their origins, and most believed themselves to be the singular source of life across the cosmos.
@@ -63,4 +63,3 @@ import styles from './MDX.module.scss';
-
diff --git a/frontend/src/fakeData/mockNFTs.ts b/frontend/src/fakeData/mockNFTs.ts
index 89abae7..6793ec8 100644
--- a/frontend/src/fakeData/mockNFTs.ts
+++ b/frontend/src/fakeData/mockNFTs.ts
@@ -1,87 +1,99 @@
+export interface NFTType {
+ id: number;
+ planet: string;
+ image: string;
+ biome: string;
+ character: string;
+ object: string;
+ rarityScore: number;
+ rewards: number;
+ claimed: string;
+}
+
export const mockNFTs = [
{
id: 0,
- background_color: "",
+ planet: "Cristall South",
image: "/src/assets/nfts/MOUNTAINS 2 1.png",
biome: "water",
- character: "fire",
- object: "sword",
+ character: "Kitan F",
+ object: "Quartz Ray Gun",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 1,
- background_color: "",
+ planet: "Crutha South",
image: "/src/assets/nfts/MOUNTAINS 2 2.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "fire",
+ character: "Cristallian F",
+ object: "Sword of Zando",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 2,
- background_color: "",
+ planet: "Kita South",
image: "/src/assets/nfts/MOUNTAINS 2 3.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "ice",
+ character: "Kitan M",
+ object: "Staff of Zando",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 3,
- background_color: "",
+ planet: "Kita North",
image: "/src/assets/nfts/MOUNTAINS 2 4.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "jungle",
+ character: "Kitan F",
+ object: "Kitan Ice Staff",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 4,
- background_color: "",
+ planet: "Ozara South",
image: "/src/assets/nfts/MOUNTAINS 2 5.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "mountain",
+ character: "Pampan M",
+ object: "Cristallian Bow",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 5,
- background_color: "",
+ planet: "Zando North",
image: "/src/assets/nfts/MOUNTAINS 2 1second.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "meadows",
+ character: "Lusan M",
+ object: "Ice Cleaver",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 6,
- background_color: "",
+ planet: "Sindari North",
image: "/src/assets/nfts/MOUNTAINS 2 2second.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "asteroid",
+ character: "Sindarin M",
+ object: "Ice Cleaver",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 7,
- background_color: "",
+ planet: "Sindari South",
image: "/src/assets/nfts/MOUNTAINS 2 3second.png",
- biome: "water",
- character: "fire",
+ biome: "flowerbeds",
+ character: "Gredican M",
object: "sword",
rarityScore: 0.4,
rewards: 89.49,
@@ -89,82 +101,82 @@ export const mockNFTs = [
},
{
id: 8,
- background_color: "",
+ planet: "Minas South",
image: "/src/assets/nfts/MOUNTAINS 2 4second.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "crystal",
+ character: "Kitan F",
+ object: "Pampan Grass Sword",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 9,
- background_color: "",
+ planet: "Ozara South",
image: "/src/assets/nfts/MOUNTAINS 2 5second.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "desert",
+ character: "Gredican F",
+ object: "Sindarin Fire Staff",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 10,
- background_color: "",
+ planet: "Ozara North",
image: "/src/assets/nfts/MOUNTAINS 2 1third.png",
- biome: "water",
- character: "fire",
- object: "sword",
+ biome: "fire",
+ character: "Gredican F",
+ object: "Phoenix Rising",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 11,
- background_color: "",
+ planet: "Gredica North",
image: "/src/assets/nfts/MOUNTAINS 2 2third.png",
biome: "water",
- character: "fire",
- object: "sword",
+ character: "Cruthan F",
+ object: "Lusan Xtreme Soaker",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 12,
- background_color: "",
+ planet: "Gredica South",
image: "/src/assets/nfts/MOUNTAINS 2 3third.png",
biome: "water",
character: "fire",
- object: "sword",
+ object: "Golden Hammer",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 13,
- background_color: "",
+ planet: "Crutha North",
image: "/src/assets/nfts/MOUNTAINS 2 4third.png",
biome: "water",
- character: "fire",
- object: "sword",
+ character: "Minas M",
+ object: "Sindarin Flame Thrower",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
{
id: 14,
- background_color: "",
+ planet: "Pampas South",
image: "/src/assets/nfts/MOUNTAINS 2 5third.png",
biome: "water",
- character: "fire",
- object: "sword",
+ character: "Minas M",
+ object: "Cruthan Death Mace",
rarityScore: 0.4,
rewards: 89.49,
claimed: "24 December 2023"
},
-];
+] as NFTType[];
export const signedInUserData = {
id: 0,
diff --git a/frontend/src/fakeData/planetsByName.tsx b/frontend/src/fakeData/planetsByName.tsx
new file mode 100644
index 0000000..79a6987
--- /dev/null
+++ b/frontend/src/fakeData/planetsByName.tsx
@@ -0,0 +1,102 @@
+export const planetsByName = {
+ 'Cristall South': {
+ name: 'Cristall South',
+ terrain: 'crystal',
+ inhabitants: 'Cristall',
+ },
+ 'Cristall North': {
+ name: 'Cristall North',
+ terrain: 'crystal',
+ inhabitants: 'Cristall',
+ },
+ 'Crutha South': {
+ name: 'Crutha South',
+ terrain: 'mountain',
+ inhabitants: 'Crutha',
+ },
+ 'Crutha North': {
+ name: 'Crutha North',
+ terrain: 'mountain',
+ inhabitants: 'Crutha',
+ },
+ 'Gredica South': {
+ name: 'Gredica South',
+ terrain: 'flowerbeds',
+ inhabitants: 'Gredica',
+ },
+ 'Gredica North': {
+ name: 'Gredica North',
+ terrain: 'flowerbeds',
+ inhabitants: 'Gredica',
+ },
+ 'Kita South': {
+ name: 'Kita South',
+ terrain: 'ice',
+ inhabitants: 'Kita',
+ },
+ 'Kita North': {
+ name: 'Kita North',
+ terrain: 'ice',
+ inhabitants: 'Kita',
+ },
+ 'Lusa South': {
+ name: 'Lusa South',
+ terrain: 'water',
+ inhabitants: 'Lusa',
+ },
+ 'Lusa North': {
+ name: 'Lusa North',
+ terrain: 'water',
+ inhabitants: 'Lusa',
+ },
+ 'Minas South': {
+ name: 'Minas South',
+ terrain: 'asteroid',
+ inhabitants: 'Minas',
+ },
+ 'Minas North': {
+ name: 'Minas North',
+ terrain: 'asteroid',
+ inhabitants: 'Minas',
+ },
+ 'Ozara South': {
+ name: 'Ozara South',
+ terrain: 'desert',
+ inhabitants: 'Ozara',
+ },
+ 'Ozara North': {
+ name: 'Ozara North',
+ terrain: 'desert',
+ inhabitants: 'Ozara',
+ },
+ 'Pampas South': {
+ name: 'Pampas South',
+ terrain: 'meadows',
+ inhabitants: 'Pampas',
+ },
+ 'Pampas North': {
+ name: 'Pampas North',
+ terrain: 'meadows',
+ inhabitants: 'Pampas',
+ },
+ 'Sindari South': {
+ name: 'Sindari South',
+ terrain: 'fire',
+ inhabitants: 'Sindari',
+ },
+ 'Sindari North': {
+ name: 'Sindari North',
+ terrain: 'fire',
+ inhabitants: 'Sindari',
+ },
+ 'Zando South': {
+ name: 'Zando South',
+ terrain: 'jungle',
+ inhabitants: 'Zando',
+ },
+ 'Zando North': {
+ name: 'Zando North',
+ terrain: 'jungle',
+ inhabitants: 'Zando',
+ },
+};
\ No newline at end of file
diff --git a/frontend/src/pages/TheStory.tsx b/frontend/src/pages/TheStory.tsx
deleted file mode 100644
index e99a11b..0000000
--- a/frontend/src/pages/TheStory.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import { default as Content } from "content/TheStory.mdx";
-
-export const TheStory = () => {
- return (
-
-
-
- );
-};
diff --git a/frontend/src/pages/index.ts b/frontend/src/pages/index.ts
index 3169261..e00ec92 100644
--- a/frontend/src/pages/index.ts
+++ b/frontend/src/pages/index.ts
@@ -1,6 +1,6 @@
export { NFTsPage } from "./nft/NFTs";
export { HowItWorks } from "./HowItWorks";
-export { TheStory } from "./TheStory";
+export { TheStory } from "./story/TheStory.tsx";
export { NFTView } from "./nft-view/NFTView";
export { PlanetView } from "./planet-view/PlanetView";
export { NotFound } from "./NotFound";
diff --git a/frontend/src/pages/modal/ClaimModalPage.tsx b/frontend/src/pages/modal/ClaimModalPage.tsx
index c83d19d..ca63ba3 100644
--- a/frontend/src/pages/modal/ClaimModalPage.tsx
+++ b/frontend/src/pages/modal/ClaimModalPage.tsx
@@ -4,7 +4,7 @@ import ConfettiExplosion from 'react-confetti-explosion';
import { ReactComponent as Logo } from 'assets/AllianceDAOLogo.svg';
import { ReactComponent as CheckIcon } from 'assets/check.svg'
import { AnimatedBackground } from 'components/background/AnimatedBackground';
-import styles from './ConnectModalPage.module.scss';
+import styles from './ModalPage.module.scss';
export const ClaimModalPage = () => {
const [claimStatus, setClaimStatus] = useState<'notClaimed' | 'claimed' | 'error'>('notClaimed');
@@ -42,7 +42,7 @@ export const ClaimModalPage = () => {