mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-02 03:00:32 -04:00
Created guild/join page
This commit is contained in:
committed by
Alec LaLonde
parent
4871e8208c
commit
f1852e104b
@@ -48,6 +48,8 @@ export {
|
||||
InputRightAddon,
|
||||
Link,
|
||||
List,
|
||||
ListIcon,
|
||||
ListItem,
|
||||
Modal,
|
||||
ModalCloseButton,
|
||||
ModalContent,
|
||||
|
||||
66
packages/web/components/Guild/GuildJoin.tsx
Normal file
66
packages/web/components/Guild/GuildJoin.tsx
Normal file
@@ -0,0 +1,66 @@
|
||||
import { Flex, HStack, Image, List, ListIcon, ListItem, MetaButton, MetaHeading, Text, VStack } from '@metafam/ds';
|
||||
import { FlexContainer } from 'components/Container';
|
||||
import { MetaLink } from 'components/Link';
|
||||
import { CONFIG } from 'config';
|
||||
import React from 'react';
|
||||
import { FaCheckCircle } from 'react-icons/fa';
|
||||
|
||||
const discordOAuthCallbackUrl = `${CONFIG.backendUrl}/actions/discordOAuthCallback`;
|
||||
const prodDiscordOAuthCallbackUrl = `https://api.metagame.wtf/actions/discordOAuthCallback`;
|
||||
const discordAuthUrl = `https://discord.com/api/oauth2/authorize?client_id=${CONFIG.discordBotClientId}&permissions=268435488&redirect_uri=${encodeURI(discordOAuthCallbackUrl)}&scope=bot`;
|
||||
|
||||
export const GuildJoin: React.FC = () => {
|
||||
return (
|
||||
<FlexContainer flex="1" justify="start" mt={5}>
|
||||
<MetaHeading textAlign="center" mb={10}>
|
||||
Join MetaGame as Guild
|
||||
</MetaHeading>
|
||||
{ /* TODO get design input, change content and make responsive */ }
|
||||
<Flex
|
||||
direction="row"
|
||||
bg="whiteAlpha.200"
|
||||
style={{ backdropFilter: 'blur(7px)' }}
|
||||
rounded="lg"
|
||||
p="6"
|
||||
my="6"
|
||||
w="100%"
|
||||
align="stretch"
|
||||
justify="space-between"
|
||||
>
|
||||
<HStack h="100%" maxW="60rem" spacing="6" align="stretch">
|
||||
<Image
|
||||
src="/assets/guilds.png"
|
||||
alt="Guild"
|
||||
maxW="20rem"
|
||||
/>
|
||||
<VStack spacing={8} align="stretch" pl="6">
|
||||
<Text fontSize="xl" fontFamily="mono" color="blueLight">
|
||||
Are you part of a group of people building tools & services for a decentralized future?
|
||||
</Text>
|
||||
<VStack spacing={2} align="stretch">
|
||||
<Text>
|
||||
Does your group need help
|
||||
</Text>
|
||||
<List>
|
||||
<ListItem fontStyle="italic" fontSize="sm">
|
||||
<ListIcon as={FaCheckCircle} color="green.500" />
|
||||
finding tools, frameworks or funds?
|
||||
</ListItem>
|
||||
<ListItem fontStyle="italic" fontSize="sm">
|
||||
<ListIcon as={FaCheckCircle} color="green.500" />
|
||||
getting value-aligned contributors & adopters?
|
||||
</ListItem>
|
||||
</List>
|
||||
</VStack>
|
||||
<Text fontSize="sm">
|
||||
To apply, your guild must have a <MetaLink isExternal href="https://discord.com/">Discord</MetaLink> server. Clicking the link below will redirect to a Discord page asking for your permission to collect certain relevant information about your guild.
|
||||
</Text>
|
||||
<MetaButton size="lg" maxW="15rem" as="a" href={discordAuthUrl}>
|
||||
Apply to Join
|
||||
</MetaButton>
|
||||
</VStack>
|
||||
</HStack>
|
||||
</Flex>
|
||||
</FlexContainer>
|
||||
);
|
||||
};
|
||||
@@ -18,4 +18,8 @@ export const CONFIG = {
|
||||
process.env.NEXT_BRIGHTID_APP_URL || 'https://app.brightid.org',
|
||||
brightIdNodeUrl:
|
||||
process.env.NEXT_BRIGHTID_NODE_URL || 'http:%2f%2fnode.brightid.org',
|
||||
discordBotClientId:
|
||||
process.env.NEXT_DISCORD_BOT_CLIENT_ID || '808843072980647986',
|
||||
backendUrl:
|
||||
process.env.NEXT_BACKEND_URL || 'http://localhost:4000'
|
||||
};
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { PageContainer } from 'components/Container';
|
||||
import { GuildJoin } from 'components/Guild/GuildJoin';
|
||||
import { InferGetStaticPropsType } from 'next';
|
||||
import React from 'react';
|
||||
|
||||
@@ -14,7 +15,7 @@ export const getStaticProps = async () => {
|
||||
|
||||
const SetupGuild: React.FC<Props> = () => (
|
||||
<PageContainer>
|
||||
|
||||
<GuildJoin />
|
||||
</PageContainer>
|
||||
);
|
||||
|
||||
|
||||
BIN
packages/web/public/assets/guilds.png
Normal file
BIN
packages/web/public/assets/guilds.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 320 KiB |
Reference in New Issue
Block a user