Design Tweaks

This commit is contained in:
Belen Curcio
2020-10-13 14:34:24 -03:00
parent f5f8b1570e
commit 6978b4d4bb
12 changed files with 20 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
.quantity {
appearance: textfield;
@apply w-8 border-gray-300 border mx-3 rounded text-center text-sm;
@apply w-8 border-gray-300 border mx-3 rounded text-center text-sm text-black;
}
.quantity::-webkit-outer-spin-button,

View File

@@ -56,8 +56,8 @@ const CartItem = ({
return (
<li className="flex flex-row space-x-6 py-6">
<div className="h-12 w-12 bg-violet"></div>
<div className="flex-1 flex flex-col justify-between">
<span>{item.name}</span>
<div className="flex-1 flex flex-col justify-between text-primary">
<span className="font-bold mb-3">{item.name}</span>
<div className="flex items-center">
<button type="button" onClick={() => increaseQuantity(-1)}>
<Minus width={18} height={18} />
@@ -76,7 +76,7 @@ const CartItem = ({
</button>
</div>
</div>
<div className="flex flex-col justify-between space-y-2">
<div className="flex flex-col justify-between space-y-2 text-primary">
<span>{price}</span>
<button
className="flex justify-end"

View File

@@ -38,7 +38,7 @@ const CartSidebarView: FC = () => {
return (
<div
className={cn('h-full flex flex-col', {
'bg-black text-white': isEmpty,
'bg-white text-black': isEmpty,
'bg-red text-white': error,
'bg-green text-white': success,
})}

View File

@@ -3,7 +3,7 @@ const Minus = ({ ...props }) => {
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" {...props}>
<path
d="M5 12H19"
stroke="black"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"

View File

@@ -3,14 +3,14 @@ const Plus = ({ ...props }) => {
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" {...props}>
<path
d="M12 5V19"
stroke="black"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M5 12H19"
stroke="black"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"

View File

@@ -9,7 +9,7 @@
}
.root:hover {
@apply transform scale-110 bg-primary-accent;
@apply transform scale-110 bg-primary-hover;
}
.colorViolet {

View File

@@ -9,7 +9,7 @@ interface Props {
}
const Hero: FC<Props> = ({ headline, description, className }) => {
const rootClassName = cn('bg-black py-12 px-4 md:px-6', className)
const rootClassName = cn('bg-black py-12', className)
return (
<div className={rootClassName}>
<Container>

View File

@@ -6,12 +6,12 @@ const Logo = () => (
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect width="32" height="32" rx="16" fill="black" />
<rect width="32" height="32" rx="16" fill="var(--bg-secondary)" />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M17.6482 10.1305L15.8785 7.02583L7.02979 22.5499H10.5278L17.6482 10.1305ZM19.8798 14.0457L18.11 17.1983L19.394 19.4511H16.8453L15.1056 22.5499H24.7272L19.8798 14.0457Z"
fill="white"
fill="var(--bg-primary)"
/>
</svg>
)

View File

@@ -1,5 +1,5 @@
.root {
@apply grid grid-cols-12 w-full gap-6 px-3 py-6 border-b border-primary-accent;
@apply grid grid-cols-12 w-full gap-6 px-3 py-6 border-b border-primary-hover;
&:nth-child(3n + 1) {
& .productBg {

View File

@@ -24,7 +24,7 @@ const WishlistCard: FC<Props> = ({ className, data }) => {
<p className="mb-4">
Biscuit oat cake wafer icing ice cream tiramisu pudding cupcake.
</p>
<button className="py-1 px-3 border border-secondary rounded-md shadow-sm">
<button className="py-1 px-3 border border-secondary rounded-md shadow-sm hover:bg-primary-hover">
Add to cart
</button>
</div>