From 5e88ee4b94d161852e3317f1b05a09edba6003b1 Mon Sep 17 00:00:00 2001 From: Toyyib Date: Fri, 8 Dec 2023 06:43:54 +0100 Subject: [PATCH] Display Item Page and Each Item upon click --- src/components/Button/TertiaryButton.js | 5 +- src/components/Card/DisplayCartCard.js | 81 +++++++++ src/components/Card/DisplayItemCard.js | 167 ++++++++++++++++++ src/components/Link/Link.js | 3 +- .../img => src/components/asset}/bicycle.jpg | Bin src/components/asset/bike.jpg | Bin 0 -> 23698 bytes .../UsersDashboard/UsersDashboardLayout.js | 3 +- src/layout/UsersDashboard/sideNav/Nav.js | 3 +- src/pages/LandingPage/Home/Home.js | 43 ++--- src/pages/UserDashboard/DashboardHome.js | 108 ++++++++++- .../UserDashboard/ItemDetail/ItemDetail.js | 15 ++ src/routes/routeConstants.js | 2 +- src/routes/routes.js | 3 + 13 files changed, 394 insertions(+), 39 deletions(-) create mode 100644 src/components/Card/DisplayCartCard.js create mode 100644 src/components/Card/DisplayItemCard.js rename {public/img => src/components/asset}/bicycle.jpg (100%) create mode 100644 src/components/asset/bike.jpg create mode 100644 src/pages/UserDashboard/ItemDetail/ItemDetail.js diff --git a/src/components/Button/TertiaryButton.js b/src/components/Button/TertiaryButton.js index bc09b69..d1bd8f6 100644 --- a/src/components/Button/TertiaryButton.js +++ b/src/components/Button/TertiaryButton.js @@ -6,14 +6,15 @@ const TertiaryButton = ({ children }) => {children} const StyledButton = styled.button` display: flex; - border: 2px solid blue; + border: 2px solid black; justify-content: center; align-items: center; text-align: center; padding: 1rem 7rem; border-radius: 2rem; + font-size: 1.5rem; background-color: transparent; - color: blue; /* Set the default text color */ + color: black; /* Set the default text color */ cursor: pointer; transition: background-color 0.3s, color 0.3s; diff --git a/src/components/Card/DisplayCartCard.js b/src/components/Card/DisplayCartCard.js new file mode 100644 index 0000000..ba685c7 --- /dev/null +++ b/src/components/Card/DisplayCartCard.js @@ -0,0 +1,81 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import styled from '@emotion/styled'; +import { FaFacebook, FaTwitter, FaInstagram } from 'react-icons/fa'; +import { Link } from 'react-router-dom'; + +const DisplayCartCard = ({ imageName, name, shortNote }) => ( + + {name} + + {name} + {shortNote} + + + + + + + + + + + + + +); + +DisplayCartCard.propTypes = { + imageName: PropTypes.string.isRequired, + name: PropTypes.string.isRequired, + shortNote: PropTypes.string.isRequired, +}; + +const Container = styled(Link)` + display: flex; + flex-direction: column; + text-decoration: none; + width: 300px; +// border: 1px solid #ccc; + border-radius: 8px; + overflow: hidden; +// box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +`; + +const Image = styled.img` + width: 100%; + height: 200px; + border: 1px solid blue; + border-radius: 50%; + margin-top: 1rem; + object-fit: cover; +`; + +const Content = styled.div` + padding: 16px; + align-items: center; + text-align: center; +`; + +const Name = styled.h2` + font-size: 1.5rem; + margin-bottom: 8px; +`; + +const Note = styled.p` + font-size: 1rem; + margin-bottom: 16px; +`; + +const Icons = styled.div` + display: flex; + gap: 15px; + margin-left: 5rem; +`; + +const IconLink = styled.a` + color: #333; + font-size: 1.5rem; +`; + +export default DisplayCartCard; diff --git a/src/components/Card/DisplayItemCard.js b/src/components/Card/DisplayItemCard.js new file mode 100644 index 0000000..e2563b3 --- /dev/null +++ b/src/components/Card/DisplayItemCard.js @@ -0,0 +1,167 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import styled from '@emotion/styled'; +import { FaCog, FaArrowRight, FaSyncAlt } from 'react-icons/fa'; + +const DisplayItemCard = ({ name, imgSrc, amount, description }) => { + const [rotation, setRotation] = useState(0); + + const handleRotate = () => { + setRotation((prevRotation) => (prevRotation + 90) % 360); + }; + return ( + + + + + + + + + {name} + + {description} + + + + Finance Fee + {amount} + + + Opton to purchase fee + {amount} + + + Total amount payable + {amount} + + + Duration + {amount} + +
+ + 5.9% APR Representative + + + DISCOVER MORE MODEL + + + + + + Configure + + + + +
+
+)}; + +DisplayItemCard.propTypes = { + name: PropTypes.string.isRequired, + amount: PropTypes.string.isRequired, + description: PropTypes.string.isRequired, + imgSrc: PropTypes.string.isRequired, +}; + +const Container = styled.div` +// border: 1px solid #ccc; + display: flex; + border-radius: 8px; + text-align: right; +// margin-right: -20rem; +// width: 40%; + overflow: hidden; +// box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +`; + +const Image = styled.div` + border: 1px solid blue; + width: 40rem; + margin-right: 2rem; + postion: relative; +`; + +const Image1 = styled.img` + border: 1px solid blue; + width: 40rem; + margin-right: 2rem; + transform: rotate(${(props) => props.rotation}deg); + transition: transform 0.5s ease; +`; + +const RotateButton = styled.button` + position: absolute; + bottom: 1rem; + right: 55rem; + background-color: #fff; + border: none; + border-radius: 50%; + padding: 0.5rem; + cursor: pointer; +`; + +const Content = styled.div` + padding: 4rem 2rem; +`; + +const Name = styled.h2` + font-size: 1.5rem; + margin-bottom: 1rem; +`; + +const Description = styled.p` + font-size: 1rem; + margin-bottom: 1rem; +`; + +const Table = styled.table` + width: 100%; + margin-bottom: 2rem; + margin-top: 3rem; +`; + +const TableRow = styled.tr` + background-color: ${(props) => props.color}; +`; + +const TableData = styled.td` + padding: 1rem; + text-align: center; +`; + +const BoldText = styled.div` + font-weight: bolder; + margin-bottom: 2rem; + margin-right: 10rem; +`; + +const ColorWheel = styled.div` + /* Add styles for the color wheel */ + margin-bottom: 5rem; +`; + +const ConfigureButton = styled.button` + background-color: green; + color: #fff; + padding: 8px 16px; + display: flex; + align-items: center; + margin-left: 15rem; + border: none; + border-radius: 5rem; + cursor: pointer; +`; + +const SettingIcon = styled.span` + margin-right: 8px; +`; + +const ArrowIcon = styled.span` + margin-left: 8px; + margin-top: 2px; +`; + +export default DisplayItemCard; diff --git a/src/components/Link/Link.js b/src/components/Link/Link.js index 7eea1fa..ca46a2c 100644 --- a/src/components/Link/Link.js +++ b/src/components/Link/Link.js @@ -21,12 +21,11 @@ export const ButtonLink = styled(RouterLink)` font-weight: 500; `; -export const NavBoxItem = ({ icon, path, children }) => ( +export const NavBoxItem = ({ path, children }) => ( (navData.isActive ? 'active' : '')} to={path} > - {icon} {children} ); diff --git a/public/img/bicycle.jpg b/src/components/asset/bicycle.jpg similarity index 100% rename from public/img/bicycle.jpg rename to src/components/asset/bicycle.jpg diff --git a/src/components/asset/bike.jpg b/src/components/asset/bike.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c4e90c9ddf48a7619abb6cffd62092fbbf019723 GIT binary patch literal 23698 zcmeFYWmKHawl3PZ1r3q_jT0OK1b0cWV2wBK+PJ%GaCi6M)_8)uJA~i_celg0_TFo+ zeeT(3oORE*f9_Z{x<}Pp_0%(G&6-tjm-NfR%NhVn`is;T0L*J(gkb~#Ue*DspIyyO z003E806hQzKnB3W5CRZhQ!uYzK^UUHr@z3^0^t6Z4+{XmzWw*~U#P!@zu5k&^KbFX z5r9#_%*N5i!OX^%jGg%-fLl~b79Rd@P)uSNFaVB-T7vi$4-0^Q)dJnx%+b-7mxaaJ zfmz?k#=w}_&<4Wds&C7}%KVW9z%S%#t8Zv&>_}!{Y-(;TKy%XCNke9CBtWCaA^TC* zR?OJUT+-d%Sjk;Z+0fn6kjIEdND!6ZmDd$w3o&-oCv$~ZSv&B$3efzGocA^TS2ha` z+20_JmI5?V5Pef)Uf#cqp=@JgMaIg?%*{>nN@8zh!V41r^6wO{PXaXmuB(fS3$qJ5 zvyHte3o8!~56ee37B)7fR|J!To3*39E0eVY;Jr|uif%@EB=?3{zs4hTSH%A zykhpo`i?gCfAxu=$X}j8rsQa2Xi27ErSE8BV-MkH`JYk$x0=by{_k~zKv@2+o~$gd zxQ(F`#Ms(VN?h<&6J~RBBVHa(4nq!h&W}vSA3uF!`t(tslgWU`(3pu`pPfzL(8Q3- zh}+5g%b$R zARwUNqNAbX{?p;*2LKxxa0+7v2SWjX#fE{yhI#1$0ACl9ud2cPeQ^l@AR!|l!oj1! z{#7i41$Y$cMN<{A#BKN=_5-X%yUD#^yB z*-)OOrrgP)$EKsGcmberhxN;0iCKHUcZv0`?%+&@$b~U-XZx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~ z#7eC8O{tS zyh=A{Idkxsooyy~dhI{I^ok z?+ci;n~6=?-)es~V>Jvm*q-k6Qyd7@V_HEP-d}^4J4SWMxI435dx;CjS>hU|q&f${ P5R$yze+GcP|1 a > div { diff --git a/src/pages/LandingPage/Home/Home.js b/src/pages/LandingPage/Home/Home.js index 25d8e4b..b9b633b 100644 --- a/src/pages/LandingPage/Home/Home.js +++ b/src/pages/LandingPage/Home/Home.js @@ -3,46 +3,41 @@ import styled from '@emotion/styled'; import Img from '../../../components/Img/Img'; import AuthNav from '../../../layout/LandingPage/nav/AuthNav'; +import bicycleImage from '../../../../src/components/asset/bicycle.jpg' + const Home = () => ( - - - Bicycle - - THE NEW VESPA TRIDENT - - - - + + Bicycle + + THE NEW VESPA TRIDENT + + + ) export default Home; const Container = styled.div` - background-color: #FFD700; - border: 1px solid #FFD700; -`; - -const BigText = styled.div` - margin-left: 30rem; - margin-top: 20rem; - margin-bottom: 3rem; + width: 100%; `; const Paragraph = styled.p` font-size: 3rem; - margin-top: -3rem; + margin-top: -40rem; + margin-left: 25rem; + color: green; `; const Image = styled.div` - width: 50%; + // width: 100%; + + img { + width: 100%; + } `; const Auth = styled.div` - margin-top: 1rem; - margin-left: -29rem; - margin-bottom: 7.2rem; - border: 1px solid #FFD700; - padding-left: -20rem; + margin-left: -10rem; `; diff --git a/src/pages/UserDashboard/DashboardHome.js b/src/pages/UserDashboard/DashboardHome.js index 8d14663..a86c37b 100644 --- a/src/pages/UserDashboard/DashboardHome.js +++ b/src/pages/UserDashboard/DashboardHome.js @@ -1,21 +1,117 @@ -import React from 'react'; +import React, { useState } from 'react'; import styled from '@emotion/styled'; +import DisplayCartCard from '../../components/Card/DisplayCartCard'; +import { FaArrowLeft, FaArrowRight } from 'react-icons/fa'; + +const DummyCards = [ + { + imageName: 'bicycle', + name: 'Bicycle', + shortNote: + 'The VESPA C20 is a stunning moped with a modern electronic system and more', + }, + { + imageName: 'bicycle', + name: 'Bicycle', + shortNote: + 'The VESPA C20 is a stunning moped with a modern electronic system and more', + }, + { + imageName: 'bicycle', + name: 'Bicycle', + shortNote: + 'The VESPA C20 is a stunning moped with a modern electronic system and more', + }, + { + imageName: 'bicycle', + name: 'Bicycle', + shortNote: + 'The VESPA C20 is a stunning moped with a modern electronic system and more', + }, +]; const DashboardHome = () => { + const [currentIndex, setCurrentIndex] = useState(0); + + const handleNext = () => { + setCurrentIndex((prevIndex) => (prevIndex + 3) % DummyCards.length); + }; + + const handlePrev = () => { + setCurrentIndex((prevIndex) => (prevIndex - 3 + DummyCards.length) % DummyCards.length); + }; + return ( - Hello + + <h2>LATEST MODELS</h2> + <p>Please select a Vespa Model</p> + + + + + + + {DummyCards.slice(currentIndex, currentIndex + 3).map((data, index) => ( + + ))} + + + + + ); }; export default DashboardHome; -const Container = styled.section` - /* border: 2px solid green; */ +const Inner = styled.section` + display: flex; + margin-top: 2rem; + // margin-left: 2rem; +`; + +const Container = styled.div` display: flex; flex-direction: column; -// margin-left: 15rem; -// gap: 2rem; + width: 90%; + margin: 2rem; +`; + +const CardContainer = styled.div` + display: flex; + gap: 2rem; +`; + +const Arrow = styled.div` + font-size: 2rem; + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + padding: 1rem; + border-radius: 50%; + background-color: white; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); +`; + +const ArrowLeft = styled(Arrow)` + left: 19rem; +`; + +const ArrowRight = styled(Arrow)` + right: 2rem; +`; + +const Title = styled.div` + font-size: 1rem; + font-weight: 400; + text-align: center; `; diff --git a/src/pages/UserDashboard/ItemDetail/ItemDetail.js b/src/pages/UserDashboard/ItemDetail/ItemDetail.js new file mode 100644 index 0000000..f2baac7 --- /dev/null +++ b/src/pages/UserDashboard/ItemDetail/ItemDetail.js @@ -0,0 +1,15 @@ +import React from 'react'; +import DisplayItemCard from '../../../components/Card/DisplayItemCard'; + +const ItemDetail = () => { + return( + + ) +} + +export default ItemDetail; diff --git a/src/routes/routeConstants.js b/src/routes/routeConstants.js index 782f272..0fe389d 100644 --- a/src/routes/routeConstants.js +++ b/src/routes/routeConstants.js @@ -12,7 +12,7 @@ export const ADD_NEW_CAR = 'add-new-car'; export const DELETE_RESERVATION = 'delete-reservation'; export const CONTACT = 'contact' export const ITEMS = 'cars'; -export const ITEMS_DETAILS = 'item-detals'; +export const ITEM_DETAIL = '/u/dashboard/item-details'; export const USERDASHBOARDHOME = 'home'; export const USERS_DASHBOARD = '/u/dashboard'; diff --git a/src/routes/routes.js b/src/routes/routes.js index c9a0b76..85cb409 100644 --- a/src/routes/routes.js +++ b/src/routes/routes.js @@ -8,6 +8,7 @@ import SignUp from '../pages/Auth/SignUp/SignUp'; import NotFound404 from '../pages/NotFound404'; import MyReservations from '../pages/LandingPage/MyReservation/MyReservation'; import Reserved from '../pages/LandingPage/ReservedCars/MyReservation'; +import ItemDetail from '../pages/UserDashboard/ItemDetail/ItemDetail'; import Home from '../pages/LandingPage/Home/Home'; import { ACCOUNT, @@ -21,6 +22,7 @@ import { USERS_DASHBOARD, ADD_NEW_CAR, DELETE_RESERVATION, + ITEM_DETAIL, CONTACT, NOTFOUND, } from './routeConstants'; @@ -49,6 +51,7 @@ export default function Router() { { path: MY_RESERVATIONS, element: }, { path: RESERVED_CARS, element: }, { path: ADD_NEW_CAR, element: }, + { path: ITEM_DETAIL, element: }, { path: DELETE_RESERVATION, element: }, { path: CONTACT, element: },