diff --git a/packages/design-system/molecules/guild-nav/GuildNav.styled.ts b/packages/design-system/molecules/guild-nav/GuildNav.styled.ts index 6c08585..25e439a 100644 --- a/packages/design-system/molecules/guild-nav/GuildNav.styled.ts +++ b/packages/design-system/molecules/guild-nav/GuildNav.styled.ts @@ -1,5 +1,6 @@ import { palette } from '@roleypoly/design-system/atoms/colors'; import { transitions } from '@roleypoly/design-system/atoms/timings'; +import { text400 } from '@roleypoly/design-system/atoms/typography'; import styled from 'styled-components'; export const GuildNavItem = styled.a` @@ -19,3 +20,23 @@ export const GuildNavItem = styled.a` cursor: pointer; } `; + +export const SectionHead = styled.div` + ${text400} + + display: flex; + align-items: center; + justify-content: left; + svg { + position: relative; + top: 1px; + color: ${palette.taupe500}; + } +`; + +export const HeadLine = styled.div` + flex: 1; + height: 1px; + background-color: ${palette.taupe300}; + margin-left: 0.5em; +`; diff --git a/packages/design-system/molecules/guild-nav/GuildNav.tsx b/packages/design-system/molecules/guild-nav/GuildNav.tsx index fbe4526..22a8c5c 100644 --- a/packages/design-system/molecules/guild-nav/GuildNav.tsx +++ b/packages/design-system/molecules/guild-nav/GuildNav.tsx @@ -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 && ( <> -
Recents
+ + +   Recent Guilds + + -
All Guilds
+ + +   All Guilds + + )} diff --git a/packages/design-system/organisms/servers-listing/ServersListing.styled.ts b/packages/design-system/organisms/servers-listing/ServersListing.styled.ts index cd59446..d1dcd75 100644 --- a/packages/design-system/organisms/servers-listing/ServersListing.styled.ts +++ b/packages/design-system/organisms/servers-listing/ServersListing.styled.ts @@ -1,4 +1,6 @@ import { onTablet } from '@roleypoly/design-system/atoms/breakpoints'; +import { palette } from '@roleypoly/design-system/atoms/colors'; +import { text500 } from '@roleypoly/design-system/atoms/typography'; import styled, { css } from 'styled-components'; export const ContentContainer = styled.div` @@ -23,5 +25,24 @@ export const CardContainer = styled.div` `; export const SectionHead = styled.div` + ${text500} + flex: 1 1 100%; + padding: 0.6em; + display: flex; + align-items: center; + justify-content: left; + + svg { + position: relative; + top: 1px; + color: ${palette.taupe500}; + } +`; + +export const Line = styled.div` + height: 1px; + flex: 1; + background-color: ${palette.taupe400}; + margin-left: 1em; `; diff --git a/packages/design-system/organisms/servers-listing/ServersListing.tsx b/packages/design-system/organisms/servers-listing/ServersListing.tsx index 13ae515..8f9fdbb 100644 --- a/packages/design-system/organisms/servers-listing/ServersListing.tsx +++ b/packages/design-system/organisms/servers-listing/ServersListing.tsx @@ -3,7 +3,13 @@ import { ServerListingCard } from '@roleypoly/design-system/molecules/server-lis import { getRecentAndSortedGuilds } from '@roleypoly/misc-utils/guildListing'; import { GuildSlug } from '@roleypoly/types'; import * as React from 'react'; -import { CardContainer, ContentContainer, SectionHead } from './ServersListing.styled'; +import { GoHistory, GoListUnordered } from 'react-icons/go'; +import { + CardContainer, + ContentContainer, + Line, + SectionHead, +} from './ServersListing.styled'; type ServersListingProps = { guilds: GuildSlug[]; @@ -32,11 +38,19 @@ export const ServersListing = (props: ServersListingProps) => { {recentGuildSlugs.length !== 0 && ( <> - Recent Guilds + + +   Recent Guilds + + - All Guilds )} + + +   All Guilds + + );