mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-05-07 01:02:36 +00:00
feat: redesign server listing design language
This commit is contained in:
parent
e5d83bc133
commit
0ed5d696df
4 changed files with 71 additions and 7 deletions
|
@ -3,9 +3,9 @@ import { getRecentAndSortedGuilds } from '@roleypoly/misc-utils/guildListing';
|
|||
import { GuildSlug, UserGuildPermissions } from '@roleypoly/types';
|
||||
import * as React from 'react';
|
||||
import Scrollbars from 'react-custom-scrollbars';
|
||||
import { GoStar, GoZap } from 'react-icons/go';
|
||||
import { GoHistory, GoListUnordered, GoStar, GoZap } from 'react-icons/go';
|
||||
import ReactTooltip from 'react-tooltip';
|
||||
import { GuildNavItem } from './GuildNav.styled';
|
||||
import { GuildNavItem, HeadLine, SectionHead } from './GuildNav.styled';
|
||||
|
||||
type Props = {
|
||||
guilds: GuildSlug[];
|
||||
|
@ -55,9 +55,17 @@ export const GuildNav = (props: Props) => {
|
|||
>
|
||||
{recentGuildSlugs && (
|
||||
<>
|
||||
<div>Recents</div>
|
||||
<SectionHead>
|
||||
<GoHistory />
|
||||
Recent Guilds
|
||||
<HeadLine />
|
||||
</SectionHead>
|
||||
<NavList guilds={recentGuildSlugs} />
|
||||
<div>All Guilds</div>
|
||||
<SectionHead>
|
||||
<GoListUnordered />
|
||||
All Guilds
|
||||
<HeadLine />
|
||||
</SectionHead>
|
||||
</>
|
||||
)}
|
||||
<NavList guilds={sortedGuildSlugs} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue