doc: add checkout ads and texts with its styles

This commit is contained in:
Leon Xu
2022-05-05 21:13:51 -07:00
parent b736a4602f
commit 1d7386db3f
2 changed files with 34 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
.checkout {
display: flex;
padding: 20px;
background-color: white;
height: max-content;
}
.checkout__ad {
width: 100%;
margin-bottom: 10px;
}
.checkout__title {
margin-right: 10px;
padding: 10px;
border-bottom: 1px solid lightgray;
}
+17 -1
View File
@@ -2,7 +2,23 @@ import React from "react";
import "./Checkout.css";
function Checkout() {
return <section className="checkout">Checkout</section>;
return (
<section className="checkout">
<article className="checkout__left">
<img
className="checkout__ad"
src="https://images-na.ssl-images-amazon.com/images/G/02/UK_CCMP/TM/OCC_Amazon1._CB423492668_.jpg"
alt="amazon ads"
/>
<article>
<h2 className="checkout__title">Your Shopping Basket</h2>
</article>
</article>
<article className="checkout__right"></article>
</section>
);
}
export default Checkout;