first commit

This commit is contained in:
Olu Amey
2023-01-16 13:09:45 -05:00
commit a6ebce376c
271 changed files with 39454 additions and 0 deletions
@@ -0,0 +1,133 @@
import React from "react";
import shopCreator from "../../assets/images/shop-creator.png";
import product from "../../assets/images/shop-details-product.jpg";
import shopOwner from "../../assets/images/shop-ower.png";
export default function ShopProductWidget({ className }) {
return (
<div className={`shop-product-widget w-full ${className || ""}`}>
<div className="w-full flex space-x-10 h-[536px]">
<div className="w-1/2 h-full">
<div className="shop-product-thumbnail w-full rounded-2xl overflow-hidden bg-white dark:bg-dark-white h-full">
<img src={product} alt="" className="w-full h-full" />
</div>
</div>
<div className="flex-1 h-full flex flex-col justify-between py-10">
<div className="w-full">
<div className="flex justify-between items-center mb-4">
<div className="owned-by flex space-x-2 items-center">
<div className="owned w-[75px] h-[75px] rounded-full overflow-hidden">
<img src={shopOwner} alt="" className="w-full h-full" />
</div>
<div>
<p className="text-thin-light-gray text-base leading-3">
Owned by
</p>
<p className="text-xl text-dark-gray dark:text-white font-bold">
Biloutltegrta
</p>
</div>
</div>
<div className="w-[1px] bg-dark-gray h-16 opacity-[0.1]"></div>
<div className="created-by flex space-x-2 items-center flex-row-reverse">
<div className="owned w-[75px] h-[75px] rounded-full overflow-hidden ml-2">
<img src={shopCreator} alt="" className="w-full h-full" />
</div>
<div>
<p className="text-thin-light-gray text-base leading-3 text-right">
Create by
</p>
<p className="text-xl text-dark-gray dark:text-white text-right font-bold">
Trayak Alaisnz
</p>
</div>
</div>
</div>
<div className="mb-4">
<p className="text-xl text-purple font-bold opacity-[0.7] tracking-wider">
ID : 2320382
</p>
</div>
<div className="details">
<h1 className="text-dark-gray dark:text-white text-26 font-bold tracking-wider mb-4">
Lock and Lob x Fiesta Spurs
</h1>
<p className="text-base text-thin-light-gray tracking-wide mb-7">
Why I say old chap that is spiffing starkers its your round
nancy you get the whole package that allows you to get exclusive
boy, knees up have it are you find to make it taking the piss.
</p>
<p className="text-base text-thin-light-gray tracking-wide">
Publish Date
</p>
<p className="text-xl font-bold text-dark-gray dark:text-white mb-7">
12 March 2021, 11:32 PM
</p>
<div className="w-full h-[1px] bg-black opacity-[0.1]"></div>
</div>
</div>
<div className="flex justify-between">
<div className="flex items-center space-x-6">
<div className="w-[42px] h-[42px]">
<svg
width="52"
height="52"
viewBox="0 0 42 42"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M21 42C32.598 42 42 32.598 42 21C42 9.40202 32.598 0 21 0C9.40202 0 0 9.40202 0 21C0 32.598 9.40202 42 21 42Z"
fill="#627EEA"
/>
<path
d="M21.6538 5.25V16.8919L31.4936 21.2887L21.6538 5.25Z"
fill="white"
fillOpacity="0.602"
/>
<path
d="M21.6536 5.25L11.8125 21.2887L21.6536 16.8919V5.25Z"
fill="white"
/>
<path
d="M21.6538 28.8331V36.7435L31.5002 23.1211L21.6538 28.8331Z"
fill="white"
fillOpacity="0.602"
/>
<path
d="M21.6536 36.7435V28.8318L11.8125 23.1211L21.6536 36.7435Z"
fill="white"
/>
<path
d="M21.6538 27.0021L31.4936 21.2888L21.6538 16.8945V27.0021Z"
fill="white"
fillOpacity="0.2"
/>
<path
d="M11.8125 21.2888L21.6536 27.0021V16.8945L11.8125 21.2888Z"
fill="white"
fillOpacity="0.602"
/>
</svg>
</div>
<div>
<p className="font-bold text-xl tracking-wide line-clamp-1 text-dark-gray dark:text-white">
75,320 ETH
</p>
<p className="text-base text-lighter-gray">(773.69 USD)</p>
</div>
</div>
<div>
<button
type="button"
className="btn-shine px-4 py-3 text-white text-base bg-pink rounded-full tracking-wide"
>
Publish for Sell
</button>
</div>
</div>
</div>
</div>
</div>
);
}
@@ -0,0 +1,84 @@
import React, { useRef } from "react";
import ProductCardStyleTwo from "../Cards/ProductCardStyleTwo";
import Icons from "../Helpers/Icons";
import SliderCom from "../Helpers/SliderCom";
export default function ShopTrendingAction({ className, trendingShop }) {
const settings = {
arrows: false,
slidesToShow: 3,
slidesToScroll: 3,
infinite: true,
};
const trendingSlider = useRef(null);
const prevHandler = () => {
trendingSlider.current.slickPrev();
};
const nextHandler = () => {
trendingSlider.current.slickNext();
};
return (
<>
<div className={`shop-trending-Action w-full ${className || ""}`}>
{/* heading */}
<div className="flex justify-between items-center mb-6">
<div>
<h1 className="text-26 font-bold text-dark-gray dark:text-white">
Tranding Action
</h1>
</div>
<div className="slider-btns flex space-x-4">
<button onClick={nextHandler} type="button">
<div className="trending-slider-left-btn relative text-white w-10 h-10 flex justify-center items-center rounded-full overflow-hidden">
<svg
width="11"
height="19"
viewBox="0 0 11 19"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.09766 1.1499L1.13307 9.11449L9.09766 17.0791"
stroke="url(#paint0_linear_220_23410)"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
<defs>
<linearGradient
id="paint0_linear_220_23410"
x1="9.09766"
y1="1.1499"
x2="-4.2474"
y2="7.96749"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#F539F8" />
<stop offset="0.416763" stopColor="#C342F9" />
<stop offset="1" stopColor="#5356FB" />
</linearGradient>
</defs>
</svg>
</div>
</button>
<button onClick={prevHandler} type="button">
<div className="trending-slider-right-btn primary-gradient text-white w-10 h-10 relative flex justify-center items-center rounded-full ">
<Icons name="arrows" />
</div>
</button>
</div>
</div>
{/* trending products */}
<div className="trending-products relative w-full">
<SliderCom selector={trendingSlider} settings={settings}>
{trendingShop &&
trendingShop.length > 0 &&
trendingShop.map((item) => (
<ProductCardStyleTwo key={item.id} datas={item} />
))}
</SliderCom>
</div>
</div>
</>
);
}
+23
View File
@@ -0,0 +1,23 @@
import React from "react";
import shopTrendingData from "../../data/marketplace_data.json";
import SellHistoryMarketVisitorAnalytic from "../Home/SellHistoryMarketVisitorAnalytic";
import Layout from "../Partials/Layout";
import ShopProductWidget from "./ShopProductWidget";
import ShopTrendingAction from "./ShopTrendingAction";
export default function ShopDetails() {
const shopTrending = shopTrendingData.data;
return (
<>
<Layout>
<div className="shop-details-wrapper w-full">
<div className="main-wrapper w-full">
<ShopProductWidget className="mb-8" />
<SellHistoryMarketVisitorAnalytic className="mb-8" />
<ShopTrendingAction trendingShop={shopTrending} />
</div>
</div>
</Layout>
</>
);
}