mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-11 14:34:56 -05:00
* squash frontend changes * Style quest explorer * Style quest page * Dates * Dates * Typecheck * Prettier * Fix create page layout * Update only OPEN quests * Repetition info * Fix create quest errors * Quest form Textarea * Quest form Textarea * Truncate texts * Redirect if user not logged in * Tooltips * Factorize skills tags * fix username in completions * Metafam as default guild on creation * Layouts * Remove todo * cooldown * Rename to "claim quest" * squash frontend changes * Style quest explorer * Style quest page * Dates * Dates * Typecheck * Prettier * Fix create page layout * Update only OPEN quests * Repetition info * Fix create quest errors * Quest form Textarea * Quest form Textarea * Truncate texts * Redirect if user not logged in * Tooltips * Factorize skills tags * fix username in completions * Metafam as default guild on creation * Layouts * Remove todo * cooldown * Rename to "claim quest" * Move ConfirmModal in ds * Extract pSeed balance * Fix "created by me" switch * Reword complete quest * Style quest form * prettier * lint
70 lines
1.5 KiB
TypeScript
70 lines
1.5 KiB
TypeScript
import {
|
|
Avatar,
|
|
Box,
|
|
Heading,
|
|
HStack,
|
|
MetaButton,
|
|
MetaTag,
|
|
MetaTile,
|
|
MetaTileBody,
|
|
MetaTileHeader,
|
|
Text,
|
|
VStack,
|
|
} from '@metafam/ds';
|
|
import { GuildLinks } from 'components/Guild/GuildLinks';
|
|
import { GuildFragmentFragment } from 'graphql/autogen/types';
|
|
import React from 'react';
|
|
|
|
type Props = {
|
|
guild: GuildFragmentFragment;
|
|
};
|
|
|
|
export const GuildTile: React.FC<Props> = ({ guild }) => (
|
|
<MetaTile>
|
|
<MetaTileHeader>
|
|
<VStack>
|
|
{guild.logo ? (
|
|
<Avatar size="xl" src={guild.logo} name={guild.name} />
|
|
) : null}
|
|
|
|
<Heading size="sm" color="white">
|
|
{guild.name}
|
|
</Heading>
|
|
</VStack>
|
|
{guild.type ? (
|
|
<Box align="center">
|
|
<MetaTag size="md">{guild.type} GUILD</MetaTag>
|
|
</Box>
|
|
) : null}
|
|
{guild.description ? (
|
|
<VStack spacing={2} align="stretch">
|
|
<Text textStyle="caption">
|
|
ABOUT
|
|
</Text>
|
|
<Text fontSize="sm">{guild.description}</Text>
|
|
</VStack>
|
|
) : null}
|
|
</MetaTileHeader>
|
|
<MetaTileBody>
|
|
<VStack spacing={2} align="stretch">
|
|
<Text textStyle="caption">
|
|
LINKS
|
|
</Text>
|
|
<HStack mt="2">
|
|
<GuildLinks guild={guild} />
|
|
</HStack>
|
|
</VStack>
|
|
{guild.join_button_url ? (
|
|
<MetaButton
|
|
as="a"
|
|
href={guild.join_button_url}
|
|
target="_blank"
|
|
fontFamily="mono"
|
|
>
|
|
Join
|
|
</MetaButton>
|
|
) : null}
|
|
</MetaTileBody>
|
|
</MetaTile>
|
|
);
|