diff --git a/src/assets/images/banner-plc.png b/src/assets/images/banner-plc.png new file mode 100644 index 0000000..85f34d7 Binary files /dev/null and b/src/assets/images/banner-plc.png differ diff --git a/src/assets/index.js b/src/assets/index.js index c06da3b..1aa4aa1 100644 --- a/src/assets/index.js +++ b/src/assets/index.js @@ -1,3 +1,4 @@ import plc from "./images/B1-14MR2-D24.jpg"; import w2c from "./images/W2C.jpg"; -export { plc, w2c }; +import banner from "./images/banner-plc.png" +export { plc, w2c, banner }; diff --git a/src/components/mainPage/home.css b/src/components/mainPage/home.css new file mode 100644 index 0000000..f958961 --- /dev/null +++ b/src/components/mainPage/home.css @@ -0,0 +1,154 @@ +body { + margin: 0; + padding: 0; + font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; +} + +.container { + padding: 0; +} + +.row { + margin: 0; +} + +.home { + max-width: 1200px; +} + +.banner { + width: 100%; + background-color: #000; + height: 680px; +} + +.banner-image, +.banner-box { + height: 680px; + display: flex; + flex-direction: column; + justify-content: center; +} + +.banner-image img { + vertical-align: middle; +} + +.main-title { + font-size: 4.5rem; + color: #fff; + font-weight: 400; +} + +.second-title { + font-size: 2.5rem; + color: #dadada; + font-weight: 400; +} + +.banner-doc { + padding: 2rem; +} + +.price { + font-size: 2.5rem; + color: #b3b3b3; + margin-top: 2rem; +} + +.original-price { + color: #414141; + font-size: 1.6rem; + text-decoration: line-through; + text-decoration-color: #920610; +} + +.btn-red { + background-color: #f60515; + border: none; + font-size: 2rem; + color: #fff !important; + padding: 1rem 4rem; +} + +.btn-red:hover { + background-color: #cc010e; +} + +.buy-btn { + margin-top: 1rem; +} + +@media screen and (max-width: 1199px) { + .banner, + .banner-image, + .banner-box { + height: 600px; + } + .main-title { + font-size: 2.5rem; + } + .second-title { + font-size: 1.5rem; + } + .price { + font-size: 2rem; + } + .btn-red { + font-size: 1.5rem; + padding: .5rem 2rem; + } +} + +@media (max-width: 767px) { + .banner { + height: 900px; + } + .banner-doc { + padding: 1rem 2rem; + } + .banner-image, + .banner-box { + margin-top: 1rem; + height: auto; + justify-content: flex-start; + } + .banner-image { + margin-top: 0; + } + .price { + margin-top: 1rem; + } + .main-title { + font-size: 2rem; + } + .second-title { + font-size: 1rem; + } + .price { + font-size: 1.5rem; + } + .original-price { + font-size: 1rem; + } + .btn-red { + font-size: 1rem; + padding: .5rem 2rem; + } + .banner-image { + padding: 0 6rem; + } +} + +@media (max-width: 575px) { + .banner-image { + margin-top: 3rem; + padding: 0 2rem; + } +} + +@media (max-width: 420px) { + .banner-image { + padding: 0; + } +} \ No newline at end of file diff --git a/src/components/mainPage/home.jsx b/src/components/mainPage/home.jsx new file mode 100644 index 0000000..f0a1aa8 --- /dev/null +++ b/src/components/mainPage/home.jsx @@ -0,0 +1,39 @@ +import React from "react"; +import "./home.css"; +import { banner } from "../../assets"; + + +const Home = ({goNext}) => { + return ( +
Limited Quantity
+800 units only
+