Skip to content

Commit

Permalink
build checkout boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
mapra99 committed Dec 19, 2022
1 parent 1894718 commit ccbfa47
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions app/routes/checkout/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { Outlet } from '@remix-run/react'
import { Text } from '~/components'

export default () => {
const goBack = () => history.back()

return (
<div className="bg-gray">
<div className="pt-4 pb-6 px-6 sm:pt-12 sm:px-10">
<div className="max-w-6xl mx-auto">
<button onClick={goBack} className="text-base text-black opacity-50 hover:opacity-100 transition">
Go Back
</button>
</div>
</div>

<div className="px-6 pb-24 sm:px-10 sm:pb-28 flex flex-col gap-8">
<div className="rounded-lg bg-white px-6 py-8 sm:p-8">
<Text variant="heading-3" className="!text-3xl sm:!text-4xl mb-8" as="h2">
Checkout
</Text>

<Outlet />
</div>

<div className="rounded-lg bg-white px-6 py-8 sm:p-8">
<Text variant="heading-6" className="mb-8" as="h2">
Summary
</Text>
</div>
</div>
</div>
)
}

0 comments on commit ccbfa47

Please sign in to comment.