diff --git a/src/components/Swap/Skeleton.tsx b/src/components/Swap/Skeleton.tsx index 15b1b2518..a8342ef43 100644 --- a/src/components/Swap/Skeleton.tsx +++ b/src/components/Swap/Skeleton.tsx @@ -4,7 +4,6 @@ import { Theme, ThemeProvider } from 'theme' import Column from '../Column' import Row from '../Row' -import Rule from '../Rule' import { WidgetWrapper } from '../Widget' import ReverseButton from './ReverseButton' @@ -24,42 +23,96 @@ const WideColumn = styled(Column)` width: 100%; ` -function FloatingDetails({ isModule }: { isModule?: boolean }) { +const TitleColumn = styled(Column)` + padding: 0.5em; + padding-bottom: 1em; + width: 100%; +` + +const InputColumn = styled(Column)` + background-color: ${({ theme }) => theme.module}; + border-radius: ${({ theme }) => theme.borderRadius - 0.25}em; + display: flex; + gap: 1.875em; + margin-bottom: 0.25em; + padding: 0.75em; + padding-bottom: 3.25em; + padding-top: 1.25em; +` + +const OutputColumn = styled(Column)` + background-color: ${({ theme }) => theme.module}; + border-radius: ${({ theme }) => theme.borderRadius - 0.25}em; + display: flex; +` + +const OutputInnerTopColumn = styled(Column)` + border-bottom: 1px solid ${({ theme }) => theme.container}; + padding-bottom: 2.75em; + padding-left: 0.75em; + padding-right: 0.75em; + padding-top: 1.5em; + width: 100%; +` + +const OutputInnerBottomColumn = styled(Column)` + padding-bottom: 1em; + padding-left: 0.75em; + padding-right: 0.75em; + padding-top: 0.75em; + width: 100%; +` + +const ButtonColumn = styled(Column)` + padding-bottom: 0em; + padding-top: 0.75em; + width: 100%; +` + +function FloatingTitle() { return ( - + - + + + ) +} + +function FloatingInput() { + return ( + - - + + ) } -function FloatingButton() { +function FloatingOutput({ isModule }: { isModule?: boolean }) { return ( - - - - - + <> + + + + + + + + + + ) } -export const OutputColumn = styled(Column)` - background-color: ${({ theme }) => theme.module}; - border-radius: ${({ theme }) => theme.borderRadius - 0.25}em; - display: flex; - gap: 1.875em; - padding: 0.75em; - padding-bottom: 2em; -` - -export const InputColumn = styled(Column)` - margin: 0.75em; -` +function FloatingButton() { + return ( + + + + ) +} export interface SwapWidgetSkeletonProps { theme?: Theme @@ -72,15 +125,16 @@ export function SwapWidgetSkeleton({ theme, width }: SwapWidgetSkeletonProps) { + - +
- - + +