Skip to content

Commit cc700ac

Browse files
Berardo Matèmalessani
authored andcommitted
feat: New thank you page layout
1 parent 5189c4d commit cc700ac

1 file changed

Lines changed: 30 additions & 5 deletions

File tree

components/composite/StepComplete/index.tsx

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const StepComplete: React.FC<Props> = ({
3737

3838
return (
3939
<Base>
40-
<ContainerFlex>
40+
<Top>
4141
<Wrapper>
4242
<Logo
4343
logoUrl={logoUrl}
@@ -64,6 +64,7 @@ export const StepComplete: React.FC<Props> = ({
6464
supportPhone={supportPhone}
6565
/>
6666
</Message>
67+
6768
{ctx?.returnUrl && (
6869
<WrapperButton>
6970
<Button data-cy="button-continue-to-shop" onClick={handleClick}>
@@ -74,21 +75,36 @@ export const StepComplete: React.FC<Props> = ({
7475
</WrapperButton>
7576
)}
7677
</Main>
78+
</Wrapper>
79+
</Top>
80+
<Bottom>
81+
<Wrapper>
82+
<Recap>
83+
<RecapSummary>Summary</RecapSummary>
84+
<RecapCustomer>Customer</RecapCustomer>
85+
</Recap>
7786
<Footer />
7887
</Wrapper>
79-
</ContainerFlex>
88+
</Bottom>
8089
</Base>
8190
)
8291
}
8392

8493
const ContainerFlex = styled.div`
8594
${tw`w-full min-h-full flex min-h-inherit 2xl:max-w-screen-2xl 2xl:mx-auto`}
8695
`
96+
const Top = styled.div`
97+
${tw`bg-white`}
98+
`
99+
const Bottom = styled.div`
100+
${tw`bg-gray-100`}
101+
`
102+
87103
const Main = styled.div`
88-
${tw`flex flex-col flex-1 justify-center items-center text-center`}
104+
${tw`flex flex-col flex-1 justify-center items-center text-center pb-8`}
89105
`
90106
const Wrapper = styled.div`
91-
${tw`flex flex-col flex-1 p-5 md:p-10 lg:px-20 lg:pb-10 2xl:px-0`}
107+
${tw`flex flex-col p-5 md:p-10 lg:px-20 2xl:(max-w-screen-2xl mx-auto)`}
92108
`
93109
const Title = styled.h1`
94110
${tw`text-2xl lg:text-4xl font-semibold mb-4`}
@@ -103,5 +119,14 @@ const Message = styled.div`
103119
}
104120
`
105121
const WrapperButton = styled.div`
106-
${tw`flex items-center justify-center pt-5`}
122+
${tw`flex items-center justify-center`}
123+
`
124+
const Recap = styled.div`
125+
${tw`md:(grid auto-cols-fr grid-flow-col gap-4)`}
126+
`
127+
const RecapSummary = styled.div`
128+
${tw``}
129+
`
130+
const RecapCustomer = styled.div`
131+
${tw``}
107132
`

0 commit comments

Comments
 (0)