From 1c348035780591b3733a1ad7552328550808b87b Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 1 Mar 2022 01:11:32 -0800 Subject: [PATCH] Added a smooth loading transition + FilterBar on parties --- components/FilterBar/index.scss | 24 +++++ components/FilterBar/index.tsx | 4 +- components/GridRepCollection/index.scss | 8 ++ components/GridRepCollection/index.tsx | 17 ++- components/PartyDetails/index.tsx | 4 +- pages/[username].tsx | 133 ++++++++++++++++-------- pages/saved.tsx | 76 +++++++------- pages/teams.tsx | 76 +++++++------- styles/globals.scss | 4 +- 9 files changed, 211 insertions(+), 135 deletions(-) diff --git a/components/FilterBar/index.scss b/components/FilterBar/index.scss index 05ac2d33..fd78e099 100644 --- a/components/FilterBar/index.scss +++ b/components/FilterBar/index.scss @@ -35,4 +35,28 @@ margin: 0; max-width: 200px; } + + + .UserInfo { + align-items: center; + display: flex; + flex-direction: row; + flex-grow: 1; + gap: $unit * 1.5; + + img { + $diameter: $unit * 6; + border-radius: $diameter / 2; + height: $diameter; + width: $diameter; + + &.gran { + background-color: #CEE7FE; + } + + &.djeeta { + background-color: #FFE1FE; + } + } + } } \ No newline at end of file diff --git a/components/FilterBar/index.tsx b/components/FilterBar/index.tsx index daf89c9d..c7b3c3c2 100644 --- a/components/FilterBar/index.tsx +++ b/components/FilterBar/index.tsx @@ -6,7 +6,7 @@ import RaidDropdown from '~components/RaidDropdown' import './index.scss' interface Props { - name: string + children: React.ReactNode scrolled: boolean onFilter: (element?: number, raid?: string, recency?: number) => void } @@ -31,7 +31,7 @@ const FilterBar = (props: Props) => { return (
-

{props.name}

+ {props.children}