Fixes per review

This commit is contained in:
Martin Bavio 2020-10-30 22:39:28 -03:00
parent 25b275cead
commit b5b21364ce
3 changed files with 21 additions and 6 deletions

View File

@ -1,7 +1,9 @@
import { FC } from 'react'
import Link from 'next/link'
import { Bag } from '@components/icons'
import { Button } from '@components/ui'
import styles from './styles.module.css'
const CartEmpty: React.FC = () => {
const CartEmpty: FC = () => {
return (
<div className="flex-1 px-12 py-24 flex flex-col justify-center items-center ">
<span className="border border-dashed border-secondary rounded-full flex items-center justify-center w-16 h-16 bg-primary p-12 rounded-lg text-primary">
@ -13,9 +15,9 @@ const CartEmpty: React.FC = () => {
<p className="text-accents-6 px-10 text-center pt-2">
Biscuit oat cake wafer icing ice cream tiramisu pudding cupcake.
</p>
<Button href="/" Component="a" className="block mt-8">
Continue Shopping
</Button>
<Link href="/">
<a className={styles.action}>Continue Shopping</a>
</Link>
</div>
)
}

View File

@ -0,0 +1,11 @@
.action {
@apply block mt-8 bg-secondary text-accents-1 px-10 rounded-sm leading-6 transition ease-in-out duration-150 shadow-sm font-semibold text-center uppercase py-4 border border-transparent;
}
.action:hover {
@apply bg-accents-0 text-primary border border-secondary;
}
.action:focus {
@apply shadow-outline outline-none;
}

View File

@ -1,4 +1,6 @@
const CartSkeleton: React.FC = () => {
import { FC } from 'react'
const CartSkeleton: FC = () => {
return (
<div className="grid lg:grid-cols-12">
<div className="lg:col-span-8">