diff --git a/.env b/.env new file mode 100644 index 0000000..55fbf2e --- /dev/null +++ b/.env @@ -0,0 +1 @@ +REACT_APP_BASE_URL=http://localhost:8000 \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..737d872 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo diff --git a/.history/.env_20220518143812 b/.history/.env_20220518143812 new file mode 100644 index 0000000..e69de29 diff --git a/.history/.env_20220518143858 b/.history/.env_20220518143858 new file mode 100644 index 0000000..55fbf2e --- /dev/null +++ b/.history/.env_20220518143858 @@ -0,0 +1 @@ +REACT_APP_BASE_URL=http://localhost:8000 \ No newline at end of file diff --git a/.history/.env_20220518144051 b/.history/.env_20220518144051 new file mode 100644 index 0000000..55fbf2e --- /dev/null +++ b/.history/.env_20220518144051 @@ -0,0 +1 @@ +REACT_APP_BASE_URL=http://localhost:8000 \ No newline at end of file diff --git a/.history/README_20220710205803.md b/.history/README_20220710205803.md new file mode 100644 index 0000000..c87e042 --- /dev/null +++ b/.history/README_20220710205803.md @@ -0,0 +1,34 @@ +This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. + +[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. + +The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. + +## Learn More + +To learn more about Next.js, take a look at the following resources: + +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. + +You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! + +## Deploy on Vercel + +The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. + +Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/.history/README_20220710210115.md b/.history/README_20220710210115.md new file mode 100644 index 0000000..471602a --- /dev/null +++ b/.history/README_20220710210115.md @@ -0,0 +1 @@ +Сайт для сервиса доставки пиццы. diff --git a/.history/components/Block/Pizza/index_20220516233309.tsx b/.history/components/Block/Pizza/index_20220516233309.tsx new file mode 100644 index 0000000..2694f9e --- /dev/null +++ b/.history/components/Block/Pizza/index_20220516233309.tsx @@ -0,0 +1,98 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../redux/cart/selectors'; +import { CartItem } from '../../redux/cart/types'; +import { addItem } from '../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
+
+ + Pizza +

{title}

+ +
+
    + {types.map((typeId) => ( +
  • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
  • + ))} +
+
    + {sizes.map((size, i) => ( +
  • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
  • + ))} +
+
+
+
от {price} ₽
+ +
+
+
+ ); +}; diff --git a/.history/components/Block/Pizza/index_20220518134250.tsx b/.history/components/Block/Pizza/index_20220518134250.tsx new file mode 100644 index 0000000..c576de2 --- /dev/null +++ b/.history/components/Block/Pizza/index_20220518134250.tsx @@ -0,0 +1,98 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../redux/cart/selectors'; +import { CartItem } from '../../../redux/cart/types'; +import { addItem } from '../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
+
+ + Pizza +

{title}

+ +
+
    + {types.map((typeId) => ( +
  • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
  • + ))} +
+
    + {sizes.map((size, i) => ( +
  • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
  • + ))} +
+
+
+
от {price} ₽
+ +
+
+
+ ); +}; diff --git a/.history/components/Block/Stock/Skeleton_20220518134317.tsx b/.history/components/Block/Stock/Skeleton_20220518134317.tsx new file mode 100644 index 0000000..a6410f2 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518134317.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const Skeleton = () => ( + + + + + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518134633.tsx b/.history/components/Block/Stock/Skeleton_20220518134633.tsx new file mode 100644 index 0000000..bef630a --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518134633.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + + + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518140827.tsx b/.history/components/Block/Stock/Skeleton_20220518140827.tsx new file mode 100644 index 0000000..846442a --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518140827.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + + + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518140848.tsx b/.history/components/Block/Stock/Skeleton_20220518140848.tsx new file mode 100644 index 0000000..1ed08d5 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518140848.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518140912.tsx b/.history/components/Block/Stock/Skeleton_20220518140912.tsx new file mode 100644 index 0000000..5df8cf8 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518140912.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141002.tsx b/.history/components/Block/Stock/Skeleton_20220518141002.tsx new file mode 100644 index 0000000..469632b --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141002.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141016.tsx b/.history/components/Block/Stock/Skeleton_20220518141016.tsx new file mode 100644 index 0000000..c06bd00 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141016.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141117.tsx b/.history/components/Block/Stock/Skeleton_20220518141117.tsx new file mode 100644 index 0000000..7bcdd99 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141117.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141132.tsx b/.history/components/Block/Stock/Skeleton_20220518141132.tsx new file mode 100644 index 0000000..abe7781 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141132.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141143.tsx b/.history/components/Block/Stock/Skeleton_20220518141143.tsx new file mode 100644 index 0000000..168cc38 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141143.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141305.tsx b/.history/components/Block/Stock/Skeleton_20220518141305.tsx new file mode 100644 index 0000000..6a1d6a4 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141305.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141344.tsx b/.history/components/Block/Stock/Skeleton_20220518141344.tsx new file mode 100644 index 0000000..6a1d6a4 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141344.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141511.tsx b/.history/components/Block/Stock/Skeleton_20220518141511.tsx new file mode 100644 index 0000000..5b83597 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141511.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141527.tsx b/.history/components/Block/Stock/Skeleton_20220518141527.tsx new file mode 100644 index 0000000..154843c --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141527.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141538.tsx b/.history/components/Block/Stock/Skeleton_20220518141538.tsx new file mode 100644 index 0000000..76aea59 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141538.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141558.tsx b/.history/components/Block/Stock/Skeleton_20220518141558.tsx new file mode 100644 index 0000000..9b78817 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141558.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141617.tsx b/.history/components/Block/Stock/Skeleton_20220518141617.tsx new file mode 100644 index 0000000..92de88b --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141617.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141623.tsx b/.history/components/Block/Stock/Skeleton_20220518141623.tsx new file mode 100644 index 0000000..9b78817 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141623.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141626.tsx b/.history/components/Block/Stock/Skeleton_20220518141626.tsx new file mode 100644 index 0000000..c1e30a7 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141626.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141636.tsx b/.history/components/Block/Stock/Skeleton_20220518141636.tsx new file mode 100644 index 0000000..9b78817 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141636.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141647.tsx b/.history/components/Block/Stock/Skeleton_20220518141647.tsx new file mode 100644 index 0000000..43be022 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141647.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141658.tsx b/.history/components/Block/Stock/Skeleton_20220518141658.tsx new file mode 100644 index 0000000..82e383b --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141658.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141705.tsx b/.history/components/Block/Stock/Skeleton_20220518141705.tsx new file mode 100644 index 0000000..f43035d --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141705.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141713.tsx b/.history/components/Block/Stock/Skeleton_20220518141713.tsx new file mode 100644 index 0000000..25fb44c --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141713.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141721.tsx b/.history/components/Block/Stock/Skeleton_20220518141721.tsx new file mode 100644 index 0000000..bd0a2b6 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141721.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141738.tsx b/.history/components/Block/Stock/Skeleton_20220518141738.tsx new file mode 100644 index 0000000..ddf6145 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141738.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141751.tsx b/.history/components/Block/Stock/Skeleton_20220518141751.tsx new file mode 100644 index 0000000..dd939c2 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141751.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141809.tsx b/.history/components/Block/Stock/Skeleton_20220518141809.tsx new file mode 100644 index 0000000..dd939c2 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141809.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141817.tsx b/.history/components/Block/Stock/Skeleton_20220518141817.tsx new file mode 100644 index 0000000..70580e0 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141817.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141843.tsx b/.history/components/Block/Stock/Skeleton_20220518141843.tsx new file mode 100644 index 0000000..5ec2c59 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141843.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518141856.tsx b/.history/components/Block/Stock/Skeleton_20220518141856.tsx new file mode 100644 index 0000000..95695dc --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518141856.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518142016.tsx b/.history/components/Block/Stock/Skeleton_20220518142016.tsx new file mode 100644 index 0000000..92fee38 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518142016.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144636.tsx b/.history/components/Block/Stock/Skeleton_20220518144636.tsx new file mode 100644 index 0000000..79127e8 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144636.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144700.tsx b/.history/components/Block/Stock/Skeleton_20220518144700.tsx new file mode 100644 index 0000000..4fb8343 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144700.tsx @@ -0,0 +1,7 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + <> +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144716.tsx b/.history/components/Block/Stock/Skeleton_20220518144716.tsx new file mode 100644 index 0000000..2078818 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144716.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144726.tsx b/.history/components/Block/Stock/Skeleton_20220518144726.tsx new file mode 100644 index 0000000..79127e8 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144726.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144743.tsx b/.history/components/Block/Stock/Skeleton_20220518144743.tsx new file mode 100644 index 0000000..da736ce --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144743.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144754.tsx b/.history/components/Block/Stock/Skeleton_20220518144754.tsx new file mode 100644 index 0000000..58b04fc --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144754.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144829.tsx b/.history/components/Block/Stock/Skeleton_20220518144829.tsx new file mode 100644 index 0000000..5b145e4 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144829.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144838.tsx b/.history/components/Block/Stock/Skeleton_20220518144838.tsx new file mode 100644 index 0000000..4a47c01 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144838.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144904.tsx b/.history/components/Block/Stock/Skeleton_20220518144904.tsx new file mode 100644 index 0000000..0ed163b --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144904.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144928.tsx b/.history/components/Block/Stock/Skeleton_20220518144928.tsx new file mode 100644 index 0000000..abd511c --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144928.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518144947.tsx b/.history/components/Block/Stock/Skeleton_20220518144947.tsx new file mode 100644 index 0000000..60ae2c8 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518144947.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145011.tsx b/.history/components/Block/Stock/Skeleton_20220518145011.tsx new file mode 100644 index 0000000..60ae2c8 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145011.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145240.tsx b/.history/components/Block/Stock/Skeleton_20220518145240.tsx new file mode 100644 index 0000000..16bb75e --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145240.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145319.tsx b/.history/components/Block/Stock/Skeleton_20220518145319.tsx new file mode 100644 index 0000000..0a62aaf --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145319.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145331.tsx b/.history/components/Block/Stock/Skeleton_20220518145331.tsx new file mode 100644 index 0000000..2cfff8a --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145331.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145343.tsx b/.history/components/Block/Stock/Skeleton_20220518145343.tsx new file mode 100644 index 0000000..062da10 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145343.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145349.tsx b/.history/components/Block/Stock/Skeleton_20220518145349.tsx new file mode 100644 index 0000000..a2bff79 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145349.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145401.tsx b/.history/components/Block/Stock/Skeleton_20220518145401.tsx new file mode 100644 index 0000000..1b77afb --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145401.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145408.tsx b/.history/components/Block/Stock/Skeleton_20220518145408.tsx new file mode 100644 index 0000000..a1cc0d3 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145408.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145422.tsx b/.history/components/Block/Stock/Skeleton_20220518145422.tsx new file mode 100644 index 0000000..56fcd43 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145422.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145444.tsx b/.history/components/Block/Stock/Skeleton_20220518145444.tsx new file mode 100644 index 0000000..c3151b1 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145444.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145458.tsx b/.history/components/Block/Stock/Skeleton_20220518145458.tsx new file mode 100644 index 0000000..8d0458f --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145458.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145509.tsx b/.history/components/Block/Stock/Skeleton_20220518145509.tsx new file mode 100644 index 0000000..6cf00a4 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145509.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145642.tsx b/.history/components/Block/Stock/Skeleton_20220518145642.tsx new file mode 100644 index 0000000..5b3ba1f --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145642.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + <> + + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145708.tsx b/.history/components/Block/Stock/Skeleton_20220518145708.tsx new file mode 100644 index 0000000..6cf00a4 --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145708.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145737.tsx b/.history/components/Block/Stock/Skeleton_20220518145737.tsx new file mode 100644 index 0000000..35bd15e --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145737.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Skeleton_20220518145757.tsx b/.history/components/Block/Stock/Skeleton_20220518145757.tsx new file mode 100644 index 0000000..5cdbf2b --- /dev/null +++ b/.history/components/Block/Stock/Skeleton_20220518145757.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const SkeletonStock = () => ( + + + +); diff --git a/.history/components/Block/Stock/Stock_20220517171533.tsx b/.history/components/Block/Stock/Stock_20220517171533.tsx new file mode 100644 index 0000000..8504ccc --- /dev/null +++ b/.history/components/Block/Stock/Stock_20220517171533.tsx @@ -0,0 +1,25 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + color: string; + title_one: string; + title_two: string; + img: string; + sale: string; + }; + + export const CardStock: React.FC = ({color, title_one, title_two, img, sale}) => { + return( +
+
+

{title_one}

+

{title_two}

+
+
+
+

{sale}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/Block/Stock/Stock_20220518142538.tsx b/.history/components/Block/Stock/Stock_20220518142538.tsx new file mode 100644 index 0000000..be2146d --- /dev/null +++ b/.history/components/Block/Stock/Stock_20220518142538.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + id: number; + color: string; + title_one: string; + title_two: string; + img: string; + sale: string; + }; + + export const CardStock: React.FC = ({color, title_one, title_two, img, sale}) => { + return( +
+
+

{title_one}

+

{title_two}

+
+
+
+

{sale}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/Block/Stock/skeleton_20220518134307.tsx b/.history/components/Block/Stock/skeleton_20220518134307.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/Block/Stock/skeleton_20220518134318.tsx b/.history/components/Block/Stock/skeleton_20220518134318.tsx new file mode 100644 index 0000000..a6410f2 --- /dev/null +++ b/.history/components/Block/Stock/skeleton_20220518134318.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const Skeleton = () => ( + + + + + + + +); diff --git a/.history/components/Customer/Header_20220518151433.tsx b/.history/components/Customer/Header_20220518151433.tsx new file mode 100644 index 0000000..f01ca2b --- /dev/null +++ b/.history/components/Customer/Header_20220518151433.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './Customer/Search'; +import { selectCart } from '../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/Customer/Header_20220518151447.tsx b/.history/components/Customer/Header_20220518151447.tsx new file mode 100644 index 0000000..d150df2 --- /dev/null +++ b/.history/components/Customer/Header_20220518151447.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './Search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/Customer/Search/index_20220516232008.tsx b/.history/components/Customer/Search/index_20220516232008.tsx new file mode 100644 index 0000000..0a963b1 --- /dev/null +++ b/.history/components/Customer/Search/index_20220516232008.tsx @@ -0,0 +1,83 @@ +import React from 'react'; +import { useDispatch } from 'react-redux'; +import { debounce } from "lodash" + +import { setSearchValue } from '../../redux/search/slice'; + +export const Search: React.FC = () => { + const dispatch = useDispatch(); + const [value, setValue] = React.useState(''); + const inputRef = React.useRef(null); + + const onClickClear = () => { + dispatch(setSearchValue('')); + setValue(''); + inputRef.current?.focus(); + }; + + const updateSearchValue = React.useCallback( + debounce((str: string) => { + dispatch(setSearchValue(str)); + }, 150), + [], + ); + + const onChangeInput = (event: React.ChangeEvent) => { + setValue(event.target.value); + updateSearchValue(event.target.value); + }; + + return ( +
+ + + + + + {value && ( + + + + )} +
+ ); +}; diff --git a/.history/components/Customer/Search/index_20220518151434.tsx b/.history/components/Customer/Search/index_20220518151434.tsx new file mode 100644 index 0000000..7cbd19b --- /dev/null +++ b/.history/components/Customer/Search/index_20220518151434.tsx @@ -0,0 +1,83 @@ +import React from 'react'; +import { useDispatch } from 'react-redux'; +import { debounce } from "lodash" + +import { setSearchValue } from '../../../redux/search/slice'; + +export const Search: React.FC = () => { + const dispatch = useDispatch(); + const [value, setValue] = React.useState(''); + const inputRef = React.useRef(null); + + const onClickClear = () => { + dispatch(setSearchValue('')); + setValue(''); + inputRef.current?.focus(); + }; + + const updateSearchValue = React.useCallback( + debounce((str: string) => { + dispatch(setSearchValue(str)); + }, 150), + [], + ); + + const onChangeInput = (event: React.ChangeEvent) => { + setValue(event.target.value); + updateSearchValue(event.target.value); + }; + + return ( +
+ + + + + + {value && ( + + + + )} +
+ ); +}; diff --git a/.history/components/Header_20220517160019.tsx b/.history/components/Header_20220517160019.tsx new file mode 100644 index 0000000..c808132 --- /dev/null +++ b/.history/components/Header_20220517160019.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './Search'; +import { selectCart } from '../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/Header_20220518151434.tsx b/.history/components/Header_20220518151434.tsx new file mode 100644 index 0000000..f01ca2b --- /dev/null +++ b/.history/components/Header_20220518151434.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './Customer/Search'; +import { selectCart } from '../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/UI/ButtonImg_20220529001126.tsx b/.history/components/UI/ButtonImg_20220529001126.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/ButtonImg_20220529001133.tsx b/.history/components/UI/ButtonImg_20220529001133.tsx new file mode 100644 index 0000000..7066ce8 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001133.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001136.tsx b/.history/components/UI/ButtonImg_20220529001136.tsx new file mode 100644 index 0000000..30c115e --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001136.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001137.tsx b/.history/components/UI/ButtonImg_20220529001137.tsx new file mode 100644 index 0000000..30c115e --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001137.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001155.tsx b/.history/components/UI/ButtonImg_20220529001155.tsx new file mode 100644 index 0000000..5b87aa7 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001155.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001202.tsx b/.history/components/UI/ButtonImg_20220529001202.tsx new file mode 100644 index 0000000..4321114 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001202.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001207.tsx b/.history/components/UI/ButtonImg_20220529001207.tsx new file mode 100644 index 0000000..eb8bf0a --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001207.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img,children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001213.tsx b/.history/components/UI/ButtonImg_20220529001213.tsx new file mode 100644 index 0000000..39b69be --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001213.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + img: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img,children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001217.tsx b/.history/components/UI/ButtonImg_20220529001217.tsx new file mode 100644 index 0000000..c71bf35 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001217.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + img: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001222.tsx b/.history/components/UI/ButtonImg_20220529001222.tsx new file mode 100644 index 0000000..5e94386 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001222.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + img: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001224.tsx b/.history/components/UI/ButtonImg_20220529001224.tsx new file mode 100644 index 0000000..5e94386 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001224.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + img: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001348.tsx b/.history/components/UI/ButtonImg_20220529001348.tsx new file mode 100644 index 0000000..e745281 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001348.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + img: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529001412.tsx b/.history/components/UI/ButtonImg_20220529001412.tsx new file mode 100644 index 0000000..e745281 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529001412.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + img: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/ButtonImg_20220529142855.tsx b/.history/components/UI/ButtonImg_20220529142855.tsx new file mode 100644 index 0000000..e745281 --- /dev/null +++ b/.history/components/UI/ButtonImg_20220529142855.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + img: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const ButtonImg: React.FC = ({onClick, img, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518152339.tsx b/.history/components/UI/Button_20220518152339.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/Button_20220518152348.tsx b/.history/components/UI/Button_20220518152348.tsx new file mode 100644 index 0000000..e9b39d8 --- /dev/null +++ b/.history/components/UI/Button_20220518152348.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +const Button = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} + +Button.propTypes = { + onClick: PropTypes.func, +}; + +export default Button; diff --git a/.history/components/UI/Button_20220518152711.tsx b/.history/components/UI/Button_20220518152711.tsx new file mode 100644 index 0000000..791d2c6 --- /dev/null +++ b/.history/components/UI/Button_20220518152711.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +export const Button: React.FC = () => (({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} + +Button.propTypes = { + onClick: PropTypes.func, +}; + +export default Button; diff --git a/.history/components/UI/Button_20220518152806.tsx b/.history/components/UI/Button_20220518152806.tsx new file mode 100644 index 0000000..fdd9087 --- /dev/null +++ b/.history/components/UI/Button_20220518152806.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +export const Button: React.FC = () => (({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} + +Button.propTypes = { + onClick: PropTypes.func, +}; diff --git a/.history/components/UI/Button_20220518152920.tsx b/.history/components/UI/Button_20220518152920.tsx new file mode 100644 index 0000000..91af155 --- /dev/null +++ b/.history/components/UI/Button_20220518152920.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +export const Button: React.FC = () => (({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} + +Button.propTypes = { + onClick: PropTypes.func, +}; diff --git a/.history/components/UI/Button_20220518152939.tsx b/.history/components/UI/Button_20220518152939.tsx new file mode 100644 index 0000000..522fd06 --- /dev/null +++ b/.history/components/UI/Button_20220518152939.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +export const Button: React.FC = (({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} + +Button.propTypes = { + onClick: PropTypes.func, +}; diff --git a/.history/components/UI/Button_20220518153013.tsx b/.history/components/UI/Button_20220518153013.tsx new file mode 100644 index 0000000..f634dcd --- /dev/null +++ b/.history/components/UI/Button_20220518153013.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = (({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518153019.tsx b/.history/components/UI/Button_20220518153019.tsx new file mode 100644 index 0000000..54d2d09 --- /dev/null +++ b/.history/components/UI/Button_20220518153019.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518153025.tsx b/.history/components/UI/Button_20220518153025.tsx new file mode 100644 index 0000000..54d2d09 --- /dev/null +++ b/.history/components/UI/Button_20220518153025.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518154104.tsx b/.history/components/UI/Button_20220518154104.tsx new file mode 100644 index 0000000..89fdf86 --- /dev/null +++ b/.history/components/UI/Button_20220518154104.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518155731.tsx b/.history/components/UI/Button_20220518155731.tsx new file mode 100644 index 0000000..2a290c9 --- /dev/null +++ b/.history/components/UI/Button_20220518155731.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: any; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518155848.tsx b/.history/components/UI/Button_20220518155848.tsx new file mode 100644 index 0000000..89fdf86 --- /dev/null +++ b/.history/components/UI/Button_20220518155848.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518160852.tsx b/.history/components/UI/Button_20220518160852.tsx new file mode 100644 index 0000000..f486084 --- /dev/null +++ b/.history/components/UI/Button_20220518160852.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: (event) => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518160937.tsx b/.history/components/UI/Button_20220518160937.tsx new file mode 100644 index 0000000..a6a5332 --- /dev/null +++ b/.history/components/UI/Button_20220518160937.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: {(event: KonvaMouseEvent) => { + makeMove(ownMark, event.target.index)}; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518160952.tsx b/.history/components/UI/Button_20220518160952.tsx new file mode 100644 index 0000000..50e7195 --- /dev/null +++ b/.history/components/UI/Button_20220518160952.tsx @@ -0,0 +1,22 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface KonvaMouseEvent extends React.MouseEvent { + target: KonvaTextEventTarget + } + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: {(event: KonvaMouseEvent) => { + makeMove(ownMark, event.target.index)}; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518161030.tsx b/.history/components/UI/Button_20220518161030.tsx new file mode 100644 index 0000000..ada1f65 --- /dev/null +++ b/.history/components/UI/Button_20220518161030.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518161206.tsx b/.history/components/UI/Button_20220518161206.tsx new file mode 100644 index 0000000..0d589a1 --- /dev/null +++ b/.history/components/UI/Button_20220518161206.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220518161209.tsx b/.history/components/UI/Button_20220518161209.tsx new file mode 100644 index 0000000..4133ff5 --- /dev/null +++ b/.history/components/UI/Button_20220518161209.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220520133457.tsx b/.history/components/UI/Button_20220520133457.tsx new file mode 100644 index 0000000..7066ce8 --- /dev/null +++ b/.history/components/UI/Button_20220520133457.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220520133516.tsx b/.history/components/UI/Button_20220520133516.tsx new file mode 100644 index 0000000..7066ce8 --- /dev/null +++ b/.history/components/UI/Button_20220520133516.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220602163434.tsx b/.history/components/UI/Button_20220602163434.tsx new file mode 100644 index 0000000..80b1a59 --- /dev/null +++ b/.history/components/UI/Button_20220602163434.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + } + +export const Button: React.FC = ({align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220604083650.tsx b/.history/components/UI/Button_20220604083650.tsx new file mode 100644 index 0000000..8e0d2d4 --- /dev/null +++ b/.history/components/UI/Button_20220604083650.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick:() => void; + } + +export const Button: React.FC = ({align, styles, children, onClick}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220604130939.tsx b/.history/components/UI/Button_20220604130939.tsx new file mode 100644 index 0000000..8e0d2d4 --- /dev/null +++ b/.history/components/UI/Button_20220604130939.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick:() => void; + } + +export const Button: React.FC = ({align, styles, children, onClick}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Button_20220604131539.tsx b/.history/components/UI/Button_20220604131539.tsx new file mode 100644 index 0000000..915f126 --- /dev/null +++ b/.history/components/UI/Button_20220604131539.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Button: React.FC = ({align, styles, children, onClick}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Icon_20220528173840.tsx b/.history/components/UI/Icon_20220528173840.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/Icon_20220528173852.tsx b/.history/components/UI/Icon_20220528173852.tsx new file mode 100644 index 0000000..38e2ad5 --- /dev/null +++ b/.history/components/UI/Icon_20220528173852.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const Icon: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Icon_20220528173940.tsx b/.history/components/UI/Icon_20220528173940.tsx new file mode 100644 index 0000000..c5e9682 --- /dev/null +++ b/.history/components/UI/Icon_20220528173940.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Icon: React.FC = ({onClick, align, styles, children}) => { + return( +
+ +
+ ) +} + + +export const IconMoped = (props) => { + return( +

+ ) +} + +export const IconFire = (props) => { + return( +

+ ) +} + diff --git a/.history/components/UI/Icon_20220528174512.tsx b/.history/components/UI/Icon_20220528174512.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/InputRadio_20220531231307.tsx b/.history/components/UI/InputRadio_20220531231307.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/InputRadio_20220531231427.tsx b/.history/components/UI/InputRadio_20220531231427.tsx new file mode 100644 index 0000000..7326f1a --- /dev/null +++ b/.history/components/UI/InputRadio_20220531231427.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + onChange: (name: string, value: string,) => void; + num: number, + variable: number, + label: string, + value: string, + } + + export const Input: React.FC = ({num, variable, onChange }) => { + return( + + ) +} + diff --git a/.history/components/UI/InputRadio_20220531231621.tsx b/.history/components/UI/InputRadio_20220531231621.tsx new file mode 100644 index 0000000..489fc5c --- /dev/null +++ b/.history/components/UI/InputRadio_20220531231621.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + onChange: (e: React.ChangeEvent) => void; + num: number, + variable: number, + label: string, + value: string, + } + + export const Input: React.FC = ({num, variable, onChange }) => { + return( + + ) +} + diff --git a/.history/components/UI/InputRadio_20220531231629.tsx b/.history/components/UI/InputRadio_20220531231629.tsx new file mode 100644 index 0000000..7a3f285 --- /dev/null +++ b/.history/components/UI/InputRadio_20220531231629.tsx @@ -0,0 +1,23 @@ +import React from 'react' + +interface Props { + onChange: (e: React.ChangeEvent) => void; + num: number, + variable: number, + label: string, + value: string, + } + + export const Input: React.FC = ({num, variable, onChange }) => { + return( + + ) +} + diff --git a/.history/components/UI/InputRadio_20220531231657.tsx b/.history/components/UI/InputRadio_20220531231657.tsx new file mode 100644 index 0000000..76d8e22 --- /dev/null +++ b/.history/components/UI/InputRadio_20220531231657.tsx @@ -0,0 +1,23 @@ +import React from 'react' + +interface Props { + onChange: (e: React.ChangeEvent) => void; + num: number, + variable: number, + label: string, + value: string, + } + + export const InputRadio: React.FC = ({num, variable, onChange }) => { + return( + + ) +} + diff --git a/.history/components/UI/InputRadio_20220531232713.tsx b/.history/components/UI/InputRadio_20220531232713.tsx new file mode 100644 index 0000000..16d080c --- /dev/null +++ b/.history/components/UI/InputRadio_20220531232713.tsx @@ -0,0 +1,23 @@ +import React from 'react' + +interface Props { + onChange: (value: string, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + } + + export const InputRadio: React.FC = ({num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220531233007.tsx b/.history/components/UI/InputRadio_20220531233007.tsx new file mode 100644 index 0000000..9e513a3 --- /dev/null +++ b/.history/components/UI/InputRadio_20220531233007.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +interface Props { + onChange: (value: string, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + key: number, + } + + export const InputRadio: React.FC = ({key, num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220531233038.tsx b/.history/components/UI/InputRadio_20220531233038.tsx new file mode 100644 index 0000000..f6ce7a5 --- /dev/null +++ b/.history/components/UI/InputRadio_20220531233038.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +interface Props { + onChange: (value: string, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + key: string, + } + + export const InputRadio: React.FC = ({key, num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220531234646.tsx b/.history/components/UI/InputRadio_20220531234646.tsx new file mode 100644 index 0000000..f6ce7a5 --- /dev/null +++ b/.history/components/UI/InputRadio_20220531234646.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +interface Props { + onChange: (value: string, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + key: string, + } + + export const InputRadio: React.FC = ({key, num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220601000052.tsx b/.history/components/UI/InputRadio_20220601000052.tsx new file mode 100644 index 0000000..b8c8cb7 --- /dev/null +++ b/.history/components/UI/InputRadio_20220601000052.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +interface Props { + onChange: () => void, + num: number, + variable: number, + label: string, + value: number, + key: string, + } + + export const InputRadio: React.FC = ({key, num, variable, onChange }) => { + return( + onChange()} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220601000722.tsx b/.history/components/UI/InputRadio_20220601000722.tsx new file mode 100644 index 0000000..f6ce7a5 --- /dev/null +++ b/.history/components/UI/InputRadio_20220601000722.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +interface Props { + onChange: (value: string, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + key: string, + } + + export const InputRadio: React.FC = ({key, num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220601001235.tsx b/.history/components/UI/InputRadio_20220601001235.tsx new file mode 100644 index 0000000..15ded1b --- /dev/null +++ b/.history/components/UI/InputRadio_20220601001235.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +interface Props { + onChange: (value: number, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + key: string, + } + + export const InputRadio: React.FC = ({key, num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220601001655.tsx b/.history/components/UI/InputRadio_20220601001655.tsx new file mode 100644 index 0000000..1b46828 --- /dev/null +++ b/.history/components/UI/InputRadio_20220601001655.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +type Props = { + onChange: (value: number, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + key: string, + } + + export const InputRadio: React.FC = ({key, num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220601085439.tsx b/.history/components/UI/InputRadio_20220601085439.tsx new file mode 100644 index 0000000..ea0e1c0 --- /dev/null +++ b/.history/components/UI/InputRadio_20220601085439.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +type Props = { + onChange: (value: string, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + key: string, + } + + export const InputRadio: React.FC = ({key, num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220601090521.tsx b/.history/components/UI/InputRadio_20220601090521.tsx new file mode 100644 index 0000000..44f93f6 --- /dev/null +++ b/.history/components/UI/InputRadio_20220601090521.tsx @@ -0,0 +1,23 @@ +import React from 'react' + +type Props = { + onChange: (value: string, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + } + + export const InputRadio: React.FC = ({num, variable, onChange }) => { + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/InputRadio_20220601090715.tsx b/.history/components/UI/InputRadio_20220601090715.tsx new file mode 100644 index 0000000..fde5fca --- /dev/null +++ b/.history/components/UI/InputRadio_20220601090715.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +type Props = { + onChange: (value: string, checked: boolean) => void, + num: number, + variable: number, + label: string, + value: number, + } + + export const InputRadio: React.FC = ({num, variable, onChange }) => { + console.log(num, variable); + return( + onChange(event.target.value, event.target.checked)} + checked={variable == num} + /> + ) +} + diff --git a/.history/components/UI/Input_20220518153618.tsx b/.history/components/UI/Input_20220518153618.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/Input_20220518154055.tsx b/.history/components/UI/Input_20220518154055.tsx new file mode 100644 index 0000000..48774c1 --- /dev/null +++ b/.history/components/UI/Input_20220518154055.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + + const Input = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + +Input.propTypes = { + onChange: PropTypes.func, + type: PropTypes.string, + name: PropTypes.string, + label: PropTypes.string, + value: PropTypes.string, +}; + +export default Input; diff --git a/.history/components/UI/Input_20220518154112.tsx b/.history/components/UI/Input_20220518154112.tsx new file mode 100644 index 0000000..fc1d182 --- /dev/null +++ b/.history/components/UI/Input_20220518154112.tsx @@ -0,0 +1,33 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + + const Input = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + +Input.propTypes = { + onChange: PropTypes.func, + type: PropTypes.string, + name: PropTypes.string, + label: PropTypes.string, + value: PropTypes.string, +}; + +export default Input; diff --git a/.history/components/UI/Input_20220518154156.tsx b/.history/components/UI/Input_20220518154156.tsx new file mode 100644 index 0000000..7f0f986 --- /dev/null +++ b/.history/components/UI/Input_20220518154156.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: PropTypes.func, + type: PropTypes.string, + name: PropTypes.string, + label: PropTypes.string, + value: PropTypes.string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518154211.tsx b/.history/components/UI/Input_20220518154211.tsx new file mode 100644 index 0000000..50977ff --- /dev/null +++ b/.history/components/UI/Input_20220518154211.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: () => void, + type: PropTypes.string, + name: PropTypes.string, + label: PropTypes.string, + value: PropTypes.string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518154240.tsx b/.history/components/UI/Input_20220518154240.tsx new file mode 100644 index 0000000..b632510 --- /dev/null +++ b/.history/components/UI/Input_20220518154240.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: () => void, + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518160030.tsx b/.history/components/UI/Input_20220518160030.tsx new file mode 100644 index 0000000..b632510 --- /dev/null +++ b/.history/components/UI/Input_20220518160030.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: () => void, + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518160405.tsx b/.history/components/UI/Input_20220518160405.tsx new file mode 100644 index 0000000..634aad0 --- /dev/null +++ b/.history/components/UI/Input_20220518160405.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: (event) => onChangePage(e ), + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518160427.tsx b/.history/components/UI/Input_20220518160427.tsx new file mode 100644 index 0000000..255c1ff --- /dev/null +++ b/.history/components/UI/Input_20220518160427.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: (e) => void, + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518160441.tsx b/.history/components/UI/Input_20220518160441.tsx new file mode 100644 index 0000000..6d8f943 --- /dev/null +++ b/.history/components/UI/Input_20220518160441.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: (e) => void, + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange} value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518160541.tsx b/.history/components/UI/Input_20220518160541.tsx new file mode 100644 index 0000000..456b701 --- /dev/null +++ b/.history/components/UI/Input_20220518160541.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: (e) => void, + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange(e)} value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518160658.tsx b/.history/components/UI/Input_20220518160658.tsx new file mode 100644 index 0000000..72109c6 --- /dev/null +++ b/.history/components/UI/Input_20220518160658.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: () => void, + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange(e)} value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518161150.tsx b/.history/components/UI/Input_20220518161150.tsx new file mode 100644 index 0000000..7c9afb2 --- /dev/null +++ b/.history/components/UI/Input_20220518161150.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: () => void, + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange()} value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162057.tsx b/.history/components/UI/Input_20220518162057.tsx new file mode 100644 index 0000000..e4ccdc2 --- /dev/null +++ b/.history/components/UI/Input_20220518162057.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: (str: string) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange()} value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162231.tsx b/.history/components/UI/Input_20220518162231.tsx new file mode 100644 index 0000000..1823255 --- /dev/null +++ b/.history/components/UI/Input_20220518162231.tsx @@ -0,0 +1,29 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: (str: string) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange({value:event.target.value, } }/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162331.tsx b/.history/components/UI/Input_20220518162331.tsx new file mode 100644 index 0000000..cea5a44 --- /dev/null +++ b/.history/components/UI/Input_20220518162331.tsx @@ -0,0 +1,29 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: (str: string) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162409.tsx b/.history/components/UI/Input_20220518162409.tsx new file mode 100644 index 0000000..58b4a14 --- /dev/null +++ b/.history/components/UI/Input_20220518162409.tsx @@ -0,0 +1,29 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: onChange; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162416.tsx b/.history/components/UI/Input_20220518162416.tsx new file mode 100644 index 0000000..cea5a44 --- /dev/null +++ b/.history/components/UI/Input_20220518162416.tsx @@ -0,0 +1,29 @@ +import React from 'react' +import PropTypes from 'prop-types'; +import classNames from 'classnames'; + +interface Props { + onChange: (str: string) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162550.tsx b/.history/components/UI/Input_20220518162550.tsx new file mode 100644 index 0000000..6ddcc33 --- /dev/null +++ b/.history/components/UI/Input_20220518162550.tsx @@ -0,0 +1,28 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + onChange: (str: string) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange(event.target.value)} + type={type} + name={name} + value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162705.tsx b/.history/components/UI/Input_20220518162705.tsx new file mode 100644 index 0000000..b121b03 --- /dev/null +++ b/.history/components/UI/Input_20220518162705.tsx @@ -0,0 +1,28 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + onChange: (value: string, name: string) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange(event.target.value, event.target.name)} + type={type} + name={name} + value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162855.tsx b/.history/components/UI/Input_20220518162855.tsx new file mode 100644 index 0000000..abaf6e0 --- /dev/null +++ b/.history/components/UI/Input_20220518162855.tsx @@ -0,0 +1,28 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + onChange: (name: string, value: string,) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange(event.target.name, event.target.value)} + type={type} + name={name} + value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220518162935.tsx b/.history/components/UI/Input_20220518162935.tsx new file mode 100644 index 0000000..abaf6e0 --- /dev/null +++ b/.history/components/UI/Input_20220518162935.tsx @@ -0,0 +1,28 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + onChange: (name: string, value: string,) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange(event.target.name, event.target.value)} + type={type} + name={name} + value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Input_20220531163847.tsx b/.history/components/UI/Input_20220531163847.tsx new file mode 100644 index 0000000..abaf6e0 --- /dev/null +++ b/.history/components/UI/Input_20220531163847.tsx @@ -0,0 +1,28 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + onChange: (name: string, value: string,) => void; + type: string, + name: string, + label: string, + value: string, + } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +
+ + onChange(event.target.name, event.target.value)} + type={type} + name={name} + value={value}/> + + +
+ ) +} + diff --git a/.history/components/UI/Label_20220518154328.tsx b/.history/components/UI/Label_20220518154328.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/Label_20220518154341.tsx b/.history/components/UI/Label_20220518154341.tsx new file mode 100644 index 0000000..ded488e --- /dev/null +++ b/.history/components/UI/Label_20220518154341.tsx @@ -0,0 +1,11 @@ +import React from 'react' + + const Label = ({...props}) => { + return( +
+ +
+ ) +} + +export default Label; \ No newline at end of file diff --git a/.history/components/UI/Label_20220518154410.tsx b/.history/components/UI/Label_20220518154410.tsx new file mode 100644 index 0000000..da4b0f9 --- /dev/null +++ b/.history/components/UI/Label_20220518154410.tsx @@ -0,0 +1,12 @@ +import React from 'react' + +export const Label: React.FC = ({type, name, label, onChange, value }) => { + const Label = ({...props}) => { + return( +
+ +
+ ) +} + +export default Label; \ No newline at end of file diff --git a/.history/components/UI/Label_20220518154429.tsx b/.history/components/UI/Label_20220518154429.tsx new file mode 100644 index 0000000..78c2137 --- /dev/null +++ b/.history/components/UI/Label_20220518154429.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +export const Label: React.FC = ({children }) => { + return( +
+ +
+ ) +} + +export default Label; \ No newline at end of file diff --git a/.history/components/UI/Label_20220518154510.tsx b/.history/components/UI/Label_20220518154510.tsx new file mode 100644 index 0000000..b1d3da1 --- /dev/null +++ b/.history/components/UI/Label_20220518154510.tsx @@ -0,0 +1,13 @@ +import React from 'react' + +interface Props { + children?: React.ReactNode; + } + +export const Label: React.FC = ({children }) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/LinkButton_20220518154850.tsx b/.history/components/UI/LinkButton_20220518154850.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/LinkButton_20220518154900.tsx b/.history/components/UI/LinkButton_20220518154900.tsx new file mode 100644 index 0000000..a905326 --- /dev/null +++ b/.history/components/UI/LinkButton_20220518154900.tsx @@ -0,0 +1,11 @@ +import React from 'react' + + const LinkButton = ({...props}) => { + return( +
+ +
+ ) +} + +export default LinkButton; \ No newline at end of file diff --git a/.history/components/UI/LinkButton_20220518154942.tsx b/.history/components/UI/LinkButton_20220518154942.tsx new file mode 100644 index 0000000..1cd561c --- /dev/null +++ b/.history/components/UI/LinkButton_20220518154942.tsx @@ -0,0 +1,18 @@ +import React from 'react' + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const LinkButton: React.FC = ({onClick, color, styles, children}) => { + return( +
+ +
+ ) +} + +export default LinkButton; \ No newline at end of file diff --git a/.history/components/UI/LinkButton_20220518154957.tsx b/.history/components/UI/LinkButton_20220518154957.tsx new file mode 100644 index 0000000..472e25b --- /dev/null +++ b/.history/components/UI/LinkButton_20220518154957.tsx @@ -0,0 +1,18 @@ +import React from 'react' + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const LinkButton: React.FC = ({onClick, color, styles, children}) => { + return( +
+ +
+ ) +} + +export default LinkButton; \ No newline at end of file diff --git a/.history/components/UI/LinkButton_20220518155013.tsx b/.history/components/UI/LinkButton_20220518155013.tsx new file mode 100644 index 0000000..e5f0d7b --- /dev/null +++ b/.history/components/UI/LinkButton_20220518155013.tsx @@ -0,0 +1,19 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const LinkButton: React.FC = ({onClick, color, styles, children}) => { + return( +
+ +
+ ) +} + +export default LinkButton; \ No newline at end of file diff --git a/.history/components/UI/LinkButton_20220518155030.tsx b/.history/components/UI/LinkButton_20220518155030.tsx new file mode 100644 index 0000000..f7bd461 --- /dev/null +++ b/.history/components/UI/LinkButton_20220518155030.tsx @@ -0,0 +1,19 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + align: string; + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const LinkButton: React.FC = ({onClick, styles, children}) => { + return( +
+ +
+ ) +} + +export default LinkButton; \ No newline at end of file diff --git a/.history/components/UI/LinkButton_20220518155108.tsx b/.history/components/UI/LinkButton_20220518155108.tsx new file mode 100644 index 0000000..b54f1bb --- /dev/null +++ b/.history/components/UI/LinkButton_20220518155108.tsx @@ -0,0 +1,16 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + styles: string; + children?: React.ReactNode; + onClick: () => void; + } + +export const LinkButton: React.FC = ({onClick, styles, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/LinkButton_20220518155950.tsx b/.history/components/UI/LinkButton_20220518155950.tsx new file mode 100644 index 0000000..52eccf9 --- /dev/null +++ b/.history/components/UI/LinkButton_20220518155950.tsx @@ -0,0 +1,15 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const LinkButton: React.FC = ({onClick, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/LinkButton_20220518163041.tsx b/.history/components/UI/LinkButton_20220518163041.tsx new file mode 100644 index 0000000..6dc8dbd --- /dev/null +++ b/.history/components/UI/LinkButton_20220518163041.tsx @@ -0,0 +1,15 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const LinkButton: React.FC = ({onClick, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163311.tsx b/.history/components/UI/Modal_20220531163311.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/Modal_20220531163315.tsx b/.history/components/UI/Modal_20220531163315.tsx new file mode 100644 index 0000000..6148637 --- /dev/null +++ b/.history/components/UI/Modal_20220531163315.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163323.tsx b/.history/components/UI/Modal_20220531163323.tsx new file mode 100644 index 0000000..c441ed9 --- /dev/null +++ b/.history/components/UI/Modal_20220531163323.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163408.tsx b/.history/components/UI/Modal_20220531163408.tsx new file mode 100644 index 0000000..fade33a --- /dev/null +++ b/.history/components/UI/Modal_20220531163408.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163415.tsx b/.history/components/UI/Modal_20220531163415.tsx new file mode 100644 index 0000000..054a006 --- /dev/null +++ b/.history/components/UI/Modal_20220531163415.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163419.tsx b/.history/components/UI/Modal_20220531163419.tsx new file mode 100644 index 0000000..bd269a9 --- /dev/null +++ b/.history/components/UI/Modal_20220531163419.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163421.tsx b/.history/components/UI/Modal_20220531163421.tsx new file mode 100644 index 0000000..df65799 --- /dev/null +++ b/.history/components/UI/Modal_20220531163421.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163423.tsx b/.history/components/UI/Modal_20220531163423.tsx new file mode 100644 index 0000000..b391c4b --- /dev/null +++ b/.history/components/UI/Modal_20220531163423.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163425.tsx b/.history/components/UI/Modal_20220531163425.tsx new file mode 100644 index 0000000..d290907 --- /dev/null +++ b/.history/components/UI/Modal_20220531163425.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163429.tsx b/.history/components/UI/Modal_20220531163429.tsx new file mode 100644 index 0000000..5ee2d88 --- /dev/null +++ b/.history/components/UI/Modal_20220531163429.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163432.tsx b/.history/components/UI/Modal_20220531163432.tsx new file mode 100644 index 0000000..42ced7f --- /dev/null +++ b/.history/components/UI/Modal_20220531163432.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163434.tsx b/.history/components/UI/Modal_20220531163434.tsx new file mode 100644 index 0000000..49594cd --- /dev/null +++ b/.history/components/UI/Modal_20220531163434.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163437.tsx b/.history/components/UI/Modal_20220531163437.tsx new file mode 100644 index 0000000..d1391b1 --- /dev/null +++ b/.history/components/UI/Modal_20220531163437.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163439.tsx b/.history/components/UI/Modal_20220531163439.tsx new file mode 100644 index 0000000..81bf62d --- /dev/null +++ b/.history/components/UI/Modal_20220531163439.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163441.tsx b/.history/components/UI/Modal_20220531163441.tsx new file mode 100644 index 0000000..c34232c --- /dev/null +++ b/.history/components/UI/Modal_20220531163441.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163443.tsx b/.history/components/UI/Modal_20220531163443.tsx new file mode 100644 index 0000000..0bb12d0 --- /dev/null +++ b/.history/components/UI/Modal_20220531163443.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163446.tsx b/.history/components/UI/Modal_20220531163446.tsx new file mode 100644 index 0000000..7c8864d --- /dev/null +++ b/.history/components/UI/Modal_20220531163446.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163448.tsx b/.history/components/UI/Modal_20220531163448.tsx new file mode 100644 index 0000000..cd24f7b --- /dev/null +++ b/.history/components/UI/Modal_20220531163448.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163450.tsx b/.history/components/UI/Modal_20220531163450.tsx new file mode 100644 index 0000000..51c8eba --- /dev/null +++ b/.history/components/UI/Modal_20220531163450.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163452.tsx b/.history/components/UI/Modal_20220531163452.tsx new file mode 100644 index 0000000..2442bc4 --- /dev/null +++ b/.history/components/UI/Modal_20220531163452.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163454.tsx b/.history/components/UI/Modal_20220531163454.tsx new file mode 100644 index 0000000..73c258d --- /dev/null +++ b/.history/components/UI/Modal_20220531163454.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +const Modal = ({...props}) => { + return( +
+
+
+
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163511.tsx b/.history/components/UI/Modal_20220531163511.tsx new file mode 100644 index 0000000..904cc15 --- /dev/null +++ b/.history/components/UI/Modal_20220531163511.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163514.tsx b/.history/components/UI/Modal_20220531163514.tsx new file mode 100644 index 0000000..50a293f --- /dev/null +++ b/.history/components/UI/Modal_20220531163514.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { children: React.ReactNode }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163523.tsx b/.history/components/UI/Modal_20220531163523.tsx new file mode 100644 index 0000000..ce11d60 --- /dev/null +++ b/.history/components/UI/Modal_20220531163523.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: React.ReactNode }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163527.tsx b/.history/components/UI/Modal_20220531163527.tsx new file mode 100644 index 0000000..65d3889 --- /dev/null +++ b/.history/components/UI/Modal_20220531163527.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: st }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163528.tsx b/.history/components/UI/Modal_20220531163528.tsx new file mode 100644 index 0000000..b6cfb68 --- /dev/null +++ b/.history/components/UI/Modal_20220531163528.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163530.tsx b/.history/components/UI/Modal_20220531163530.tsx new file mode 100644 index 0000000..7e0c517 --- /dev/null +++ b/.history/components/UI/Modal_20220531163530.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163537.tsx b/.history/components/UI/Modal_20220531163537.tsx new file mode 100644 index 0000000..8590154 --- /dev/null +++ b/.history/components/UI/Modal_20220531163537.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163540.tsx b/.history/components/UI/Modal_20220531163540.tsx new file mode 100644 index 0000000..763b134 --- /dev/null +++ b/.history/components/UI/Modal_20220531163540.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163541.tsx b/.history/components/UI/Modal_20220531163541.tsx new file mode 100644 index 0000000..729d246 --- /dev/null +++ b/.history/components/UI/Modal_20220531163541.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163544.tsx b/.history/components/UI/Modal_20220531163544.tsx new file mode 100644 index 0000000..9110c7e --- /dev/null +++ b/.history/components/UI/Modal_20220531163544.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: string }; + +export const Modals: React.FC = ({children}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163550.tsx b/.history/components/UI/Modal_20220531163550.tsx new file mode 100644 index 0000000..098d2f6 --- /dev/null +++ b/.history/components/UI/Modal_20220531163550.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: string }; + +export const Modals: React.FC = ({position, }) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163554.tsx b/.history/components/UI/Modal_20220531163554.tsx new file mode 100644 index 0000000..a70a0db --- /dev/null +++ b/.history/components/UI/Modal_20220531163554.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: string }; + +export const Modals: React.FC = ({position, styles }) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163556.tsx b/.history/components/UI/Modal_20220531163556.tsx new file mode 100644 index 0000000..ca0125e --- /dev/null +++ b/.history/components/UI/Modal_20220531163556.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: string }; + +export const Modals: React.FC = ({position, styles}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163600.tsx b/.history/components/UI/Modal_20220531163600.tsx new file mode 100644 index 0000000..38bc808 --- /dev/null +++ b/.history/components/UI/Modal_20220531163600.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: string } + +export const Modals: React.FC = ({position, styles}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163601.tsx b/.history/components/UI/Modal_20220531163601.tsx new file mode 100644 index 0000000..cb176b8 --- /dev/null +++ b/.history/components/UI/Modal_20220531163601.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string; + styles: string; } + +export const Modals: React.FC = ({position, styles}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163622.tsx b/.history/components/UI/Modal_20220531163622.tsx new file mode 100644 index 0000000..c22c45d --- /dev/null +++ b/.history/components/UI/Modal_20220531163622.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string + styles: string; } + +export const Modals: React.FC = ({position, styles}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163624.tsx b/.history/components/UI/Modal_20220531163624.tsx new file mode 100644 index 0000000..2476f3b --- /dev/null +++ b/.history/components/UI/Modal_20220531163624.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string, + styles: string; } + +export const Modals: React.FC = ({position, styles}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163626.tsx b/.history/components/UI/Modal_20220531163626.tsx new file mode 100644 index 0000000..34a07a2 --- /dev/null +++ b/.history/components/UI/Modal_20220531163626.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { position: string, + styles: string, } + +export const Modals: React.FC = ({position, styles}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163636.tsx b/.history/components/UI/Modal_20220531163636.tsx new file mode 100644 index 0000000..482afbb --- /dev/null +++ b/.history/components/UI/Modal_20220531163636.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + +export const Modals: React.FC = ({position, styles}) + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163651.tsx b/.history/components/UI/Modal_20220531163651.tsx new file mode 100644 index 0000000..94342d2 --- /dev/null +++ b/.history/components/UI/Modal_20220531163651.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + +export const Modals: React.FC = ({position, styles}) => + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163700.tsx b/.history/components/UI/Modal_20220531163700.tsx new file mode 100644 index 0000000..5a13408 --- /dev/null +++ b/.history/components/UI/Modal_20220531163700.tsx @@ -0,0 +1,22 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + + +export const Modals: React.FC = ({position, styles}) => + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163702.tsx b/.history/components/UI/Modal_20220531163702.tsx new file mode 100644 index 0000000..2edaa9f --- /dev/null +++ b/.history/components/UI/Modal_20220531163702.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +export const Modals: React.FC = ({position, styles}) => + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163714.tsx b/.history/components/UI/Modal_20220531163714.tsx new file mode 100644 index 0000000..5fef8d4 --- /dev/null +++ b/.history/components/UI/Modal_20220531163714.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + + export const Input: React.FC = ({type, name, label, onChange, value }) => { + return( +export const Modals: React.FC = ({position, styles}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163723.tsx b/.history/components/UI/Modal_20220531163723.tsx new file mode 100644 index 0000000..2d0c725 --- /dev/null +++ b/.history/components/UI/Modal_20220531163723.tsx @@ -0,0 +1,22 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + + +export const Modals: React.FC = ({position, styles}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163725.tsx b/.history/components/UI/Modal_20220531163725.tsx new file mode 100644 index 0000000..b58e156 --- /dev/null +++ b/.history/components/UI/Modal_20220531163725.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + +export const Modals: React.FC = ({position, styles}) => { + return( +
+
+
+
+ {props.children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163727.tsx b/.history/components/UI/Modal_20220531163727.tsx new file mode 100644 index 0000000..b2c4f62 --- /dev/null +++ b/.history/components/UI/Modal_20220531163727.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + +export const Modals: React.FC = ({position, styles}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163732.tsx b/.history/components/UI/Modal_20220531163732.tsx new file mode 100644 index 0000000..68908b9 --- /dev/null +++ b/.history/components/UI/Modal_20220531163732.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163748.tsx b/.history/components/UI/Modal_20220531163748.tsx new file mode 100644 index 0000000..00807e5 --- /dev/null +++ b/.history/components/UI/Modal_20220531163748.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} + +export default Modal; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531163834.tsx b/.history/components/UI/Modal_20220531163834.tsx new file mode 100644 index 0000000..8947abe --- /dev/null +++ b/.history/components/UI/Modal_20220531163834.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { position: string, + styles: string, children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531164804.tsx b/.history/components/UI/Modal_20220531164804.tsx new file mode 100644 index 0000000..18feebd --- /dev/null +++ b/.history/components/UI/Modal_20220531164804.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531164806.tsx b/.history/components/UI/Modal_20220531164806.tsx new file mode 100644 index 0000000..26a912a --- /dev/null +++ b/.history/components/UI/Modal_20220531164806.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531164808.tsx b/.history/components/UI/Modal_20220531164808.tsx new file mode 100644 index 0000000..17a6034 --- /dev/null +++ b/.history/components/UI/Modal_20220531164808.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, + children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531164810.tsx b/.history/components/UI/Modal_20220531164810.tsx new file mode 100644 index 0000000..8d912a0 --- /dev/null +++ b/.history/components/UI/Modal_20220531164810.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, + children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531164811.tsx b/.history/components/UI/Modal_20220531164811.tsx new file mode 100644 index 0000000..8d912a0 --- /dev/null +++ b/.history/components/UI/Modal_20220531164811.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, + children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531164821.tsx b/.history/components/UI/Modal_20220531164821.tsx new file mode 100644 index 0000000..138f295 --- /dev/null +++ b/.history/components/UI/Modal_20220531164821.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, + children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531165029.tsx b/.history/components/UI/Modal_20220531165029.tsx new file mode 100644 index 0000000..c68218d --- /dev/null +++ b/.history/components/UI/Modal_20220531165029.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, + children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}э \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531214657.tsx b/.history/components/UI/Modal_20220531214657.tsx new file mode 100644 index 0000000..138f295 --- /dev/null +++ b/.history/components/UI/Modal_20220531214657.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, + children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531214747.tsx b/.history/components/UI/Modal_20220531214747.tsx new file mode 100644 index 0000000..679dfd7 --- /dev/null +++ b/.history/components/UI/Modal_20220531214747.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, + children: React.ReactNode } + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531214755.tsx b/.history/components/UI/Modal_20220531214755.tsx new file mode 100644 index 0000000..9acd35d --- /dev/null +++ b/.history/components/UI/Modal_20220531214755.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +interface Props = { + position: string, + styles: string, + children: React.ReactNode }; + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531214802.tsx b/.history/components/UI/Modal_20220531214802.tsx new file mode 100644 index 0000000..97fdd7e --- /dev/null +++ b/.history/components/UI/Modal_20220531214802.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + position: string, + styles: string, + children: React.ReactNode }; + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531214807.tsx b/.history/components/UI/Modal_20220531214807.tsx new file mode 100644 index 0000000..df75f2f --- /dev/null +++ b/.history/components/UI/Modal_20220531214807.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + position: string, + styles: string, + children: React.ReactNode }; + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531214808.tsx b/.history/components/UI/Modal_20220531214808.tsx new file mode 100644 index 0000000..bfbb3d8 --- /dev/null +++ b/.history/components/UI/Modal_20220531214808.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + position: string, + styles: string, + children: React.ReactNode }; + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531214810.tsx b/.history/components/UI/Modal_20220531214810.tsx new file mode 100644 index 0000000..ca54919 --- /dev/null +++ b/.history/components/UI/Modal_20220531214810.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + position: string, + styles: string, + children: React.ReactNode }; + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531214815.tsx b/.history/components/UI/Modal_20220531214815.tsx new file mode 100644 index 0000000..ca54919 --- /dev/null +++ b/.history/components/UI/Modal_20220531214815.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + position: string, + styles: string, + children: React.ReactNode }; + +export const Modals: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}; \ No newline at end of file diff --git a/.history/components/UI/Modal_20220531215624.tsx b/.history/components/UI/Modal_20220531215624.tsx new file mode 100644 index 0000000..c0f2932 --- /dev/null +++ b/.history/components/UI/Modal_20220531215624.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + position: string, + styles: string, + children: React.ReactNode }; + +export const Modal: React.FC = ({position, styles, children}) => { + return( +
+
+
+
+ {children} +
+
+
+
+ ) +}; \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185557.tsx b/.history/components/UI/PictureText_20220530185557.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/PictureText_20220530185603.tsx b/.history/components/UI/PictureText_20220530185603.tsx new file mode 100644 index 0000000..6dc8dbd --- /dev/null +++ b/.history/components/UI/PictureText_20220530185603.tsx @@ -0,0 +1,15 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const LinkButton: React.FC = ({onClick, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185607.tsx b/.history/components/UI/PictureText_20220530185607.tsx new file mode 100644 index 0000000..ba39daa --- /dev/null +++ b/.history/components/UI/PictureText_20220530185607.tsx @@ -0,0 +1,15 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({onClick, children}) => { + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185618.tsx b/.history/components/UI/PictureText_20220530185618.tsx new file mode 100644 index 0000000..7a84956 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185618.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import classNames from 'classnames'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({onClick, children}) => { + return( +
+ {props.alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185630.tsx b/.history/components/UI/PictureText_20220530185630.tsx new file mode 100644 index 0000000..85f33bb --- /dev/null +++ b/.history/components/UI/PictureText_20220530185630.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({onClick, children}) => { + return( +
+ {props.alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185642.tsx b/.history/components/UI/PictureText_20220530185642.tsx new file mode 100644 index 0000000..2375b73 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185642.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({src, children}) => { + return( +
+ {props.alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185646.tsx b/.history/components/UI/PictureText_20220530185646.tsx new file mode 100644 index 0000000..18489fc --- /dev/null +++ b/.history/components/UI/PictureText_20220530185646.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({src,alt, children}) => { + return( +
+ {props.alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185647.tsx b/.history/components/UI/PictureText_20220530185647.tsx new file mode 100644 index 0000000..1c80325 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185647.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({src, alt, children}) => { + return( +
+ {props.alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185651.tsx b/.history/components/UI/PictureText_20220530185651.tsx new file mode 100644 index 0000000..9caf876 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185651.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({src, alt, width, children}) => { + return( +
+ {props.alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185655.tsx b/.history/components/UI/PictureText_20220530185655.tsx new file mode 100644 index 0000000..28e2b37 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185655.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {props.alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185701.tsx b/.history/components/UI/PictureText_20220530185701.tsx new file mode 100644 index 0000000..9f223b0 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185701.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children?: React.ReactNode; + onClick: () => void; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185708.tsx b/.history/components/UI/PictureText_20220530185708.tsx new file mode 100644 index 0000000..f9ab205 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185708.tsx @@ -0,0 +1,23 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children?: React.ReactNode; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185719.tsx b/.history/components/UI/PictureText_20220530185719.tsx new file mode 100644 index 0000000..5385608 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185719.tsx @@ -0,0 +1,23 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185723.tsx b/.history/components/UI/PictureText_20220530185723.tsx new file mode 100644 index 0000000..b8c185e --- /dev/null +++ b/.history/components/UI/PictureText_20220530185723.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185728.tsx b/.history/components/UI/PictureText_20220530185728.tsx new file mode 100644 index 0000000..f9fa622 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185728.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185735.tsx b/.history/components/UI/PictureText_20220530185735.tsx new file mode 100644 index 0000000..a47df6d --- /dev/null +++ b/.history/components/UI/PictureText_20220530185735.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + alt: string; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185740.tsx b/.history/components/UI/PictureText_20220530185740.tsx new file mode 100644 index 0000000..b475fec --- /dev/null +++ b/.history/components/UI/PictureText_20220530185740.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + alt: string; + width: + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185742.tsx b/.history/components/UI/PictureText_20220530185742.tsx new file mode 100644 index 0000000..f590e3d --- /dev/null +++ b/.history/components/UI/PictureText_20220530185742.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + alt: string; + width: in + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185750.tsx b/.history/components/UI/PictureText_20220530185750.tsx new file mode 100644 index 0000000..dc04ee7 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185750.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + alt: string; + width: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185754.tsx b/.history/components/UI/PictureText_20220530185754.tsx new file mode 100644 index 0000000..d8bf577 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185754.tsx @@ -0,0 +1,27 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + alt: string; + width: number; + width: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185756.tsx b/.history/components/UI/PictureText_20220530185756.tsx new file mode 100644 index 0000000..8d01871 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185756.tsx @@ -0,0 +1,27 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + alt: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{props.children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185759.tsx b/.history/components/UI/PictureText_20220530185759.tsx new file mode 100644 index 0000000..c1cf7dd --- /dev/null +++ b/.history/components/UI/PictureText_20220530185759.tsx @@ -0,0 +1,27 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + alt: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185800.tsx b/.history/components/UI/PictureText_20220530185800.tsx new file mode 100644 index 0000000..c1cf7dd --- /dev/null +++ b/.history/components/UI/PictureText_20220530185800.tsx @@ -0,0 +1,27 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + alt: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185931.tsx b/.history/components/UI/PictureText_20220530185931.tsx new file mode 100644 index 0000000..84d5a4d --- /dev/null +++ b/.history/components/UI/PictureText_20220530185931.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185935.tsx b/.history/components/UI/PictureText_20220530185935.tsx new file mode 100644 index 0000000..27fcd32 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185935.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {children} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185936.tsx b/.history/components/UI/PictureText_20220530185936.tsx new file mode 100644 index 0000000..84d5a4d --- /dev/null +++ b/.history/components/UI/PictureText_20220530185936.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {alt} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185938.tsx b/.history/components/UI/PictureText_20220530185938.tsx new file mode 100644 index 0000000..e0ded32 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185938.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {''} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185940.tsx b/.history/components/UI/PictureText_20220530185940.tsx new file mode 100644 index 0000000..e40222d --- /dev/null +++ b/.history/components/UI/PictureText_20220530185940.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, alt, width, height, children}) => { + return( +
+ {'pizza'} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185944.tsx b/.history/components/UI/PictureText_20220530185944.tsx new file mode 100644 index 0000000..9b1c3f7 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185944.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, width, height, children}) => { + return( +
+ {'pizza'} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530185945.tsx b/.history/components/UI/PictureText_20220530185945.tsx new file mode 100644 index 0000000..9b1c3f7 --- /dev/null +++ b/.history/components/UI/PictureText_20220530185945.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, width, height, children}) => { + return( +
+ {'pizza'} +
+

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530191651.tsx b/.history/components/UI/PictureText_20220530191651.tsx new file mode 100644 index 0000000..d8688b1 --- /dev/null +++ b/.history/components/UI/PictureText_20220530191651.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, width, height, children}) => { + return( +
+ {'pizza'} + +

{children}

+
+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530191652.tsx b/.history/components/UI/PictureText_20220530191652.tsx new file mode 100644 index 0000000..945718d --- /dev/null +++ b/.history/components/UI/PictureText_20220530191652.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, width, height, children}) => { + return( +
+ {'pizza'} + +

{children}

+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530191653.tsx b/.history/components/UI/PictureText_20220530191653.tsx new file mode 100644 index 0000000..945718d --- /dev/null +++ b/.history/components/UI/PictureText_20220530191653.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, width, height, children}) => { + return( +
+ {'pizza'} + +

{children}

+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530192338.tsx b/.history/components/UI/PictureText_20220530192338.tsx new file mode 100644 index 0000000..574facc --- /dev/null +++ b/.history/components/UI/PictureText_20220530192338.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, width, height, children}) => { + return( +
+ {'pizza'} + +

{children}

+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530192339.tsx b/.history/components/UI/PictureText_20220530192339.tsx new file mode 100644 index 0000000..163886f --- /dev/null +++ b/.history/components/UI/PictureText_20220530192339.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, width, height, children}) => { + return( +
+ {'pizza'} +

{children}

+ +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/PictureText_20220530192342.tsx b/.history/components/UI/PictureText_20220530192342.tsx new file mode 100644 index 0000000..18982b5 --- /dev/null +++ b/.history/components/UI/PictureText_20220530192342.tsx @@ -0,0 +1,24 @@ +import React from 'react' +import Image from 'next/image'; + +interface Props { + children: React.ReactNode; + src: string; + width: number; + height: number; + } + +export const PictureText: React.FC = ({src, width, height, children}) => { + return( +
+ {'pizza'} +

{children}

+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531215938.tsx b/.history/components/UI/RadioButton_20220531215938.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/RadioButton_20220531215944.tsx b/.history/components/UI/RadioButton_20220531215944.tsx new file mode 100644 index 0000000..fc00e30 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531215944.tsx @@ -0,0 +1,25 @@ +import React, { useState, useEffect } from 'react'; + +const RadioButton = ({...props}) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {props.masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} + +export default RadioButton; \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220104.tsx b/.history/components/UI/RadioButton_20220531220104.tsx new file mode 100644 index 0000000..0e332a7 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220104.tsx @@ -0,0 +1,27 @@ +import React, { useState, useEffect } from 'react'; + +export const Input: React.FC = ({type, name, label, onChange, value }) => { + +const RadioButton = ({...props}) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {props.masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} + +export default RadioButton; \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220108.tsx b/.history/components/UI/RadioButton_20220531220108.tsx new file mode 100644 index 0000000..ef1a886 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220108.tsx @@ -0,0 +1,27 @@ +import React, { useState, useEffect } from 'react'; + +export const RadioButton: React.FC = ({type, name, label, onChange, value }) => { + +const RadioButton = ({...props}) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {props.masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} + +export default RadioButton; \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220112.tsx b/.history/components/UI/RadioButton_20220531220112.tsx new file mode 100644 index 0000000..acdc85d --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220112.tsx @@ -0,0 +1,25 @@ +import React, { useState, useEffect } from 'react'; + +export const RadioButton: React.FC = ({type, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {props.masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} + +export default RadioButton; \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220124.tsx b/.history/components/UI/RadioButton_20220531220124.tsx new file mode 100644 index 0000000..a8bdf8a --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220124.tsx @@ -0,0 +1,33 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + onChange: (name: string, value: string,) => void; + type: string, + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({type, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {props.masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} + +export default RadioButton; \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220241.tsx b/.history/components/UI/RadioButton_20220531220241.tsx new file mode 100644 index 0000000..74ef7ac --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220241.tsx @@ -0,0 +1,33 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + onChange: (name: string, value: string,) => void; + type: string, + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({type, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} + +export default RadioButton; \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220245.tsx b/.history/components/UI/RadioButton_20220531220245.tsx new file mode 100644 index 0000000..2bfa7ec --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220245.tsx @@ -0,0 +1,33 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + onChange: (name: string, value: string,) => void; + masImg: string, + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({type, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} + +export default RadioButton; \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220247.tsx b/.history/components/UI/RadioButton_20220531220247.tsx new file mode 100644 index 0000000..2cfc4bb --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220247.tsx @@ -0,0 +1,33 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + onChange: (name: string, value: string,) => void; + masImg: string, + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} + +export default RadioButton; \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220311.tsx b/.history/components/UI/RadioButton_20220531220311.tsx new file mode 100644 index 0000000..83b1ec1 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220311.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + onChange: (name: string, value: string,) => void; + masImg: string, + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220552.tsx b/.history/components/UI/RadioButton_20220531220552.tsx new file mode 100644 index 0000000..f68280b --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220552.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + onChange: (name: string, value: string,) => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + props.updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220635.tsx b/.history/components/UI/RadioButton_20220531220635.tsx new file mode 100644 index 0000000..251f5fa --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220635.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + onChange: (name: string, value: string,) => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220640.tsx b/.history/components/UI/RadioButton_20220531220640.tsx new file mode 100644 index 0000000..5b1f7d3 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220640.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: (name: string, value: string,) => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, name, label, onChange, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220644.tsx b/.history/components/UI/RadioButton_20220531220644.tsx new file mode 100644 index 0000000..5dd9177 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220644.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: (name: string, value: string,) => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, name, label, updateData, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220650.tsx b/.history/components/UI/RadioButton_20220531220650.tsx new file mode 100644 index 0000000..27220d8 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220650.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, name, label, updateData, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220705.tsx b/.history/components/UI/RadioButton_20220531220705.tsx new file mode 100644 index 0000000..d90da8d --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220705.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData, value }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220707.tsx b/.history/components/UI/RadioButton_20220531220707.tsx new file mode 100644 index 0000000..7c4e601 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220707.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220729.tsx b/.history/components/UI/RadioButton_20220531220729.tsx new file mode 100644 index 0000000..c9e3d4f --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220729.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220733.tsx b/.history/components/UI/RadioButton_20220531220733.tsx new file mode 100644 index 0000000..6409153 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220733.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220738.tsx b/.history/components/UI/RadioButton_20220531220738.tsx new file mode 100644 index 0000000..6409153 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220738.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220739.tsx b/.history/components/UI/RadioButton_20220531220739.tsx new file mode 100644 index 0000000..8bcb55e --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220739.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type Ch + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220741.tsx b/.history/components/UI/RadioButton_20220531220741.tsx new file mode 100644 index 0000000..48d8522 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220741.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type Cha + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220747.tsx b/.history/components/UI/RadioButton_20220531220747.tsx new file mode 100644 index 0000000..aeaef74 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220747.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type ChangeProps + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220753.tsx b/.history/components/UI/RadioButton_20220531220753.tsx new file mode 100644 index 0000000..2cfe585 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220753.tsx @@ -0,0 +1,34 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type ChangeProps { + + } + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220758.tsx b/.history/components/UI/RadioButton_20220531220758.tsx new file mode 100644 index 0000000..08fe8bb --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220758.tsx @@ -0,0 +1,34 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type ChangeProps { + e: st + } + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220801.tsx b/.history/components/UI/RadioButton_20220531220801.tsx new file mode 100644 index 0000000..68fbeb6 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220801.tsx @@ -0,0 +1,34 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type ChangeProps { + e: string + } + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220802.tsx b/.history/components/UI/RadioButton_20220531220802.tsx new file mode 100644 index 0000000..17b9613 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220802.tsx @@ -0,0 +1,34 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + type ChangeProps { + e: string; + } + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220808.tsx b/.history/components/UI/RadioButton_20220531220808.tsx new file mode 100644 index 0000000..c636a81 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220808.tsx @@ -0,0 +1,35 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: string; + } + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220809.tsx b/.history/components/UI/RadioButton_20220531220809.tsx new file mode 100644 index 0000000..a6db9f0 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220809.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: string; + } + + const change = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220828.tsx b/.history/components/UI/RadioButton_20220531220828.tsx new file mode 100644 index 0000000..1a9978d --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220828.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: string; + } + + const change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220832.tsx b/.history/components/UI/RadioButton_20220531220832.tsx new file mode 100644 index 0000000..b77bae8 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220832.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: string; + } + + const change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220838.tsx b/.history/components/UI/RadioButton_20220531220838.tsx new file mode 100644 index 0000000..caa84a8 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220838.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: string; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220842.tsx b/.history/components/UI/RadioButton_20220531220842.tsx new file mode 100644 index 0000000..ee47e06 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220842.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: string; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220856.tsx b/.history/components/UI/RadioButton_20220531220856.tsx new file mode 100644 index 0000000..ee47e06 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220856.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: string; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220903.tsx b/.history/components/UI/RadioButton_20220531220903.tsx new file mode 100644 index 0000000..c6bbb8d --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220903.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: : () => void; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531220905.tsx b/.history/components/UI/RadioButton_20220531220905.tsx new file mode 100644 index 0000000..0413560 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531220905.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: () => void; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531221105.tsx b/.history/components/UI/RadioButton_20220531221105.tsx new file mode 100644 index 0000000..3234051 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531221105.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: () => void; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531221121.tsx b/.history/components/UI/RadioButton_20220531221121.tsx new file mode 100644 index 0000000..15a5bfb --- /dev/null +++ b/.history/components/UI/RadioButton_20220531221121.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: () => void; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +}vvvccccccxc \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531221123.tsx b/.history/components/UI/RadioButton_20220531221123.tsx new file mode 100644 index 0000000..a35451e --- /dev/null +++ b/.history/components/UI/RadioButton_20220531221123.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: () => void; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +}vvvccccccxc \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531221131.tsx b/.history/components/UI/RadioButton_20220531221131.tsx new file mode 100644 index 0000000..e8014a3 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531221131.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: () => void; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +}vvvccccccxc \ No newline at end of file diff --git a/.history/components/UI/RadioButton_20220531221133.tsx b/.history/components/UI/RadioButton_20220531221133.tsx new file mode 100644 index 0000000..5919684 --- /dev/null +++ b/.history/components/UI/RadioButton_20220531221133.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: () => void; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
+ {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
+ ) +}vvvccccccxc \ No newline at end of file diff --git a/.history/components/UI/SmallText_20220518155150.tsx b/.history/components/UI/SmallText_20220518155150.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/SmallText_20220518155208.tsx b/.history/components/UI/SmallText_20220518155208.tsx new file mode 100644 index 0000000..f81765a --- /dev/null +++ b/.history/components/UI/SmallText_20220518155208.tsx @@ -0,0 +1,11 @@ +import React from 'react' + + const SmallText = ({...props}) => { + return( +
+

{props.children}

+
+ ) +} + +export default SmallText; \ No newline at end of file diff --git a/.history/components/UI/SmallText_20220518155233.tsx b/.history/components/UI/SmallText_20220518155233.tsx new file mode 100644 index 0000000..f4b00e9 --- /dev/null +++ b/.history/components/UI/SmallText_20220518155233.tsx @@ -0,0 +1,13 @@ +import React from 'react' + +interface Props { + children?: React.ReactNode; + } + +export const SmallText: React.FC = ({children }) => { + return( +
+

{children}

+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Title_20220518154600.tsx b/.history/components/UI/Title_20220518154600.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/UI/Title_20220518154607.tsx b/.history/components/UI/Title_20220518154607.tsx new file mode 100644 index 0000000..a01d483 --- /dev/null +++ b/.history/components/UI/Title_20220518154607.tsx @@ -0,0 +1,11 @@ +import React from 'react' + + const Title = (props) => { + return( +
+

{props.children}

+
+ ) +} + +export default Title; \ No newline at end of file diff --git a/.history/components/UI/Title_20220518154615.tsx b/.history/components/UI/Title_20220518154615.tsx new file mode 100644 index 0000000..dbe97f3 --- /dev/null +++ b/.history/components/UI/Title_20220518154615.tsx @@ -0,0 +1,15 @@ +import React from 'react' + +interface Props { + children?: React.ReactNode; + } + + const Title = (props) => { + return( +
+

{props.children}

+
+ ) +} + +export default Title; \ No newline at end of file diff --git a/.history/components/UI/Title_20220518154658.tsx b/.history/components/UI/Title_20220518154658.tsx new file mode 100644 index 0000000..f24cff5 --- /dev/null +++ b/.history/components/UI/Title_20220518154658.tsx @@ -0,0 +1,13 @@ +import React from 'react' + +interface Props { + children?: React.ReactNode; +} + +export const Title: React.FC = ({children }) => { + return( +
+

{children}

+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Title_20220518154704.tsx b/.history/components/UI/Title_20220518154704.tsx new file mode 100644 index 0000000..5b6c871 --- /dev/null +++ b/.history/components/UI/Title_20220518154704.tsx @@ -0,0 +1,13 @@ +import React from 'react' + +interface Props { + children?: React.ReactNode; +} + +export const Title: React.FC = ({ children }) => { + return( +
+

{children}

+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/Title_20220520143753.tsx b/.history/components/UI/Title_20220520143753.tsx new file mode 100644 index 0000000..5b6c871 --- /dev/null +++ b/.history/components/UI/Title_20220520143753.tsx @@ -0,0 +1,13 @@ +import React from 'react' + +interface Props { + children?: React.ReactNode; +} + +export const Title: React.FC = ({ children }) => { + return( +
+

{children}

+
+ ) +} \ No newline at end of file diff --git a/.history/components/UI/index_20220529001311.ts b/.history/components/UI/index_20220529001311.ts new file mode 100644 index 0000000..0405156 --- /dev/null +++ b/.history/components/UI/index_20220529001311.ts @@ -0,0 +1,7 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './' \ No newline at end of file diff --git a/.history/components/UI/index_20220529001312.ts b/.history/components/UI/index_20220529001312.ts new file mode 100644 index 0000000..e98f300 --- /dev/null +++ b/.history/components/UI/index_20220529001312.ts @@ -0,0 +1,7 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' \ No newline at end of file diff --git a/.history/components/UI/index_20220530185810.ts b/.history/components/UI/index_20220530185810.ts new file mode 100644 index 0000000..558fd0b --- /dev/null +++ b/.history/components/UI/index_20220530185810.ts @@ -0,0 +1,8 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' +export * from './ButtonImg' \ No newline at end of file diff --git a/.history/components/UI/index_20220530185812.ts b/.history/components/UI/index_20220530185812.ts new file mode 100644 index 0000000..b77fc6e --- /dev/null +++ b/.history/components/UI/index_20220530185812.ts @@ -0,0 +1,8 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' +export * from './' \ No newline at end of file diff --git a/.history/components/UI/index_20220530185814.ts b/.history/components/UI/index_20220530185814.ts new file mode 100644 index 0000000..39a45c9 --- /dev/null +++ b/.history/components/UI/index_20220530185814.ts @@ -0,0 +1,8 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' +export * from './PictureText' \ No newline at end of file diff --git a/.history/components/UI/index_20220531215520.ts b/.history/components/UI/index_20220531215520.ts new file mode 100644 index 0000000..344f8db --- /dev/null +++ b/.history/components/UI/index_20220531215520.ts @@ -0,0 +1,9 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' +export * from './PictureText' +export * from './' \ No newline at end of file diff --git a/.history/components/UI/index_20220531215525.ts b/.history/components/UI/index_20220531215525.ts new file mode 100644 index 0000000..b3fdbd6 --- /dev/null +++ b/.history/components/UI/index_20220531215525.ts @@ -0,0 +1,9 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' +export * from './PictureText' +export * from './Modal' \ No newline at end of file diff --git a/.history/components/UI/index_20220531231701.ts b/.history/components/UI/index_20220531231701.ts new file mode 100644 index 0000000..8eeeed8 --- /dev/null +++ b/.history/components/UI/index_20220531231701.ts @@ -0,0 +1,10 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' +export * from './PictureText' +export * from './Modal' +export * from './InputRadio' \ No newline at end of file diff --git a/.history/components/UI/index_20220531231703.ts b/.history/components/UI/index_20220531231703.ts new file mode 100644 index 0000000..8eeeed8 --- /dev/null +++ b/.history/components/UI/index_20220531231703.ts @@ -0,0 +1,10 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' +export * from './PictureText' +export * from './Modal' +export * from './InputRadio' \ No newline at end of file diff --git a/.history/components/UI/index_20220617191420.ts b/.history/components/UI/index_20220617191420.ts new file mode 100644 index 0000000..8eeeed8 --- /dev/null +++ b/.history/components/UI/index_20220617191420.ts @@ -0,0 +1,10 @@ +export * from './Button' +export * from './Input' +export * from './Label' +export * from './Title' +export * from './LinkButton' +export * from './SmallText' +export * from './ButtonImg' +export * from './PictureText' +export * from './Modal' +export * from './InputRadio' \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520142020.ts b/.history/components/admin/function/hashPassword_20220520142020.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/function/hashPassword_20220520142046.ts b/.history/components/admin/function/hashPassword_20220520142046.ts new file mode 100644 index 0000000..4a92376 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520142046.ts @@ -0,0 +1,10 @@ +var crypto = require('crypto'); + +const hashPassword = (password, salt, callback) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err, derivedKey) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} +export default hashPassword; \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520142150.ts b/.history/components/admin/function/hashPassword_20220520142150.ts new file mode 100644 index 0000000..e0c4808 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520142150.ts @@ -0,0 +1,10 @@ +var crypto = require('crypto'); + +export const hashPassword: React.FC = (password:string, salt:string, callback:) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err, derivedKey) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} +export default hashPassword; \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520142548.ts b/.history/components/admin/function/hashPassword_20220520142548.ts new file mode 100644 index 0000000..22c557d --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520142548.ts @@ -0,0 +1,10 @@ +var crypto = require('crypto'); + +export const hashPassword: React.FC = (password:string, salt:string, callback:callback) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err, derivedKey) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} +export default hashPassword; \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520142625.ts b/.history/components/admin/function/hashPassword_20220520142625.ts new file mode 100644 index 0000000..b4e83b6 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520142625.ts @@ -0,0 +1,9 @@ +var crypto = require('crypto'); + +export const HashPassword: React.FC = (password:string, salt:string, callback: () => void) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err, derivedKey) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520142810.ts b/.history/components/admin/function/hashPassword_20220520142810.ts new file mode 100644 index 0000000..9534126 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520142810.ts @@ -0,0 +1,9 @@ +var crypto = require('crypto'); + +export const HashPassword: React.FC = (password:string, salt:string, callback: () => void) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143020.ts b/.history/components/admin/function/hashPassword_20220520143020.ts new file mode 100644 index 0000000..c0bf06c --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143020.ts @@ -0,0 +1,13 @@ +var crypto = require('crypto'); + +export const HashPassword: React.FC = (password:string, salt:string, callback: () => void) => { + crypto.pbkdf2(password, this.salt, 1000, 32, function(err, buff) { + if (err) return cb(err); + cb(null, buff.toString('hex')); + }); + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143123.ts b/.history/components/admin/function/hashPassword_20220520143123.ts new file mode 100644 index 0000000..c6fccea --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143123.ts @@ -0,0 +1,9 @@ +var crypto = require('crypto'); + +export const HashPassword: React.FC<(password:string, salt:string, callback: () => void)> => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143229.ts b/.history/components/admin/function/hashPassword_20220520143229.ts new file mode 100644 index 0000000..3a103be --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143229.ts @@ -0,0 +1,9 @@ +var crypto = require('crypto'); + +export const HashPassword: React.FC <(password:string, salt:string, callback: () => void)> => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143306.ts b/.history/components/admin/function/hashPassword_20220520143306.ts new file mode 100644 index 0000000..8fc89d1 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143306.ts @@ -0,0 +1,15 @@ +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143312.ts b/.history/components/admin/function/hashPassword_20220520143312.ts new file mode 100644 index 0000000..bcdabb7 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143312.ts @@ -0,0 +1,15 @@ +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143329.ts b/.history/components/admin/function/hashPassword_20220520143329.ts new file mode 100644 index 0000000..6fe9e34 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143329.ts @@ -0,0 +1,15 @@ +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({}) { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143346.ts b/.history/components/admin/function/hashPassword_20220520143346.ts new file mode 100644 index 0000000..8203a6d --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143346.ts @@ -0,0 +1,15 @@ +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143401.ts b/.history/components/admin/function/hashPassword_20220520143401.ts new file mode 100644 index 0000000..8203a6d --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143401.ts @@ -0,0 +1,15 @@ +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143407.ts b/.history/components/admin/function/hashPassword_20220520143407.ts new file mode 100644 index 0000000..2cd28cb --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143407.ts @@ -0,0 +1,16 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143424.ts b/.history/components/admin/function/hashPassword_20220520143424.ts new file mode 100644 index 0000000..d7a7a5d --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143424.ts @@ -0,0 +1,16 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: (() => void); + }; + +export const HashPassword: React.FC = ({password, salt, callback}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + // Printing the derived key + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143540.ts b/.history/components/admin/function/hashPassword_20220520143540.ts new file mode 100644 index 0000000..6b30821 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143540.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: (() => void); + }; + +export const HashPassword: React.FC => { + // crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + // if (err) throw err; + // callback(derivedKey.toString('hex')); + // }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143557.ts b/.history/components/admin/function/hashPassword_20220520143557.ts new file mode 100644 index 0000000..152d383 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143557.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: (() => void); + }; + +export const HashPassword: React.FC = ({password, salt, callback}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143759.ts b/.history/components/admin/function/hashPassword_20220520143759.ts new file mode 100644 index 0000000..152d383 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143759.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: (() => void); + }; + +export const HashPassword: React.FC = ({password, salt, callback}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520143845.ts b/.history/components/admin/function/hashPassword_20220520143845.ts new file mode 100644 index 0000000..d71bbf5 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520143845.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144158.ts b/.history/components/admin/function/hashPassword_20220520144158.ts new file mode 100644 index 0000000..30cda2b --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144158.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback: }) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144205.ts b/.history/components/admin/function/hashPassword_20220520144205.ts new file mode 100644 index 0000000..045d756 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144205.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback: ()}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144215.ts b/.history/components/admin/function/hashPassword_20220520144215.ts new file mode 100644 index 0000000..925c983 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144215.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback: (arg:)}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144227.ts b/.history/components/admin/function/hashPassword_20220520144227.ts new file mode 100644 index 0000000..4216169 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144227.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: () => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback: (arg: any)}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144353.ts b/.history/components/admin/function/hashPassword_20220520144353.ts new file mode 100644 index 0000000..f636840 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144353.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: (arg: any) => void; + }; + +export const HashPassword: React.FC = ({password, salt, callback: (arg: any) => void}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144413.ts b/.history/components/admin/function/hashPassword_20220520144413.ts new file mode 100644 index 0000000..d92a4e3 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144413.ts @@ -0,0 +1,15 @@ +import React from 'react'; +var crypto = require('crypto'); + +type Props = { + password: string; + salt: string; + callback: (arg: any) => void; + }; + +export function HashPassword({password, salt, callback: (arg: any) => void}) => { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144534.ts b/.history/components/admin/function/hashPassword_20220520144534.ts new file mode 100644 index 0000000..d1eb624 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144534.ts @@ -0,0 +1,10 @@ +import React from 'react'; +var crypto = require('crypto'); + + +export function HashPassword(password: string, salt: string, callback: (arg: string) => void) { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144559.ts b/.history/components/admin/function/hashPassword_20220520144559.ts new file mode 100644 index 0000000..5167c1d --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144559.ts @@ -0,0 +1,10 @@ +import React from 'react'; +var crypto = require('crypto'); + + +export function HashPassword(password: string, salt: string, callback: (arg: string, index:string) => void) { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144606.ts b/.history/components/admin/function/hashPassword_20220520144606.ts new file mode 100644 index 0000000..5ad6f3d --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144606.ts @@ -0,0 +1,10 @@ +import React from 'react'; +var crypto = require('crypto'); + + +export function HashPassword(password: string, salt: string, callback: (arg: string, index?:string) => void) { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144632.ts b/.history/components/admin/function/hashPassword_20220520144632.ts new file mode 100644 index 0000000..8b0a098 --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144632.ts @@ -0,0 +1,8 @@ +var crypto = require('crypto'); + +export function HashPassword(password: string, salt: string, callback: (arg: string, index?:string) => void) { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: string) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144758.ts b/.history/components/admin/function/hashPassword_20220520144758.ts new file mode 100644 index 0000000..6c5dcac --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144758.ts @@ -0,0 +1,8 @@ +var crypto = require('crypto'); + +export function HashPassword(password: string, salt: string, callback: (arg: string, index?:string) => void) { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: Buffer) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/hashPassword_20220520144806.ts b/.history/components/admin/function/hashPassword_20220520144806.ts new file mode 100644 index 0000000..991e6bb --- /dev/null +++ b/.history/components/admin/function/hashPassword_20220520144806.ts @@ -0,0 +1,8 @@ +var crypto = require('crypto'); + +export function HashPassword(password: string, salt: string, callback: (arg: string) => void) { + crypto.pbkdf2(password, salt, 100000, 64, 'sha512', (err: string, derivedKey: Buffer) => { + if (err) throw err; + callback(derivedKey.toString('hex')); + }); +} \ No newline at end of file diff --git a/.history/components/admin/function/postData_20220520181446.ts b/.history/components/admin/function/postData_20220520181446.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/function/postData_20220520181459.ts b/.history/components/admin/function/postData_20220520181459.ts new file mode 100644 index 0000000..5aa649a --- /dev/null +++ b/.history/components/admin/function/postData_20220520181459.ts @@ -0,0 +1,19 @@ +async function postData(url = '', data = {}) { + // Default options are marked with * + const response = await fetch(url, { + method: 'POST', // *GET, POST, PUT, DELETE, etc. + mode: 'cors', // no-cors, *cors, same-origin + cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached + credentials: 'same-origin', // include, *same-origin, omit + headers: { + 'Content-Type': 'application/json' + // 'Content-Type': 'application/x-www-form-urlencoded', + }, + redirect: 'follow', // manual, *follow, error + referrerPolicy: 'no-referrer', // no-referrer, *client + body: JSON.stringify(data) // body data type must match "Content-Type" header + }); + return await response.json(); // parses JSON response into native JavaScript objects + } + + export default postData; \ No newline at end of file diff --git a/.history/components/admin/function/postData_20220520181921.ts b/.history/components/admin/function/postData_20220520181921.ts new file mode 100644 index 0000000..a312292 --- /dev/null +++ b/.history/components/admin/function/postData_20220520181921.ts @@ -0,0 +1,20 @@ +async function postData(url = '', data = {}) { + // Default options are marked with * + console.log(url); + const response = await fetch(url, { + method: 'POST', // *GET, POST, PUT, DELETE, etc. + mode: 'cors', // no-cors, *cors, same-origin + cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached + credentials: 'same-origin', // include, *same-origin, omit + headers: { + 'Content-Type': 'application/json' + // 'Content-Type': 'application/x-www-form-urlencoded', + }, + redirect: 'follow', // manual, *follow, error + referrerPolicy: 'no-referrer', // no-referrer, *client + body: JSON.stringify(data) // body data type must match "Content-Type" header + }); + return await response.json(); // parses JSON response into native JavaScript objects + } + + export default postData; \ No newline at end of file diff --git a/.history/components/admin/function/postData_20220520181955.ts b/.history/components/admin/function/postData_20220520181955.ts new file mode 100644 index 0000000..8be5838 --- /dev/null +++ b/.history/components/admin/function/postData_20220520181955.ts @@ -0,0 +1,20 @@ +async function postData(url = '', data = {}) { + // Default options are marked with * + console.log(data); + const response = await fetch(url, { + method: 'POST', // *GET, POST, PUT, DELETE, etc. + mode: 'cors', // no-cors, *cors, same-origin + cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached + credentials: 'same-origin', // include, *same-origin, omit + headers: { + 'Content-Type': 'application/json' + // 'Content-Type': 'application/x-www-form-urlencoded', + }, + redirect: 'follow', // manual, *follow, error + referrerPolicy: 'no-referrer', // no-referrer, *client + body: JSON.stringify(data) // body data type must match "Content-Type" header + }); + return await response.json(); // parses JSON response into native JavaScript objects + } + + export default postData; \ No newline at end of file diff --git a/.history/components/admin/function/postData_20220520182127.ts b/.history/components/admin/function/postData_20220520182127.ts new file mode 100644 index 0000000..5aa649a --- /dev/null +++ b/.history/components/admin/function/postData_20220520182127.ts @@ -0,0 +1,19 @@ +async function postData(url = '', data = {}) { + // Default options are marked with * + const response = await fetch(url, { + method: 'POST', // *GET, POST, PUT, DELETE, etc. + mode: 'cors', // no-cors, *cors, same-origin + cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached + credentials: 'same-origin', // include, *same-origin, omit + headers: { + 'Content-Type': 'application/json' + // 'Content-Type': 'application/x-www-form-urlencoded', + }, + redirect: 'follow', // manual, *follow, error + referrerPolicy: 'no-referrer', // no-referrer, *client + body: JSON.stringify(data) // body data type must match "Content-Type" header + }); + return await response.json(); // parses JSON response into native JavaScript objects + } + + export default postData; \ No newline at end of file diff --git a/.history/components/admin/function/useToken_20220520191606.ts b/.history/components/admin/function/useToken_20220520191606.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/function/useToken_20220520191615.ts b/.history/components/admin/function/useToken_20220520191615.ts new file mode 100644 index 0000000..3e9e4b6 --- /dev/null +++ b/.history/components/admin/function/useToken_20220520191615.ts @@ -0,0 +1,16 @@ +import { useState, useEffect } from 'react'; + + +export default function useToken() { + const [token, setToken] = useState(''); + useEffect(() => setToken(localStorage.getItem("token")), []); + const saveToken = userToken => { + localStorage.setItem('token', JSON.stringify(userToken)); + setToken(userToken?.token); + }; + + return { + setToken: saveToken, + token + } +} \ No newline at end of file diff --git a/.history/components/admin/function/useToken_20220520191707.ts b/.history/components/admin/function/useToken_20220520191707.ts new file mode 100644 index 0000000..f98b720 --- /dev/null +++ b/.history/components/admin/function/useToken_20220520191707.ts @@ -0,0 +1,16 @@ +import { useState, useEffect, SetStateAction } from 'react'; + + +export default function useToken() { + const [token, setToken] = useState(''); + useEffect(() => setToken(localStorage.getItem("token")), []); + const saveToken = (userToken: { token: SetStateAction; }) => { + localStorage.setItem('token', JSON.stringify(userToken)); + setToken(userToken?.token); + }; + + return { + setToken: saveToken, + token + } +} \ No newline at end of file diff --git a/.history/components/admin/function/useToken_20220520191812.ts b/.history/components/admin/function/useToken_20220520191812.ts new file mode 100644 index 0000000..f909e47 --- /dev/null +++ b/.history/components/admin/function/useToken_20220520191812.ts @@ -0,0 +1,16 @@ +import { useState, useEffect, SetStateAction } from 'react'; + + +export default function useToken() { + const [token, setToken] = useState(''); + useEffect(() => setToken(localStorage.getItem("token") || ""), []); + const saveToken = (userToken: { token: SetStateAction; }) => { + localStorage.setItem('token', JSON.stringify(userToken)); + setToken(userToken?.token); + }; + + return { + setToken: saveToken, + token + } +} \ No newline at end of file diff --git a/.history/components/admin/pages/Root/Main_20220522133602.ts b/.history/components/admin/pages/Root/Main_20220522133602.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/Root/Main_20220522133649.ts b/.history/components/admin/pages/Root/Main_20220522133649.ts new file mode 100644 index 0000000..9977151 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522133649.ts @@ -0,0 +1,22 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; + + +export const Main: React.FC = () => { + + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/Root/Main_20220522133733.ts b/.history/components/admin/pages/Root/Main_20220522133733.ts new file mode 100644 index 0000000..a552c93 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522133733.ts @@ -0,0 +1,11 @@ +import React, { useState } from 'react'; + +export const Entrance: React.FC = () => { + + } + return( + <> Main + ) +} + + diff --git a/.history/components/admin/pages/Root/Main_20220522133759.tsx b/.history/components/admin/pages/Root/Main_20220522133759.tsx new file mode 100644 index 0000000..de10280 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522133759.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
+ +
+ {children} +
+
+ ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/admin/pages/Root/Main_20220522133800.ts b/.history/components/admin/pages/Root/Main_20220522133800.ts new file mode 100644 index 0000000..de10280 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522133800.ts @@ -0,0 +1,14 @@ +import React from 'react'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
+ +
+ {children} +
+
+ ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/admin/pages/Root/Main_20220522133815.tsx b/.history/components/admin/pages/Root/Main_20220522133815.tsx new file mode 100644 index 0000000..3dfccd6 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522133815.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
+
+ {children} +
+
+ ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/admin/pages/Root/Main_20220522133928.tsx b/.history/components/admin/pages/Root/Main_20220522133928.tsx new file mode 100644 index 0000000..63a6804 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522133928.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export const MainLayoutRoot: React.FC = ({children}) => { + return ( +
+
+ {children} +
+
+ ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/admin/pages/Root/Main_20220522134113.tsx b/.history/components/admin/pages/Root/Main_20220522134113.tsx new file mode 100644 index 0000000..73bbef4 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522134113.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export const MainLayoutRoot: React.FC = () => { + return ( +
+
+ +
+
+ ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/admin/pages/Root/Main_20220522134427.tsx b/.history/components/admin/pages/Root/Main_20220522134427.tsx new file mode 100644 index 0000000..a2c4cd5 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522134427.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export const MainLayoutRoot: React.FC = () => { + return ( +
+
+ +
+
+ ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/admin/pages/Root/Main_20220522134726.tsx b/.history/components/admin/pages/Root/Main_20220522134726.tsx new file mode 100644 index 0000000..8b2d2c2 --- /dev/null +++ b/.history/components/admin/pages/Root/Main_20220522134726.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export const MainLayoutRoot: React.FC = () => { + return ( +
+
+ ffdgfdgdfgdf dfg fddf dfg dfgdf +
+
+ ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/admin/pages/login/EnteringCode_20220518151911.tsx b/.history/components/admin/pages/login/EnteringCode_20220518151911.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/login/EnteringCode_20220518151920.tsx b/.history/components/admin/pages/login/EnteringCode_20220518151920.tsx new file mode 100644 index 0000000..cc7bfd1 --- /dev/null +++ b/.history/components/admin/pages/login/EnteringCode_20220518151920.tsx @@ -0,0 +1,32 @@ +import React, { useState } from 'react'; +import Button from '../../component/Button'; +import Input from '../../component/Input.jsx'; +import Label from '../../component/Label'; +import Title from '../../component/Title'; + +const EnteringCode = (props) => { + const [data, setData] = useState({'code': ''}); + const [information, setInformation] = useState(''); + const updateData = e => { + setData({ ...data, [e.target.name]: e.target.value}); + } + const handleEntrance = () => { + props.data.code == data.code ? props.updateData({status:3, email:props.data.email, code:props.data.code}) : setInformation('Код введен не верно'); + } + return( + <> + Введите код из письма + + + + + ) +} + +export default EnteringCode; diff --git a/.history/components/admin/pages/login/EnteringCode_20220518152116.tsx b/.history/components/admin/pages/login/EnteringCode_20220518152116.tsx new file mode 100644 index 0000000..cc7bfd1 --- /dev/null +++ b/.history/components/admin/pages/login/EnteringCode_20220518152116.tsx @@ -0,0 +1,32 @@ +import React, { useState } from 'react'; +import Button from '../../component/Button'; +import Input from '../../component/Input.jsx'; +import Label from '../../component/Label'; +import Title from '../../component/Title'; + +const EnteringCode = (props) => { + const [data, setData] = useState({'code': ''}); + const [information, setInformation] = useState(''); + const updateData = e => { + setData({ ...data, [e.target.name]: e.target.value}); + } + const handleEntrance = () => { + props.data.code == data.code ? props.updateData({status:3, email:props.data.email, code:props.data.code}) : setInformation('Код введен не верно'); + } + return( + <> + Введите код из письма + + + + + ) +} + +export default EnteringCode; diff --git a/.history/components/admin/pages/login/EnteringCode_20220518153226.tsx b/.history/components/admin/pages/login/EnteringCode_20220518153226.tsx new file mode 100644 index 0000000..8b4f1f4 --- /dev/null +++ b/.history/components/admin/pages/login/EnteringCode_20220518153226.tsx @@ -0,0 +1,32 @@ +import React, { useState } from 'react'; +import { Button, } from '../../../UI'; +import Input from '../../component/Input.jsx'; +import Label from '../../component/Label'; +import Title from '../../component/Title'; + +const EnteringCode = (props) => { + const [data, setData] = useState({'code': ''}); + const [information, setInformation] = useState(''); + const updateData = e => { + setData({ ...data, [e.target.name]: e.target.value}); + } + const handleEntrance = () => { + props.data.code == data.code ? props.updateData({status:3, email:props.data.email, code:props.data.code}) : setInformation('Код введен не верно'); + } + return( + <> + Введите код из письма + + + + + ) +} + +export default EnteringCode; diff --git a/.history/components/admin/pages/login/EnteringCode_20220518154309.tsx b/.history/components/admin/pages/login/EnteringCode_20220518154309.tsx new file mode 100644 index 0000000..d638f78 --- /dev/null +++ b/.history/components/admin/pages/login/EnteringCode_20220518154309.tsx @@ -0,0 +1,32 @@ +import React, { useState } from 'react'; +import { Button, Input } from '../../../UI'; + +import Label from '../../component/Label'; +import Title from '../../component/Title'; + +const EnteringCode = (props) => { + const [data, setData] = useState({'code': ''}); + const [information, setInformation] = useState(''); + const updateData = e => { + setData({ ...data, [e.target.name]: e.target.value}); + } + const handleEntrance = () => { + props.data.code == data.code ? props.updateData({status:3, email:props.data.email, code:props.data.code}) : setInformation('Код введен не верно'); + } + return( + <> + Введите код из письма + + + + + ) +} + +export default EnteringCode; diff --git a/.history/components/admin/pages/login/EnteringCode_20220518154538.tsx b/.history/components/admin/pages/login/EnteringCode_20220518154538.tsx new file mode 100644 index 0000000..c9dd2e7 --- /dev/null +++ b/.history/components/admin/pages/login/EnteringCode_20220518154538.tsx @@ -0,0 +1,31 @@ +import React, { useState } from 'react'; +import { Button, Input, Label } from '../../../UI'; + +import Title from '../../component/Title'; + +const EnteringCode = (props) => { + const [data, setData] = useState({'code': ''}); + const [information, setInformation] = useState(''); + const updateData = e => { + setData({ ...data, [e.target.name]: e.target.value}); + } + const handleEntrance = () => { + props.data.code == data.code ? props.updateData({status:3, email:props.data.email, code:props.data.code}) : setInformation('Код введен не верно'); + } + return( + <> + Введите код из письма + + + + + ) +} + +export default EnteringCode; diff --git a/.history/components/admin/pages/login/EnteringCode_20220518154748.tsx b/.history/components/admin/pages/login/EnteringCode_20220518154748.tsx new file mode 100644 index 0000000..3ef9c63 --- /dev/null +++ b/.history/components/admin/pages/login/EnteringCode_20220518154748.tsx @@ -0,0 +1,29 @@ +import React, { useState } from 'react'; +import { Button, Input, Label, Title } from '../../../UI'; + +const EnteringCode = (props) => { + const [data, setData] = useState({'code': ''}); + const [information, setInformation] = useState(''); + const updateData = e => { + setData({ ...data, [e.target.name]: e.target.value}); + } + const handleEntrance = () => { + props.data.code == data.code ? props.updateData({status:3, email:props.data.email, code:props.data.code}) : setInformation('Код введен не верно'); + } + return( + <> + Введите код из письма + + + + + ) +} + +export default EnteringCode; diff --git a/.history/components/admin/pages/login/EnteringMail_20220518151943.tsx b/.history/components/admin/pages/login/EnteringMail_20220518151943.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/login/EnteringMail_20220518152107.tsx b/.history/components/admin/pages/login/EnteringMail_20220518152107.tsx new file mode 100644 index 0000000..3189ac0 --- /dev/null +++ b/.history/components/admin/pages/login/EnteringMail_20220518152107.tsx @@ -0,0 +1,42 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import Button from '../../component/Button'; +import Input from '../../component/Input'; +import LinkButton from '../../component/LinkButton'; +import Title from '../../component/Title'; +import postData from '../../function/postData'; +import SmallText from '../../component/SmallText'; + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/EnteringMail_20220520130828.tsx b/.history/components/admin/pages/login/EnteringMail_20220520130828.tsx new file mode 100644 index 0000000..30bc6f2 --- /dev/null +++ b/.history/components/admin/pages/login/EnteringMail_20220520130828.tsx @@ -0,0 +1,42 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import Button from '../../component/Button'; +import Input from '../../component/Input'; +import LinkButton from '../../component/LinkButton'; +import Title from '../../component/Title'; +import postData from '../../function/postData'; +import SmallText from '../../component/SmallText'; + +const EntranceMail = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Entrance_20220520130511.tsx b/.history/components/admin/pages/login/Entrance_20220520130511.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/login/Entrance_20220520130523.tsx b/.history/components/admin/pages/login/Entrance_20220520130523.tsx new file mode 100644 index 0000000..30e2d28 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520130523.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + reset}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520130950.tsx b/.history/components/admin/pages/login/Entrance_20220520130950.tsx new file mode 100644 index 0000000..30e2d28 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520130950.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + reset}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520133039.tsx b/.history/components/admin/pages/login/Entrance_20220520133039.tsx new file mode 100644 index 0000000..103ce26 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520133039.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + reset}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520133133.tsx b/.history/components/admin/pages/login/Entrance_20220520133133.tsx new file mode 100644 index 0000000..2582cca --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520133133.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520133140.tsx b/.history/components/admin/pages/login/Entrance_20220520133140.tsx new file mode 100644 index 0000000..f798274 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520133140.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520133329.tsx b/.history/components/admin/pages/login/Entrance_20220520133329.tsx new file mode 100644 index 0000000..feef7dd --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520133329.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520133352.tsx b/.history/components/admin/pages/login/Entrance_20220520133352.tsx new file mode 100644 index 0000000..f798274 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520133352.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520134057.tsx b/.history/components/admin/pages/login/Entrance_20220520134057.tsx new file mode 100644 index 0000000..cb31b17 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520134057.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + console.log(_data); + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520135855.tsx b/.history/components/admin/pages/login/Entrance_20220520135855.tsx new file mode 100644 index 0000000..c5bc8f0 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520135855.tsx @@ -0,0 +1,40 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520181434.tsx b/.history/components/admin/pages/login/Entrance_20220520181434.tsx new file mode 100644 index 0000000..6efd129 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520181434.tsx @@ -0,0 +1,40 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520181612.tsx b/.history/components/admin/pages/login/Entrance_20220520181612.tsx new file mode 100644 index 0000000..72ad5ef --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520181612.tsx @@ -0,0 +1,41 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + //data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520181736.tsx b/.history/components/admin/pages/login/Entrance_20220520181736.tsx new file mode 100644 index 0000000..525d31c --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520181736.tsx @@ -0,0 +1,41 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + //data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520181842.tsx b/.history/components/admin/pages/login/Entrance_20220520181842.tsx new file mode 100644 index 0000000..525d31c --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520181842.tsx @@ -0,0 +1,41 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + //data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520182312.tsx b/.history/components/admin/pages/login/Entrance_20220520182312.tsx new file mode 100644 index 0000000..fae54bd --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520182312.tsx @@ -0,0 +1,42 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + //data.token ? setToken(data) : setInformation(data.error); + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520182335.tsx b/.history/components/admin/pages/login/Entrance_20220520182335.tsx new file mode 100644 index 0000000..8da6db7 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520182335.tsx @@ -0,0 +1,41 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + //data.token ? setToken(data) : setInformation(data.error); + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520182338.tsx b/.history/components/admin/pages/login/Entrance_20220520182338.tsx new file mode 100644 index 0000000..c71383e --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520182338.tsx @@ -0,0 +1,42 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + //data.token ? setToken(data) : setInformation(data.error); + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520182448.tsx b/.history/components/admin/pages/login/Entrance_20220520182448.tsx new file mode 100644 index 0000000..967594b --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520182448.tsx @@ -0,0 +1,43 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + //data.token ? + // setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520191522.tsx b/.history/components/admin/pages/login/Entrance_20220520191522.tsx new file mode 100644 index 0000000..2130d6c --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520191522.tsx @@ -0,0 +1,43 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Entrance_20220520191848.tsx b/.history/components/admin/pages/login/Entrance_20220520191848.tsx new file mode 100644 index 0000000..e8523c5 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520191848.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +propTypes = { + setToken: PropTypes.func.isRequired + } + +export const Entrance: React.FC = (setToken) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220520191921.tsx b/.history/components/admin/pages/login/Entrance_20220520191921.tsx new file mode 100644 index 0000000..228741e --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520191921.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +type PizzaBlockProps = { + setToken: string + } + +export const Entrance: React.FC = (setToken) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220520191932.tsx b/.history/components/admin/pages/login/Entrance_20220520191932.tsx new file mode 100644 index 0000000..4883cd3 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520191932.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +type PizzaBlockProps = { + setToken: string + } + +export const Entrance: React.FC = (setToken) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220520192005.tsx b/.history/components/admin/pages/login/Entrance_20220520192005.tsx new file mode 100644 index 0000000..69ada2e --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220520192005.tsx @@ -0,0 +1,41 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521123254.tsx b/.history/components/admin/pages/login/Entrance_20220521123254.tsx new file mode 100644 index 0000000..0428718 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521123254.tsx @@ -0,0 +1,41 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521123347.tsx b/.history/components/admin/pages/login/Entrance_20220521123347.tsx new file mode 100644 index 0000000..16b2b26 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521123347.tsx @@ -0,0 +1,42 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521123433.tsx b/.history/components/admin/pages/login/Entrance_20220521123433.tsx new file mode 100644 index 0000000..1d4f556 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521123433.tsx @@ -0,0 +1,43 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchPizzas } from '../../../../redux/login/asyncActions'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521123451.tsx b/.history/components/admin/pages/login/Entrance_20220521123451.tsx new file mode 100644 index 0000000..0e9a87a --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521123451.tsx @@ -0,0 +1,43 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521123534.tsx b/.history/components/admin/pages/login/Entrance_20220521123534.tsx new file mode 100644 index 0000000..cf2e042 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521123534.tsx @@ -0,0 +1,44 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { SearchPizzaParams } from '../../../../redux/login/types'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521123616.tsx b/.history/components/admin/pages/login/Entrance_20220521123616.tsx new file mode 100644 index 0000000..41a98f1 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521123616.tsx @@ -0,0 +1,44 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521123734.tsx b/.history/components/admin/pages/login/Entrance_20220521123734.tsx new file mode 100644 index 0000000..76895f4 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521123734.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const [information, setInformation] = useState(''); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521123916.tsx b/.history/components/admin/pages/login/Entrance_20220521123916.tsx new file mode 100644 index 0000000..cd98dc6 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521123916.tsx @@ -0,0 +1,59 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const [information, setInformation] = useState(''); + + const getToken = async () => { + dispatch( + fetchToken({ + login, + password, + category, + search, + currentPage: String(currentPage), + }), + ); + + window.scrollTo(0, 0); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521124051.tsx b/.history/components/admin/pages/login/Entrance_20220521124051.tsx new file mode 100644 index 0000000..202d2fc --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521124051.tsx @@ -0,0 +1,55 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521124825.tsx b/.history/components/admin/pages/login/Entrance_20220521124825.tsx new file mode 100644 index 0000000..025e253 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521124825.tsx @@ -0,0 +1,56 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521124924.tsx b/.history/components/admin/pages/login/Entrance_20220521124924.tsx new file mode 100644 index 0000000..bdc32a2 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521124924.tsx @@ -0,0 +1,57 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + console.log(status); + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521124955.tsx b/.history/components/admin/pages/login/Entrance_20220521124955.tsx new file mode 100644 index 0000000..452f862 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521124955.tsx @@ -0,0 +1,57 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + console.log(token); + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521124959.tsx b/.history/components/admin/pages/login/Entrance_20220521124959.tsx new file mode 100644 index 0000000..2428e23 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521124959.tsx @@ -0,0 +1,57 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + }; + console.log(token); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521125049.tsx b/.history/components/admin/pages/login/Entrance_20220521125049.tsx new file mode 100644 index 0000000..62c8df1 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521125049.tsx @@ -0,0 +1,57 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + }; + console.log(token); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521125223.tsx b/.history/components/admin/pages/login/Entrance_20220521125223.tsx new file mode 100644 index 0000000..fe5dfed --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521125223.tsx @@ -0,0 +1,57 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + }; + console.log(status); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521125259.tsx b/.history/components/admin/pages/login/Entrance_20220521125259.tsx new file mode 100644 index 0000000..fe5dfed --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521125259.tsx @@ -0,0 +1,57 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + }; + console.log(status); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521125329.tsx b/.history/components/admin/pages/login/Entrance_20220521125329.tsx new file mode 100644 index 0000000..3906018 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521125329.tsx @@ -0,0 +1,58 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(status); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521125349.tsx b/.history/components/admin/pages/login/Entrance_20220521125349.tsx new file mode 100644 index 0000000..e9a2aee --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521125349.tsx @@ -0,0 +1,58 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521130320.tsx b/.history/components/admin/pages/login/Entrance_20220521130320.tsx new file mode 100644 index 0000000..e9a2aee --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521130320.tsx @@ -0,0 +1,58 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521130645.tsx b/.history/components/admin/pages/login/Entrance_20220521130645.tsx new file mode 100644 index 0000000..e9a2aee --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521130645.tsx @@ -0,0 +1,58 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521130833.tsx b/.history/components/admin/pages/login/Entrance_20220521130833.tsx new file mode 100644 index 0000000..186ffe1 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521130833.tsx @@ -0,0 +1,59 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521130906.tsx b/.history/components/admin/pages/login/Entrance_20220521130906.tsx new file mode 100644 index 0000000..186ffe1 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521130906.tsx @@ -0,0 +1,59 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521130947.tsx b/.history/components/admin/pages/login/Entrance_20220521130947.tsx new file mode 100644 index 0000000..1a4892a --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521130947.tsx @@ -0,0 +1,59 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131025.tsx b/.history/components/admin/pages/login/Entrance_20220521131025.tsx new file mode 100644 index 0000000..9fe03ee --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131025.tsx @@ -0,0 +1,59 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131120.tsx b/.history/components/admin/pages/login/Entrance_20220521131120.tsx new file mode 100644 index 0000000..5ba8632 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131120.tsx @@ -0,0 +1,60 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131146.tsx b/.history/components/admin/pages/login/Entrance_20220521131146.tsx new file mode 100644 index 0000000..623981c --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131146.tsx @@ -0,0 +1,60 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + const params = qs.parse(window.location.search.substring(1) || '') as unknown as LoginParams; + console.log(params); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131228.tsx b/.history/components/admin/pages/login/Entrance_20220521131228.tsx new file mode 100644 index 0000000..82d191e --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131228.tsx @@ -0,0 +1,60 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + const params = qs.parse(location.search.substring(1)) as unknown as LoginParams; + console.log(params); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131248.tsx b/.history/components/admin/pages/login/Entrance_20220521131248.tsx new file mode 100644 index 0000000..5ba8632 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131248.tsx @@ -0,0 +1,60 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131345.tsx b/.history/components/admin/pages/login/Entrance_20220521131345.tsx new file mode 100644 index 0000000..ef8f383 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131345.tsx @@ -0,0 +1,61 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131359.tsx b/.history/components/admin/pages/login/Entrance_20220521131359.tsx new file mode 100644 index 0000000..df3a0b9 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131359.tsx @@ -0,0 +1,61 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131415.tsx b/.history/components/admin/pages/login/Entrance_20220521131415.tsx new file mode 100644 index 0000000..76a0916 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131415.tsx @@ -0,0 +1,63 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521131503.tsx b/.history/components/admin/pages/login/Entrance_20220521131503.tsx new file mode 100644 index 0000000..415052f --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521131503.tsx @@ -0,0 +1,63 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521132632.tsx b/.history/components/admin/pages/login/Entrance_20220521132632.tsx new file mode 100644 index 0000000..0fdc6b5 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521132632.tsx @@ -0,0 +1,63 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521132639.tsx b/.history/components/admin/pages/login/Entrance_20220521132639.tsx new file mode 100644 index 0000000..aeb483b --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521132639.tsx @@ -0,0 +1,63 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(status_token); + }; + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521132712.tsx b/.history/components/admin/pages/login/Entrance_20220521132712.tsx new file mode 100644 index 0000000..0fdc6b5 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521132712.tsx @@ -0,0 +1,63 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521133204.tsx b/.history/components/admin/pages/login/Entrance_20220521133204.tsx new file mode 100644 index 0000000..aeb483b --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521133204.tsx @@ -0,0 +1,63 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(status_token); + }; + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521133706.tsx b/.history/components/admin/pages/login/Entrance_20220521133706.tsx new file mode 100644 index 0000000..9fff253 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521133706.tsx @@ -0,0 +1,64 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(status_token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521133709.tsx b/.history/components/admin/pages/login/Entrance_20220521133709.tsx new file mode 100644 index 0000000..a48b776 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521133709.tsx @@ -0,0 +1,64 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(status_token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521133738.tsx b/.history/components/admin/pages/login/Entrance_20220521133738.tsx new file mode 100644 index 0000000..a48b776 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521133738.tsx @@ -0,0 +1,64 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(status_token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521133742.tsx b/.history/components/admin/pages/login/Entrance_20220521133742.tsx new file mode 100644 index 0000000..1dad9ac --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521133742.tsx @@ -0,0 +1,64 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521133956.tsx b/.history/components/admin/pages/login/Entrance_20220521133956.tsx new file mode 100644 index 0000000..dca02fe --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521133956.tsx @@ -0,0 +1,68 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + token[0].token ? + console.log(token[0].token) + //setToken(token[0].token) : + : setInformation(token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521134011.tsx b/.history/components/admin/pages/login/Entrance_20220521134011.tsx new file mode 100644 index 0000000..0e42e4f --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521134011.tsx @@ -0,0 +1,68 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + token ? + console.log(token[0].token) + //setToken(token[0].token) : + : setInformation(token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521134044.tsx b/.history/components/admin/pages/login/Entrance_20220521134044.tsx new file mode 100644 index 0000000..6491de7 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521134044.tsx @@ -0,0 +1,68 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + // token ? + console.log(token[0].token) + //setToken(token[0].token) : + // : setInformation(token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521134055.tsx b/.history/components/admin/pages/login/Entrance_20220521134055.tsx new file mode 100644 index 0000000..1f38dd5 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521134055.tsx @@ -0,0 +1,68 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : setInformation(token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521134110.tsx b/.history/components/admin/pages/login/Entrance_20220521134110.tsx new file mode 100644 index 0000000..3207ef8 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521134110.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(''); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password), + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + setInformation(token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220521134349.tsx b/.history/components/admin/pages/login/Entrance_20220521134349.tsx new file mode 100644 index 0000000..9e97be0 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220521134349.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522073245.tsx b/.history/components/admin/pages/login/Entrance_20220522073245.tsx new file mode 100644 index 0000000..10a855c --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522073245.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import postData from '../../function/postData'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522073434.tsx b/.history/components/admin/pages/login/Entrance_20220522073434.tsx new file mode 100644 index 0000000..98f42b7 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522073434.tsx @@ -0,0 +1,68 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522073515.tsx b/.history/components/admin/pages/login/Entrance_20220522073515.tsx new file mode 100644 index 0000000..dd80ab0 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522073515.tsx @@ -0,0 +1,68 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522073542.tsx b/.history/components/admin/pages/login/Entrance_20220522073542.tsx new file mode 100644 index 0000000..0e54717 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522073542.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522073956.tsx b/.history/components/admin/pages/login/Entrance_20220522073956.tsx new file mode 100644 index 0000000..c57158e --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522073956.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(token[0]); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074010.tsx b/.history/components/admin/pages/login/Entrance_20220522074010.tsx new file mode 100644 index 0000000..dce5977 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074010.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(token[1]); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074030.tsx b/.history/components/admin/pages/login/Entrance_20220522074030.tsx new file mode 100644 index 0000000..0e54717 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074030.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074120.tsx b/.history/components/admin/pages/login/Entrance_20220522074120.tsx new file mode 100644 index 0000000..da4ca43 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074120.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.stringify(token)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074138.tsx b/.history/components/admin/pages/login/Entrance_20220522074138.tsx new file mode 100644 index 0000000..8bee08b --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074138.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.stringify(token[0])); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074257.tsx b/.history/components/admin/pages/login/Entrance_20220522074257.tsx new file mode 100644 index 0000000..3baa022 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074257.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(token.token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074307.tsx b/.history/components/admin/pages/login/Entrance_20220522074307.tsx new file mode 100644 index 0000000..0e54717 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074307.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(token); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074340.tsx b/.history/components/admin/pages/login/Entrance_20220522074340.tsx new file mode 100644 index 0000000..976c4f7 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074340.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.parse(token)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074359.tsx b/.history/components/admin/pages/login/Entrance_20220522074359.tsx new file mode 100644 index 0000000..2f88514 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074359.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.parse(token.)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074417.tsx b/.history/components/admin/pages/login/Entrance_20220522074417.tsx new file mode 100644 index 0000000..da4ca43 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074417.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.stringify(token)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522074929.tsx b/.history/components/admin/pages/login/Entrance_20220522074929.tsx new file mode 100644 index 0000000..fba175c --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522074929.tsx @@ -0,0 +1,77 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key, value) { + console.log(typeof value); + if (key === 'email') { + return undefined; + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.stringify(token)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075016.tsx b/.history/components/admin/pages/login/Entrance_20220522075016.tsx new file mode 100644 index 0000000..0303d93 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075016.tsx @@ -0,0 +1,77 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'email') { + return undefined; + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075038.tsx b/.history/components/admin/pages/login/Entrance_20220522075038.tsx new file mode 100644 index 0000000..e389dcd --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075038.tsx @@ -0,0 +1,77 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + return undefined; + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075123.tsx b/.history/components/admin/pages/login/Entrance_20220522075123.tsx new file mode 100644 index 0000000..fb5a76b --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075123.tsx @@ -0,0 +1,77 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + console.log(value); + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075148.tsx b/.history/components/admin/pages/login/Entrance_20220522075148.tsx new file mode 100644 index 0000000..76948b2 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075148.tsx @@ -0,0 +1,78 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + console.log(value); + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075439.tsx b/.history/components/admin/pages/login/Entrance_20220522075439.tsx new file mode 100644 index 0000000..4c42861 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075439.tsx @@ -0,0 +1,78 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075600.tsx b/.history/components/admin/pages/login/Entrance_20220522075600.tsx new file mode 100644 index 0000000..e06657c --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075600.tsx @@ -0,0 +1,82 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + name: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075610.tsx b/.history/components/admin/pages/login/Entrance_20220522075610.tsx new file mode 100644 index 0000000..cc206db --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075610.tsx @@ -0,0 +1,82 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + name: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075637.tsx b/.history/components/admin/pages/login/Entrance_20220522075637.tsx new file mode 100644 index 0000000..8738012 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075637.tsx @@ -0,0 +1,82 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + value: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075700.tsx b/.history/components/admin/pages/login/Entrance_20220522075700.tsx new file mode 100644 index 0000000..8738012 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075700.tsx @@ -0,0 +1,82 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + value: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075911.tsx b/.history/components/admin/pages/login/Entrance_20220522075911.tsx new file mode 100644 index 0000000..74d3171 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075911.tsx @@ -0,0 +1,83 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + connected: boolean; + type: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522075919.tsx b/.history/components/admin/pages/login/Entrance_20220522075919.tsx new file mode 100644 index 0000000..8ba1147 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522075919.tsx @@ -0,0 +1,83 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + connected: boolean; + type: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState([]); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080022.tsx b/.history/components/admin/pages/login/Entrance_20220522080022.tsx new file mode 100644 index 0000000..ff33c56 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080022.tsx @@ -0,0 +1,83 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + connected: boolean; + type: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(undefined); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080031.tsx b/.history/components/admin/pages/login/Entrance_20220522080031.tsx new file mode 100644 index 0000000..b5f7aab --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080031.tsx @@ -0,0 +1,83 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + connected: boolean; + type: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(undefined); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080050.tsx b/.history/components/admin/pages/login/Entrance_20220522080050.tsx new file mode 100644 index 0000000..9f819ff --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080050.tsx @@ -0,0 +1,83 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + connected: boolean; + type: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(undefined); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080202.tsx b/.history/components/admin/pages/login/Entrance_20220522080202.tsx new file mode 100644 index 0000000..d6c0b9c --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080202.tsx @@ -0,0 +1,83 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + connected: boolean; + type: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080254.tsx b/.history/components/admin/pages/login/Entrance_20220522080254.tsx new file mode 100644 index 0000000..fabc982 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080254.tsx @@ -0,0 +1,83 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +interface IToken { + connected: boolean; + type: string; + } + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080327.tsx b/.history/components/admin/pages/login/Entrance_20220522080327.tsx new file mode 100644 index 0000000..7314e94 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080327.tsx @@ -0,0 +1,78 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = async () => { + //console.log(_data); + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + JSON.stringify(token, replacer) + //console.log(JSON.stringify(token, replacer)); + }; + + React.useEffect(() => { + const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080421.tsx b/.history/components/admin/pages/login/Entrance_20220522080421.tsx new file mode 100644 index 0000000..8488762 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080421.tsx @@ -0,0 +1,76 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = async () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + React.useEffect(() => { + // const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + // console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080614.tsx b/.history/components/admin/pages/login/Entrance_20220522080614.tsx new file mode 100644 index 0000000..b03b7c0 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080614.tsx @@ -0,0 +1,76 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + console.log('123'); + const getToken = async () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + React.useEffect(() => { + // const params = qs.parse(window.location.search.substring(1)) as unknown as LoginParams; + // console.log(params); + }, []); + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080648.tsx b/.history/components/admin/pages/login/Entrance_20220522080648.tsx new file mode 100644 index 0000000..307aba8 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080648.tsx @@ -0,0 +1,73 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + console.log('123'); + const getToken = async () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080810.tsx b/.history/components/admin/pages/login/Entrance_20220522080810.tsx new file mode 100644 index 0000000..5084b79 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080810.tsx @@ -0,0 +1,71 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + console.log('123'); + const getToken = async () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522080832.tsx b/.history/components/admin/pages/login/Entrance_20220522080832.tsx new file mode 100644 index 0000000..229989e --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522080832.tsx @@ -0,0 +1,71 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; +import qs from 'qs'; +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { LoginParams } from '../../../../redux/login/types'; +import { selectTokenData } from '../../../../redux/login/selectors'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + console.log('123'); + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522081104.tsx b/.history/components/admin/pages/login/Entrance_20220522081104.tsx new file mode 100644 index 0000000..a1b4ea5 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522081104.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522133012.tsx b/.history/components/admin/pages/login/Entrance_20220522133012.tsx new file mode 100644 index 0000000..c0dd05b --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522133012.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key !== 'error') { + value = ''; + } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + setInformation(JSON.stringify(token, replacer)); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522133046.tsx b/.history/components/admin/pages/login/Entrance_20220522133046.tsx new file mode 100644 index 0000000..bb18cd8 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522133046.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + value = ''; + } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + setInformation(JSON.stringify(token, replacer)); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522133121.tsx b/.history/components/admin/pages/login/Entrance_20220522133121.tsx new file mode 100644 index 0000000..b565e44 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522133121.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + value = 'd'; + } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + setInformation(JSON.stringify(token, replacer)); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522133131.tsx b/.history/components/admin/pages/login/Entrance_20220522133131.tsx new file mode 100644 index 0000000..512acc6 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522133131.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key !== 'error') { + value = 'd'; + } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + setInformation(JSON.stringify(token, replacer)); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522133156.tsx b/.history/components/admin/pages/login/Entrance_20220522133156.tsx new file mode 100644 index 0000000..c10e7a7 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522133156.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key !== 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220522133235.tsx b/.history/components/admin/pages/login/Entrance_20220522133235.tsx new file mode 100644 index 0000000..a1b4ea5 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220522133235.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + console.log(typeof value); + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password:String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220523185252.tsx b/.history/components/admin/pages/login/Entrance_20220523185252.tsx new file mode 100644 index 0000000..71328ee --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220523185252.tsx @@ -0,0 +1,68 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password: String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220523185335.tsx b/.history/components/admin/pages/login/Entrance_20220523185335.tsx new file mode 100644 index 0000000..bf094d0 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220523185335.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import type { NextPage } from 'next'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password: String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220523185350.tsx b/.history/components/admin/pages/login/Entrance_20220523185350.tsx new file mode 100644 index 0000000..0ca7bfc --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220523185350.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import type { NextPage } from 'next'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: NextPage = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + if (key === 'error') { + setInformation(value) + } else { setInformation('') } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password: String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Entrance_20220523185617.tsx b/.history/components/admin/pages/login/Entrance_20220523185617.tsx new file mode 100644 index 0000000..a38b376 --- /dev/null +++ b/.history/components/admin/pages/login/Entrance_20220523185617.tsx @@ -0,0 +1,69 @@ +import React, { useState } from 'react'; +import type { NextPage } from 'next'; +import { useSelector } from 'react-redux'; + +import { Button, Input, Title, SmallText } from '../../../UI'; +import { useAppDispatch } from '../../../../redux/store'; +import { fetchToken } from '../../../../redux/login/asyncActions'; +import { selectTokenData } from '../../../../redux/login/selectors'; + +export const Entrance: NextPage = () => { + const [_data, setData] = useState({login:'', password:''}); + const dispatch = useAppDispatch(); + const { token, status_token } = useSelector(selectTokenData); + const [information, setInformation] = useState(); + + function replacer(key:string, value:string) { + if (key === 'error') { + setInformation(value); + } else { setInformation('') } + return value; + } + + const getToken = () => { + dispatch( + fetchToken({ + login: String(_data.login), + password: String(_data.password) + }), + ); + JSON.stringify(token, replacer); + // token ? + // console.log(token[0].token) + //setToken(token[0].token) : + // : + //setInformation(token); + console.log(status_token); + }; + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? + setToken(data) : + setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + + {information} + + ) +} + + diff --git a/.history/components/admin/pages/login/Index_20220518152004.tsx b/.history/components/admin/pages/login/Index_20220518152004.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/login/Index_20220518152059.tsx b/.history/components/admin/pages/login/Index_20220518152059.tsx new file mode 100644 index 0000000..3189ac0 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518152059.tsx @@ -0,0 +1,42 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import Button from '../../component/Button'; +import Input from '../../component/Input'; +import LinkButton from '../../component/LinkButton'; +import Title from '../../component/Title'; +import postData from '../../function/postData'; +import SmallText from '../../component/SmallText'; + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518154842.tsx b/.history/components/admin/pages/login/Index_20220518154842.tsx new file mode 100644 index 0000000..94b60ce --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518154842.tsx @@ -0,0 +1,44 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, Title } from '../../../UI'; + + +import LinkButton from '../../component/LinkButton'; +import SmallText from '../../component/SmallText'; + +import postData from '../../function/postData'; + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518155142.tsx b/.history/components/admin/pages/login/Index_20220518155142.tsx new file mode 100644 index 0000000..a22fcda --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518155142.tsx @@ -0,0 +1,42 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title } from '../../../UI'; + +import SmallText from '../../component/SmallText'; + +import postData from '../../function/postData'; + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518155348.tsx b/.history/components/admin/pages/login/Index_20220518155348.tsx new file mode 100644 index 0000000..a5eb4f3 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518155348.tsx @@ -0,0 +1,39 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518155852.tsx b/.history/components/admin/pages/login/Index_20220518155852.tsx new file mode 100644 index 0000000..a5eb4f3 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518155852.tsx @@ -0,0 +1,39 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518155917.tsx b/.history/components/admin/pages/login/Index_20220518155917.tsx new file mode 100644 index 0000000..eb8cf5a --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518155917.tsx @@ -0,0 +1,39 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518160750.tsx b/.history/components/admin/pages/login/Index_20220518160750.tsx new file mode 100644 index 0000000..680c8d1 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518160750.tsx @@ -0,0 +1,39 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = (e) => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518161105.tsx b/.history/components/admin/pages/login/Index_20220518161105.tsx new file mode 100644 index 0000000..a1929ee --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518161105.tsx @@ -0,0 +1,39 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = (e) => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518161239.tsx b/.history/components/admin/pages/login/Index_20220518161239.tsx new file mode 100644 index 0000000..feee55f --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518161239.tsx @@ -0,0 +1,39 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const update_Data = (e) => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + update_Data(e)} value={_data.login}/> + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518161330.tsx b/.history/components/admin/pages/login/Index_20220518161330.tsx new file mode 100644 index 0000000..8b606ab --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518161330.tsx @@ -0,0 +1,39 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + const Button: update_Data.FC = ({e}) => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + update_Data(e)} value={_data.login}/> + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518161409.tsx b/.history/components/admin/pages/login/Index_20220518161409.tsx new file mode 100644 index 0000000..239bbaa --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518161409.tsx @@ -0,0 +1,41 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + + + const update_Data: React.FC = ({e}) => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + update_Data(e)} value={_data.login}/> + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518161525.tsx b/.history/components/admin/pages/login/Index_20220518161525.tsx new file mode 100644 index 0000000..836b215 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518161525.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const update_Data: React.FC = ({name, value}) => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518162727.tsx b/.history/components/admin/pages/login/Index_20220518162727.tsx new file mode 100644 index 0000000..9369435 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518162727.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const update_Data: React.FC = ({name, value}) => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518162833.tsx b/.history/components/admin/pages/login/Index_20220518162833.tsx new file mode 100644 index 0000000..54c30f9 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518162833.tsx @@ -0,0 +1,45 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; + + + +const Entrance = ({setToken, updateData}) => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518163018.tsx b/.history/components/admin/pages/login/Index_20220518163018.tsx new file mode 100644 index 0000000..b1808da --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518163018.tsx @@ -0,0 +1,44 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +const Entrance = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + updateData({status:1})}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518163242.tsx b/.history/components/admin/pages/login/Index_20220518163242.tsx new file mode 100644 index 0000000..23760c9 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518163242.tsx @@ -0,0 +1,48 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +const Entrance = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + reset}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518163510.tsx b/.history/components/admin/pages/login/Index_20220518163510.tsx new file mode 100644 index 0000000..7133385 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518163510.tsx @@ -0,0 +1,48 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + reset}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default Entrance; \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220518163527.tsx b/.history/components/admin/pages/login/Index_20220518163527.tsx new file mode 100644 index 0000000..30e2d28 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220518163527.tsx @@ -0,0 +1,46 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import { Button, Input, LinkButton, Title, SmallText } from '../../../UI'; +//{setToken, updateData} + +export const Entrance: React.FC = () => { + const [_data, setData] = useState({login:'',password:''}); + const [information, setInformation] = useState(''); + + interface Props_data { + name: string; + value: string; + onClick: () => void; + } + + const onChange = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const reset = (name: string, value:string) => { + setData({ ..._data, [name]: value}); + }; + + const handleEntrance = () => { + console.log(_data); + /*postData('/api/login', { _data }) + .then((data) => { + console.log(data); + data.token ? setToken(data) : setInformation(data.error); + }); */ + } + return( + <> + Вход в систему + + + + {information} + reset}>Забыл/Сбросить пароль + + ) +} + +Entrance.propTypes = { + setToken: PropTypes.func.isRequired + } diff --git a/.history/components/admin/pages/login/Index_20220520130519.tsx b/.history/components/admin/pages/login/Index_20220520130519.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/login/Index_20220520130556.tsx b/.history/components/admin/pages/login/Index_20220520130556.tsx new file mode 100644 index 0000000..bd5ffc1 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520130556.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' + + + +const Login = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = e => { + setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { + 0: updateData(e)} setToken={setToken}/>, + 1: updateData(e)}/>, + 2: updateData(e)} data={_data}/>, + 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520130622.tsx b/.history/components/admin/pages/login/Index_20220520130622.tsx new file mode 100644 index 0000000..bb618b4 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520130622.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' + + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = e => { + setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { + 0: updateData(e)} setToken={setToken}/>, + 1: updateData(e)}/>, + 2: updateData(e)} data={_data}/>, + 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520130709.tsx b/.history/components/admin/pages/login/Index_20220520130709.tsx new file mode 100644 index 0000000..d010f07 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520130709.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import Entrance from './EnteringMail'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { + 0: updateData(e)} setToken={setToken}/>, + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520130726.tsx b/.history/components/admin/pages/login/Index_20220520130726.tsx new file mode 100644 index 0000000..cad1924 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520130726.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import Entrance from './EnteringMail'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520130848.tsx b/.history/components/admin/pages/login/Index_20220520130848.tsx new file mode 100644 index 0000000..048aaa6 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520130848.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import Entrance from './Entrance'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520130904.tsx b/.history/components/admin/pages/login/Index_20220520130904.tsx new file mode 100644 index 0000000..4977be0 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520130904.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import { Entrance } from './Entrance'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520131056.tsx b/.history/components/admin/pages/login/Index_20220520131056.tsx new file mode 100644 index 0000000..4977be0 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520131056.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import { Entrance } from './Entrance'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520131131.tsx b/.history/components/admin/pages/login/Index_20220520131131.tsx new file mode 100644 index 0000000..cb10175 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520131131.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' +import { Entrance } from './Entrance'; + +export const Login: React.FC = () => { + // const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ + { + // { // updateData={(e) => updateData(e)} setToken={setToken} + // 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + // }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520131142.tsx b/.history/components/admin/pages/login/Index_20220520131142.tsx new file mode 100644 index 0000000..81eabad --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520131142.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' +import { Entrance } from './Entrance'; + +export const Login: React.FC = () => { + // const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ + { + // { // updateData={(e) => updateData(e)} setToken={setToken} + // 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + // }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520131153.tsx b/.history/components/admin/pages/login/Index_20220520131153.tsx new file mode 100644 index 0000000..6c1dfa1 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520131153.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' + + +export const Login: React.FC = () => { + // const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ + { + // { // updateData={(e) => updateData(e)} setToken={setToken} + // 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + // }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520131157.tsx b/.history/components/admin/pages/login/Index_20220520131157.tsx new file mode 100644 index 0000000..db89862 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520131157.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' + + +export const Login: React.FC = () => { + // const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ + { + // { // updateData={(e) => updateData(e)} setToken={setToken} + // 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + // }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520131241.tsx b/.history/components/admin/pages/login/Index_20220520131241.tsx new file mode 100644 index 0000000..cb10175 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520131241.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' +import { Entrance } from './Entrance'; + +export const Login: React.FC = () => { + // const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ + { + // { // updateData={(e) => updateData(e)} setToken={setToken} + // 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + // }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Index_20220520131342.ts b/.history/components/admin/pages/login/Index_20220520131342.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/login/Index_20220520131353.ts b/.history/components/admin/pages/login/Index_20220520131353.ts new file mode 100644 index 0000000..31f2618 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520131353.ts @@ -0,0 +1 @@ +export * from './Login' \ No newline at end of file diff --git a/.history/components/admin/pages/login/Index_20220520131422.ts b/.history/components/admin/pages/login/Index_20220520131422.ts new file mode 100644 index 0000000..8518799 --- /dev/null +++ b/.history/components/admin/pages/login/Index_20220520131422.ts @@ -0,0 +1 @@ +export * from './Entrance' \ No newline at end of file diff --git a/.history/components/admin/pages/login/Login_20220520131240.tsx b/.history/components/admin/pages/login/Login_20220520131240.tsx new file mode 100644 index 0000000..cb10175 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220520131240.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' +import { Entrance } from './Entrance'; + +export const Login: React.FC = () => { + // const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ + { + // { // updateData={(e) => updateData(e)} setToken={setToken} + // 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + // }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220520131246.tsx b/.history/components/admin/pages/login/Login_20220520131246.tsx new file mode 100644 index 0000000..cb10175 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220520131246.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' +import { Entrance } from './Entrance'; + +export const Login: React.FC = () => { + // const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ + { + // { // updateData={(e) => updateData(e)} setToken={setToken} + // 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + // }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220520131321.tsx b/.history/components/admin/pages/login/Login_20220520131321.tsx new file mode 100644 index 0000000..4977be0 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220520131321.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import { Entrance } from './Entrance'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220520131413.tsx b/.history/components/admin/pages/login/Login_20220520131413.tsx new file mode 100644 index 0000000..c526f4d --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220520131413.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import { Entrance } from './Index'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220520131426.tsx b/.history/components/admin/pages/login/Login_20220520131426.tsx new file mode 100644 index 0000000..c526f4d --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220520131426.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import { Entrance } from './Index'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220520132228.tsx b/.history/components/admin/pages/login/Login_20220520132228.tsx new file mode 100644 index 0000000..8c70082 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220520132228.tsx @@ -0,0 +1,25 @@ +import React, { useState } from 'react' +import { Entrance } from './Index'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220522081224.tsx b/.history/components/admin/pages/login/Login_20220522081224.tsx new file mode 100644 index 0000000..73c63a2 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220522081224.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' +import { Entrance } from './Index'; +import { selectTokenData } from '../../../../redux/login/selectors'; +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220522081235.tsx b/.history/components/admin/pages/login/Login_20220522081235.tsx new file mode 100644 index 0000000..77d8730 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220522081235.tsx @@ -0,0 +1,26 @@ +import React, { useState } from 'react' +import { Entrance } from './Index'; +import { selectTokenData } from '../../../../redux/login/selectors'; +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + const { token, status_token } = useSelector(selectTokenData); + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220522081301.tsx b/.history/components/admin/pages/login/Login_20220522081301.tsx new file mode 100644 index 0000000..dcfab35 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220522081301.tsx @@ -0,0 +1,28 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Entrance } from './Index'; +import { selectTokenData } from '../../../../redux/login/selectors'; +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + const { token, status_token } = useSelector(selectTokenData); + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220522081324.tsx b/.history/components/admin/pages/login/Login_20220522081324.tsx new file mode 100644 index 0000000..3a23865 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220522081324.tsx @@ -0,0 +1,28 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Entrance } from './Index'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + const { token, status_token } = useSelector(selectTokenData); + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/Login_20220522081534.tsx b/.history/components/admin/pages/login/Login_20220522081534.tsx new file mode 100644 index 0000000..90a8d00 --- /dev/null +++ b/.history/components/admin/pages/login/Login_20220522081534.tsx @@ -0,0 +1,28 @@ +import React, { useState } from 'react'; +import { useSelector } from 'react-redux'; + +import { Entrance } from './Index'; + +export const Login: React.FC = () => { + const [_data, setData] = useState({'status': 0, email:'', code:''}); + const updateData = () => { + //setData({ ..._data, 'status':e.status, 'email':e.email, 'code':e.code}); + } + + return( +
+
+ { + { // updateData={(e) => updateData(e)} setToken={setToken} + 0: , + // 1: updateData(e)}/>, + // 2: updateData(e)} data={_data}/>, + // 3: + }[_data.status] + } +
+
+ ) +} + +export default Login; diff --git a/.history/components/admin/pages/login/NewPassword_20220518152017.tsx b/.history/components/admin/pages/login/NewPassword_20220518152017.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/login/NewPassword_20220518152051.tsx b/.history/components/admin/pages/login/NewPassword_20220518152051.tsx new file mode 100644 index 0000000..9b97d8c --- /dev/null +++ b/.history/components/admin/pages/login/NewPassword_20220518152051.tsx @@ -0,0 +1,41 @@ +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import Button from '../../component/Button'; +import Input from '../../component/Input'; +import Title from '../../component/Title'; +import Label from '../../component/Label'; +import postData from '../../function/postData'; + +const NewPassword = (props) => { + const [_data, setData] = useState({email: props.email, password:'', passwordRepeat:''}); + const [information, setInformation] = useState(''); + const updateData = e => { + setData({ ..._data, [e.target.name]: e.target.value}); + } + const handleEntrance = () => { + console.log(_data); + if (_data.password === _data.passwordRepeat) { + postData('/api/newpassword', {_data}) + .then((data) => { + console.log(data[0]); + data.token ? props.setToken(data) : setInformation(data.error); + // setToken(data[0]); + }); + } else {setInformation('Пароли не совпадают');} + } + return( + <> + Введите новый пароль + + + + + + ) +} + +NewPassword.propTypes = { + setToken: PropTypes.func.isRequired + } + +export default NewPassword; \ No newline at end of file diff --git a/.history/components/admin/pages/login/useToken_20220518152038.ts b/.history/components/admin/pages/login/useToken_20220518152038.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/admin/pages/login/useToken_20220518152044.ts b/.history/components/admin/pages/login/useToken_20220518152044.ts new file mode 100644 index 0000000..3e9e4b6 --- /dev/null +++ b/.history/components/admin/pages/login/useToken_20220518152044.ts @@ -0,0 +1,16 @@ +import { useState, useEffect } from 'react'; + + +export default function useToken() { + const [token, setToken] = useState(''); + useEffect(() => setToken(localStorage.getItem("token")), []); + const saveToken = userToken => { + localStorage.setItem('token', JSON.stringify(userToken)); + setToken(userToken?.token); + }; + + return { + setToken: saveToken, + token + } +} \ No newline at end of file diff --git a/.history/components/customer/Header_20220518151446.tsx b/.history/components/customer/Header_20220518151446.tsx new file mode 100644 index 0000000..d150df2 --- /dev/null +++ b/.history/components/customer/Header_20220518151446.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './Search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220518151805.tsx b/.history/components/customer/Header_20220518151805.tsx new file mode 100644 index 0000000..8fc633d --- /dev/null +++ b/.history/components/customer/Header_20220518151805.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529152930.tsx b/.history/components/customer/Header_20220529152930.tsx new file mode 100644 index 0000000..7ba5c2c --- /dev/null +++ b/.history/components/customer/Header_20220529152930.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529152932.tsx b/.history/components/customer/Header_20220529152932.tsx new file mode 100644 index 0000000..7ba5c2c --- /dev/null +++ b/.history/components/customer/Header_20220529152932.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529152940.tsx b/.history/components/customer/Header_20220529152940.tsx new file mode 100644 index 0000000..8fc633d --- /dev/null +++ b/.history/components/customer/Header_20220529152940.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153057.tsx b/.history/components/customer/Header_20220529153057.tsx new file mode 100644 index 0000000..aad7a55 --- /dev/null +++ b/.history/components/customer/Header_20220529153057.tsx @@ -0,0 +1,84 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153101.tsx b/.history/components/customer/Header_20220529153101.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153101.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153311.tsx b/.history/components/customer/Header_20220529153311.tsx new file mode 100644 index 0000000..fb4da92 --- /dev/null +++ b/.history/components/customer/Header_20220529153311.tsx @@ -0,0 +1,43 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153322.tsx b/.history/components/customer/Header_20220529153322.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153322.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153328.tsx b/.history/components/customer/Header_20220529153328.tsx new file mode 100644 index 0000000..6031383 --- /dev/null +++ b/.history/components/customer/Header_20220529153328.tsx @@ -0,0 +1,49 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153335.tsx b/.history/components/customer/Header_20220529153335.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153335.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153339.tsx b/.history/components/customer/Header_20220529153339.tsx new file mode 100644 index 0000000..fc3f1dc --- /dev/null +++ b/.history/components/customer/Header_20220529153339.tsx @@ -0,0 +1,59 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ + +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153343.tsx b/.history/components/customer/Header_20220529153343.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153343.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153348.tsx b/.history/components/customer/Header_20220529153348.tsx new file mode 100644 index 0000000..7754798 --- /dev/null +++ b/.history/components/customer/Header_20220529153348.tsx @@ -0,0 +1,72 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ + ); +}; diff --git a/.history/components/customer/Header_20220529153350.tsx b/.history/components/customer/Header_20220529153350.tsx new file mode 100644 index 0000000..5979edf --- /dev/null +++ b/.history/components/customer/Header_20220529153350.tsx @@ -0,0 +1,72 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ + +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153400.tsx b/.history/components/customer/Header_20220529153400.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153400.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153657.tsx b/.history/components/customer/Header_20220529153657.tsx new file mode 100644 index 0000000..5787331 --- /dev/null +++ b/.history/components/customer/Header_20220529153657.tsx @@ -0,0 +1,72 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153704.tsx b/.history/components/customer/Header_20220529153704.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153704.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153709.tsx b/.history/components/customer/Header_20220529153709.tsx new file mode 100644 index 0000000..a1b4a6a --- /dev/null +++ b/.history/components/customer/Header_20220529153709.tsx @@ -0,0 +1,71 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153715.tsx b/.history/components/customer/Header_20220529153715.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153715.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153717.tsx b/.history/components/customer/Header_20220529153717.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153717.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153759.tsx b/.history/components/customer/Header_20220529153759.tsx new file mode 100644 index 0000000..5787331 --- /dev/null +++ b/.history/components/customer/Header_20220529153759.tsx @@ -0,0 +1,72 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153807.tsx b/.history/components/customer/Header_20220529153807.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153807.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529153808.tsx b/.history/components/customer/Header_20220529153808.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529153808.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155219.tsx b/.history/components/customer/Header_20220529155219.tsx new file mode 100644 index 0000000..85dce73 --- /dev/null +++ b/.history/components/customer/Header_20220529155219.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155228.tsx b/.history/components/customer/Header_20220529155228.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155228.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155230.tsx b/.history/components/customer/Header_20220529155230.tsx new file mode 100644 index 0000000..c28b479 --- /dev/null +++ b/.history/components/customer/Header_20220529155230.tsx @@ -0,0 +1,80 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+ +
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155231.tsx b/.history/components/customer/Header_20220529155231.tsx new file mode 100644 index 0000000..c28b479 --- /dev/null +++ b/.history/components/customer/Header_20220529155231.tsx @@ -0,0 +1,80 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+ +
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155237.tsx b/.history/components/customer/Header_20220529155237.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155237.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155241.tsx b/.history/components/customer/Header_20220529155241.tsx new file mode 100644 index 0000000..067fbe1 --- /dev/null +++ b/.history/components/customer/Header_20220529155241.tsx @@ -0,0 +1,78 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+
+
+ +
+
+
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155247.tsx b/.history/components/customer/Header_20220529155247.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155247.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155250.tsx b/.history/components/customer/Header_20220529155250.tsx new file mode 100644 index 0000000..fc1688a --- /dev/null +++ b/.history/components/customer/Header_20220529155250.tsx @@ -0,0 +1,76 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ +
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155251.tsx b/.history/components/customer/Header_20220529155251.tsx new file mode 100644 index 0000000..fc1688a --- /dev/null +++ b/.history/components/customer/Header_20220529155251.tsx @@ -0,0 +1,76 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ +
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155256.tsx b/.history/components/customer/Header_20220529155256.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155256.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155259.tsx b/.history/components/customer/Header_20220529155259.tsx new file mode 100644 index 0000000..056414a --- /dev/null +++ b/.history/components/customer/Header_20220529155259.tsx @@ -0,0 +1,75 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+
+
+ +
+
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529155306.tsx b/.history/components/customer/Header_20220529155306.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155306.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155311.tsx b/.history/components/customer/Header_20220529155311.tsx new file mode 100644 index 0000000..8b0145a --- /dev/null +++ b/.history/components/customer/Header_20220529155311.tsx @@ -0,0 +1,73 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529155315.tsx b/.history/components/customer/Header_20220529155315.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155315.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155319.tsx b/.history/components/customer/Header_20220529155319.tsx new file mode 100644 index 0000000..dfd19ca --- /dev/null +++ b/.history/components/customer/Header_20220529155319.tsx @@ -0,0 +1,74 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+ +
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155321.tsx b/.history/components/customer/Header_20220529155321.tsx new file mode 100644 index 0000000..6585821 --- /dev/null +++ b/.history/components/customer/Header_20220529155321.tsx @@ -0,0 +1,64 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+ +
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529155329.tsx b/.history/components/customer/Header_20220529155329.tsx new file mode 100644 index 0000000..343df0c --- /dev/null +++ b/.history/components/customer/Header_20220529155329.tsx @@ -0,0 +1,57 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+
+ +
+
+ +
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529155335.tsx b/.history/components/customer/Header_20220529155335.tsx new file mode 100644 index 0000000..1837e7f --- /dev/null +++ b/.history/components/customer/Header_20220529155335.tsx @@ -0,0 +1,54 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529155341.tsx b/.history/components/customer/Header_20220529155341.tsx new file mode 100644 index 0000000..646dc3c --- /dev/null +++ b/.history/components/customer/Header_20220529155341.tsx @@ -0,0 +1,52 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+ +
+
+ +
+
+ +
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155346.tsx b/.history/components/customer/Header_20220529155346.tsx new file mode 100644 index 0000000..132e498 --- /dev/null +++ b/.history/components/customer/Header_20220529155346.tsx @@ -0,0 +1,50 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+ +
+
+ +
+ + +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155352.tsx b/.history/components/customer/Header_20220529155352.tsx new file mode 100644 index 0000000..16c00be --- /dev/null +++ b/.history/components/customer/Header_20220529155352.tsx @@ -0,0 +1,48 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+ +
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155403.tsx b/.history/components/customer/Header_20220529155403.tsx new file mode 100644 index 0000000..1db3d12 --- /dev/null +++ b/.history/components/customer/Header_20220529155403.tsx @@ -0,0 +1,46 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+ + + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155409.tsx b/.history/components/customer/Header_20220529155409.tsx new file mode 100644 index 0000000..28976be --- /dev/null +++ b/.history/components/customer/Header_20220529155409.tsx @@ -0,0 +1,44 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+ + + + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155423.tsx b/.history/components/customer/Header_20220529155423.tsx new file mode 100644 index 0000000..338dbf9 --- /dev/null +++ b/.history/components/customer/Header_20220529155423.tsx @@ -0,0 +1,84 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155424.tsx b/.history/components/customer/Header_20220529155424.tsx new file mode 100644 index 0000000..aad7a55 --- /dev/null +++ b/.history/components/customer/Header_20220529155424.tsx @@ -0,0 +1,84 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155427.tsx b/.history/components/customer/Header_20220529155427.tsx new file mode 100644 index 0000000..8dc6277 --- /dev/null +++ b/.history/components/customer/Header_20220529155427.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155432.tsx b/.history/components/customer/Header_20220529155432.tsx new file mode 100644 index 0000000..aad7a55 --- /dev/null +++ b/.history/components/customer/Header_20220529155432.tsx @@ -0,0 +1,84 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155436.tsx b/.history/components/customer/Header_20220529155436.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155436.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155443.tsx b/.history/components/customer/Header_20220529155443.tsx new file mode 100644 index 0000000..fb449bf --- /dev/null +++ b/.history/components/customer/Header_20220529155443.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ + + ); +}; diff --git a/.history/components/customer/Header_20220529155445.tsx b/.history/components/customer/Header_20220529155445.tsx new file mode 100644 index 0000000..fb449bf --- /dev/null +++ b/.history/components/customer/Header_20220529155445.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ + + ); +}; diff --git a/.history/components/customer/Header_20220529155451.tsx b/.history/components/customer/Header_20220529155451.tsx new file mode 100644 index 0000000..b06f514 --- /dev/null +++ b/.history/components/customer/Header_20220529155451.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155625.tsx b/.history/components/customer/Header_20220529155625.tsx new file mode 100644 index 0000000..1694ff0 --- /dev/null +++ b/.history/components/customer/Header_20220529155625.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155651.tsx b/.history/components/customer/Header_20220529155651.tsx new file mode 100644 index 0000000..b06f514 --- /dev/null +++ b/.history/components/customer/Header_20220529155651.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155657.tsx b/.history/components/customer/Header_20220529155657.tsx new file mode 100644 index 0000000..d9a432b --- /dev/null +++ b/.history/components/customer/Header_20220529155657.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( + +
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ + + ); +}; diff --git a/.history/components/customer/Header_20220529155705.tsx b/.history/components/customer/Header_20220529155705.tsx new file mode 100644 index 0000000..40ab38d --- /dev/null +++ b/.history/components/customer/Header_20220529155705.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( + +
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155714.tsx b/.history/components/customer/Header_20220529155714.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155714.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155854.tsx b/.history/components/customer/Header_20220529155854.tsx new file mode 100644 index 0000000..ab10f2b --- /dev/null +++ b/.history/components/customer/Header_20220529155854.tsx @@ -0,0 +1,81 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+ +
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155900.tsx b/.history/components/customer/Header_20220529155900.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155900.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155903.tsx b/.history/components/customer/Header_20220529155903.tsx new file mode 100644 index 0000000..25e9e4e --- /dev/null +++ b/.history/components/customer/Header_20220529155903.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529155910.tsx b/.history/components/customer/Header_20220529155910.tsx new file mode 100644 index 0000000..d3d78d7 --- /dev/null +++ b/.history/components/customer/Header_20220529155910.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+ Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160110.tsx b/.history/components/customer/Header_20220529160110.tsx new file mode 100644 index 0000000..89ac3d5 --- /dev/null +++ b/.history/components/customer/Header_20220529160110.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160112.tsx b/.history/components/customer/Header_20220529160112.tsx new file mode 100644 index 0000000..9bcd673 --- /dev/null +++ b/.history/components/customer/Header_20220529160112.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160624.tsx b/.history/components/customer/Header_20220529160624.tsx new file mode 100644 index 0000000..12ee0d4 --- /dev/null +++ b/.history/components/customer/Header_20220529160624.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529160630.tsx b/.history/components/customer/Header_20220529160630.tsx new file mode 100644 index 0000000..9bcd673 --- /dev/null +++ b/.history/components/customer/Header_20220529160630.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160632.tsx b/.history/components/customer/Header_20220529160632.tsx new file mode 100644 index 0000000..12ee0d4 --- /dev/null +++ b/.history/components/customer/Header_20220529160632.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529160642.tsx b/.history/components/customer/Header_20220529160642.tsx new file mode 100644 index 0000000..19a88fa --- /dev/null +++ b/.history/components/customer/Header_20220529160642.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + + +
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529160646.tsx b/.history/components/customer/Header_20220529160646.tsx new file mode 100644 index 0000000..f7a4212 --- /dev/null +++ b/.history/components/customer/Header_20220529160646.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + + +
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529160653.tsx b/.history/components/customer/Header_20220529160653.tsx new file mode 100644 index 0000000..5de977c --- /dev/null +++ b/.history/components/customer/Header_20220529160653.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+
+ +
+
+
+ + updateDataHeader()} + /> + + +
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529160659.tsx b/.history/components/customer/Header_20220529160659.tsx new file mode 100644 index 0000000..a5d8856 --- /dev/null +++ b/.history/components/customer/Header_20220529160659.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+
+ +
+
+
+ + updateDataHeader()} + /> + + +
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220529160718.tsx b/.history/components/customer/Header_20220529160718.tsx new file mode 100644 index 0000000..9bcd673 --- /dev/null +++ b/.history/components/customer/Header_20220529160718.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160720.tsx b/.history/components/customer/Header_20220529160720.tsx new file mode 100644 index 0000000..bb1ed9a --- /dev/null +++ b/.history/components/customer/Header_20220529160720.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160723.tsx b/.history/components/customer/Header_20220529160723.tsx new file mode 100644 index 0000000..89ac3d5 --- /dev/null +++ b/.history/components/customer/Header_20220529160723.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo +
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160724.tsx b/.history/components/customer/Header_20220529160724.tsx new file mode 100644 index 0000000..bb1ed9a --- /dev/null +++ b/.history/components/customer/Header_20220529160724.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160725.tsx b/.history/components/customer/Header_20220529160725.tsx new file mode 100644 index 0000000..9bcd673 --- /dev/null +++ b/.history/components/customer/Header_20220529160725.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160852.tsx b/.history/components/customer/Header_20220529160852.tsx new file mode 100644 index 0000000..ec41a31 --- /dev/null +++ b/.history/components/customer/Header_20220529160852.tsx @@ -0,0 +1,84 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + if(window.innerWidth < 800) { +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160855.tsx b/.history/components/customer/Header_20220529160855.tsx new file mode 100644 index 0000000..def55b7 --- /dev/null +++ b/.history/components/customer/Header_20220529160855.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + if(window.innerWidth < 800) { +

Корзина

+ Ъ +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160858.tsx b/.history/components/customer/Header_20220529160858.tsx new file mode 100644 index 0000000..9dd7a30 --- /dev/null +++ b/.history/components/customer/Header_20220529160858.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + if(window.innerWidth < 800) { +

Корзина

+ } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160900.tsx b/.history/components/customer/Header_20220529160900.tsx new file mode 100644 index 0000000..050986f --- /dev/null +++ b/.history/components/customer/Header_20220529160900.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + {} if(window.innerWidth < 800) { +

Корзина

+ } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160901.tsx b/.history/components/customer/Header_20220529160901.tsx new file mode 100644 index 0000000..ada249a --- /dev/null +++ b/.history/components/customer/Header_20220529160901.tsx @@ -0,0 +1,85 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { if(window.innerWidth < 800) { +

Корзина

+ } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160903.tsx b/.history/components/customer/Header_20220529160903.tsx new file mode 100644 index 0000000..5c46bfa --- /dev/null +++ b/.history/components/customer/Header_20220529160903.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { if(window.innerWidth < 800) { +

Корзина

+ } + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160906.tsx b/.history/components/customer/Header_20220529160906.tsx new file mode 100644 index 0000000..a7b8a93 --- /dev/null +++ b/.history/components/customer/Header_20220529160906.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { if(window.innerWidth < 800) { +

Корзина

+ } + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160908.tsx b/.history/components/customer/Header_20220529160908.tsx new file mode 100644 index 0000000..bb1e874 --- /dev/null +++ b/.history/components/customer/Header_20220529160908.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth < 800) { +

Корзина

+ } + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160909.tsx b/.history/components/customer/Header_20220529160909.tsx new file mode 100644 index 0000000..ead2f98 --- /dev/null +++ b/.history/components/customer/Header_20220529160909.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth < 800) { +

Корзина

+ } + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160914.tsx b/.history/components/customer/Header_20220529160914.tsx new file mode 100644 index 0000000..b3870ab --- /dev/null +++ b/.history/components/customer/Header_20220529160914.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth < 800 +

Корзина

+ } + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160916.tsx b/.history/components/customer/Header_20220529160916.tsx new file mode 100644 index 0000000..6a46f98 --- /dev/null +++ b/.history/components/customer/Header_20220529160916.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth < 800 ? +

Корзина

+ } + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160917.tsx b/.history/components/customer/Header_20220529160917.tsx new file mode 100644 index 0000000..2c0a78f --- /dev/null +++ b/.history/components/customer/Header_20220529160917.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth < 800 ? +

Корзина

+ } + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160920.tsx b/.history/components/customer/Header_20220529160920.tsx new file mode 100644 index 0000000..1a749aa --- /dev/null +++ b/.history/components/customer/Header_20220529160920.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth < 800 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160923.tsx b/.history/components/customer/Header_20220529160923.tsx new file mode 100644 index 0000000..dd2bcfc --- /dev/null +++ b/.history/components/customer/Header_20220529160923.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth < 800 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160931.tsx b/.history/components/customer/Header_20220529160931.tsx new file mode 100644 index 0000000..7d0a923 --- /dev/null +++ b/.history/components/customer/Header_20220529160931.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth > 800 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529160934.tsx b/.history/components/customer/Header_20220529160934.tsx new file mode 100644 index 0000000..2f7260b --- /dev/null +++ b/.history/components/customer/Header_20220529160934.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth > 640 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161109.tsx b/.history/components/customer/Header_20220529161109.tsx new file mode 100644 index 0000000..df5cfd4 --- /dev/null +++ b/.history/components/customer/Header_20220529161109.tsx @@ -0,0 +1,94 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +function getWindowDimensions() { + const { innerWidth: width, innerHeight: height } = window; + return { + width, + height + }; +} + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth > 640 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161125.tsx b/.history/components/customer/Header_20220529161125.tsx new file mode 100644 index 0000000..6b48f00 --- /dev/null +++ b/.history/components/customer/Header_20220529161125.tsx @@ -0,0 +1,95 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +function getWindowDimensions() { + const { innerWidth: width, innerHeight: height } = window; + return { + width, + height + }; +} + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth > 640 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161127.tsx b/.history/components/customer/Header_20220529161127.tsx new file mode 100644 index 0000000..ab3ddd7 --- /dev/null +++ b/.history/components/customer/Header_20220529161127.tsx @@ -0,0 +1,107 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +function getWindowDimensions() { + const { innerWidth: width, innerHeight: height } = window; + return { + width, + height + }; +} + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions()); + + useEffect(() => { + function handleResize() { + setWindowDimensions(getWindowDimensions()); + } + + window.addEventListener('resize', handleResize); + return () => window.removeEventListener('resize', handleResize); + }, []); + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth > 640 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161142.tsx b/.history/components/customer/Header_20220529161142.tsx new file mode 100644 index 0000000..5db4211 --- /dev/null +++ b/.history/components/customer/Header_20220529161142.tsx @@ -0,0 +1,107 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +function getWindowDimensions() { + const { innerWidth: width, innerHeight: height } = window; + return { + width, + height + }; +} + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions()); + + useEffect(() => { + function handleResize() { + setWindowDimensions(getWindowDimensions()); + } + + window.addEventListener('resize', handleResize); + return () => window.removeEventListener('resize', handleResize); + }, []); + +con + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth > 640 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161147.tsx b/.history/components/customer/Header_20220529161147.tsx new file mode 100644 index 0000000..2e8fe34 --- /dev/null +++ b/.history/components/customer/Header_20220529161147.tsx @@ -0,0 +1,107 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +function getWindowDimensions() { + const { innerWidth: width, innerHeight: height } = window; + return { + width, + height + }; +} + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions()); + + useEffect(() => { + function handleResize() { + setWindowDimensions(getWindowDimensions()); + } + + window.addEventListener('resize', handleResize); + return () => window.removeEventListener('resize', handleResize); + }, []); + +console.log(windowDimensions); + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + { window.innerWidth > 640 ? +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161203.tsx b/.history/components/customer/Header_20220529161203.tsx new file mode 100644 index 0000000..1952c0e --- /dev/null +++ b/.history/components/customer/Header_20220529161203.tsx @@ -0,0 +1,107 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +function getWindowDimensions() { + const { innerWidth: width, innerHeight: height } = window; + return { + width, + height + }; +} + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions()); + + useEffect(() => { + function handleResize() { + setWindowDimensions(getWindowDimensions()); + } + + window.addEventListener('resize', handleResize); + return () => window.removeEventListener('resize', handleResize); + }, []); + +console.log(windowDimensions); + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> + +

Корзина

+ : '' + } +
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161210.tsx b/.history/components/customer/Header_20220529161210.tsx new file mode 100644 index 0000000..29b619d --- /dev/null +++ b/.history/components/customer/Header_20220529161210.tsx @@ -0,0 +1,104 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + +function getWindowDimensions() { + const { innerWidth: width, innerHeight: height } = window; + return { + width, + height + }; +} + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions()); + + useEffect(() => { + function handleResize() { + setWindowDimensions(getWindowDimensions()); + } + + window.addEventListener('resize', handleResize); + return () => window.removeEventListener('resize', handleResize); + }, []); + +console.log(windowDimensions); + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161333.tsx b/.history/components/customer/Header_20220529161333.tsx new file mode 100644 index 0000000..e718dcb --- /dev/null +++ b/.history/components/customer/Header_20220529161333.tsx @@ -0,0 +1,97 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions()); + + useEffect(() => { + function handleResize() { + setWindowDimensions(getWindowDimensions()); + } + + window.addEventListener('resize', handleResize); + return () => window.removeEventListener('resize', handleResize); + }, []); + +console.log(windowDimensions); + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161339.tsx b/.history/components/customer/Header_20220529161339.tsx new file mode 100644 index 0000000..6f45d3c --- /dev/null +++ b/.history/components/customer/Header_20220529161339.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161341.tsx b/.history/components/customer/Header_20220529161341.tsx new file mode 100644 index 0000000..6f45d3c --- /dev/null +++ b/.history/components/customer/Header_20220529161341.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + //React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161431.tsx b/.history/components/customer/Header_20220529161431.tsx new file mode 100644 index 0000000..503a070 --- /dev/null +++ b/.history/components/customer/Header_20220529161431.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161434.tsx b/.history/components/customer/Header_20220529161434.tsx new file mode 100644 index 0000000..782049b --- /dev/null +++ b/.history/components/customer/Header_20220529161434.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + }, [items]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161436.tsx b/.history/components/customer/Header_20220529161436.tsx new file mode 100644 index 0000000..d63f56a --- /dev/null +++ b/.history/components/customer/Header_20220529161436.tsx @@ -0,0 +1,86 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161440.tsx b/.history/components/customer/Header_20220529161440.tsx new file mode 100644 index 0000000..a6c93e0 --- /dev/null +++ b/.history/components/customer/Header_20220529161440.tsx @@ -0,0 +1,88 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth +const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161443.tsx b/.history/components/customer/Header_20220529161443.tsx new file mode 100644 index 0000000..13f40f5 --- /dev/null +++ b/.history/components/customer/Header_20220529161443.tsx @@ -0,0 +1,88 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161447.tsx b/.history/components/customer/Header_20220529161447.tsx new file mode 100644 index 0000000..2b991cc --- /dev/null +++ b/.history/components/customer/Header_20220529161447.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + }, [1]); + + con + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161450.tsx b/.history/components/customer/Header_20220529161450.tsx new file mode 100644 index 0000000..7537893 --- /dev/null +++ b/.history/components/customer/Header_20220529161450.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + }, [1]); + + console.log(); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161454.tsx b/.history/components/customer/Header_20220529161454.tsx new file mode 100644 index 0000000..f0b9818 --- /dev/null +++ b/.history/components/customer/Header_20220529161454.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + }, [1]); + + console.log(pageWidth); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161500.tsx b/.history/components/customer/Header_20220529161500.tsx new file mode 100644 index 0000000..9cfc51e --- /dev/null +++ b/.history/components/customer/Header_20220529161500.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161502.tsx b/.history/components/customer/Header_20220529161502.tsx new file mode 100644 index 0000000..7250a93 --- /dev/null +++ b/.history/components/customer/Header_20220529161502.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161512.tsx b/.history/components/customer/Header_20220529161512.tsx new file mode 100644 index 0000000..a252458 --- /dev/null +++ b/.history/components/customer/Header_20220529161512.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth); + console.log(pageWidth); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161516.tsx b/.history/components/customer/Header_20220529161516.tsx new file mode 100644 index 0000000..3221fa4 --- /dev/null +++ b/.history/components/customer/Header_20220529161516.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth); + console.log(pageHeight); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161519.tsx b/.history/components/customer/Header_20220529161519.tsx new file mode 100644 index 0000000..4fc325d --- /dev/null +++ b/.history/components/customer/Header_20220529161519.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth); + console.log(pageHeight, ); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161521.tsx b/.history/components/customer/Header_20220529161521.tsx new file mode 100644 index 0000000..1f423f8 --- /dev/null +++ b/.history/components/customer/Header_20220529161521.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161532.tsx b/.history/components/customer/Header_20220529161532.tsx new file mode 100644 index 0000000..bdf6cd7 --- /dev/null +++ b/.history/components/customer/Header_20220529161532.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, pageWidth); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161537.tsx b/.history/components/customer/Header_20220529161537.tsx new file mode 100644 index 0000000..7ef5e12 --- /dev/null +++ b/.history/components/customer/Header_20220529161537.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161539.tsx b/.history/components/customer/Header_20220529161539.tsx new file mode 100644 index 0000000..4d75096 --- /dev/null +++ b/.history/components/customer/Header_20220529161539.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.scrollWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161645.tsx b/.history/components/customer/Header_20220529161645.tsx new file mode 100644 index 0000000..2dd6d91 --- /dev/null +++ b/.history/components/customer/Header_20220529161645.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement. window.outerWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161648.tsx b/.history/components/customer/Header_20220529161648.tsx new file mode 100644 index 0000000..8f15acf --- /dev/null +++ b/.history/components/customer/Header_20220529161648.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.outerWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161706.tsx b/.history/components/customer/Header_20220529161706.tsx new file mode 100644 index 0000000..f253428 --- /dev/null +++ b/.history/components/customer/Header_20220529161706.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220529161714.tsx b/.history/components/customer/Header_20220529161714.tsx new file mode 100644 index 0000000..0310304 --- /dev/null +++ b/.history/components/customer/Header_20220529161714.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.clientHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165226.tsx b/.history/components/customer/Header_20220530165226.tsx new file mode 100644 index 0000000..d9c10c1 --- /dev/null +++ b/.history/components/customer/Header_20220530165226.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.clientHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165229.tsx b/.history/components/customer/Header_20220530165229.tsx new file mode 100644 index 0000000..2dde355 --- /dev/null +++ b/.history/components/customer/Header_20220530165229.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.clientHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+
+ +
+
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165233.tsx b/.history/components/customer/Header_20220530165233.tsx new file mode 100644 index 0000000..8aa5349 --- /dev/null +++ b/.history/components/customer/Header_20220530165233.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.clientHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+
+ +
+
+
+ + updateDataHeader()} + /> + + +
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165236.tsx b/.history/components/customer/Header_20220530165236.tsx new file mode 100644 index 0000000..e595d10 --- /dev/null +++ b/.history/components/customer/Header_20220530165236.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.clientHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+
+ +
+
+
+ + updateDataHeader()} + /> + + +
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220530165237.tsx b/.history/components/customer/Header_20220530165237.tsx new file mode 100644 index 0000000..e595d10 --- /dev/null +++ b/.history/components/customer/Header_20220530165237.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.clientHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+
+ +
+
+
+ + updateDataHeader()} + /> + + +
+
+
+ +
+
+ ); +}; diff --git a/.history/components/customer/Header_20220530165443.tsx b/.history/components/customer/Header_20220530165443.tsx new file mode 100644 index 0000000..0310304 --- /dev/null +++ b/.history/components/customer/Header_20220530165443.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.clientHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165447.tsx b/.history/components/customer/Header_20220530165447.tsx new file mode 100644 index 0000000..f253428 --- /dev/null +++ b/.history/components/customer/Header_20220530165447.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + const pageWidth = document.documentElement.clientWidth + const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + console.log(pageWidth, 'pageWidth'); + console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165455.tsx b/.history/components/customer/Header_20220530165455.tsx new file mode 100644 index 0000000..56ea99c --- /dev/null +++ b/.history/components/customer/Header_20220530165455.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165511.tsx b/.history/components/customer/Header_20220530165511.tsx new file mode 100644 index 0000000..69cdea7 --- /dev/null +++ b/.history/components/customer/Header_20220530165511.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165514.tsx b/.history/components/customer/Header_20220530165514.tsx new file mode 100644 index 0000000..5681907 --- /dev/null +++ b/.history/components/customer/Header_20220530165514.tsx @@ -0,0 +1,92 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165521.tsx b/.history/components/customer/Header_20220530165521.tsx new file mode 100644 index 0000000..2f7b56b --- /dev/null +++ b/.history/components/customer/Header_20220530165521.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165524.tsx b/.history/components/customer/Header_20220530165524.tsx new file mode 100644 index 0000000..6979ed8 --- /dev/null +++ b/.history/components/customer/Header_20220530165524.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530165529.tsx b/.history/components/customer/Header_20220530165529.tsx new file mode 100644 index 0000000..6979ed8 --- /dev/null +++ b/.history/components/customer/Header_20220530165529.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175306.tsx b/.history/components/customer/Header_20220530175306.tsx new file mode 100644 index 0000000..a5d3f90 --- /dev/null +++ b/.history/components/customer/Header_20220530175306.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175315.tsx b/.history/components/customer/Header_20220530175315.tsx new file mode 100644 index 0000000..40e81ff --- /dev/null +++ b/.history/components/customer/Header_20220530175315.tsx @@ -0,0 +1,88 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175916.tsx b/.history/components/customer/Header_20220530175916.tsx new file mode 100644 index 0000000..54a4d37 --- /dev/null +++ b/.history/components/customer/Header_20220530175916.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175929.tsx b/.history/components/customer/Header_20220530175929.tsx new file mode 100644 index 0000000..a123c99 --- /dev/null +++ b/.history/components/customer/Header_20220530175929.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175933.tsx b/.history/components/customer/Header_20220530175933.tsx new file mode 100644 index 0000000..5b7d388 --- /dev/null +++ b/.history/components/customer/Header_20220530175933.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175935.tsx b/.history/components/customer/Header_20220530175935.tsx new file mode 100644 index 0000000..54a4d37 --- /dev/null +++ b/.history/components/customer/Header_20220530175935.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175936.tsx b/.history/components/customer/Header_20220530175936.tsx new file mode 100644 index 0000000..288fa86 --- /dev/null +++ b/.history/components/customer/Header_20220530175936.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175948.tsx b/.history/components/customer/Header_20220530175948.tsx new file mode 100644 index 0000000..dd9d29f --- /dev/null +++ b/.history/components/customer/Header_20220530175948.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175953.tsx b/.history/components/customer/Header_20220530175953.tsx new file mode 100644 index 0000000..2730b25 --- /dev/null +++ b/.history/components/customer/Header_20220530175953.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530175958.tsx b/.history/components/customer/Header_20220530175958.tsx new file mode 100644 index 0000000..54a4d37 --- /dev/null +++ b/.history/components/customer/Header_20220530175958.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180000.tsx b/.history/components/customer/Header_20220530180000.tsx new file mode 100644 index 0000000..6f471f8 --- /dev/null +++ b/.history/components/customer/Header_20220530180000.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180002.tsx b/.history/components/customer/Header_20220530180002.tsx new file mode 100644 index 0000000..54a4d37 --- /dev/null +++ b/.history/components/customer/Header_20220530180002.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180003.tsx b/.history/components/customer/Header_20220530180003.tsx new file mode 100644 index 0000000..6a9efaf --- /dev/null +++ b/.history/components/customer/Header_20220530180003.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180005.tsx b/.history/components/customer/Header_20220530180005.tsx new file mode 100644 index 0000000..54a4d37 --- /dev/null +++ b/.history/components/customer/Header_20220530180005.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180008.tsx b/.history/components/customer/Header_20220530180008.tsx new file mode 100644 index 0000000..b120db6 --- /dev/null +++ b/.history/components/customer/Header_20220530180008.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180010.tsx b/.history/components/customer/Header_20220530180010.tsx new file mode 100644 index 0000000..54a4d37 --- /dev/null +++ b/.history/components/customer/Header_20220530180010.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180106.tsx b/.history/components/customer/Header_20220530180106.tsx new file mode 100644 index 0000000..9439306 --- /dev/null +++ b/.history/components/customer/Header_20220530180106.tsx @@ -0,0 +1,83 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180109.tsx b/.history/components/customer/Header_20220530180109.tsx new file mode 100644 index 0000000..54a4d37 --- /dev/null +++ b/.history/components/customer/Header_20220530180109.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180112.tsx b/.history/components/customer/Header_20220530180112.tsx new file mode 100644 index 0000000..2898ea6 --- /dev/null +++ b/.history/components/customer/Header_20220530180112.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180114.tsx b/.history/components/customer/Header_20220530180114.tsx new file mode 100644 index 0000000..54a4d37 --- /dev/null +++ b/.history/components/customer/Header_20220530180114.tsx @@ -0,0 +1,87 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ +
+
+ + updateDataHeader()} + /> +

Корзина

+
+
+
+ +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180224.tsx b/.history/components/customer/Header_20220530180224.tsx new file mode 100644 index 0000000..1ebf788 --- /dev/null +++ b/.history/components/customer/Header_20220530180224.tsx @@ -0,0 +1,88 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180226.tsx b/.history/components/customer/Header_20220530180226.tsx new file mode 100644 index 0000000..f15aac9 --- /dev/null +++ b/.history/components/customer/Header_20220530180226.tsx @@ -0,0 +1,88 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180228.tsx b/.history/components/customer/Header_20220530180228.tsx new file mode 100644 index 0000000..1ea1808 --- /dev/null +++ b/.history/components/customer/Header_20220530180228.tsx @@ -0,0 +1,88 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180229.tsx b/.history/components/customer/Header_20220530180229.tsx new file mode 100644 index 0000000..4887b43 --- /dev/null +++ b/.history/components/customer/Header_20220530180229.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180231.tsx b/.history/components/customer/Header_20220530180231.tsx new file mode 100644 index 0000000..f54327a --- /dev/null +++ b/.history/components/customer/Header_20220530180231.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180234.tsx b/.history/components/customer/Header_20220530180234.tsx new file mode 100644 index 0000000..9c8cc23 --- /dev/null +++ b/.history/components/customer/Header_20220530180234.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180244.tsx b/.history/components/customer/Header_20220530180244.tsx new file mode 100644 index 0000000..4eb61ad --- /dev/null +++ b/.history/components/customer/Header_20220530180244.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180245.tsx b/.history/components/customer/Header_20220530180245.tsx new file mode 100644 index 0000000..20c1bed --- /dev/null +++ b/.history/components/customer/Header_20220530180245.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180248.tsx b/.history/components/customer/Header_20220530180248.tsx new file mode 100644 index 0000000..4eb61ad --- /dev/null +++ b/.history/components/customer/Header_20220530180248.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530180249.tsx b/.history/components/customer/Header_20220530180249.tsx new file mode 100644 index 0000000..9c8cc23 --- /dev/null +++ b/.history/components/customer/Header_20220530180249.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530182258.tsx b/.history/components/customer/Header_20220530182258.tsx new file mode 100644 index 0000000..f54e98e --- /dev/null +++ b/.history/components/customer/Header_20220530182258.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530182300.tsx b/.history/components/customer/Header_20220530182300.tsx new file mode 100644 index 0000000..04ad2dd --- /dev/null +++ b/.history/components/customer/Header_20220530182300.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530182302.tsx b/.history/components/customer/Header_20220530182302.tsx new file mode 100644 index 0000000..9c6c857 --- /dev/null +++ b/.history/components/customer/Header_20220530182302.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530182724.tsx b/.history/components/customer/Header_20220530182724.tsx new file mode 100644 index 0000000..0181c8c --- /dev/null +++ b/.history/components/customer/Header_20220530182724.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530182729.tsx b/.history/components/customer/Header_20220530182729.tsx new file mode 100644 index 0000000..338a9f6 --- /dev/null +++ b/.history/components/customer/Header_20220530182729.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530182732.tsx b/.history/components/customer/Header_20220530182732.tsx new file mode 100644 index 0000000..cfd554f --- /dev/null +++ b/.history/components/customer/Header_20220530182732.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530182733.tsx b/.history/components/customer/Header_20220530182733.tsx new file mode 100644 index 0000000..cfd554f --- /dev/null +++ b/.history/components/customer/Header_20220530182733.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530183415.tsx b/.history/components/customer/Header_20220530183415.tsx new file mode 100644 index 0000000..dd04200 --- /dev/null +++ b/.history/components/customer/Header_20220530183415.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530183817.tsx b/.history/components/customer/Header_20220530183817.tsx new file mode 100644 index 0000000..6a4cb5c --- /dev/null +++ b/.history/components/customer/Header_20220530183817.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530183822.tsx b/.history/components/customer/Header_20220530183822.tsx new file mode 100644 index 0000000..0cfa7a5 --- /dev/null +++ b/.history/components/customer/Header_20220530183822.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Header_20220530183823.tsx b/.history/components/customer/Header_20220530183823.tsx new file mode 100644 index 0000000..0cfa7a5 --- /dev/null +++ b/.history/components/customer/Header_20220530183823.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
+
+

Logo

+
+
+
+ + +
+
+ + + +
+ ); +}; diff --git a/.history/components/customer/Pages/Index/block/Description/Description_20220530190937.tsx b/.history/components/customer/Pages/Index/block/Description/Description_20220530190937.tsx new file mode 100644 index 0000000..97edca8 --- /dev/null +++ b/.history/components/customer/Pages/Index/block/Description/Description_20220530190937.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
+

Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
+ Pizza - отличный выход для любой из этих ситуаций.

+

Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

+
+ + Минимальная стоимость зааза для доставки от 599 рублей + +
+ +
+ Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
+ + +
+

Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

+

+ Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

+
+ Доставим заказ до 35 минут +
+
+ ) +} \ No newline at end of file diff --git a/.history/components/customer/Pages/Index/block/Description/Description_20220531162101.tsx b/.history/components/customer/Pages/Index/block/Description/Description_20220531162101.tsx new file mode 100644 index 0000000..d933201 --- /dev/null +++ b/.history/components/customer/Pages/Index/block/Description/Description_20220531162101.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../../../containers' +import { PictureText } from '../../../../../UI' + +export const Description: React.FC = () => { + return( + + +
+

Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
+ Pizza - отличный выход для любой из этих ситуаций.

+

Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

+
+ + Минимальная стоимость зааза для доставки от 599 рублей + +
+ +
+ Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
+ + +
+

Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

+

+ Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

+
+ Доставим заказ до 35 минут +
+
+ ) +} \ No newline at end of file diff --git a/.history/components/customer/Pages/Index/block/Pizza/Pizza_20220529151345.tsx b/.history/components/customer/Pages/Index/block/Pizza/Pizza_20220529151345.tsx new file mode 100644 index 0000000..dfe53cb --- /dev/null +++ b/.history/components/customer/Pages/Index/block/Pizza/Pizza_20220529151345.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/Pages/Index/block/Pizza/Pizza_20220531162101.tsx b/.history/components/customer/Pages/Index/block/Pizza/Pizza_20220531162101.tsx new file mode 100644 index 0000000..0bb4113 --- /dev/null +++ b/.history/components/customer/Pages/Index/block/Pizza/Pizza_20220531162101.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Categories/Categories_20220528175029.tsx b/.history/components/customer/block/Categories/Categories_20220528175029.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Categories/Categories_20220528175234.tsx b/.history/components/customer/block/Categories/Categories_20220528175234.tsx new file mode 100644 index 0000000..001a1b4 --- /dev/null +++ b/.history/components/customer/block/Categories/Categories_20220528175234.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + id: number; + color: string; + title_one: string; + title_two: string; + img: string; + sale: string; + }; + + export const Stock: React.FC = ({color, title_one, title_two, img, sale}) => { + return( +
    +
    +

    {title_one}

    +

    {title_two}

    +
    +
    +
    +

    {sale}

    +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Categories/Categories_20220528175311.tsx b/.history/components/customer/block/Categories/Categories_20220528175311.tsx new file mode 100644 index 0000000..cf0608c --- /dev/null +++ b/.history/components/customer/block/Categories/Categories_20220528175311.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + id: number; + color: string; + title_one: string; + title_two: string; + img: string; + sale: string; + }; + + export const CategoriesCard: React.FC = ({color, title_one, title_two, img, sale}) => { + return( + export const CategoriesCard: React.FC = ({color, title_one, title_two, img, sale}) => { + + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Categories/Categories_20220528175856.tsx b/.history/components/customer/block/Categories/Categories_20220528175856.tsx new file mode 100644 index 0000000..4bc6ccb --- /dev/null +++ b/.history/components/customer/block/Categories/Categories_20220528175856.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + id: number; + color: string; + title_one: string; + title_two: string; + img: string; + sale: string; + }; + + export const CategoriesCard: React.FC = ({color, title_one, title_two, img, sale}) => { + return( + {rows.name} + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Categories/Categories_20220528224149.tsx b/.history/components/customer/block/Categories/Categories_20220528224149.tsx new file mode 100644 index 0000000..7f8fc42 --- /dev/null +++ b/.history/components/customer/block/Categories/Categories_20220528224149.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + type: string; + title: string; + }; + + export const CategoriesCard: React.FC = ({type, title}) => { + return( + {title} + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Categories/Categories_20220528224224.tsx b/.history/components/customer/block/Categories/Categories_20220528224224.tsx new file mode 100644 index 0000000..055350b --- /dev/null +++ b/.history/components/customer/block/Categories/Categories_20220528224224.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + type: string; + title: string; + }; + + export const CategoriesCard: React.FC = ({type, title}) => { + return( + {title} + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Categories/Categories_20220528224233.tsx b/.history/components/customer/block/Categories/Categories_20220528224233.tsx new file mode 100644 index 0000000..9f19a2a --- /dev/null +++ b/.history/components/customer/block/Categories/Categories_20220528224233.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + type: string; + title: string; + }; + + export const CategoriesCard: React.FC = ({type, title}) => { + return( + {title} + + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Categories/Categories_20220528224355.tsx b/.history/components/customer/block/Categories/Categories_20220528224355.tsx new file mode 100644 index 0000000..9c78026 --- /dev/null +++ b/.history/components/customer/block/Categories/Categories_20220528224355.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + type: string; + title: string; + }; + + export const CategoriesButton: React.FC = ({type, title}) => { + return( + {title} + + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Categories/Categories_20220528230021.tsx b/.history/components/customer/block/Categories/Categories_20220528230021.tsx new file mode 100644 index 0000000..736cbdd --- /dev/null +++ b/.history/components/customer/block/Categories/Categories_20220528230021.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import classNames from 'classnames'; + +type Props = { + type: string; + name: string; + }; + + export const CategoriesButton: React.FC = ({type, name}) => { + return( + {name} + + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Categories/Skeleton_20220528175037.tsx b/.history/components/customer/block/Categories/Skeleton_20220528175037.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Categories/Skeleton_20220528175118.tsx b/.history/components/customer/block/Categories/Skeleton_20220528175118.tsx new file mode 100644 index 0000000..ab9517c --- /dev/null +++ b/.history/components/customer/block/Categories/Skeleton_20220528175118.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const CategoriesSkeleton = () => ( + + + +); diff --git a/.history/components/customer/block/Categories/Skeleton_20220528234710.tsx b/.history/components/customer/block/Categories/Skeleton_20220528234710.tsx new file mode 100644 index 0000000..58659e9 --- /dev/null +++ b/.history/components/customer/block/Categories/Skeleton_20220528234710.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const CategoriesSkeleton = () => ( + + + +); diff --git a/.history/components/customer/block/Categories/Skeleton_20220528234713.tsx b/.history/components/customer/block/Categories/Skeleton_20220528234713.tsx new file mode 100644 index 0000000..a7dd184 --- /dev/null +++ b/.history/components/customer/block/Categories/Skeleton_20220528234713.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const CategoriesSkeleton = () => ( + + + +); diff --git a/.history/components/customer/block/Categories/Skeleton_20220528234717.tsx b/.history/components/customer/block/Categories/Skeleton_20220528234717.tsx new file mode 100644 index 0000000..c3aa778 --- /dev/null +++ b/.history/components/customer/block/Categories/Skeleton_20220528234717.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const CategoriesSkeleton = () => ( + + + +); diff --git a/.history/components/customer/block/Categories/Skeleton_20220528234719.tsx b/.history/components/customer/block/Categories/Skeleton_20220528234719.tsx new file mode 100644 index 0000000..df1b9b3 --- /dev/null +++ b/.history/components/customer/block/Categories/Skeleton_20220528234719.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const CategoriesSkeleton = () => ( + + + +); diff --git a/.history/components/customer/block/Categories/Skeleton_20220528234723.tsx b/.history/components/customer/block/Categories/Skeleton_20220528234723.tsx new file mode 100644 index 0000000..b51436c --- /dev/null +++ b/.history/components/customer/block/Categories/Skeleton_20220528234723.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const CategoriesSkeleton = () => ( + + + +); diff --git a/.history/components/customer/block/Categories/Skeleton_20220528234725.tsx b/.history/components/customer/block/Categories/Skeleton_20220528234725.tsx new file mode 100644 index 0000000..ce479bf --- /dev/null +++ b/.history/components/customer/block/Categories/Skeleton_20220528234725.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const CategoriesSkeleton = () => ( + + + +); diff --git a/.history/components/customer/block/Categories/Skeleton_20220528235052.tsx b/.history/components/customer/block/Categories/Skeleton_20220528235052.tsx new file mode 100644 index 0000000..5ec378b --- /dev/null +++ b/.history/components/customer/block/Categories/Skeleton_20220528235052.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const CategoriesSkeleton = () => ( + + + +); diff --git a/.history/components/customer/block/Categories/index_20220530190145.ts b/.history/components/customer/block/Categories/index_20220530190145.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Categories/index_20220530190154.ts b/.history/components/customer/block/Categories/index_20220530190154.ts new file mode 100644 index 0000000..aa52c18 --- /dev/null +++ b/.history/components/customer/block/Categories/index_20220530190154.ts @@ -0,0 +1 @@ +export * from './Categories' \ No newline at end of file diff --git a/.history/components/customer/block/Categories/index_20220530190157.ts b/.history/components/customer/block/Categories/index_20220530190157.ts new file mode 100644 index 0000000..e80debf --- /dev/null +++ b/.history/components/customer/block/Categories/index_20220530190157.ts @@ -0,0 +1,2 @@ +export * from './Categories' +export * from './Categories' \ No newline at end of file diff --git a/.history/components/customer/block/Categories/index_20220530190201.ts b/.history/components/customer/block/Categories/index_20220530190201.ts new file mode 100644 index 0000000..3b18803 --- /dev/null +++ b/.history/components/customer/block/Categories/index_20220530190201.ts @@ -0,0 +1,2 @@ +export * from './Categories' +export * from './Skeleton' \ No newline at end of file diff --git a/.history/components/customer/block/Categories/index_20220530190202.ts b/.history/components/customer/block/Categories/index_20220530190202.ts new file mode 100644 index 0000000..3b18803 --- /dev/null +++ b/.history/components/customer/block/Categories/index_20220530190202.ts @@ -0,0 +1,2 @@ +export * from './Categories' +export * from './Skeleton' \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160802.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160802.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160828.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160828.tsx new file mode 100644 index 0000000..1a49be4 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160828.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import { Header, Footer, FooterNav } from '../../components/customer/block'; +import { ContainerInside } from '../../components/customer/containers' + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160837.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160837.tsx new file mode 100644 index 0000000..1a608e8 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160837.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import { Header, Footer, FooterNav } from '../../components/customer/block'; +import { ContainerInside } from '../../components/customer/containers' + +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160842.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160842.tsx new file mode 100644 index 0000000..d67ac82 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160842.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160848.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160848.tsx new file mode 100644 index 0000000..3529630 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160848.tsx @@ -0,0 +1,8 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160851.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160851.tsx new file mode 100644 index 0000000..bf54823 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160851.tsx @@ -0,0 +1,8 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( +

    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160901.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160901.tsx new file mode 100644 index 0000000..3db025d --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160901.tsx @@ -0,0 +1,8 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( +

    Зона

    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160904.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160904.tsx new file mode 100644 index 0000000..c774dd9 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160904.tsx @@ -0,0 +1,8 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( +

    Зона доставки

    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160905.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160905.tsx new file mode 100644 index 0000000..1af7982 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160905.tsx @@ -0,0 +1,8 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( +

    Зона доставки пи

    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160908.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160908.tsx new file mode 100644 index 0000000..cbbaa8a --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160908.tsx @@ -0,0 +1,8 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( +

    Зона доставки пиццы

    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160917.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160917.tsx new file mode 100644 index 0000000..1708e79 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160917.tsx @@ -0,0 +1,11 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( +

    Зона доставки пиццы

    + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160922.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160922.tsx new file mode 100644 index 0000000..2dc4721 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160922.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160924.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160924.tsx new file mode 100644 index 0000000..68c41e0 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160924.tsx @@ -0,0 +1,12 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160927.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160927.tsx new file mode 100644 index 0000000..3304d33 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160927.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160929.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160929.tsx new file mode 100644 index 0000000..d20107c --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160929.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160933.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160933.tsx new file mode 100644 index 0000000..fb97c6e --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160933.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160934.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160934.tsx new file mode 100644 index 0000000..ab14af9 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160934.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160935.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160935.tsx new file mode 100644 index 0000000..eb6ddfa --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160935.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160937.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160937.tsx new file mode 100644 index 0000000..eb6ddfa --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531160937.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161030.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161030.tsx new file mode 100644 index 0000000..6055ccc --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161030.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({children}) => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161031.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161031.tsx new file mode 100644 index 0000000..2c521a7 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161031.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = ({}) => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161032.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161032.tsx new file mode 100644 index 0000000..ec217f5 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161032.tsx @@ -0,0 +1,13 @@ +import React from 'react'; +type Props = { children: React.ReactNode }; + +export const DeliveryArea: React.FC = () => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161035.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161035.tsx new file mode 100644 index 0000000..27a63bd --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161035.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +export const DeliveryArea: React.FC = () => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161359.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161359.tsx new file mode 100644 index 0000000..ecb66cd --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161359.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +export const DeliveryArea: React.FC = () => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161402.tsx b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161402.tsx new file mode 100644 index 0000000..ecb66cd --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/DeliveryArea_20220531161402.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +export const DeliveryArea: React.FC = () => { + return ( + <> +

    Зона доставки пиццы

    + + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/index_20220531160748.ts b/.history/components/customer/block/DeliveryArea/index_20220531160748.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/DeliveryArea/index_20220531160812.ts b/.history/components/customer/block/DeliveryArea/index_20220531160812.ts new file mode 100644 index 0000000..4d21243 --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/index_20220531160812.ts @@ -0,0 +1 @@ +exp \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/index_20220531160819.ts b/.history/components/customer/block/DeliveryArea/index_20220531160819.ts new file mode 100644 index 0000000..5a3bf3c --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/index_20220531160819.ts @@ -0,0 +1 @@ +export * from './DeliveryArea' \ No newline at end of file diff --git a/.history/components/customer/block/DeliveryArea/index_20220531160820.ts b/.history/components/customer/block/DeliveryArea/index_20220531160820.ts new file mode 100644 index 0000000..5a3bf3c --- /dev/null +++ b/.history/components/customer/block/DeliveryArea/index_20220531160820.ts @@ -0,0 +1 @@ +export * from './DeliveryArea' \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184318.tsx b/.history/components/customer/block/Description/Description_20220530184318.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Description/Description_20220530184328.tsx b/.history/components/customer/block/Description/Description_20220530184328.tsx new file mode 100644 index 0000000..c35bf2c --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184328.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184337.tsx b/.history/components/customer/block/Description/Description_20220530184337.tsx new file mode 100644 index 0000000..1e6c664 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184337.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Description: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184343.tsx b/.history/components/customer/block/Description/Description_20220530184343.tsx new file mode 100644 index 0000000..335bb3e --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184343.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Description: React.FC = () => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184345.tsx b/.history/components/customer/block/Description/Description_20220530184345.tsx new file mode 100644 index 0000000..a86cbbf --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184345.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Description: React.FC = () => { + return( +
    +
    +
      + +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184348.tsx b/.history/components/customer/block/Description/Description_20220530184348.tsx new file mode 100644 index 0000000..7d11e00 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184348.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Description: React.FC = () => { + return( +
    +
    +
      + +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184349.tsx b/.history/components/customer/block/Description/Description_20220530184349.tsx new file mode 100644 index 0000000..7d11e00 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184349.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Description: React.FC = () => { + return( +
    +
    +
      + +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184402.tsx b/.history/components/customer/block/Description/Description_20220530184402.tsx new file mode 100644 index 0000000..d1cb1c5 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184402.tsx @@ -0,0 +1,42 @@ +import React from 'react'; + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184410.tsx b/.history/components/customer/block/Description/Description_20220530184410.tsx new file mode 100644 index 0000000..93f994a --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184410.tsx @@ -0,0 +1,40 @@ +import React from 'react'; + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184951.tsx b/.history/components/customer/block/Description/Description_20220530184951.tsx new file mode 100644 index 0000000..81d49b8 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184951.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184955.tsx b/.history/components/customer/block/Description/Description_20220530184955.tsx new file mode 100644 index 0000000..ce629ba --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184955.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { ContainerTitle} + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530184959.tsx b/.history/components/customer/block/Description/Description_20220530184959.tsx new file mode 100644 index 0000000..1cfa8d3 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530184959.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { ContainerTitle } form './' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185002.tsx b/.history/components/customer/block/Description/Description_20220530185002.tsx new file mode 100644 index 0000000..c3847a4 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185002.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { ContainerTitle } from './' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185007.tsx b/.history/components/customer/block/Description/Description_20220530185007.tsx new file mode 100644 index 0000000..b3a3b84 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185007.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { ContainerTitle } from '../' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185012.tsx b/.history/components/customer/block/Description/Description_20220530185012.tsx new file mode 100644 index 0000000..3dc4409 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185012.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { ContainerTitle } from '../../' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185014.tsx b/.history/components/customer/block/Description/Description_20220530185014.tsx new file mode 100644 index 0000000..57636d8 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185014.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { ContainerTitle } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185020.tsx b/.history/components/customer/block/Description/Description_20220530185020.tsx new file mode 100644 index 0000000..33e3e54 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185020.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { ContainerTitle } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185031.tsx b/.history/components/customer/block/Description/Description_20220530185031.tsx new file mode 100644 index 0000000..f3d9179 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185031.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { ContainerTitle } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185145.tsx b/.history/components/customer/block/Description/Description_20220530185145.tsx new file mode 100644 index 0000000..b3a354f --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185145.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185400.tsx b/.history/components/customer/block/Description/Description_20220530185400.tsx new file mode 100644 index 0000000..21539ea --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185400.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185405.tsx b/.history/components/customer/block/Description/Description_20220530185405.tsx new file mode 100644 index 0000000..743136a --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185405.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185407.tsx b/.history/components/customer/block/Description/Description_20220530185407.tsx new file mode 100644 index 0000000..c5bebb8 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185407.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185409.tsx b/.history/components/customer/block/Description/Description_20220530185409.tsx new file mode 100644 index 0000000..63efe82 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185409.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185411.tsx b/.history/components/customer/block/Description/Description_20220530185411.tsx new file mode 100644 index 0000000..35d4ae3 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185411.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185415.tsx b/.history/components/customer/block/Description/Description_20220530185415.tsx new file mode 100644 index 0000000..ad5be7a --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185415.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185417.tsx b/.history/components/customer/block/Description/Description_20220530185417.tsx new file mode 100644 index 0000000..3b6144b --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185417.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185425.tsx b/.history/components/customer/block/Description/Description_20220530185425.tsx new file mode 100644 index 0000000..5b6574a --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185425.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185427.tsx b/.history/components/customer/block/Description/Description_20220530185427.tsx new file mode 100644 index 0000000..a107367 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185427.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185428.tsx b/.history/components/customer/block/Description/Description_20220530185428.tsx new file mode 100644 index 0000000..a01922f --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185428.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185434.tsx b/.history/components/customer/block/Description/Description_20220530185434.tsx new file mode 100644 index 0000000..9599a6a --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185434.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185437.tsx b/.history/components/customer/block/Description/Description_20220530185437.tsx new file mode 100644 index 0000000..55ae7ab --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185437.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185440.tsx b/.history/components/customer/block/Description/Description_20220530185440.tsx new file mode 100644 index 0000000..ec7e56d --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185440.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185445.tsx b/.history/components/customer/block/Description/Description_20220530185445.tsx new file mode 100644 index 0000000..ec7e56d --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185445.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185503.tsx b/.history/components/customer/block/Description/Description_20220530185503.tsx new file mode 100644 index 0000000..fb8f614 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185503.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185509.tsx b/.history/components/customer/block/Description/Description_20220530185509.tsx new file mode 100644 index 0000000..340a4f8 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185509.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185515.tsx b/.history/components/customer/block/Description/Description_20220530185515.tsx new file mode 100644 index 0000000..94fea8c --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185515.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185517.tsx b/.history/components/customer/block/Description/Description_20220530185517.tsx new file mode 100644 index 0000000..0aca9d6 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185517.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185518.tsx b/.history/components/customer/block/Description/Description_20220530185518.tsx new file mode 100644 index 0000000..697667e --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185518.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185519.tsx b/.history/components/customer/block/Description/Description_20220530185519.tsx new file mode 100644 index 0000000..6462f03 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185519.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185523.tsx b/.history/components/customer/block/Description/Description_20220530185523.tsx new file mode 100644 index 0000000..e1500cc --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185523.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185525.tsx b/.history/components/customer/block/Description/Description_20220530185525.tsx new file mode 100644 index 0000000..1a05589 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185525.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185527.tsx b/.history/components/customer/block/Description/Description_20220530185527.tsx new file mode 100644 index 0000000..7d2926b --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185527.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185529.tsx b/.history/components/customer/block/Description/Description_20220530185529.tsx new file mode 100644 index 0000000..aa7fb36 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185529.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185531.tsx b/.history/components/customer/block/Description/Description_20220530185531.tsx new file mode 100644 index 0000000..aa7fb36 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185531.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185820.tsx b/.history/components/customer/block/Description/Description_20220530185820.tsx new file mode 100644 index 0000000..fc26339 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185820.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' + + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185821.tsx b/.history/components/customer/block/Description/Description_20220530185821.tsx new file mode 100644 index 0000000..c4e3762 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185821.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +im + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185825.tsx b/.history/components/customer/block/Description/Description_20220530185825.tsx new file mode 100644 index 0000000..4907c78 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185825.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import {} + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185829.tsx b/.history/components/customer/block/Description/Description_20220530185829.tsx new file mode 100644 index 0000000..e69b13a --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185829.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import {PictureText} + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185832.tsx b/.history/components/customer/block/Description/Description_20220530185832.tsx new file mode 100644 index 0000000..e51b787 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185832.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText} + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185838.tsx b/.history/components/customer/block/Description/Description_20220530185838.tsx new file mode 100644 index 0000000..1621fc6 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185838.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185839.tsx b/.history/components/customer/block/Description/Description_20220530185839.tsx new file mode 100644 index 0000000..0674415 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185839.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185844.tsx b/.history/components/customer/block/Description/Description_20220530185844.tsx new file mode 100644 index 0000000..a10227c --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185844.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185846.tsx b/.history/components/customer/block/Description/Description_20220530185846.tsx new file mode 100644 index 0000000..6604555 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185846.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185847.tsx b/.history/components/customer/block/Description/Description_20220530185847.tsx new file mode 100644 index 0000000..6604555 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185847.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185901.tsx b/.history/components/customer/block/Description/Description_20220530185901.tsx new file mode 100644 index 0000000..d67d05b --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185901.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185902.tsx b/.history/components/customer/block/Description/Description_20220530185902.tsx new file mode 100644 index 0000000..bc7d782 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185902.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185905.tsx b/.history/components/customer/block/Description/Description_20220530185905.tsx new file mode 100644 index 0000000..50542de --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185905.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185911.tsx b/.history/components/customer/block/Description/Description_20220530185911.tsx new file mode 100644 index 0000000..6ab6da8 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185911.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185912.tsx b/.history/components/customer/block/Description/Description_20220530185912.tsx new file mode 100644 index 0000000..e1d5555 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185912.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185913.tsx b/.history/components/customer/block/Description/Description_20220530185913.tsx new file mode 100644 index 0000000..474ce4d --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185913.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530185952.tsx b/.history/components/customer/block/Description/Description_20220530185952.tsx new file mode 100644 index 0000000..474ce4d --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530185952.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530190924.tsx b/.history/components/customer/block/Description/Description_20220530190924.tsx new file mode 100644 index 0000000..43760e6 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530190924.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530190927.tsx b/.history/components/customer/block/Description/Description_20220530190927.tsx new file mode 100644 index 0000000..008a131 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530190927.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530190928.tsx b/.history/components/customer/block/Description/Description_20220530190928.tsx new file mode 100644 index 0000000..c394e97 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530190928.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530190931.tsx b/.history/components/customer/block/Description/Description_20220530190931.tsx new file mode 100644 index 0000000..37fea6a --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530190931.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530190932.tsx b/.history/components/customer/block/Description/Description_20220530190932.tsx new file mode 100644 index 0000000..c394e97 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530190932.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/Description_20220530190938.tsx b/.history/components/customer/block/Description/Description_20220530190938.tsx new file mode 100644 index 0000000..97edca8 --- /dev/null +++ b/.history/components/customer/block/Description/Description_20220530190938.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import { ContainerTitle, ContainerInside } from '../../containers' +import { PictureText } from '../../../UI' + +export const Description: React.FC = () => { + return( + + +
    +

    Вы проголодались на работе? Или удобно устроились перед телевизором, чтобы посмотреть фильм? + А может, к Вам внезапно нагрянули друзья, а в холодильнике пусто? Пицца с доставкой от пиццерий.
    + Pizza - отличный выход для любой из этих ситуаций.

    +

    Вам остается только определиться, какой из видов этого итальянского блюда Вы хотите попробовать. + У Вас также есть прекрасная возможность заказать дополнительные ингредиенты к любой пицце: пармезан, + курицу, ананас, карри и многое другое. Придумайте собственный кулинарный шедевр, а наш курьерская доставка + привезет его Вам. Почувствуйте себя шеф-поваром!

    +
    + + Минимальная стоимость зааза для доставки от 599 рублей + +
    + +
    + Бесплатная доставка от пиццерии Pizza - быстро и очень выгодно! +
    + + +
    +

    Вы все правильно поняли: Вы получите заказанные блюда горячими, ведь доставка пиццы осуществляется с + поразительной скоростью (не более 35 минут); +

    +

    + Pizza использует только свежие ингредиенты, из которых пиццмейкеры готовят пиццу по проверенным рецептам, + поэтому лакомство придется Вам по вкусу; доставка пиццы будет бесплатной, и это никак не отразится на высоком качестве + Ваших любимых блюд. Для того чтобы заказать пиццу на дом, добавьте в «Корзину» понравившийся вариант и оформите заказ на + сайте пиццерии. +

    +
    + Доставим заказ до 35 минут +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/block/Description/index_20220530190224.ts b/.history/components/customer/block/Description/index_20220530190224.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Description/index_20220530190229.ts b/.history/components/customer/block/Description/index_20220530190229.ts new file mode 100644 index 0000000..42151f0 --- /dev/null +++ b/.history/components/customer/block/Description/index_20220530190229.ts @@ -0,0 +1 @@ +export \ No newline at end of file diff --git a/.history/components/customer/block/Description/index_20220530190230.ts b/.history/components/customer/block/Description/index_20220530190230.ts new file mode 100644 index 0000000..d983907 --- /dev/null +++ b/.history/components/customer/block/Description/index_20220530190230.ts @@ -0,0 +1 @@ +export * \ No newline at end of file diff --git a/.history/components/customer/block/Description/index_20220530190234.ts b/.history/components/customer/block/Description/index_20220530190234.ts new file mode 100644 index 0000000..221ea3e --- /dev/null +++ b/.history/components/customer/block/Description/index_20220530190234.ts @@ -0,0 +1 @@ +export * from './Description' \ No newline at end of file diff --git a/.history/components/customer/block/Footer/FooterNav_20220530193614.tsx b/.history/components/customer/block/Footer/FooterNav_20220530193614.tsx new file mode 100644 index 0000000..af91768 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220530193614.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531133717.tsx b/.history/components/customer/block/Footer/FooterNav_20220531133717.tsx new file mode 100644 index 0000000..7da8540 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531133717.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531133720.tsx b/.history/components/customer/block/Footer/FooterNav_20220531133720.tsx new file mode 100644 index 0000000..7da8540 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531133720.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531133724.tsx b/.history/components/customer/block/Footer/FooterNav_20220531133724.tsx new file mode 100644 index 0000000..829aacf --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531133724.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531133727.tsx b/.history/components/customer/block/Footer/FooterNav_20220531133727.tsx new file mode 100644 index 0000000..829aacf --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531133727.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531133731.tsx b/.history/components/customer/block/Footer/FooterNav_20220531133731.tsx new file mode 100644 index 0000000..99c4361 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531133731.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531133736.tsx b/.history/components/customer/block/Footer/FooterNav_20220531133736.tsx new file mode 100644 index 0000000..fe1075a --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531133736.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531134138.tsx b/.history/components/customer/block/Footer/FooterNav_20220531134138.tsx new file mode 100644 index 0000000..1be2b2e --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531134138.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531134139.tsx b/.history/components/customer/block/Footer/FooterNav_20220531134139.tsx new file mode 100644 index 0000000..1be2b2e --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531134139.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531134204.tsx b/.history/components/customer/block/Footer/FooterNav_20220531134204.tsx new file mode 100644 index 0000000..3246d3b --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531134204.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531134207.tsx b/.history/components/customer/block/Footer/FooterNav_20220531134207.tsx new file mode 100644 index 0000000..e82dd6f --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531134207.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531134213.tsx b/.history/components/customer/block/Footer/FooterNav_20220531134213.tsx new file mode 100644 index 0000000..e82dd6f --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531134213.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141333.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141333.tsx new file mode 100644 index 0000000..004174c --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141333.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141354.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141354.tsx new file mode 100644 index 0000000..e82dd6f --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141354.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141404.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141404.tsx new file mode 100644 index 0000000..f04856c --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141404.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141405.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141405.tsx new file mode 100644 index 0000000..f04856c --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141405.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141412.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141412.tsx new file mode 100644 index 0000000..9a6c9de --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141412.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141414.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141414.tsx new file mode 100644 index 0000000..73489c4 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141414.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141416.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141416.tsx new file mode 100644 index 0000000..2430736 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141416.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141417.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141417.tsx new file mode 100644 index 0000000..e2f8dbb --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141417.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531141419.tsx b/.history/components/customer/block/Footer/FooterNav_20220531141419.tsx new file mode 100644 index 0000000..61ccb8f --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531141419.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531143011.tsx b/.history/components/customer/block/Footer/FooterNav_20220531143011.tsx new file mode 100644 index 0000000..82797c4 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531143011.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531143039.tsx b/.history/components/customer/block/Footer/FooterNav_20220531143039.tsx new file mode 100644 index 0000000..8b31f58 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531143039.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531143040.tsx b/.history/components/customer/block/Footer/FooterNav_20220531143040.tsx new file mode 100644 index 0000000..304336e --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531143040.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531143044.tsx b/.history/components/customer/block/Footer/FooterNav_20220531143044.tsx new file mode 100644 index 0000000..51f4645 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531143044.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531143052.tsx b/.history/components/customer/block/Footer/FooterNav_20220531143052.tsx new file mode 100644 index 0000000..31a9fab --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531143052.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531145326.tsx b/.history/components/customer/block/Footer/FooterNav_20220531145326.tsx new file mode 100644 index 0000000..e2c121c --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531145326.tsx @@ -0,0 +1,39 @@ +export const FooterNav: React.FC = () => { + return ( + +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531145329.tsx b/.history/components/customer/block/Footer/FooterNav_20220531145329.tsx new file mode 100644 index 0000000..1f6898f --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531145329.tsx @@ -0,0 +1,39 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531145332.tsx b/.history/components/customer/block/Footer/FooterNav_20220531145332.tsx new file mode 100644 index 0000000..ca2845c --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531145332.tsx @@ -0,0 +1,39 @@ +export const FooterNav: React.FC = () => { + return ( +
    / +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531145335.tsx b/.history/components/customer/block/Footer/FooterNav_20220531145335.tsx new file mode 100644 index 0000000..35d6b8e --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531145335.tsx @@ -0,0 +1,39 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531145337.tsx b/.history/components/customer/block/Footer/FooterNav_20220531145337.tsx new file mode 100644 index 0000000..fc27090 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531145337.tsx @@ -0,0 +1,39 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531145339.tsx b/.history/components/customer/block/Footer/FooterNav_20220531145339.tsx new file mode 100644 index 0000000..3628f47 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531145339.tsx @@ -0,0 +1,39 @@ +export const FooterNav: React.FC = () => { + return ( + +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531145341.tsx b/.history/components/customer/block/Footer/FooterNav_20220531145341.tsx new file mode 100644 index 0000000..3c8dc49 --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531145341.tsx @@ -0,0 +1,40 @@ +export const FooterNav: React.FC = () => { + return ( + +
    +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531151045.tsx b/.history/components/customer/block/Footer/FooterNav_20220531151045.tsx new file mode 100644 index 0000000..7808f8e --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531151045.tsx @@ -0,0 +1,39 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/FooterNav_20220531151046.tsx b/.history/components/customer/block/Footer/FooterNav_20220531151046.tsx new file mode 100644 index 0000000..7808f8e --- /dev/null +++ b/.history/components/customer/block/Footer/FooterNav_20220531151046.tsx @@ -0,0 +1,39 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/Footer_20220530192753.tsx b/.history/components/customer/block/Footer/Footer_20220530192753.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Footer/Footer_20220530192833.tsx b/.history/components/customer/block/Footer/Footer_20220530192833.tsx new file mode 100644 index 0000000..2b4be0a --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192833.tsx @@ -0,0 +1,23 @@ +const Footer = (props) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ) + }; + + export default Footer; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192849.tsx b/.history/components/customer/block/Footer/Footer_20220530192849.tsx new file mode 100644 index 0000000..9aaf44f --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192849.tsx @@ -0,0 +1,25 @@ + + +const Footer = (props) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ) + }; + + export default Footer; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192850.tsx b/.history/components/customer/block/Footer/Footer_20220530192850.tsx new file mode 100644 index 0000000..2aee7d3 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192850.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Header } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +const Footer = (props) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ) + }; + + export default Footer; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192858.tsx b/.history/components/customer/block/Footer/Footer_20220530192858.tsx new file mode 100644 index 0000000..f0dcbea --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192858.tsx @@ -0,0 +1,38 @@ +import React from 'react'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +const Footer = (props) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ) + }; + + export default Footer; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192900.tsx b/.history/components/customer/block/Footer/Footer_20220530192900.tsx new file mode 100644 index 0000000..993e1cc --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192900.tsx @@ -0,0 +1,36 @@ +import React from 'react'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +const Footer = (props) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ) + }; + + export default Footer; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192906.tsx b/.history/components/customer/block/Footer/Footer_20220530192906.tsx new file mode 100644 index 0000000..e0eef86 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192906.tsx @@ -0,0 +1,20 @@ +import React from 'react'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +const Footer = (props) => { + return ( + + ) + }; + + export default Footer; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192910.tsx b/.history/components/customer/block/Footer/Footer_20220530192910.tsx new file mode 100644 index 0000000..4962155 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192910.tsx @@ -0,0 +1,31 @@ +import React from 'react'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; + +const Footer = (props) => { + return ( + + ) + }; + + export default Footer; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192914.tsx b/.history/components/customer/block/Footer/Footer_20220530192914.tsx new file mode 100644 index 0000000..2f8a09c --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192914.tsx @@ -0,0 +1,31 @@ +import React from 'react'; + +export const Footer: React.FC = ({children}) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; + +const Footer = (props) => { + return ( + + ) + }; + + export default Footer; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192917.tsx b/.history/components/customer/block/Footer/Footer_20220530192917.tsx new file mode 100644 index 0000000..ba75ec9 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192917.tsx @@ -0,0 +1,23 @@ +import React from 'react'; + +export const Footer: React.FC = ({children}) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192923.tsx b/.history/components/customer/block/Footer/Footer_20220530192923.tsx new file mode 100644 index 0000000..5794575 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192923.tsx @@ -0,0 +1,23 @@ +import React from 'react'; + +export const Footer: React.FC = ({children}) => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192925.tsx b/.history/components/customer/block/Footer/Footer_20220530192925.tsx new file mode 100644 index 0000000..3d4ded0 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192925.tsx @@ -0,0 +1,23 @@ +import React from 'react'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192939.tsx b/.history/components/customer/block/Footer/Footer_20220530192939.tsx new file mode 100644 index 0000000..5ec0c1e --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192939.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192945.tsx b/.history/components/customer/block/Footer/Footer_20220530192945.tsx new file mode 100644 index 0000000..fa71c7e --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192945.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192949.tsx b/.history/components/customer/block/Footer/Footer_20220530192949.tsx new file mode 100644 index 0000000..105c055 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192949.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192951.tsx b/.history/components/customer/block/Footer/Footer_20220530192951.tsx new file mode 100644 index 0000000..f002bbd --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192951.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530192958.tsx b/.history/components/customer/block/Footer/Footer_20220530192958.tsx new file mode 100644 index 0000000..97b8333 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530192958.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530193002.tsx b/.history/components/customer/block/Footer/Footer_20220530193002.tsx new file mode 100644 index 0000000..5fa3f18 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530193002.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530193004.tsx b/.history/components/customer/block/Footer/Footer_20220530193004.tsx new file mode 100644 index 0000000..b21d9f6 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530193004.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530193006.tsx b/.history/components/customer/block/Footer/Footer_20220530193006.tsx new file mode 100644 index 0000000..c480342 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530193006.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530193010.tsx b/.history/components/customer/block/Footer/Footer_20220530193010.tsx new file mode 100644 index 0000000..dc31404 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530193010.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530193012.tsx b/.history/components/customer/block/Footer/Footer_20220530193012.tsx new file mode 100644 index 0000000..537ed58 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530193012.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Footer_20220530193024.tsx b/.history/components/customer/block/Footer/Footer_20220530193024.tsx new file mode 100644 index 0000000..537ed58 --- /dev/null +++ b/.history/components/customer/block/Footer/Footer_20220530193024.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Footer: React.FC = () => { + return ( +
    + + +
    +

    + 2022 © Pizza&Pizza +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Footer/Nav_20220530192759.tsx b/.history/components/customer/block/Footer/Nav_20220530192759.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Footer/Nav_20220530193033.tsx b/.history/components/customer/block/Footer/Nav_20220530193033.tsx new file mode 100644 index 0000000..5476f1a --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193033.tsx @@ -0,0 +1,40 @@ +const FooterNav = (props) => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; + + export default FooterNav; diff --git a/.history/components/customer/block/Footer/Nav_20220530193047.tsx b/.history/components/customer/block/Footer/Nav_20220530193047.tsx new file mode 100644 index 0000000..0d19634 --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193047.tsx @@ -0,0 +1,40 @@ +export const Footer: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; + + export default FooterNav; diff --git a/.history/components/customer/block/Footer/Nav_20220530193050.tsx b/.history/components/customer/block/Footer/Nav_20220530193050.tsx new file mode 100644 index 0000000..f5117f9 --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193050.tsx @@ -0,0 +1,40 @@ +export const Footer: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; + + export default FooterNav; diff --git a/.history/components/customer/block/Footer/Nav_20220530193054.tsx b/.history/components/customer/block/Footer/Nav_20220530193054.tsx new file mode 100644 index 0000000..253c73d --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193054.tsx @@ -0,0 +1,40 @@ +export const Footer: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; + + export default FooterNav; diff --git a/.history/components/customer/block/Footer/Nav_20220530193055.tsx b/.history/components/customer/block/Footer/Nav_20220530193055.tsx new file mode 100644 index 0000000..6c1b145 --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193055.tsx @@ -0,0 +1,40 @@ +export const Footer: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; + + export default FooterNav; diff --git a/.history/components/customer/block/Footer/Nav_20220530193102.tsx b/.history/components/customer/block/Footer/Nav_20220530193102.tsx new file mode 100644 index 0000000..9a181c7 --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193102.tsx @@ -0,0 +1,39 @@ +export const Footer: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; + diff --git a/.history/components/customer/block/Footer/Nav_20220530193103.tsx b/.history/components/customer/block/Footer/Nav_20220530193103.tsx new file mode 100644 index 0000000..873714a --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193103.tsx @@ -0,0 +1,38 @@ +export const Footer: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/Nav_20220530193105.tsx b/.history/components/customer/block/Footer/Nav_20220530193105.tsx new file mode 100644 index 0000000..873714a --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193105.tsx @@ -0,0 +1,38 @@ +export const Footer: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/Nav_20220530193119.tsx b/.history/components/customer/block/Footer/Nav_20220530193119.tsx new file mode 100644 index 0000000..344d1f7 --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193119.tsx @@ -0,0 +1,38 @@ +export const Nav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/Nav_20220530193120.tsx b/.history/components/customer/block/Footer/Nav_20220530193120.tsx new file mode 100644 index 0000000..344d1f7 --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193120.tsx @@ -0,0 +1,38 @@ +export const Nav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/Nav_20220530193611.tsx b/.history/components/customer/block/Footer/Nav_20220530193611.tsx new file mode 100644 index 0000000..7254b8f --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193611.tsx @@ -0,0 +1,38 @@ +export const FoNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/Nav_20220530193613.tsx b/.history/components/customer/block/Footer/Nav_20220530193613.tsx new file mode 100644 index 0000000..af91768 --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193613.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/Nav_20220530193615.tsx b/.history/components/customer/block/Footer/Nav_20220530193615.tsx new file mode 100644 index 0000000..af91768 --- /dev/null +++ b/.history/components/customer/block/Footer/Nav_20220530193615.tsx @@ -0,0 +1,38 @@ +export const FooterNav: React.FC = () => { + return ( +
    +
    +
    +
    +

    Pizza

    +
      +
    • Кто мы
    • +
    • Работа в Pizza
    • +
    • Новости
    • +
    • Вопросы
    • +
    • Правовая информация
    • +
    +
    +
    +

    Для партнёров

    +
      +
    • Франчайзинг
    • +
    • Поставщикам
    • +
    +
    +
    +

    Контакты

    +
      +
    • Связь с нами
    • +
    • Служба поддержки
    • +
    +
    +
    +
    +

    8 (999) 99-99-99

    +

    Звонок бесплатный

    +
    +
    +
    + ) + }; diff --git a/.history/components/customer/block/Footer/index_20220530192805.ts b/.history/components/customer/block/Footer/index_20220530192805.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Footer/index_20220530192813.ts b/.history/components/customer/block/Footer/index_20220530192813.ts new file mode 100644 index 0000000..2f27a4c --- /dev/null +++ b/.history/components/customer/block/Footer/index_20220530192813.ts @@ -0,0 +1 @@ +export * from './Footer' \ No newline at end of file diff --git a/.history/components/customer/block/Footer/index_20220530192823.ts b/.history/components/customer/block/Footer/index_20220530192823.ts new file mode 100644 index 0000000..e646415 --- /dev/null +++ b/.history/components/customer/block/Footer/index_20220530192823.ts @@ -0,0 +1,2 @@ +export * from './Footer' +export * from './Nav' \ No newline at end of file diff --git a/.history/components/customer/block/Footer/index_20220530193832.ts b/.history/components/customer/block/Footer/index_20220530193832.ts new file mode 100644 index 0000000..ef1a22e --- /dev/null +++ b/.history/components/customer/block/Footer/index_20220530193832.ts @@ -0,0 +1,2 @@ +export * from './Footer' +export * from './FooterNav' \ No newline at end of file diff --git a/.history/components/customer/block/Header/Header_20220530183822.tsx b/.history/components/customer/block/Header/Header_20220530183822.tsx new file mode 100644 index 0000000..0cfa7a5 --- /dev/null +++ b/.history/components/customer/block/Header/Header_20220530183822.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +import { Search } from './search'; +import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + + + +
    + ); +}; diff --git a/.history/components/customer/block/Header/Header_20220530192632.tsx b/.history/components/customer/block/Header/Header_20220530192632.tsx new file mode 100644 index 0000000..610a747 --- /dev/null +++ b/.history/components/customer/block/Header/Header_20220530192632.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + + + +
    + ); +}; diff --git a/.history/components/customer/block/Header/Header_20220530192635.tsx b/.history/components/customer/block/Header/Header_20220530192635.tsx new file mode 100644 index 0000000..610a747 --- /dev/null +++ b/.history/components/customer/block/Header/Header_20220530192635.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + + + +
    + ); +}; diff --git a/.history/components/customer/block/Header/index_20220530192614.ts b/.history/components/customer/block/Header/index_20220530192614.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Header/index_20220530192618.ts b/.history/components/customer/block/Header/index_20220530192618.ts new file mode 100644 index 0000000..7647e34 --- /dev/null +++ b/.history/components/customer/block/Header/index_20220530192618.ts @@ -0,0 +1 @@ +ex \ No newline at end of file diff --git a/.history/components/customer/block/Header/index_20220530192623.ts b/.history/components/customer/block/Header/index_20220530192623.ts new file mode 100644 index 0000000..220d1b1 --- /dev/null +++ b/.history/components/customer/block/Header/index_20220530192623.ts @@ -0,0 +1 @@ +export * from './Header' \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528173552.ts b/.history/components/customer/block/Motto/Index_20220528173552.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Motto/Index_20220528173621.ts b/.history/components/customer/block/Motto/Index_20220528173621.ts new file mode 100644 index 0000000..e76bfc3 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528173621.ts @@ -0,0 +1,18 @@ +import React from 'react' +import { IconFire, IconMoped } from '../../component/Icon'; +import Typography from '../../component/Typography'; + + const TitleHeader = (props) => { + return( +
    +
    + Горячая пицца для каждого +
    +
    + Долетим за 35 минут +
    +
    + ) +} + +export default TitleHeader; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528173742.ts b/.history/components/customer/block/Motto/Index_20220528173742.ts new file mode 100644 index 0000000..4346ba6 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528173742.ts @@ -0,0 +1,16 @@ +import React from 'react' +import { IconFire, IconMoped } from '../../component/Icon'; +import Typography from '../../component/Typography'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    + Горячая пицца для каждого +
    +
    + Долетим за 35 минут +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174044.ts b/.history/components/customer/block/Motto/Index_20220528174044.ts new file mode 100644 index 0000000..66ca044 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174044.ts @@ -0,0 +1,16 @@ +import React from 'react' +import { IconFire, IconMoped } from '../../component/Icon'; +import Typography from '../../component/Typography'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    Горячая пицца для каждого +

    +
    + Долетим за 35 минут +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174110.ts b/.history/components/customer/block/Motto/Index_20220528174110.ts new file mode 100644 index 0000000..962748d --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174110.ts @@ -0,0 +1,15 @@ +import React from 'react' +import Typography from '../../component/Typography'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    Горячая пицца для каждого +

    +
    + Долетим за 35 минут +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174158.ts b/.history/components/customer/block/Motto/Index_20220528174158.ts new file mode 100644 index 0000000..e43c84e --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174158.ts @@ -0,0 +1,19 @@ +import React from 'react' +import Typography from '../../component/Typography'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    + Горячая пицца для каждого +

    +
    +
    +

    + Долетим за 35 минут +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174301.ts b/.history/components/customer/block/Motto/Index_20220528174301.ts new file mode 100644 index 0000000..5b347b2 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174301.ts @@ -0,0 +1,18 @@ +import React from 'react' + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174356.ts b/.history/components/customer/block/Motto/Index_20220528174356.ts new file mode 100644 index 0000000..6c0594e --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174356.ts @@ -0,0 +1,18 @@ +import React from 'react' + +export const MottoBlock: React.FC = ({}) => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174449.ts b/.history/components/customer/block/Motto/Index_20220528174449.ts new file mode 100644 index 0000000..9243a6e --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174449.ts @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = ({}) => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174535.tsx b/.history/components/customer/block/Motto/Index_20220528174535.tsx new file mode 100644 index 0000000..9243a6e --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174535.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = ({}) => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174536.ts b/.history/components/customer/block/Motto/Index_20220528174536.ts new file mode 100644 index 0000000..9243a6e --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174536.ts @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = ({}) => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528174550.tsx b/.history/components/customer/block/Motto/Index_20220528174550.tsx new file mode 100644 index 0000000..12c595e --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528174550.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233516.tsx b/.history/components/customer/block/Motto/Index_20220528233516.tsx new file mode 100644 index 0000000..8522365 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233516.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233557.tsx b/.history/components/customer/block/Motto/Index_20220528233557.tsx new file mode 100644 index 0000000..28da364 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233557.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233621.tsx b/.history/components/customer/block/Motto/Index_20220528233621.tsx new file mode 100644 index 0000000..e52e8d7 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233621.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233637.tsx b/.history/components/customer/block/Motto/Index_20220528233637.tsx new file mode 100644 index 0000000..5568ffb --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233637.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    + +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233638.tsx b/.history/components/customer/block/Motto/Index_20220528233638.tsx new file mode 100644 index 0000000..fc111e7 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233638.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    + +

    Долетим за 35 минут

    + +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233640.tsx b/.history/components/customer/block/Motto/Index_20220528233640.tsx new file mode 100644 index 0000000..80d86b6 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233640.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    + +

    Горячая пицца для каждого

    +

    +
    +
    + +

    Долетим за 35 минут

    + +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233642.tsx b/.history/components/customer/block/Motto/Index_20220528233642.tsx new file mode 100644 index 0000000..c02d78c --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233642.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    + +

    Горячая пицца для каждого

    + +
    +
    + +

    Долетим за 35 минут

    + +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233651.tsx b/.history/components/customer/block/Motto/Index_20220528233651.tsx new file mode 100644 index 0000000..e52e8d7 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233651.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528233654.tsx b/.history/components/customer/block/Motto/Index_20220528233654.tsx new file mode 100644 index 0000000..e52e8d7 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528233654.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +

    +

    Горячая пицца для каждого

    +

    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528234122.tsx b/.history/components/customer/block/Motto/Index_20220528234122.tsx new file mode 100644 index 0000000..323ec24 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528234122.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    +

    Долетим за 35 минут

    +

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220528234126.tsx b/.history/components/customer/block/Motto/Index_20220528234126.tsx new file mode 100644 index 0000000..b1431d3 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220528234126.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143929.tsx b/.history/components/customer/block/Motto/Index_20220529143929.tsx new file mode 100644 index 0000000..4a45a28 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143929.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    + +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143930.tsx b/.history/components/customer/block/Motto/Index_20220529143930.tsx new file mode 100644 index 0000000..fc1e19d --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143930.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    + +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143933.tsx b/.history/components/customer/block/Motto/Index_20220529143933.tsx new file mode 100644 index 0000000..140f1af --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143933.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143935.tsx b/.history/components/customer/block/Motto/Index_20220529143935.tsx new file mode 100644 index 0000000..ac64f33 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143935.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143940.tsx b/.history/components/customer/block/Motto/Index_20220529143940.tsx new file mode 100644 index 0000000..beb7fd4 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143940.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    + +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143941.tsx b/.history/components/customer/block/Motto/Index_20220529143941.tsx new file mode 100644 index 0000000..58f852c --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143941.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    + +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143944.tsx b/.history/components/customer/block/Motto/Index_20220529143944.tsx new file mode 100644 index 0000000..fe1a230 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143944.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    + +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143945.tsx b/.history/components/customer/block/Motto/Index_20220529143945.tsx new file mode 100644 index 0000000..abd7447 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143945.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529143946.tsx b/.history/components/customer/block/Motto/Index_20220529143946.tsx new file mode 100644 index 0000000..518b4fb --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529143946.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144402.tsx b/.history/components/customer/block/Motto/Index_20220529144402.tsx new file mode 100644 index 0000000..b6c3614 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144402.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( + < +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144408.tsx b/.history/components/customer/block/Motto/Index_20220529144408.tsx new file mode 100644 index 0000000..09b4700 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144408.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144413.tsx b/.history/components/customer/block/Motto/Index_20220529144413.tsx new file mode 100644 index 0000000..157082a --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144413.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    + { + return ( +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144418.tsx b/.history/components/customer/block/Motto/Index_20220529144418.tsx new file mode 100644 index 0000000..176fb42 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144418.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144420.tsx b/.history/components/customer/block/Motto/Index_20220529144420.tsx new file mode 100644 index 0000000..6e6a3ec --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144420.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144847.tsx b/.history/components/customer/block/Motto/Index_20220529144847.tsx new file mode 100644 index 0000000..e9b7164 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144847.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144848.tsx b/.history/components/customer/block/Motto/Index_20220529144848.tsx new file mode 100644 index 0000000..1490cba --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144848.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144904.tsx b/.history/components/customer/block/Motto/Index_20220529144904.tsx new file mode 100644 index 0000000..7975d34 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144904.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144907.tsx b/.history/components/customer/block/Motto/Index_20220529144907.tsx new file mode 100644 index 0000000..487666f --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144907.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144908.tsx b/.history/components/customer/block/Motto/Index_20220529144908.tsx new file mode 100644 index 0000000..07ce6b1 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144908.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Motto/Index_20220529144910.tsx b/.history/components/customer/block/Motto/Index_20220529144910.tsx new file mode 100644 index 0000000..f1af6d1 --- /dev/null +++ b/.history/components/customer/block/Motto/Index_20220529144910.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/block/Pizza/Block_20220529134947.tsx b/.history/components/customer/block/Pizza/Block_20220529134947.tsx new file mode 100644 index 0000000..d81a315 --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529134947.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151154.tsx b/.history/components/customer/block/Pizza/Block_20220529151154.tsx new file mode 100644 index 0000000..5642156 --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151154.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151209.tsx b/.history/components/customer/block/Pizza/Block_20220529151209.tsx new file mode 100644 index 0000000..111e1de --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151209.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151211.tsx b/.history/components/customer/block/Pizza/Block_20220529151211.tsx new file mode 100644 index 0000000..5642156 --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151211.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151214.tsx b/.history/components/customer/block/Pizza/Block_20220529151214.tsx new file mode 100644 index 0000000..111e1de --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151214.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151217.tsx b/.history/components/customer/block/Pizza/Block_20220529151217.tsx new file mode 100644 index 0000000..0b8238f --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151217.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151220.tsx b/.history/components/customer/block/Pizza/Block_20220529151220.tsx new file mode 100644 index 0000000..0b8238f --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151220.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151304.tsx b/.history/components/customer/block/Pizza/Block_20220529151304.tsx new file mode 100644 index 0000000..bb25b87 --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151304.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151317.tsx b/.history/components/customer/block/Pizza/Block_20220529151317.tsx new file mode 100644 index 0000000..0b8238f --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151317.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151321.tsx b/.history/components/customer/block/Pizza/Block_20220529151321.tsx new file mode 100644 index 0000000..cb9f1de --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151321.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Block_20220529151346.tsx b/.history/components/customer/block/Pizza/Block_20220529151346.tsx new file mode 100644 index 0000000..dfe53cb --- /dev/null +++ b/.history/components/customer/block/Pizza/Block_20220529151346.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/Skeleton_20220516232835.tsx b/.history/components/customer/block/Pizza/Skeleton_20220516232835.tsx new file mode 100644 index 0000000..a6410f2 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220516232835.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const Skeleton = () => ( + + + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529145237.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529145237.tsx new file mode 100644 index 0000000..81e35bc --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529145237.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const PiSkeleton = () => ( + + + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529145240.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529145240.tsx new file mode 100644 index 0000000..3f8cec9 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529145240.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const PizzaSkeleton = () => ( + + + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150155.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150155.tsx new file mode 100644 index 0000000..eba2f88 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150155.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; + +export const PizzaSkeleton = () => ( + + + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150210.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150210.tsx new file mode 100644 index 0000000..b5a2f9d --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150210.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150555.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150555.tsx new file mode 100644 index 0000000..bf6c63d --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150555.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150600.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150600.tsx new file mode 100644 index 0000000..9db6df4 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150600.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150630.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150630.tsx new file mode 100644 index 0000000..66e8343 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150630.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150634.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150634.tsx new file mode 100644 index 0000000..9db6df4 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150634.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150636.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150636.tsx new file mode 100644 index 0000000..3ea6c54 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150636.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150640.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150640.tsx new file mode 100644 index 0000000..9db6df4 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150640.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150644.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150644.tsx new file mode 100644 index 0000000..c51676e --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150644.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150649.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150649.tsx new file mode 100644 index 0000000..c799b7a --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150649.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150720.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150720.tsx new file mode 100644 index 0000000..a117954 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150720.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150737.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150737.tsx new file mode 100644 index 0000000..a117954 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150737.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150743.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150743.tsx new file mode 100644 index 0000000..c799b7a --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150743.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150747.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150747.tsx new file mode 100644 index 0000000..f393312 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150747.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/Skeleton_20220529150801.tsx b/.history/components/customer/block/Pizza/Skeleton_20220529150801.tsx new file mode 100644 index 0000000..02cdc61 --- /dev/null +++ b/.history/components/customer/block/Pizza/Skeleton_20220529150801.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import ContentLoader from 'react-content-loader'; +import classNames from 'classnames'; + +export const PizzaSkeleton = () => ( + + + + + +); diff --git a/.history/components/customer/block/Pizza/index_20220518134249.tsx b/.history/components/customer/block/Pizza/index_20220518134249.tsx new file mode 100644 index 0000000..c576de2 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220518134249.tsx @@ -0,0 +1,98 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../redux/cart/selectors'; +import { CartItem } from '../../../redux/cart/types'; +import { addItem } from '../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
    +
    + + Pizza +

    {title}

    + +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    +
    от {price} ₽
    + +
    +
    +
    + ); +}; diff --git a/.history/components/customer/block/Pizza/index_20220518152148.tsx b/.history/components/customer/block/Pizza/index_20220518152148.tsx new file mode 100644 index 0000000..7b36ad9 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220518152148.tsx @@ -0,0 +1,98 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../../redux/cart/selectors'; +import { CartItem } from '../../../../redux/cart/types'; +import { addItem } from '../../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
    +
    + + Pizza +

    {title}

    + +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    +
    от {price} ₽
    + +
    +
    +
    + ); +}; diff --git a/.history/components/customer/block/Pizza/index_20220518152154.tsx b/.history/components/customer/block/Pizza/index_20220518152154.tsx new file mode 100644 index 0000000..7b36ad9 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220518152154.tsx @@ -0,0 +1,98 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../../redux/cart/selectors'; +import { CartItem } from '../../../../redux/cart/types'; +import { addItem } from '../../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
    +
    + + Pizza +

    {title}

    + +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    +
    от {price} ₽
    + +
    +
    +
    + ); +}; diff --git a/.history/components/customer/block/Pizza/index_20220529000252.tsx b/.history/components/customer/block/Pizza/index_20220529000252.tsx new file mode 100644 index 0000000..120de59 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000252.tsx @@ -0,0 +1,100 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../../redux/cart/selectors'; +import { CartItem } from '../../../../redux/cart/types'; +import { addItem } from '../../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
    +
    + + Pizza +

    {title}

    + +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    +
    от {price} ₽
    + +
    +
    +
    + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000308.tsx b/.history/components/customer/block/Pizza/index_20220529000308.tsx new file mode 100644 index 0000000..d5fe707 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000308.tsx @@ -0,0 +1,78 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../../redux/cart/selectors'; +import { CartItem } from '../../../../redux/cart/types'; +import { addItem } from '../../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000312.tsx b/.history/components/customer/block/Pizza/index_20220529000312.tsx new file mode 100644 index 0000000..96ec088 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000312.tsx @@ -0,0 +1,78 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../../redux/cart/selectors'; +import { CartItem } from '../../../../redux/cart/types'; +import { addItem } from '../../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000314.tsx b/.history/components/customer/block/Pizza/index_20220529000314.tsx new file mode 100644 index 0000000..57334b5 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000314.tsx @@ -0,0 +1,78 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../../redux/cart/selectors'; +import { CartItem } from '../../../../redux/cart/types'; +import { addItem } from '../../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000324.tsx b/.history/components/customer/block/Pizza/index_20220529000324.tsx new file mode 100644 index 0000000..604372b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000324.tsx @@ -0,0 +1,78 @@ +import React from 'react'; +import Image from 'next/image'; +import { useDispatch, useSelector } from 'react-redux'; +import { selectCartItemById } from '../../../../redux/cart/selectors'; +import { CartItem } from '../../../../redux/cart/types'; +import { addItem } from '../../../../redux/cart/slice'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000348.tsx b/.history/components/customer/block/Pizza/index_20220529000348.tsx new file mode 100644 index 0000000..9c9af51 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000348.tsx @@ -0,0 +1,75 @@ +import React from 'react'; +import Image from 'next/image'; + + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000351.tsx b/.history/components/customer/block/Pizza/index_20220529000351.tsx new file mode 100644 index 0000000..83ee126 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000351.tsx @@ -0,0 +1,74 @@ +import React from 'react'; +import Image from 'next/image'; + +const typeNames = ['тонкое', 'традиционное']; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000355.tsx b/.history/components/customer/block/Pizza/index_20220529000355.tsx new file mode 100644 index 0000000..1291c1e --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000355.tsx @@ -0,0 +1,74 @@ +import React from 'react'; +import Image from 'next/image'; + + + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000357.tsx b/.history/components/customer/block/Pizza/index_20220529000357.tsx new file mode 100644 index 0000000..4a3f668 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000357.tsx @@ -0,0 +1,73 @@ +import React from 'react'; +import Image from 'next/image'; + + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000358.tsx b/.history/components/customer/block/Pizza/index_20220529000358.tsx new file mode 100644 index 0000000..7ad94b2 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000358.tsx @@ -0,0 +1,72 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + const dispatch = useDispatch(); + const cartItem = useSelector(selectCartItemById(id)); + const [activeType, setActiveType] = React.useState(0); + const [activeSize, setActiveSize] = React.useState(0); + + const addedCount = cartItem ? cartItem.count : 0; + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000414.tsx b/.history/components/customer/block/Pizza/index_20220529000414.tsx new file mode 100644 index 0000000..f7600fe --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000414.tsx @@ -0,0 +1,67 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000419.tsx b/.history/components/customer/block/Pizza/index_20220529000419.tsx new file mode 100644 index 0000000..e0aab6e --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000419.tsx @@ -0,0 +1,53 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000436.tsx b/.history/components/customer/block/Pizza/index_20220529000436.tsx new file mode 100644 index 0000000..f7600fe --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000436.tsx @@ -0,0 +1,67 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000437.tsx b/.history/components/customer/block/Pizza/index_20220529000437.tsx new file mode 100644 index 0000000..493315c --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000437.tsx @@ -0,0 +1,66 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + const item: CartItem = { + id, + title, + price, + imageUrl, + type: typeNames[activeType], + size: sizes[activeSize], + count: 0, + }; + dispatch(addItem(item)); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000443.tsx b/.history/components/customer/block/Pizza/index_20220529000443.tsx new file mode 100644 index 0000000..666fc65 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000443.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000449.tsx b/.history/components/customer/block/Pizza/index_20220529000449.tsx new file mode 100644 index 0000000..65341d2 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000449.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log(); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000451.tsx b/.history/components/customer/block/Pizza/index_20220529000451.tsx new file mode 100644 index 0000000..6fb95f5 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000451.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log(''); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000452.tsx b/.history/components/customer/block/Pizza/index_20220529000452.tsx new file mode 100644 index 0000000..aca74ce --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000452.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000502.tsx b/.history/components/customer/block/Pizza/index_20220529000502.tsx new file mode 100644 index 0000000..d9f4365 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000502.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000503.tsx b/.history/components/customer/block/Pizza/index_20220529000503.tsx new file mode 100644 index 0000000..a8373b7 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000503.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000511.tsx b/.history/components/customer/block/Pizza/index_20220529000511.tsx new file mode 100644 index 0000000..637ea41 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000511.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000512.tsx b/.history/components/customer/block/Pizza/index_20220529000512.tsx new file mode 100644 index 0000000..637ea41 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000512.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000518.tsx b/.history/components/customer/block/Pizza/index_20220529000518.tsx new file mode 100644 index 0000000..5f6962c --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000518.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000519.tsx b/.history/components/customer/block/Pizza/index_20220529000519.tsx new file mode 100644 index 0000000..7fe898a --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000519.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {} + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000521.tsx b/.history/components/customer/block/Pizza/index_20220529000521.tsx new file mode 100644 index 0000000..fd32b7a --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000521.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {} fo + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000526.tsx b/.history/components/customer/block/Pizza/index_20220529000526.tsx new file mode 100644 index 0000000..c912006 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000526.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {} from + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000528.tsx b/.history/components/customer/block/Pizza/index_20220529000528.tsx new file mode 100644 index 0000000..21fc6e6 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000528.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {} from './' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000530.tsx b/.history/components/customer/block/Pizza/index_20220529000530.tsx new file mode 100644 index 0000000..164d57c --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000530.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {} from '../' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000534.tsx b/.history/components/customer/block/Pizza/index_20220529000534.tsx new file mode 100644 index 0000000..c445e3b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000534.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {} from '../../' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000542.tsx b/.history/components/customer/block/Pizza/index_20220529000542.tsx new file mode 100644 index 0000000..d8becb5 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000542.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {} from '../../../UI/' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000544.tsx b/.history/components/customer/block/Pizza/index_20220529000544.tsx new file mode 100644 index 0000000..2dffb0c --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000544.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {} from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000554.tsx b/.history/components/customer/block/Pizza/index_20220529000554.tsx new file mode 100644 index 0000000..03d23ac --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000554.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000600.tsx b/.history/components/customer/block/Pizza/index_20220529000600.tsx new file mode 100644 index 0000000..d84c978 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000600.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg,Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000602.tsx b/.history/components/customer/block/Pizza/index_20220529000602.tsx new file mode 100644 index 0000000..61f568f --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000602.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {props.price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000607.tsx b/.history/components/customer/block/Pizza/index_20220529000607.tsx new file mode 100644 index 0000000..14e154d --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000607.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {props.compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000611.tsx b/.history/components/customer/block/Pizza/index_20220529000611.tsx new file mode 100644 index 0000000..08a14b7 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000611.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {props.title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000613.tsx b/.history/components/customer/block/Pizza/index_20220529000613.tsx new file mode 100644 index 0000000..fe737ce --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000613.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {props.alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000616.tsx b/.history/components/customer/block/Pizza/index_20220529000616.tsx new file mode 100644 index 0000000..8c26fba --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000616.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000618.tsx b/.history/components/customer/block/Pizza/index_20220529000618.tsx new file mode 100644 index 0000000..7fe34cc --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000618.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + price, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000628.tsx b/.history/components/customer/block/Pizza/index_20220529000628.tsx new file mode 100644 index 0000000..5b6eb1b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000628.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + imageUrl, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000632.tsx b/.history/components/customer/block/Pizza/index_20220529000632.tsx new file mode 100644 index 0000000..6a5c58b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000632.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + sizes, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000635.tsx b/.history/components/customer/block/Pizza/index_20220529000635.tsx new file mode 100644 index 0000000..bcfc1ee --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000635.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000639.tsx b/.history/components/customer/block/Pizza/index_20220529000639.tsx new file mode 100644 index 0000000..dfd260f --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000639.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000643.tsx b/.history/components/customer/block/Pizza/index_20220529000643.tsx new file mode 100644 index 0000000..dfd260f --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000643.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000834.tsx b/.history/components/customer/block/Pizza/index_20220529000834.tsx new file mode 100644 index 0000000..6f5c3c4 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000834.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000840.tsx b/.history/components/customer/block/Pizza/index_20220529000840.tsx new file mode 100644 index 0000000..dfd260f --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000840.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000845.tsx b/.history/components/customer/block/Pizza/index_20220529000845.tsx new file mode 100644 index 0000000..4466452 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000845.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + src: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000846.tsx b/.history/components/customer/block/Pizza/index_20220529000846.tsx new file mode 100644 index 0000000..d8585da --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000846.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + src: ы; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000849.tsx b/.history/components/customer/block/Pizza/index_20220529000849.tsx new file mode 100644 index 0000000..b78dd1f --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000849.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + src: string; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000853.tsx b/.history/components/customer/block/Pizza/index_20220529000853.tsx new file mode 100644 index 0000000..76464eb --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000853.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + src: string; + alt: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000900.tsx b/.history/components/customer/block/Pizza/index_20220529000900.tsx new file mode 100644 index 0000000..b78dd1f --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000900.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + src: string; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + price, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000903.tsx b/.history/components/customer/block/Pizza/index_20220529000903.tsx new file mode 100644 index 0000000..bcfc1ee --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000903.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + src, + alt, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000917.tsx b/.history/components/customer/block/Pizza/index_20220529000917.tsx new file mode 100644 index 0000000..6f85120 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000917.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + alt, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000919.tsx b/.history/components/customer/block/Pizza/index_20220529000919.tsx new file mode 100644 index 0000000..1534b1b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000919.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + alt, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {alt} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000934.tsx b/.history/components/customer/block/Pizza/index_20220529000934.tsx new file mode 100644 index 0000000..c0d588a --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000934.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + alt, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000937.tsx b/.history/components/customer/block/Pizza/index_20220529000937.tsx new file mode 100644 index 0000000..70166d9 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000937.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000947.tsx b/.history/components/customer/block/Pizza/index_20220529000947.tsx new file mode 100644 index 0000000..70166d9 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000947.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529000953.tsx b/.history/components/customer/block/Pizza/index_20220529000953.tsx new file mode 100644 index 0000000..f9bd156 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529000953.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001003.tsx b/.history/components/customer/block/Pizza/index_20220529001003.tsx new file mode 100644 index 0000000..5899667 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001003.tsx @@ -0,0 +1,60 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001010.tsx b/.history/components/customer/block/Pizza/index_20220529001010.tsx new file mode 100644 index 0000000..99ec667 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001010.tsx @@ -0,0 +1,60 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; + sizes: number[]; + types: number[]; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001031.tsx b/.history/components/customer/block/Pizza/index_20220529001031.tsx new file mode 100644 index 0000000..72f53ff --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001031.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; + rating: number; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001035.tsx b/.history/components/customer/block/Pizza/index_20220529001035.tsx new file mode 100644 index 0000000..29e4903 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001035.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, + types, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001038.tsx b/.history/components/customer/block/Pizza/index_20220529001038.tsx new file mode 100644 index 0000000..d98f45b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001038.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001047.tsx b/.history/components/customer/block/Pizza/index_20220529001047.tsx new file mode 100644 index 0000000..f031693 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001047.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001103.tsx b/.history/components/customer/block/Pizza/index_20220529001103.tsx new file mode 100644 index 0000000..b900cc5 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001103.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001105.tsx b/.history/components/customer/block/Pizza/index_20220529001105.tsx new file mode 100644 index 0000000..f031693 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001105.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001110.tsx b/.history/components/customer/block/Pizza/index_20220529001110.tsx new file mode 100644 index 0000000..d98f45b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001110.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001326.tsx b/.history/components/customer/block/Pizza/index_20220529001326.tsx new file mode 100644 index 0000000..d98f45b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001326.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001440.tsx b/.history/components/customer/block/Pizza/index_20220529001440.tsx new file mode 100644 index 0000000..ec2d9c5 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001440.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001441.tsx b/.history/components/customer/block/Pizza/index_20220529001441.tsx new file mode 100644 index 0000000..ec2d9c5 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001441.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI' + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001455.tsx b/.history/components/customer/block/Pizza/index_20220529001455.tsx new file mode 100644 index 0000000..0a4b205 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001455.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001503.tsx b/.history/components/customer/block/Pizza/index_20220529001503.tsx new file mode 100644 index 0000000..9bd6d61 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001503.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001506.tsx b/.history/components/customer/block/Pizza/index_20220529001506.tsx new file mode 100644 index 0000000..0709beb --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001506.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return (product_card"}> +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    + + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001508.tsx b/.history/components/customer/block/Pizza/index_20220529001508.tsx new file mode 100644 index 0000000..9bd6d61 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001508.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001512.tsx b/.history/components/customer/block/Pizza/index_20220529001512.tsx new file mode 100644 index 0000000..e4e7176 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001512.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001515.tsx b/.history/components/customer/block/Pizza/index_20220529001515.tsx new file mode 100644 index 0000000..c2f582f --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001515.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001531.tsx b/.history/components/customer/block/Pizza/index_20220529001531.tsx new file mode 100644 index 0000000..2924562 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001531.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529001532.tsx b/.history/components/customer/block/Pizza/index_20220529001532.tsx new file mode 100644 index 0000000..2924562 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529001532.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004227.tsx b/.history/components/customer/block/Pizza/index_20220529004227.tsx new file mode 100644 index 0000000..2924562 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004227.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + compound: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004235.tsx b/.history/components/customer/block/Pizza/index_20220529004235.tsx new file mode 100644 index 0000000..51fcf74 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004235.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + description: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + compound, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004237.tsx b/.history/components/customer/block/Pizza/index_20220529004237.tsx new file mode 100644 index 0000000..2026af0 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004237.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + description: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {compound}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004239.tsx b/.history/components/customer/block/Pizza/index_20220529004239.tsx new file mode 100644 index 0000000..8b08c0b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004239.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: string; + title: string; + price: number; + description: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004410.tsx b/.history/components/customer/block/Pizza/index_20220529004410.tsx new file mode 100644 index 0000000..7c5bd08 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004410.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number; + description: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004411.tsx b/.history/components/customer/block/Pizza/index_20220529004411.tsx new file mode 100644 index 0000000..7c5bd08 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004411.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number; + description: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004525.tsx b/.history/components/customer/block/Pizza/index_20220529004525.tsx new file mode 100644 index 0000000..33140de --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004525.tsx @@ -0,0 +1,51 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number; + description: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004546.tsx b/.history/components/customer/block/Pizza/index_20220529004546.tsx new file mode 100644 index 0000000..7c5bd08 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004546.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number; + description: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + imageUrl, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004954.tsx b/.history/components/customer/block/Pizza/index_20220529004954.tsx new file mode 100644 index 0000000..15e6f9a --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004954.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number; + description: string; + imageUrl: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004955.tsx b/.history/components/customer/block/Pizza/index_20220529004955.tsx new file mode 100644 index 0000000..d5c2e91 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004955.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529004957.tsx b/.history/components/customer/block/Pizza/index_20220529004957.tsx new file mode 100644 index 0000000..42c37f3 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529004957.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529005002.tsx b/.history/components/customer/block/Pizza/index_20220529005002.tsx new file mode 100644 index 0000000..d0449cd --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529005002.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529005004.tsx b/.history/components/customer/block/Pizza/index_20220529005004.tsx new file mode 100644 index 0000000..b6f7ced --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529005004.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {price}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529005007.tsx b/.history/components/customer/block/Pizza/index_20220529005007.tsx new file mode 100644 index 0000000..088cf59 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529005007.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {heft_trad}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529005050.tsx b/.history/components/customer/block/Pizza/index_20220529005050.tsx new file mode 100644 index 0000000..b1670ca --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529005050.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {heft_trad}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529005137.tsx b/.history/components/customer/block/Pizza/index_20220529005137.tsx new file mode 100644 index 0000000..f8cf5ad --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529005137.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {heft_trad}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529005156.tsx b/.history/components/customer/block/Pizza/index_20220529005156.tsx new file mode 100644 index 0000000..276615b --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529005156.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {heft_trad}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529005158.tsx b/.history/components/customer/block/Pizza/index_20220529005158.tsx new file mode 100644 index 0000000..fb0086c --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529005158.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {heft_trad}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529005159.tsx b/.history/components/customer/block/Pizza/index_20220529005159.tsx new file mode 100644 index 0000000..fb0086c --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529005159.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    {heft_trad}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529134938.tsx b/.history/components/customer/block/Pizza/index_20220529134938.tsx new file mode 100644 index 0000000..0f905db --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529134938.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad}

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529134948.tsx b/.history/components/customer/block/Pizza/index_20220529134948.tsx new file mode 100644 index 0000000..d81a315 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529134948.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/block/Pizza/index_20220529145330.ts b/.history/components/customer/block/Pizza/index_20220529145330.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/Pizza/index_20220529145334.ts b/.history/components/customer/block/Pizza/index_20220529145334.ts new file mode 100644 index 0000000..49e0821 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529145334.ts @@ -0,0 +1 @@ +PizzaSkeleton \ No newline at end of file diff --git a/.history/components/customer/block/Pizza/index_20220529145344.ts b/.history/components/customer/block/Pizza/index_20220529145344.ts new file mode 100644 index 0000000..892091c --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529145344.ts @@ -0,0 +1,2 @@ +export * from './BoxScroll'; +PizzaSkeleton \ No newline at end of file diff --git a/.history/components/customer/block/Pizza/index_20220529145347.ts b/.history/components/customer/block/Pizza/index_20220529145347.ts new file mode 100644 index 0000000..445b163 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529145347.ts @@ -0,0 +1 @@ +export * from './BoxScroll'; diff --git a/.history/components/customer/block/Pizza/index_20220529145352.ts b/.history/components/customer/block/Pizza/index_20220529145352.ts new file mode 100644 index 0000000..b13bb4e --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529145352.ts @@ -0,0 +1 @@ +export * from './'; diff --git a/.history/components/customer/block/Pizza/index_20220529145355.ts b/.history/components/customer/block/Pizza/index_20220529145355.ts new file mode 100644 index 0000000..8bb2187 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529145355.ts @@ -0,0 +1 @@ +export * from './Block'; diff --git a/.history/components/customer/block/Pizza/index_20220529145401.ts b/.history/components/customer/block/Pizza/index_20220529145401.ts new file mode 100644 index 0000000..7f18078 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529145401.ts @@ -0,0 +1,2 @@ +export * from './Block'; +export * from './'; \ No newline at end of file diff --git a/.history/components/customer/block/Pizza/index_20220529145403.ts b/.history/components/customer/block/Pizza/index_20220529145403.ts new file mode 100644 index 0000000..5bea710 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220529145403.ts @@ -0,0 +1,2 @@ +export * from './Block'; +export * from './Skeleton'; \ No newline at end of file diff --git a/.history/components/customer/block/Pizza/index_20220530184305.ts b/.history/components/customer/block/Pizza/index_20220530184305.ts new file mode 100644 index 0000000..803c932 --- /dev/null +++ b/.history/components/customer/block/Pizza/index_20220530184305.ts @@ -0,0 +1,2 @@ +export * from './Pizza'; +export * from './Skeleton'; \ No newline at end of file diff --git a/.history/components/customer/block/Stock/index_20220517170803.ts b/.history/components/customer/block/Stock/index_20220517170803.ts new file mode 100644 index 0000000..ef6a80e --- /dev/null +++ b/.history/components/customer/block/Stock/index_20220517170803.ts @@ -0,0 +1 @@ +export * from './Stock'; \ No newline at end of file diff --git a/.history/components/customer/block/Stock/index_20220530190607.ts b/.history/components/customer/block/Stock/index_20220530190607.ts new file mode 100644 index 0000000..579c759 --- /dev/null +++ b/.history/components/customer/block/Stock/index_20220530190607.ts @@ -0,0 +1,2 @@ +export * from './Stock'; +export * from './Stock'; \ No newline at end of file diff --git a/.history/components/customer/block/Stock/index_20220530190609.ts b/.history/components/customer/block/Stock/index_20220530190609.ts new file mode 100644 index 0000000..9939e16 --- /dev/null +++ b/.history/components/customer/block/Stock/index_20220530190609.ts @@ -0,0 +1,2 @@ +export * from './Stock'; +export * from './'; \ No newline at end of file diff --git a/.history/components/customer/block/Stock/index_20220530190610.ts b/.history/components/customer/block/Stock/index_20220530190610.ts new file mode 100644 index 0000000..711c11d --- /dev/null +++ b/.history/components/customer/block/Stock/index_20220530190610.ts @@ -0,0 +1,2 @@ +export * from './Stock'; +export * from './Skeleton'; \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190021.ts b/.history/components/customer/block/index_20220530190021.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/block/index_20220530190112.ts b/.history/components/customer/block/index_20220530190112.ts new file mode 100644 index 0000000..42151f0 --- /dev/null +++ b/.history/components/customer/block/index_20220530190112.ts @@ -0,0 +1 @@ +export \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190116.ts b/.history/components/customer/block/index_20220530190116.ts new file mode 100644 index 0000000..c19399d --- /dev/null +++ b/.history/components/customer/block/index_20220530190116.ts @@ -0,0 +1 @@ +export * from \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190117.ts b/.history/components/customer/block/index_20220530190117.ts new file mode 100644 index 0000000..678f628 --- /dev/null +++ b/.history/components/customer/block/index_20220530190117.ts @@ -0,0 +1 @@ +export * from \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190122.ts b/.history/components/customer/block/index_20220530190122.ts new file mode 100644 index 0000000..45184d9 --- /dev/null +++ b/.history/components/customer/block/index_20220530190122.ts @@ -0,0 +1 @@ +export * from './' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190127.ts b/.history/components/customer/block/index_20220530190127.ts new file mode 100644 index 0000000..aa52c18 --- /dev/null +++ b/.history/components/customer/block/index_20220530190127.ts @@ -0,0 +1 @@ +export * from './Categories' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190129.ts b/.history/components/customer/block/index_20220530190129.ts new file mode 100644 index 0000000..26ff885 --- /dev/null +++ b/.history/components/customer/block/index_20220530190129.ts @@ -0,0 +1 @@ +export * from './Categories/' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190140.ts b/.history/components/customer/block/index_20220530190140.ts new file mode 100644 index 0000000..aa52c18 --- /dev/null +++ b/.history/components/customer/block/index_20220530190140.ts @@ -0,0 +1 @@ +export * from './Categories' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190209.ts b/.history/components/customer/block/index_20220530190209.ts new file mode 100644 index 0000000..aa52c18 --- /dev/null +++ b/.history/components/customer/block/index_20220530190209.ts @@ -0,0 +1 @@ +export * from './Categories' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190213.ts b/.history/components/customer/block/index_20220530190213.ts new file mode 100644 index 0000000..e80debf --- /dev/null +++ b/.history/components/customer/block/index_20220530190213.ts @@ -0,0 +1,2 @@ +export * from './Categories' +export * from './Categories' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190216.ts b/.history/components/customer/block/index_20220530190216.ts new file mode 100644 index 0000000..862ac45 --- /dev/null +++ b/.history/components/customer/block/index_20220530190216.ts @@ -0,0 +1,2 @@ +export * from './Categories' +export * from './Description' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190239.ts b/.history/components/customer/block/index_20220530190239.ts new file mode 100644 index 0000000..08c270f --- /dev/null +++ b/.history/components/customer/block/index_20220530190239.ts @@ -0,0 +1,3 @@ +export * from './Categories' +export * from './Description' +export \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190245.ts b/.history/components/customer/block/index_20220530190245.ts new file mode 100644 index 0000000..1d3f079 --- /dev/null +++ b/.history/components/customer/block/index_20220530190245.ts @@ -0,0 +1,3 @@ +export * from './Categories' +export * from './Description' +export * from './' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190246.ts b/.history/components/customer/block/index_20220530190246.ts new file mode 100644 index 0000000..b13be27 --- /dev/null +++ b/.history/components/customer/block/index_20220530190246.ts @@ -0,0 +1,3 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190251.ts b/.history/components/customer/block/index_20220530190251.ts new file mode 100644 index 0000000..b13be27 --- /dev/null +++ b/.history/components/customer/block/index_20220530190251.ts @@ -0,0 +1,3 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190316.ts b/.history/components/customer/block/index_20220530190316.ts new file mode 100644 index 0000000..b13be27 --- /dev/null +++ b/.history/components/customer/block/index_20220530190316.ts @@ -0,0 +1,3 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190322.ts b/.history/components/customer/block/index_20220530190322.ts new file mode 100644 index 0000000..89bdda6 --- /dev/null +++ b/.history/components/customer/block/index_20220530190322.ts @@ -0,0 +1,4 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190325.ts b/.history/components/customer/block/index_20220530190325.ts new file mode 100644 index 0000000..7c01f25 --- /dev/null +++ b/.history/components/customer/block/index_20220530190325.ts @@ -0,0 +1,4 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190333.ts b/.history/components/customer/block/index_20220530190333.ts new file mode 100644 index 0000000..2725712 --- /dev/null +++ b/.history/components/customer/block/index_20220530190333.ts @@ -0,0 +1,5 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190334.ts b/.history/components/customer/block/index_20220530190334.ts new file mode 100644 index 0000000..dcd7ed4 --- /dev/null +++ b/.history/components/customer/block/index_20220530190334.ts @@ -0,0 +1,5 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530190339.ts b/.history/components/customer/block/index_20220530190339.ts new file mode 100644 index 0000000..dcd7ed4 --- /dev/null +++ b/.history/components/customer/block/index_20220530190339.ts @@ -0,0 +1,5 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530192646.ts b/.history/components/customer/block/index_20220530192646.ts new file mode 100644 index 0000000..93cbcfe --- /dev/null +++ b/.history/components/customer/block/index_20220530192646.ts @@ -0,0 +1,6 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' +exp \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530192652.ts b/.history/components/customer/block/index_20220530192652.ts new file mode 100644 index 0000000..74307b5 --- /dev/null +++ b/.history/components/customer/block/index_20220530192652.ts @@ -0,0 +1,6 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' +export * from './' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530192653.ts b/.history/components/customer/block/index_20220530192653.ts new file mode 100644 index 0000000..270745b --- /dev/null +++ b/.history/components/customer/block/index_20220530192653.ts @@ -0,0 +1,6 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' +export * from './Header' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530193131.ts b/.history/components/customer/block/index_20220530193131.ts new file mode 100644 index 0000000..4e08c1c --- /dev/null +++ b/.history/components/customer/block/index_20220530193131.ts @@ -0,0 +1,7 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' +export * from './Header' +export * from './Header' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530193134.ts b/.history/components/customer/block/index_20220530193134.ts new file mode 100644 index 0000000..b3b5cd9 --- /dev/null +++ b/.history/components/customer/block/index_20220530193134.ts @@ -0,0 +1,7 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' +export * from './Header' +export * from './' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220530193137.ts b/.history/components/customer/block/index_20220530193137.ts new file mode 100644 index 0000000..07aefc2 --- /dev/null +++ b/.history/components/customer/block/index_20220530193137.ts @@ -0,0 +1,7 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' +export * from './Header' +export * from './Footer' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220531160959.ts b/.history/components/customer/block/index_20220531160959.ts new file mode 100644 index 0000000..73c09df --- /dev/null +++ b/.history/components/customer/block/index_20220531160959.ts @@ -0,0 +1,8 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' +export * from './Header' +export * from './Footer' +export * from './' \ No newline at end of file diff --git a/.history/components/customer/block/index_20220531161002.ts b/.history/components/customer/block/index_20220531161002.ts new file mode 100644 index 0000000..dfbf4fb --- /dev/null +++ b/.history/components/customer/block/index_20220531161002.ts @@ -0,0 +1,8 @@ +export * from './Categories' +export * from './Description' +export * from './Motto' +export * from './Pizza' +export * from './Stock' +export * from './Header' +export * from './Footer' +export * from './DeliveryArea' \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529001940.tsx b/.history/components/customer/containers/Box_20220529001940.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/containers/Box_20220529001947.tsx b/.history/components/customer/containers/Box_20220529001947.tsx new file mode 100644 index 0000000..618ba67 --- /dev/null +++ b/.history/components/customer/containers/Box_20220529001947.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +export const BoxScroll: React.FC = ({children}) => { + return( +
    +
    + {children} +
    +
    + ) +} +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529001949.tsx b/.history/components/customer/containers/Box_20220529001949.tsx new file mode 100644 index 0000000..60aa4b1 --- /dev/null +++ b/.history/components/customer/containers/Box_20220529001949.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    + {children} +
    +
    + ) +} +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002027.tsx b/.history/components/customer/containers/Box_20220529002027.tsx new file mode 100644 index 0000000..318f19f --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002027.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    + {children} +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002029.tsx b/.history/components/customer/containers/Box_20220529002029.tsx new file mode 100644 index 0000000..0cefc22 --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002029.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    + {children} +
    +
    + ) +} +
      +{children} +
    +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002041.tsx b/.history/components/customer/containers/Box_20220529002041.tsx new file mode 100644 index 0000000..318f19f --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002041.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    + {children} +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002044.tsx b/.history/components/customer/containers/Box_20220529002044.tsx new file mode 100644 index 0000000..4b09e6e --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002044.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    + {children} +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002046.tsx b/.history/components/customer/containers/Box_20220529002046.tsx new file mode 100644 index 0000000..38af532 --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002046.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      +{children} +
    + {children} +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002049.tsx b/.history/components/customer/containers/Box_20220529002049.tsx new file mode 100644 index 0000000..6d8bf3e --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002049.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      +{children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002052.tsx b/.history/components/customer/containers/Box_20220529002052.tsx new file mode 100644 index 0000000..4b5ad66 --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002052.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002054.tsx b/.history/components/customer/containers/Box_20220529002054.tsx new file mode 100644 index 0000000..17dcb16 --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002054.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002057.tsx b/.history/components/customer/containers/Box_20220529002057.tsx new file mode 100644 index 0000000..27a655f --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002057.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002104.tsx b/.history/components/customer/containers/Box_20220529002104.tsx new file mode 100644 index 0000000..d280f92 --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002104.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002105.tsx b/.history/components/customer/containers/Box_20220529002105.tsx new file mode 100644 index 0000000..cbe672a --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002105.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002128.tsx b/.history/components/customer/containers/Box_20220529002128.tsx new file mode 100644 index 0000000..b29cd4c --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002128.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002149.tsx b/.history/components/customer/containers/Box_20220529002149.tsx new file mode 100644 index 0000000..edcdeef --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002149.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002157.tsx b/.history/components/customer/containers/Box_20220529002157.tsx new file mode 100644 index 0000000..a30c7da --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002157.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002159.tsx b/.history/components/customer/containers/Box_20220529002159.tsx new file mode 100644 index 0000000..4fb5b9d --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002159.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import classNames from 'classnames'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002202.tsx b/.history/components/customer/containers/Box_20220529002202.tsx new file mode 100644 index 0000000..c35bf2c --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002202.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/Box_20220529002203.tsx b/.history/components/customer/containers/Box_20220529002203.tsx new file mode 100644 index 0000000..c35bf2c --- /dev/null +++ b/.history/components/customer/containers/Box_20220529002203.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export const Box: React.FC = ({children}) => { + return( +
    +
    +
      + {children} +
    +
    +
    + ) +} + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerInside_20220530185312.tsx b/.history/components/customer/containers/ContainerInside_20220530185312.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/containers/ContainerInside_20220530185321.tsx b/.history/components/customer/containers/ContainerInside_20220530185321.tsx new file mode 100644 index 0000000..e12e117 --- /dev/null +++ b/.history/components/customer/containers/ContainerInside_20220530185321.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerTitle: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerInside_20220530185325.tsx b/.history/components/customer/containers/ContainerInside_20220530185325.tsx new file mode 100644 index 0000000..2c16c35 --- /dev/null +++ b/.history/components/customer/containers/ContainerInside_20220530185325.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerInside: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerInside_20220530185335.tsx b/.history/components/customer/containers/ContainerInside_20220530185335.tsx new file mode 100644 index 0000000..aca94ca --- /dev/null +++ b/.history/components/customer/containers/ContainerInside_20220530185335.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerInside: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerInside_20220530185338.tsx b/.history/components/customer/containers/ContainerInside_20220530185338.tsx new file mode 100644 index 0000000..c73e816 --- /dev/null +++ b/.history/components/customer/containers/ContainerInside_20220530185338.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerInside: React.FC = ({title, children}) => { + return( +
    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerInside_20220530185340.tsx b/.history/components/customer/containers/ContainerInside_20220530185340.tsx new file mode 100644 index 0000000..7734f18 --- /dev/null +++ b/.history/components/customer/containers/ContainerInside_20220530185340.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerInside: React.FC = ({title, children}) => { + return( +
    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerInside_20220530185451.tsx b/.history/components/customer/containers/ContainerInside_20220530185451.tsx new file mode 100644 index 0000000..c4b5b1f --- /dev/null +++ b/.history/components/customer/containers/ContainerInside_20220530185451.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +type Props = { + children: React.ReactNode, + }; + +export const ContainerInside: React.FC = ({title, children}) => { + return( +
    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerInside_20220530185454.tsx b/.history/components/customer/containers/ContainerInside_20220530185454.tsx new file mode 100644 index 0000000..d87493b --- /dev/null +++ b/.history/components/customer/containers/ContainerInside_20220530185454.tsx @@ -0,0 +1,13 @@ +import React from 'react'; + +type Props = { + children: React.ReactNode, + }; + +export const ContainerInside: React.FC = ({children}) => { + return( +
    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530184604.tsx b/.history/components/customer/containers/ContainerTitle_20220530184604.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/containers/ContainerTitle_20220530184610.tsx b/.history/components/customer/containers/ContainerTitle_20220530184610.tsx new file mode 100644 index 0000000..21f1439 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184610.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +Container.propTypes = { + id: PropTypes.number, + title: PropTypes.string, + children: PropTypes.element, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184712.tsx b/.history/components/customer/containers/ContainerTitle_20220530184712.tsx new file mode 100644 index 0000000..fc5bc29 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184712.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { children: React.ReactNode }; + +Container.propTypes = { + id: PropTypes.number, + title: PropTypes.string, + children: PropTypes.element, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184723.tsx b/.history/components/customer/containers/ContainerTitle_20220530184723.tsx new file mode 100644 index 0000000..fe54c77 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184723.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { children: React.ReactNode }; + +type Props = { + id: PropTypes.number, + title: PropTypes.string, + children: PropTypes.element, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184730.tsx b/.history/components/customer/containers/ContainerTitle_20220530184730.tsx new file mode 100644 index 0000000..a3127f1 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184730.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + + + +type Props = { + id: PropTypes.number, + title: PropTypes.string, + children: PropTypes.element, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184733.tsx b/.history/components/customer/containers/ContainerTitle_20220530184733.tsx new file mode 100644 index 0000000..fe54c77 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184733.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { children: React.ReactNode }; + +type Props = { + id: PropTypes.number, + title: PropTypes.string, + children: PropTypes.element, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184738.tsx b/.history/components/customer/containers/ContainerTitle_20220530184738.tsx new file mode 100644 index 0000000..2701486 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184738.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { children: React.ReactNode }; + +type Props = { + id: PropTypes.number, + title: PropTypes.string, + children: React.ReactNode, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184740.tsx b/.history/components/customer/containers/ContainerTitle_20220530184740.tsx new file mode 100644 index 0000000..193204d --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184740.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { children: React.ReactNode }; + +type Props = { + id: PropTypes.number, + title: string, + children: React.ReactNode, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184743.tsx b/.history/components/customer/containers/ContainerTitle_20220530184743.tsx new file mode 100644 index 0000000..b339d68 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184743.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { children: React.ReactNode }; + +type Props = { + id: number, + title: string, + children: React.ReactNode, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184745.tsx b/.history/components/customer/containers/ContainerTitle_20220530184745.tsx new file mode 100644 index 0000000..d3604b2 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184745.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { + id: number, + title: string, + children: React.ReactNode, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184756.tsx b/.history/components/customer/containers/ContainerTitle_20220530184756.tsx new file mode 100644 index 0000000..22dfe44 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184756.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +const Container: React.FC = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { + id: number, + title: string, + children: React.ReactNode, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184803.tsx b/.history/components/customer/containers/ContainerTitle_20220530184803.tsx new file mode 100644 index 0000000..d4608cd --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184803.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export const Container: React.FC = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { + id: number, + title: string, + children: React.ReactNode, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184822.tsx b/.history/components/customer/containers/ContainerTitle_20220530184822.tsx new file mode 100644 index 0000000..ea306d9 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184822.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export const Container: React.FC = ({id, title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { + id: number, + title: string, + children: React.ReactNode, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184827.tsx b/.history/components/customer/containers/ContainerTitle_20220530184827.tsx new file mode 100644 index 0000000..c571010 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184827.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export const Container: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { + id: number, + title: string, + children: React.ReactNode, +}; + +export default Container; diff --git a/.history/components/customer/containers/ContainerTitle_20220530184831.tsx b/.history/components/customer/containers/ContainerTitle_20220530184831.tsx new file mode 100644 index 0000000..fb58491 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184831.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export const Container: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { + id: number, + title: string, + children: React.ReactNode, +}; \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530184834.tsx b/.history/components/customer/containers/ContainerTitle_20220530184834.tsx new file mode 100644 index 0000000..b1fe6d6 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184834.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +export const Container: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + +type Props = { + id: number, + title: string, + children: React.ReactNode, +}; \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530184838.tsx b/.history/components/customer/containers/ContainerTitle_20220530184838.tsx new file mode 100644 index 0000000..2f0b223 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184838.tsx @@ -0,0 +1,11 @@ +import React from 'react'; + +export const Container: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + diff --git a/.history/components/customer/containers/ContainerTitle_20220530184840.tsx b/.history/components/customer/containers/ContainerTitle_20220530184840.tsx new file mode 100644 index 0000000..e5ef186 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184840.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +type Props = { + id: number, + title: string, + children: React.ReactNode, + }; + +export const Container: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} + diff --git a/.history/components/customer/containers/ContainerTitle_20220530184842.tsx b/.history/components/customer/containers/ContainerTitle_20220530184842.tsx new file mode 100644 index 0000000..b6d4f01 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184842.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +type Props = { + id: number, + title: string, + children: React.ReactNode, + }; + +export const Container: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530184902.tsx b/.history/components/customer/containers/ContainerTitle_20220530184902.tsx new file mode 100644 index 0000000..5d3f238 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184902.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +type Props = { + id: number, + title: string, + children: React.ReactNode, + }; + +export const ContainerTi: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530184906.tsx b/.history/components/customer/containers/ContainerTitle_20220530184906.tsx new file mode 100644 index 0000000..a75bde3 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184906.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +type Props = { + id: number, + title: string, + children: React.ReactNode, + }; + +export const ContainerTitle: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530184908.tsx b/.history/components/customer/containers/ContainerTitle_20220530184908.tsx new file mode 100644 index 0000000..a75bde3 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530184908.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +type Props = { + id: number, + title: string, + children: React.ReactNode, + }; + +export const ContainerTitle: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530185043.tsx b/.history/components/customer/containers/ContainerTitle_20220530185043.tsx new file mode 100644 index 0000000..b2d008d --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530185043.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerTitle: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + <>{children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530185109.tsx b/.history/components/customer/containers/ContainerTitle_20220530185109.tsx new file mode 100644 index 0000000..8bd63ca --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530185109.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerTitle: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530185110.tsx b/.history/components/customer/containers/ContainerTitle_20220530185110.tsx new file mode 100644 index 0000000..e12e117 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530185110.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerTitle: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/ContainerTitle_20220530185111.tsx b/.history/components/customer/containers/ContainerTitle_20220530185111.tsx new file mode 100644 index 0000000..e12e117 --- /dev/null +++ b/.history/components/customer/containers/ContainerTitle_20220530185111.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +type Props = { + title: string, + children: React.ReactNode, + }; + +export const ContainerTitle: React.FC = ({title, children}) => { + return( +
    +

    {title}

    + {children} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220517162153.ts b/.history/components/customer/containers/index_20220517162153.ts new file mode 100644 index 0000000..4faf4d4 --- /dev/null +++ b/.history/components/customer/containers/index_20220517162153.ts @@ -0,0 +1 @@ +export * from './BoxScroll'; \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530184918.ts b/.history/components/customer/containers/index_20220530184918.ts new file mode 100644 index 0000000..96fbcb1 --- /dev/null +++ b/.history/components/customer/containers/index_20220530184918.ts @@ -0,0 +1,2 @@ +export * from './BoxScroll'; +export * form '' \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530184919.ts b/.history/components/customer/containers/index_20220530184919.ts new file mode 100644 index 0000000..79b9235 --- /dev/null +++ b/.history/components/customer/containers/index_20220530184919.ts @@ -0,0 +1,2 @@ +export * from './BoxScroll'; +export * form './' \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530184921.ts b/.history/components/customer/containers/index_20220530184921.ts new file mode 100644 index 0000000..79b9235 --- /dev/null +++ b/.history/components/customer/containers/index_20220530184921.ts @@ -0,0 +1,2 @@ +export * from './BoxScroll'; +export * form './' \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530184925.ts b/.history/components/customer/containers/index_20220530184925.ts new file mode 100644 index 0000000..c5ee560 --- /dev/null +++ b/.history/components/customer/containers/index_20220530184925.ts @@ -0,0 +1,2 @@ +export * from './BoxScroll'; +export * from './' \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530184926.ts b/.history/components/customer/containers/index_20220530184926.ts new file mode 100644 index 0000000..c5ee560 --- /dev/null +++ b/.history/components/customer/containers/index_20220530184926.ts @@ -0,0 +1,2 @@ +export * from './BoxScroll'; +export * from './' \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530184929.ts b/.history/components/customer/containers/index_20220530184929.ts new file mode 100644 index 0000000..d3a0d0a --- /dev/null +++ b/.history/components/customer/containers/index_20220530184929.ts @@ -0,0 +1,2 @@ +export * from './BoxScroll'; +export * from './ContainerTitle' \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530184931.ts b/.history/components/customer/containers/index_20220530184931.ts new file mode 100644 index 0000000..ca42e44 --- /dev/null +++ b/.history/components/customer/containers/index_20220530184931.ts @@ -0,0 +1,2 @@ +export * from './BoxScroll'; +export * from './ContainerTitle'; \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530185348.ts b/.history/components/customer/containers/index_20220530185348.ts new file mode 100644 index 0000000..67a619e --- /dev/null +++ b/.history/components/customer/containers/index_20220530185348.ts @@ -0,0 +1,3 @@ +export * from './BoxScroll'; +export * from './ContainerTitle'; +export * from './ContainerTitle'; \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530185350.ts b/.history/components/customer/containers/index_20220530185350.ts new file mode 100644 index 0000000..7a5ef8b --- /dev/null +++ b/.history/components/customer/containers/index_20220530185350.ts @@ -0,0 +1,3 @@ +export * from './BoxScroll'; +export * from './ContainerTitle'; +export * from './'; \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530185352.ts b/.history/components/customer/containers/index_20220530185352.ts new file mode 100644 index 0000000..a604112 --- /dev/null +++ b/.history/components/customer/containers/index_20220530185352.ts @@ -0,0 +1,3 @@ +export * from './BoxScroll'; +export * from './ContainerTitle'; +export * from './ContainerInside'; \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530190723.ts b/.history/components/customer/containers/index_20220530190723.ts new file mode 100644 index 0000000..9d29218 --- /dev/null +++ b/.history/components/customer/containers/index_20220530190723.ts @@ -0,0 +1,4 @@ +export * from './BoxScroll'; +export * from './ContainerTitle'; +export * from './ContainerInside'; +export \ No newline at end of file diff --git a/.history/components/customer/containers/index_20220530190729.ts b/.history/components/customer/containers/index_20220530190729.ts new file mode 100644 index 0000000..6964063 --- /dev/null +++ b/.history/components/customer/containers/index_20220530190729.ts @@ -0,0 +1,4 @@ +export * from './BoxScroll'; +export * from './ContainerTitle'; +export * from './ContainerInside'; +export * from './Box' \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Header/Header_20220530192634.tsx b/.history/components/customer/pages/index/block/Header/Header_20220530192634.tsx new file mode 100644 index 0000000..610a747 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220530192634.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + + + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618071836.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618071836.tsx new file mode 100644 index 0000000..1c170b4 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618071836.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; +import Link from 'next/link'; + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + +

    Корзина

    + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618071924.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618071924.tsx new file mode 100644 index 0000000..37056ba --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618071924.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + +

    Корзина

    + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618071936.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618071936.tsx new file mode 100644 index 0000000..37056ba --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618071936.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + +

    Корзина

    + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072003.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072003.tsx new file mode 100644 index 0000000..5b49d05 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072003.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + +

    Корзина

    + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072014.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072014.tsx new file mode 100644 index 0000000..d6788ee --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072014.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + +

    Корзина

    + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072027.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072027.tsx new file mode 100644 index 0000000..5b49d05 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072027.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + +

    Корзина

    + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072049.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072049.tsx new file mode 100644 index 0000000..6289b9e --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072049.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + +

    Корзина

    + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072124.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072124.tsx new file mode 100644 index 0000000..f68163c --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072124.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + +

    Корзина

    + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072148.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072148.tsx new file mode 100644 index 0000000..0a45668 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072148.tsx @@ -0,0 +1,91 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + updateDataHeader()} + /> + + Корзина + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072235.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072235.tsx new file mode 100644 index 0000000..233ad09 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072235.tsx @@ -0,0 +1,89 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + + Корзина + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072251.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072251.tsx new file mode 100644 index 0000000..4f3faf3 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072251.tsx @@ -0,0 +1,84 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + ddd + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072326.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072326.tsx new file mode 100644 index 0000000..51b7105 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072326.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + + + Корзина + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618072406.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618072406.tsx new file mode 100644 index 0000000..499e80c --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618072406.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + + + Корзина + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618073528.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618073528.tsx new file mode 100644 index 0000000..caa4e51 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618073528.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + + + Корзина + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Header/Header_20220618074144.tsx b/.history/components/customer/pages/index/block/Header/Header_20220618074144.tsx new file mode 100644 index 0000000..e8a2c82 --- /dev/null +++ b/.history/components/customer/pages/index/block/Header/Header_20220618074144.tsx @@ -0,0 +1,90 @@ +import { useSelector } from 'react-redux'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import Link from "next/link"; + +import { + faBasketShopping, + faUser, + faLocationDot, + faPhone +} from "@fortawesome/free-solid-svg-icons"; + + + +//import { Search } from './search'; +//import { selectCart } from '../../redux/cart/selectors'; + + +export const Header: React.FC = () => { + //const { items, totalPrice } = useSelector(selectCart); + const [showBasketCard, setShowBasketCard] = useState(false); + const isMounted = React.useRef(false); + const updateDataHeader = () => { + setShowBasketCard(true); + console.log('clik'); + } + + //const totalCount = items.reduce((sum: number, item: any) => sum + item.count, 0); + + React.useEffect(() => { + // const pageWidth = document.documentElement.clientWidth + // const pageHeight = document.documentElement.scrollHeight + if (isMounted.current) { + // const json = JSON.stringify(items); + // localStorage.setItem('cart', json); + } + isMounted.current = true; + // console.log(pageWidth, 'pageWidth'); + // console.log(pageHeight, 'pageHeight'); + }, [1]); + + return ( +
    +
    +

    Logo

    +
    +
    +
    + + +
    +
    + +
    +
    + + + + + Корзина + +
    +
    + +
    + ); +}; diff --git a/.history/components/customer/pages/index/block/Motto/index_20220529144909.tsx b/.history/components/customer/pages/index/block/Motto/index_20220529144909.tsx new file mode 100644 index 0000000..f1af6d1 --- /dev/null +++ b/.history/components/customer/pages/index/block/Motto/index_20220529144909.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Motto/index_20220617165052.tsx b/.history/components/customer/pages/index/block/Motto/index_20220617165052.tsx new file mode 100644 index 0000000..36688b6 --- /dev/null +++ b/.history/components/customer/pages/index/block/Motto/index_20220617165052.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export const MottoBlock: React.FC = () => { + return ( +
    +
    +
    +
    +

    Горячая пицца для каждого

    +
    +
    +
    +

    Долетим за 35 минут

    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220531162100.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220531162100.tsx new file mode 100644 index 0000000..0bb4113 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220531162100.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163259.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163259.tsx new file mode 100644 index 0000000..6c88ede --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163259.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163359.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163359.tsx new file mode 100644 index 0000000..6c88ede --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163359.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163438.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163438.tsx new file mode 100644 index 0000000..0c3f6dc --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163438.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163651.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163651.tsx new file mode 100644 index 0000000..a2d32a0 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163651.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163701.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163701.tsx new file mode 100644 index 0000000..4f85c60 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163701.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + dddd + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163739.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163739.tsx new file mode 100644 index 0000000..bb2e8a8 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163739.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + {id} + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163758.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163758.tsx new file mode 100644 index 0000000..7f148c1 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602163758.tsx @@ -0,0 +1,59 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + sss + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164050.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164050.tsx new file mode 100644 index 0000000..bcee36b --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164050.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164112.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164112.tsx new file mode 100644 index 0000000..84911e6 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164112.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164129.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164129.tsx new file mode 100644 index 0000000..3113e9d --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164129.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164142.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164142.tsx new file mode 100644 index 0000000..2d9b1a5 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164142.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164241.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164241.tsx new file mode 100644 index 0000000..eb335fe --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164241.tsx @@ -0,0 +1,58 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164501.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164501.tsx new file mode 100644 index 0000000..3036795 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602164501.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602165405.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602165405.tsx new file mode 100644 index 0000000..2d508ce --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602165405.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220602165450.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602165450.tsx new file mode 100644 index 0000000..7e7f45d --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220602165450.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220603173339.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220603173339.tsx new file mode 100644 index 0000000..27d5dbc --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220603173339.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082241.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082241.tsx new file mode 100644 index 0000000..4d6982b --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082241.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082309.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082309.tsx new file mode 100644 index 0000000..8816018 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082309.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082325.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082325.tsx new file mode 100644 index 0000000..27d5dbc --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082325.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082359.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082359.tsx new file mode 100644 index 0000000..27d5dbc --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082359.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082546.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082546.tsx new file mode 100644 index 0000000..eccda0b --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604082546.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131839.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131839.tsx new file mode 100644 index 0000000..d6ee4e5 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131839.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131854.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131854.tsx new file mode 100644 index 0000000..079851d --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131854.tsx @@ -0,0 +1,57 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131916.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131916.tsx new file mode 100644 index 0000000..861ad84 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604131916.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + Добавить + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132101.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132101.tsx new file mode 100644 index 0000000..c09f344 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132101.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + Добавить + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132104.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132104.tsx new file mode 100644 index 0000000..c09f344 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132104.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + Добавить + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132121.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132121.tsx new file mode 100644 index 0000000..02a8621 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132121.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132243.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132243.tsx new file mode 100644 index 0000000..1938900 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604132243.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604154741.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604154741.tsx new file mode 100644 index 0000000..d6876de --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604154741.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220604155111.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604155111.tsx new file mode 100644 index 0000000..c97df1b --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220604155111.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220615035530.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220615035530.tsx new file mode 100644 index 0000000..622be66 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220615035530.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {heft_trad} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220617160543.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220617160543.tsx new file mode 100644 index 0000000..03890a9 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220617160543.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220617164057.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220617164057.tsx new file mode 100644 index 0000000..b3296b2 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220617164057.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220618073853.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220618073853.tsx new file mode 100644 index 0000000..3556e21 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220618073853.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + + + +
    +
    +
  • + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220618174843.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220618174843.tsx new file mode 100644 index 0000000..171b22e --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220618174843.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220618175816.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220618175816.tsx new file mode 100644 index 0000000..13050bc --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220618175816.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220618175927.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220618175927.tsx new file mode 100644 index 0000000..4f67381 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220618175927.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220619065529.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619065529.tsx new file mode 100644 index 0000000..2d01493 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619065529.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070446.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070446.tsx new file mode 100644 index 0000000..f5db8e5 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070446.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + + {title} +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070555.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070555.tsx new file mode 100644 index 0000000..ac3fdad --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070555.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + + {title} +

    {description}

    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070626.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070626.tsx new file mode 100644 index 0000000..b313c55 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070626.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + + {title} +

    {description}

    +
    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070647.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070647.tsx new file mode 100644 index 0000000..61f4b0e --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070647.tsx @@ -0,0 +1,54 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    +
    + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070938.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070938.tsx new file mode 100644 index 0000000..6147041 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619070938.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    +
    + + + onClickAdd()}>Видос + + +

    от {price[0]} руб

    + +
    +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/Pizza_20220619071011.tsx b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619071011.tsx new file mode 100644 index 0000000..a82db95 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/Pizza_20220619071011.tsx @@ -0,0 +1,56 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaBlockProps = { + id: number; + title: string; + price: number[]; + description: string; + img: string[]; +}; + +export const PizzaBlock: React.FC = ({ + id, + title, + img, + price, + description, +}) => { + + const onClickAdd = () => { + console.log('ok'); + }; + + return ( + +
  • +
    + {title} +
    + +

    {title}

    +

    {description}

    +
    + + onClickAdd()}>Видос + + + +

    от {price[0]} руб

    + +
    +
    +
  • + + ); +}; + + diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175418.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175418.scss new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175436.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175436.scss new file mode 100644 index 0000000..0f918ce --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175436.scss @@ -0,0 +1,92 @@ +.product_card{ + height: 630px; + display: table; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; +} + +.product_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .vendor-item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .vendor-item:hover .vendor-item__link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .vendor-item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .vendor-item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .vendor-item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .vendor-item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .vendor-item { + transition: 0.2s; + } + .vendor-item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .vendor-item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175756.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175756.scss new file mode 100644 index 0000000..a770b9e --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175756.scss @@ -0,0 +1,92 @@ +.product_card{ + height: 630px; + display: table; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; +} + +.product_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175914.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175914.scss new file mode 100644 index 0000000..04cc3fa --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175914.scss @@ -0,0 +1,92 @@ +.pizza_card{ + height: 630px; + display: table; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; +} + +.product_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175918.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175918.scss new file mode 100644 index 0000000..7ee0bce --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175918.scss @@ -0,0 +1,92 @@ +.pizza_card{ + height: 630px; + display: table; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175956.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175956.scss new file mode 100644 index 0000000..dec2cff --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618175956.scss @@ -0,0 +1,101 @@ +.pizza_card{ + height: 630px; + display: table; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + width: 292px; + margin-right: 37.3333px; +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618180147.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618180147.scss new file mode 100644 index 0000000..e2fcc43 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618180147.scss @@ -0,0 +1,100 @@ +.pizza_card{ + height: 630px; + display: table; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618201842.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618201842.scss new file mode 100644 index 0000000..1c1fb9f --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618201842.scss @@ -0,0 +1,98 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220618202120.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618202120.scss new file mode 100644 index 0000000..1c1fb9f --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220618202120.scss @@ -0,0 +1,98 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065308.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065308.scss new file mode 100644 index 0000000..89cba97 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065308.scss @@ -0,0 +1,99 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; + line-height: 20px; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065336.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065336.scss new file mode 100644 index 0000000..1c1fb9f --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065336.scss @@ -0,0 +1,98 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065624.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065624.scss new file mode 100644 index 0000000..e02934d --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065624.scss @@ -0,0 +1,108 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065659.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065659.scss new file mode 100644 index 0000000..ea84cac --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065659.scss @@ -0,0 +1,113 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065826.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065826.scss new file mode 100644 index 0000000..8fb1a2a --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065826.scss @@ -0,0 +1,121 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + margin: 8px 0px; + color: rgb(0, 0, 0); + font-size: 20px; + line-height: 24px; + font-weight: 500; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065923.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065923.scss new file mode 100644 index 0000000..af34960 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619065923.scss @@ -0,0 +1,119 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070505.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070505.scss new file mode 100644 index 0000000..0adee94 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070505.scss @@ -0,0 +1,120 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070945.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070945.scss new file mode 100644 index 0000000..a146c79 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070945.scss @@ -0,0 +1,124 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070954.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070954.scss new file mode 100644 index 0000000..7436056 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619070954.scss @@ -0,0 +1,125 @@ +.pizza_card{ + height: 630px; + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + +.product_card_box{ + /*width: 256px; */ + text-align: left; +} + +.product_card_footer{ + display: table; + width: 100%; +} + +.product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; +} + +.product_card_video{ + width: 100%; +} + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071441.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071441.scss new file mode 100644 index 0000000..60feb8f --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071441.scss @@ -0,0 +1,124 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071456.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071456.scss new file mode 100644 index 0000000..570bb86 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071456.scss @@ -0,0 +1,121 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_card:hover { + +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071504.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071504.scss new file mode 100644 index 0000000..60feb8f --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071504.scss @@ -0,0 +1,124 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071523.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071523.scss new file mode 100644 index 0000000..799bbf9 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071523.scss @@ -0,0 +1,123 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071547.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071547.scss new file mode 100644 index 0000000..0acbcaa --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071547.scss @@ -0,0 +1,124 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .pizza_item:hover { + margin-top: -4px; + + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071609.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071609.scss new file mode 100644 index 0000000..5f07ed8 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071609.scss @@ -0,0 +1,124 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + .img:hover { + margin-top: -4px; + margin-bottom: 24px; + } + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071630.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071630.scss new file mode 100644 index 0000000..7604510 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071630.scss @@ -0,0 +1,125 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + + .pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; + } +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071638.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071638.scss new file mode 100644 index 0000000..5c3d418 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071638.scss @@ -0,0 +1,126 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_item:hover { + margin-top: -4px; + margin-bottom: 24px; +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071656.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071656.scss new file mode 100644 index 0000000..cbeb252 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071656.scss @@ -0,0 +1,126 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_item:hover { + margin-top: -4px; + margin-bottom: 4px; +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071710.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071710.scss new file mode 100644 index 0000000..0ba404c --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619071710.scss @@ -0,0 +1,126 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + } + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_item:hover { + /* margin-top: -4px; + margin-bottom: 24px;*/ +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619074534.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619074534.scss new file mode 100644 index 0000000..db94d4e --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619074534.scss @@ -0,0 +1,131 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + + h3{ + margin-bottom: 5px; + } + } + + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_item:hover { + /* margin-top: -4px; + margin-bottom: 24px;*/ +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075135.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075135.scss new file mode 100644 index 0000000..cb04b6b --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075135.scss @@ -0,0 +1,131 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + display: contents; + h3{ + flex: auto; + } + } + + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_item:hover { + /* margin-top: -4px; + margin-bottom: 24px;*/ +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075359.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075359.scss new file mode 100644 index 0000000..a9b55de --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075359.scss @@ -0,0 +1,132 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + display: contents; + .product_card_text{ + flex: auto; + } + + } + + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_item:hover { + /* margin-top: -4px; + margin-bottom: 24px;*/ +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075421.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075421.scss new file mode 100644 index 0000000..51cad10 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075421.scss @@ -0,0 +1,135 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + display: flex; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + display: contents; + h3{ + margin-bottom: 5px; + } + .product_card_text{ + flex: auto; + } + + } + + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_item:hover { + /* margin-top: -4px; + margin-bottom: 24px;*/ +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075650.scss b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075650.scss new file mode 100644 index 0000000..cda2198 --- /dev/null +++ b/.history/components/customer/pages/index/block/Pizza/styles/index_20220619075650.scss @@ -0,0 +1,134 @@ +.pizza_card{ + /*height: 630px;*/ + float: left; + position: static; + text-align: center; + border:1px solid hsl(0, 0%, 100%); + padding: 20px; + transition: all 0.2s ease; + + display: flex; + flex-flow: column; + -webkit-box-pack: justify; + justify-content: space-between; + margin-bottom: 60px; + cursor: pointer; + + .img { + margin: 0px; + position: relative; + width: 100%; + border-radius: 12px; + top: 0px; + transition: top 150ms ease-out 0s; + + user-select: none; + image-rendering: auto; + flex-flow: column; + } + + .product_card_box{ + text-align: left; + margin: 8px 0px; + line-height: 24px; + font-weight: 500; + display: contents; + h3{ + margin-bottom: 5px; + } + .product_card_text{ + flex: auto; + } + + } + + + .footer_box{ + margin-top: 16px; + display: flex; + } + + .product_card_footer{ + display: table; + width: 100%; + } + + .product_card_price{ + float: left; + position: static; + display: flex; + margin: 10px 10px; + font-style: normal; + font-weight: 600; + } + + .product_card_video{ + width: 100%; + } + +} + +.pizza_item:hover { + /* margin-top: -4px; + margin-bottom: 24px;*/ +} + +.pizza_card:hover { + border:1px solid #d6d6d6; + filter:blur(0px); + opacity:1; + box-shadow:0 8px 20px 0px rgba(0,0,0,0.125); +} + +.pictureText_text{ + display: block; + text-align: left; +} + +.product_card_img{ + text-align: center; +} + + + + + +@media (min-width: 640px) { + .pizza_item { + /* margin: 0 20px 20px 0; */ + box-shadow: 0 0 0 0 rgba(227, 228, 230, 0); + } + .pizza_item:hover .pizza_item_link { + box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08); + box-shadow: 0 7px 19px -1px rgba(172, 172, 179, 0.3); + } +} + +@media (min-width: 640px) and (min-width: 1600px) { + .pizza_item { + width: calc(100% / 4 - (20px * 3 / 4)); + } + .pizza_item:nth-child(4n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) and (max-width: 1600px) { + .pizza_item { + width: calc(100% / 2 - (20px * 2 / 3)); + } + .pizza_item:nth-child(3n) { + margin-right: 0; + } +} + +@media (min-width: 640px) and (min-width: 768px) { + .pizza_item { + transition: 0.2s; + } + + .pizza_item:hover .vendor-fave__btn { + opacity: 1; + pointer-events: auto; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/cardAdditionally_20220618065612.tsx b/.history/components/customer/pages/index/modals/cart/cardAdditionally_20220618065612.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/cart/cardAdditionally_20220618065707.tsx b/.history/components/customer/pages/index/modals/cart/cardAdditionally_20220618065707.tsx new file mode 100644 index 0000000..45d1517 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/cardAdditionally_20220618065707.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Image from 'next/image'; + +type Props = { + src: string, + alt: string, +}; + +export const CardAdditionally: React.FC = ({src, alt}) => { + return( +
    + {alt} +
    + ) +} + +export default CardAdditionally; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/cardAdditionally_20220618065729.tsx b/.history/components/customer/pages/index/modals/cart/cardAdditionally_20220618065729.tsx new file mode 100644 index 0000000..52bd731 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/cardAdditionally_20220618065729.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import Image from 'next/image'; + +type Props = { + src: string, + alt: string, +}; + +export const CardAdditionally: React.FC = ({src, alt}) => { + return( +
    + {alt} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618064604.tsx b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618064604.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618065139.tsx b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618065139.tsx new file mode 100644 index 0000000..9ef2bf6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618065139.tsx @@ -0,0 +1,44 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; + +type Props = { src: string, + alt: string, + title_name: string, + title_size: string, + sum: number, + }; + +export const CardBasketProduct: React.FC = ({src, alt, title_name, title_size, sum}) => { + const [countProduct, setcountProduct] = useState(1); + const [price, setPrice] = useState(sum); + + return( +
    +
    + {alt} +
    +
    +

    {title_name}

    +

    {title_size}

    +
    + +
    + +

    {countProduct}

    + +
    + +
    +

    {price} ₽

    +
    +
    + ) +} + +export default CardBasketProduct; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618065724.tsx b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618065724.tsx new file mode 100644 index 0000000..0c69714 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618065724.tsx @@ -0,0 +1,42 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; + +type Props = { src: string, + alt: string, + title_name: string, + title_size: string, + sum: number, + }; + +export const CardBasketProduct: React.FC = ({src, alt, title_name, title_size, sum}) => { + const [countProduct, setcountProduct] = useState(1); + const [price, setPrice] = useState(sum); + + return( +
    +
    + {alt} +
    +
    +

    {title_name}

    +

    {title_size}

    +
    + +
    + +

    {countProduct}

    + +
    + +
    +

    {price} ₽

    +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618083126.tsx b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618083126.tsx new file mode 100644 index 0000000..f455c14 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618083126.tsx @@ -0,0 +1,42 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; + +type Props = { src: string, + alt: string, + title_name: string, + title_size: string, + sum: number, + }; + +export const CardBasketProduct: React.FC = ({src, alt, title_name, title_size, sum}) => { + const [countProduct, setcountProduct] = useState(1); + const [price, setPrice] = useState(sum); + + return( +
    +
    + {alt} +
    +
    +

    {title_name}

    +

    {title_size}

    +
    + +
    + +

    {countProduct}

    + +
    + +
    +

    {price} ₽

    +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618083211.tsx b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618083211.tsx new file mode 100644 index 0000000..0c69714 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/cardBasketProduct_20220618083211.tsx @@ -0,0 +1,42 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; + +type Props = { src: string, + alt: string, + title_name: string, + title_size: string, + sum: number, + }; + +export const CardBasketProduct: React.FC = ({src, alt, title_name, title_size, sum}) => { + const [countProduct, setcountProduct] = useState(1); + const [price, setPrice] = useState(sum); + + return( +
    +
    + {alt} +
    +
    +

    {title_name}

    +

    {title_size}

    +
    + +
    + +

    {countProduct}

    + +
    + +
    +

    {price} ₽

    +
    +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618063330.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618063330.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618063620.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618063620.tsx new file mode 100644 index 0000000..7fd133b --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618063620.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618065345.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618065345.tsx new file mode 100644 index 0000000..b1d19ad --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618065345.tsx @@ -0,0 +1,180 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct } from './' + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618065416.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618065416.tsx new file mode 100644 index 0000000..0ff2eaf --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618065416.tsx @@ -0,0 +1,181 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct } from './' + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618065525.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618065525.tsx new file mode 100644 index 0000000..dcc0443 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618065525.tsx @@ -0,0 +1,182 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618065858.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618065858.tsx new file mode 100644 index 0000000..8b284f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618065858.tsx @@ -0,0 +1,188 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + + const [additionally, setAdditionally] = useState([{src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100},]); + + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618065924.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618065924.tsx new file mode 100644 index 0000000..2283c95 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618065924.tsx @@ -0,0 +1,190 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + + const [additionally, setAdditionally] = useState([{src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618071114.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618071114.tsx new file mode 100644 index 0000000..f478320 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618071114.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618073833.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618073833.tsx new file mode 100644 index 0000000..4cc254e --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618073833.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100}, + {src:'/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618081203.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618081203.tsx new file mode 100644 index 0000000..4a2d17d --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618081203.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618082130.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618082130.tsx new file mode 100644 index 0000000..c59f5d7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618082130.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618083539.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618083539.tsx new file mode 100644 index 0000000..9326159 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618083539.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618084207.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618084207.tsx new file mode 100644 index 0000000..7d8b8db --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618084207.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618084215.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618084215.tsx new file mode 100644 index 0000000..b5ebb49 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618084215.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618105221.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618105221.tsx new file mode 100644 index 0000000..5561a9d --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618105221.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([{name:'Ggg'}]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618105351.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618105351.tsx new file mode 100644 index 0000000..1305a21 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618105351.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([{name:'Ggg'}]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618105650.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618105650.tsx new file mode 100644 index 0000000..2742304 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618105650.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([{name:'Ggg', size:'30 ffv'}]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618105704.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618105704.tsx new file mode 100644 index 0000000..6c237e4 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618105704.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([{name:'Ggg', size:'30 ffv', price:'345'}]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618105753.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618105753.tsx new file mode 100644 index 0000000..a8935f9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618105753.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([{name:'Ggg', size:'30 ffv', sum:345}]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618111039.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618111039.tsx new file mode 100644 index 0000000..dca7719 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618111039.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([{name:'Ggg', size:'30 ffv', sum:345}, {name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345}]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618145445.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618145445.tsx new file mode 100644 index 0000000..762db74 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618145445.tsx @@ -0,0 +1,101 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([{name:'Ggg', size:'30 ffv', sum:345}, {name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345}]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/content_20220618145731.tsx b/.history/components/customer/pages/index/modals/cart/content_20220618145731.tsx new file mode 100644 index 0000000..dca7719 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/content_20220618145731.tsx @@ -0,0 +1,104 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { useSelector } from 'react-redux'; +import { HiMinus, HiPlus } from "react-icons/hi"; +import { CardBasketProduct, CardAdditionally } from './' +import { BoxScroll, Box } from '../../../../../../components/customer/containers'; +import {ButtonImg, Button } from '../../../../../UI'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContentCart: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + //const { totalPrice, totalCount } = useSelector(({ cart }) => cart); + const totalCount =0; + const [basket, setBasket] = useState([{name:'Ggg', size:'30 ffv', sum:345}, {name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345},{name:'Ggg', size:'30 ffv', sum:345}]); + const [quantityGoods, setQuantityGoods] = useState(basket.length); + const [additionally, setAdditionally] = useState([{src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100}, + {src:'/assets/img/coca.png', name: 'Coca', price: 100},]); + + const [delivery, setDelivery] = useState(0); + + const [sum, setSum] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + + + return ( + <> + + + +
    +

    {totalCount} товар(а)

    +
    +
    +
    + {Object.keys(basket).length > 0 ? basket.map((rows, count) => + + ): ' Корзина пуста'} +
    +
    +

    Добавить к заказу?

    + + {additionally.map((name, count) => + ) + } + +
    +
    +
    +
    + + +
    +
    +
    +

    Доставка

    {delivery} ₽

    +
    +
    +

    {quantityGoods} товар(а)

    +

    {sum} ₽

    +
    +
    + +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/cart/index_20220618063258.ts b/.history/components/customer/pages/index/modals/cart/index_20220618063258.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/cart/index_20220618063608.ts b/.history/components/customer/pages/index/modals/cart/index_20220618063608.ts new file mode 100644 index 0000000..e40c8f0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/index_20220618063608.ts @@ -0,0 +1,2 @@ +export * from './content' +export * from './pizzaCart' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/index_20220618065325.ts b/.history/components/customer/pages/index/modals/cart/index_20220618065325.ts new file mode 100644 index 0000000..c1b680a --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/index_20220618065325.ts @@ -0,0 +1,3 @@ +export * from './content' +export * from './pizzaCart' +export * from './cardBasketProduct' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/index_20220618065751.ts b/.history/components/customer/pages/index/modals/cart/index_20220618065751.ts new file mode 100644 index 0000000..509e878 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/index_20220618065751.ts @@ -0,0 +1,4 @@ +export * from './content' +export * from './pizzaCart' +export * from './cardBasketProduct' +export * from './cardAdditionally' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618063313.tsx b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618063313.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618063622.tsx b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618063622.tsx new file mode 100644 index 0000000..b086a57 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618063622.tsx @@ -0,0 +1,32 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +//import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCart: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + // dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + //const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + { + //pizza + } + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618071220.tsx b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618071220.tsx new file mode 100644 index 0000000..cd8db16 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618071220.tsx @@ -0,0 +1,32 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCart: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + // dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + //const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + { + + } + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618073843.tsx b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618073843.tsx new file mode 100644 index 0000000..dcbf0d9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618073843.tsx @@ -0,0 +1,32 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContentCart } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCart: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + // dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + //const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + { + + } + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618082309.tsx b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618082309.tsx new file mode 100644 index 0000000..c5616c7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618082309.tsx @@ -0,0 +1,32 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContentCart } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCart: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + // dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + //const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + { + + } + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618104446.tsx b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618104446.tsx new file mode 100644 index 0000000..2ae5cac --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618104446.tsx @@ -0,0 +1,32 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContentCart } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCart: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + // dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + //const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + { + + } + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618143512.tsx b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618143512.tsx new file mode 100644 index 0000000..1e114fc --- /dev/null +++ b/.history/components/customer/pages/index/modals/cart/pizzaCart_20220618143512.tsx @@ -0,0 +1,32 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContentCart } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCart: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + // dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + //const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + { + + } + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/index_20220601090126.ts b/.history/components/customer/pages/index/modals/index_20220601090126.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/index_20220601090138.ts b/.history/components/customer/pages/index/modals/index_20220601090138.ts new file mode 100644 index 0000000..9099abf --- /dev/null +++ b/.history/components/customer/pages/index/modals/index_20220601090138.ts @@ -0,0 +1 @@ +export * from './pizza' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/index_20220618073850.ts b/.history/components/customer/pages/index/modals/index_20220618073850.ts new file mode 100644 index 0000000..62bb833 --- /dev/null +++ b/.history/components/customer/pages/index/modals/index_20220618073850.ts @@ -0,0 +1,2 @@ +export * from './pizza' +export * from './cart' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616124308.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616124308.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616124912.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616124912.tsx new file mode 100644 index 0000000..5461acf --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616124912.tsx @@ -0,0 +1,61 @@ +import React, { useState, useEffect } from 'react'; +import { BoxScroll } from '../../../../../../components/customer/containers'; + +var checkNow = ['none','none','none','none','none','none','none','none']; + +const Ingredients = ({...props}) => { + const [ingMass, setIngMass] = useState([{}]); + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + // console.log(checkNow); + if (check[e.target.id]==='none') { + props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + const getData = async () => { + //const response = await fetch(`https://swapi.dev/api/people/${props.id}/`); + //const newData = await response.json(); + // const response = await mass; + // const newData = await mass.json(); + setIngMass([{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]); + }; + getData(); + setCheck(['none','none','none','none','none','none','none','none']); + props.updateData({ingredientsSum:0}); + }, [props.id]); + + return( + + { ingMass.length ? ingMass.map((rows, count) =>( +
  • +
    +
    +

    {rows.title}

    +

    {rows.price} p

    + +
    +
  • ) + ) : '...' + } +
    + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616131650.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616131650.tsx new file mode 100644 index 0000000..51253d8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616131650.tsx @@ -0,0 +1,49 @@ +import React, { useState, useEffect } from 'react'; +var checkNow = ['none','none','none','none','none','none','none','none']; + +const Ingredients = ({...props}) => { + const [ingMass, setIngMass] = useState([{}]); + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + if (check[e.target.id]==='none') { + props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + const getData = async () => { + setIngMass([{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]); + }; + getData(); + setCheck(['none','none','none','none','none','none','none','none']); + props.updateData({ingredientsSum:0}); + }, [props.id]); + + return( +
  • +
    +
    +

    {rows.title}

    +

    {rows.price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616132920.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616132920.tsx new file mode 100644 index 0000000..95910b2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616132920.tsx @@ -0,0 +1,39 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + + + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616133019.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616133019.tsx new file mode 100644 index 0000000..1cec692 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616133019.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140058.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140058.tsx new file mode 100644 index 0000000..7473a59 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140058.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140200.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140200.tsx new file mode 100644 index 0000000..b14362f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140200.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140525.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140525.tsx new file mode 100644 index 0000000..f38f6ea --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140525.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140611.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140611.tsx new file mode 100644 index 0000000..763dc78 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140611.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140621.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140621.tsx new file mode 100644 index 0000000..f38f6ea --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616140621.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143834.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143834.tsx new file mode 100644 index 0000000..f2b5f9c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143834.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143901.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143901.tsx new file mode 100644 index 0000000..206783a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143901.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143907.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143907.tsx new file mode 100644 index 0000000..539a1f0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616143907.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144008.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144008.tsx new file mode 100644 index 0000000..6da6efc --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144008.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144031.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144031.tsx new file mode 100644 index 0000000..6da6efc --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144031.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144105.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144105.tsx new file mode 100644 index 0000000..41c62f7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144105.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144115.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144115.tsx new file mode 100644 index 0000000..ee90baf --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144115.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144124.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144124.tsx new file mode 100644 index 0000000..41c62f7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144124.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144253.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144253.tsx new file mode 100644 index 0000000..7bdf3fc --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144253.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string[]; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144327.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144327.tsx new file mode 100644 index 0000000..41c62f7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616144327.tsx @@ -0,0 +1,37 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616145033.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616145033.tsx new file mode 100644 index 0000000..01fb7ad --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616145033.tsx @@ -0,0 +1,38 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616145114.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616145114.tsx new file mode 100644 index 0000000..a502411 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616145114.tsx @@ -0,0 +1,38 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192514.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192514.tsx new file mode 100644 index 0000000..36d1661 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192514.tsx @@ -0,0 +1,38 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192554.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192554.tsx new file mode 100644 index 0000000..f0e91fc --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192554.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192624.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192624.tsx new file mode 100644 index 0000000..f0e91fc --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192624.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192702.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192702.tsx new file mode 100644 index 0000000..f0e91fc --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616192702.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616215531.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616215531.tsx new file mode 100644 index 0000000..93afbcd --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616215531.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220344.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220344.tsx new file mode 100644 index 0000000..9cb8763 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220344.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220402.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220402.tsx new file mode 100644 index 0000000..a9666f3 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220402.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220442.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220442.tsx new file mode 100644 index 0000000..0dd61df --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220442.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    + +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220540.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220540.tsx new file mode 100644 index 0000000..577cbdb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220540.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220611.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220611.tsx new file mode 100644 index 0000000..f94f58f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220611.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220618.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220618.tsx new file mode 100644 index 0000000..fd7df71 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220618.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220713.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220713.tsx new file mode 100644 index 0000000..577cbdb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220713.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220727.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220727.tsx new file mode 100644 index 0000000..577cbdb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220727.tsx @@ -0,0 +1,40 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220744.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220744.tsx new file mode 100644 index 0000000..f3ca931 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220616220744.tsx @@ -0,0 +1,38 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Ingredients_20220617085940.tsx b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220617085940.tsx new file mode 100644 index 0000000..10c352b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Ingredients_20220617085940.tsx @@ -0,0 +1,39 @@ +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; + +type PizzaProps = { + name: string; + title: string; + price: number; + id: string; + check: string; + onClick: () => void; + }; + +export const Ingredients: React.FC = ({ + name, + title, + price, + id, + check, + onClick + }) => { + return( +
  • +
    +
    +

    {title}

    +

    {price} p

    +
    +
  • + ) +} + +export default Ingredients; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618145856.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618145856.scss new file mode 100644 index 0000000..2814638 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618145856.scss @@ -0,0 +1,90 @@ +.modal { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + } + + /* Modal Content */ + .modal_content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + .modal_dialog{ + margin: 0 auto; + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618150729.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618150729.scss new file mode 100644 index 0000000..cbe2c49 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618150729.scss @@ -0,0 +1,90 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + } + + /* Modal Content */ + .modal_content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + .modal_dialog{ + margin: 0 auto; + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618150941.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618150941.scss new file mode 100644 index 0000000..2814638 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618150941.scss @@ -0,0 +1,90 @@ +.modal { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + } + + /* Modal Content */ + .modal_content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + .modal_dialog{ + margin: 0 auto; + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618150956.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618150956.scss new file mode 100644 index 0000000..cbe2c49 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618150956.scss @@ -0,0 +1,90 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + } + + /* Modal Content */ + .modal_content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + .modal_dialog{ + margin: 0 auto; + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618151044.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151044.scss new file mode 100644 index 0000000..4b2d7f8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151044.scss @@ -0,0 +1,91 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog{ + margin: 0 auto; + } + + /* Modal Content */ + .modal_content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618151047.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151047.scss new file mode 100644 index 0000000..f7e6aee --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151047.scss @@ -0,0 +1,91 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + } + + /* Modal Content */ + .modal_content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618151134.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151134.scss new file mode 100644 index 0000000..53b5f16 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151134.scss @@ -0,0 +1,92 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + } + + /* Modal Content */ + .modal_content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618151320.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151320.scss new file mode 100644 index 0000000..5f34e4e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151320.scss @@ -0,0 +1,210 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + } + + /* Modal Content */ + .modal_content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + +.modal_body_left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; +} + +.modal_body_right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; +} + +.modal_header{ + height: 450px; +} + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618151431.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151431.scss new file mode 100644 index 0000000..14b6930 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151431.scss @@ -0,0 +1,210 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + } + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .modal_body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + +.modal_body_left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; +} + +.modal_body_right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; +} + +.modal_header{ + height: 450px; +} + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618151502.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151502.scss new file mode 100644 index 0000000..e1412e2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151502.scss @@ -0,0 +1,210 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + } + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + } + + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + +.modal_body_left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; +} + +.modal_body_right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; +} + +.modal_header{ + height: 450px; +} + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618151531.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151531.scss new file mode 100644 index 0000000..dc72805 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151531.scss @@ -0,0 +1,210 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + } + } + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + +.modal_body_left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; +} + +.modal_body_right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; +} + +.modal_header{ + height: 450px; +} + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618151612.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151612.scss new file mode 100644 index 0000000..ba0f322 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618151612.scss @@ -0,0 +1,209 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + } + } + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + +.modal_body_left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; +} + +.modal_body_right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; +} + +.modal_header{ + height: 450px; +} + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152214.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152214.scss new file mode 100644 index 0000000..c31dc1b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152214.scss @@ -0,0 +1,210 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + } + } + } + } + + .modal_img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + +.modal_body_right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; +} + +.modal_header{ + height: 450px; +} + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152234.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152234.scss new file mode 100644 index 0000000..3971076 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152234.scss @@ -0,0 +1,212 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + +.modal_body_right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; +} + +.modal_header{ + height: 450px; +} + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152319.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152319.scss new file mode 100644 index 0000000..9cc25d7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152319.scss @@ -0,0 +1,214 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + +.modal_header{ + height: 450px; +} + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152349.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152349.scss new file mode 100644 index 0000000..4179751 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152349.scss @@ -0,0 +1,217 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + } + + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + .modal_title{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152446.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152446.scss new file mode 100644 index 0000000..73f9cd1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152446.scss @@ -0,0 +1,221 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + + .title{ + + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152456.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152456.scss new file mode 100644 index 0000000..08b5cef --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152456.scss @@ -0,0 +1,220 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + + .title{ + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + .modal_feature{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152523.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152523.scss new file mode 100644 index 0000000..330bf56 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152523.scss @@ -0,0 +1,218 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + + .title{ + font-size: 20px; + line-height: 24px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + .modal_description{ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + font-size: 13px; + line-height: 15px; + letter-spacing: 0.02em; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152615.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152615.scss new file mode 100644 index 0000000..98cd3f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152615.scss @@ -0,0 +1,213 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152624.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152624.scss new file mode 100644 index 0000000..7d44a97 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152624.scss @@ -0,0 +1,214 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152631.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152631.scss new file mode 100644 index 0000000..5ec605a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152631.scss @@ -0,0 +1,213 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152637.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152637.scss new file mode 100644 index 0000000..98cd3f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152637.scss @@ -0,0 +1,213 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152651.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152651.scss new file mode 100644 index 0000000..d01ee7f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152651.scss @@ -0,0 +1,214 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + margin: 10px 10px 10px 15px; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + + } + .feature{ + font-size: 13px; + line-height: 15px; + + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618152706.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152706.scss new file mode 100644 index 0000000..98cd3f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618152706.scss @@ -0,0 +1,213 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + +.pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &__selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } +} + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618153007.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618153007.scss new file mode 100644 index 0000000..54430dc --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618153007.scss @@ -0,0 +1,212 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .pizza-block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &_selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618153028.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618153028.scss new file mode 100644 index 0000000..c4fe32b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618153028.scss @@ -0,0 +1,212 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &_selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/Modal_20220618153111.scss b/.history/components/customer/pages/index/modals/pizza/Modal_20220618153111.scss new file mode 100644 index 0000000..9455f84 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/Modal_20220618153111.scss @@ -0,0 +1,212 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + .block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &_selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } + } + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } +} + + + + + + + +.position_product{ +padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ +} + + +@media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } +} + + +.vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; +} + +@media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531221132.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531221132.tsx new file mode 100644 index 0000000..5919684 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531221132.tsx @@ -0,0 +1,36 @@ +import React, { useState, useEffect } from 'react'; + +interface Props { + updateData: () => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + type ChangeProps { + e: () => void; + } + + const Change: React.FC = (e) => { + setVariable(e.target.value); + updateData(e.target.value); + } + return( +
    + {masImg.map((name, num) => <> + Change(e) } + checked={variable == num} + /> + )} +
    + ) +}vvvccccccxc \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531234725.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531234725.tsx new file mode 100644 index 0000000..cf1bc3a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531234725.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +interface Props { + updateData: (value: number) => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:number = event.target.value; + setVariable(value); + updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531235725.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531235725.tsx new file mode 100644 index 0000000..cf1bc3a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220531235725.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +interface Props { + updateData: (value: number) => void; + masImg: string[], + name: string, + label: string, + value: string, + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:number = event.target.value; + setVariable(value); + updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601000113.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601000113.tsx new file mode 100644 index 0000000..58d3e7a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601000113.tsx @@ -0,0 +1,29 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +interface Props { + updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:number = event.target.value; + setVariable(value); + updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601000752.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601000752.tsx new file mode 100644 index 0000000..dccd8ab --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601000752.tsx @@ -0,0 +1,30 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +interface Props { + updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:number = event.target.value; + setVariable(value); + updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001238.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001238.tsx new file mode 100644 index 0000000..989d34a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001238.tsx @@ -0,0 +1,30 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +interface Props { + updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:number = event.target.value; + setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001446.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001446.tsx new file mode 100644 index 0000000..45406a6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001446.tsx @@ -0,0 +1,30 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +interface Props { + updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:number = event.target.value; + setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001516.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001516.tsx new file mode 100644 index 0000000..989d34a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001516.tsx @@ -0,0 +1,30 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +interface Props { + updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:number = event.target.value; + setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001644.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001644.tsx new file mode 100644 index 0000000..429841b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601001644.tsx @@ -0,0 +1,30 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +type RadioButtonProps = { + updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:number = event.target.value; + setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601085507.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601085507.tsx new file mode 100644 index 0000000..6fbf565 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601085507.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +type RadioButtonProps = { + updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg, updateData }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:string = event.target.value; + console.log(value); + //setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601085808.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601085808.tsx new file mode 100644 index 0000000..33b9c06 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601085808.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +type RadioButtonProps = { + // updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:string = event.target.value; + console.log(value); + //setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601090524.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601090524.tsx new file mode 100644 index 0000000..33b9c06 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601090524.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +type RadioButtonProps = { + // updateData: (value: number) => void; + masImg: string[], + } + +export const RadioButton: React.FC = ({masImg }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:string = event.target.value; + console.log(value); + //setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601090855.tsx b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601090855.tsx new file mode 100644 index 0000000..293a0fd --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/RadioButton_20220601090855.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +type RadioButtonProps = { + // updateData: (value: number) => void; + masImg: number[], + } + +export const RadioButton: React.FC = ({masImg }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:string = event.target.value; + console.log(value); + //setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220601090854.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220601090854.tsx new file mode 100644 index 0000000..293a0fd --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220601090854.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; +import { InputRadio } from '../../../../../UI' +type RadioButtonProps = { + // updateData: (value: number) => void; + masImg: number[], + } + +export const RadioButton: React.FC = ({masImg }) => { + const [variable, setVariable] = useState(0); + + const inputHandler = (event: React.ChangeEvent) => { + const value:string = event.target.value; + console.log(value); + //setVariable(value); + //updateData(value); + }; + + return( +
    + {masImg.map((name, num) => + inputHandler} + label={''} + value={0} /> + )} +
    + ) +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220615163730.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220615163730.tsx new file mode 100644 index 0000000..603fdd9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220615163730.tsx @@ -0,0 +1,93 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; + img_thin: string; + name: string; + price: number; + size: string; + feature: string; +}; + +const types=[0,1], sizes=[30,40, 50], typeNames = ['традиционное тесто','тонкое тесто'];; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, + img_thin, + name, + price, + size, + feature +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220615163756.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220615163756.tsx new file mode 100644 index 0000000..91d203c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220615163756.tsx @@ -0,0 +1,93 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft_trad: number; + description: string; + img_trad: string; + img_thin: string; + name: string; + price: number; + size: string; + feature: string; +}; + +const types=[0,1], sizes=[30,40, 50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'];; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img_trad, + heft_trad, + description, + img_thin, + name, + price, + size, + feature +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616103634.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616103634.tsx new file mode 100644 index 0000000..b37c2f7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616103634.tsx @@ -0,0 +1,91 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + name: string; + price: string[]; + size: string[]; + feature: string; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'];; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + name, + price, + size, + feature +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616103708.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616103708.tsx new file mode 100644 index 0000000..c76ede8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616103708.tsx @@ -0,0 +1,91 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + name: string; + price: string[]; + size: string[]; + feature: string; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'];; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + name, + price, + size, + feature +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616103943.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616103943.tsx new file mode 100644 index 0000000..dba3db1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616103943.tsx @@ -0,0 +1,89 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; + feature: string; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'];; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, + feature +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616104048.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616104048.tsx new file mode 100644 index 0000000..8b61b02 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616104048.tsx @@ -0,0 +1,89 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; + feature: string; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'];; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, + feature +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616104556.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616104556.tsx new file mode 100644 index 0000000..153c19e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616104556.tsx @@ -0,0 +1,89 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; + feature: string; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'], ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, + feature +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + feature = "30 см, традиционное тесто, 610 г"; + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616120114.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616120114.tsx new file mode 100644 index 0000000..2c2880d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616120114.tsx @@ -0,0 +1,89 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; + feature: string; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, + feature +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + feature = "30 см, традиционное тесто, 610 г"; + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616120422.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616120422.tsx new file mode 100644 index 0000000..29cd00c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616120422.tsx @@ -0,0 +1,87 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] + heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616120434.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616120434.tsx new file mode 100644 index 0000000..918c7cb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616120434.tsx @@ -0,0 +1,87 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616120522.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616120522.tsx new file mode 100644 index 0000000..e6171a4 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616120522.tsx @@ -0,0 +1,87 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + setFeature('0'); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616120635.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616120635.tsx new file mode 100644 index 0000000..b52c2b2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616120635.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616123335.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616123335.tsx new file mode 100644 index 0000000..20f3813 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616123335.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616123445.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616123445.tsx new file mode 100644 index 0000000..9269d0c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616123445.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import {ButtonImg, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616131707.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616131707.tsx new file mode 100644 index 0000000..c90bb8d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616131707.tsx @@ -0,0 +1,94 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { BoxScroll } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + + +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616132750.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616132750.tsx new file mode 100644 index 0000000..e5b70ca --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616132750.tsx @@ -0,0 +1,95 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { BoxScroll } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + + +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616133237.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616133237.tsx new file mode 100644 index 0000000..93ea4e4 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616133237.tsx @@ -0,0 +1,107 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { BoxScroll } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + {ingredients} + +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616135535.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616135535.tsx new file mode 100644 index 0000000..93ea4e4 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616135535.tsx @@ -0,0 +1,107 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { BoxScroll } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + {ingredients} + +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616140229.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616140229.tsx new file mode 100644 index 0000000..4c14142 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616140229.tsx @@ -0,0 +1,107 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + {ingredients} + +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616140446.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616140446.tsx new file mode 100644 index 0000000..0e683b4 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616140446.tsx @@ -0,0 +1,107 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + {ingredients} + +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616140501.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616140501.tsx new file mode 100644 index 0000000..b07b4ef --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616140501.tsx @@ -0,0 +1,107 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + {ingredients} + +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616141154.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616141154.tsx new file mode 100644 index 0000000..a376a31 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616141154.tsx @@ -0,0 +1,106 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + {ingredients} +
    + + + + +
    +
    +
    +
    + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616141209.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616141209.tsx new file mode 100644 index 0000000..77d6c36 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616141209.tsx @@ -0,0 +1,106 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + {ingredients} +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616141237.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616141237.tsx new file mode 100644 index 0000000..f37791c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616141237.tsx @@ -0,0 +1,107 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + {ingredients} +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616141256.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616141256.tsx new file mode 100644 index 0000000..70a5a81 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616141256.tsx @@ -0,0 +1,107 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + {ingredients} +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616141344.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616141344.tsx new file mode 100644 index 0000000..477c093 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616141344.tsx @@ -0,0 +1,111 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
    +
      + {ingredients} +
    +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616141423.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616141423.tsx new file mode 100644 index 0000000..e4ad089 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616141423.tsx @@ -0,0 +1,109 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616141944.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616141944.tsx new file mode 100644 index 0000000..78c1b99 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616141944.tsx @@ -0,0 +1,107 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { BoxScroll } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    + + {ingredients} + +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616142011.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616142011.tsx new file mode 100644 index 0000000..7ccd223 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616142011.tsx @@ -0,0 +1,109 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616142216.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616142216.tsx new file mode 100644 index 0000000..ab0122f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616142216.tsx @@ -0,0 +1,109 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616142745.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616142745.tsx new file mode 100644 index 0000000..062df0b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616142745.tsx @@ -0,0 +1,109 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616142904.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616142904.tsx new file mode 100644 index 0000000..ab0122f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616142904.tsx @@ -0,0 +1,109 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616144142.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616144142.tsx new file mode 100644 index 0000000..3ed3e48 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616144142.tsx @@ -0,0 +1,109 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616144741.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616144741.tsx new file mode 100644 index 0000000..f521ea9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616144741.tsx @@ -0,0 +1,111 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const addCheck = () => { + console.log('addCheck'); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616145050.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616145050.tsx new file mode 100644 index 0000000..6db2e53 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616145050.tsx @@ -0,0 +1,111 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const addCheck = () => { + console.log('addCheck'); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616145153.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616145153.tsx new file mode 100644 index 0000000..240ee7b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616145153.tsx @@ -0,0 +1,111 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const addCheck = (e) => { + console.log(e.target.value); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616145219.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616145219.tsx new file mode 100644 index 0000000..bbecc17 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616145219.tsx @@ -0,0 +1,111 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const addCheck = (e) => { + console.log(e.target.value); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + const ingredients = ing.map((obj, index) => ); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ingredients} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616145732.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616145732.tsx new file mode 100644 index 0000000..73827a9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616145732.tsx @@ -0,0 +1,124 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + let check = ['none', 'none', 'none', 'none', 'none', 'none', 'none', 'none']; + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {title}

      +

      {price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616145836.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616145836.tsx new file mode 100644 index 0000000..68b5ff7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616145836.tsx @@ -0,0 +1,124 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + let check = ['none', 'none', 'none', 'none', 'none', 'none', 'none', 'none']; + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {title}

      +

      {price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616145900.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616145900.tsx new file mode 100644 index 0000000..ef88bd1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616145900.tsx @@ -0,0 +1,124 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + let check = ['none', 'none', 'none', 'none', 'none', 'none', 'none', 'none']; + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616145958.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616145958.tsx new file mode 100644 index 0000000..6b5b31d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616145958.tsx @@ -0,0 +1,125 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616150159.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616150159.tsx new file mode 100644 index 0000000..009c18e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616150159.tsx @@ -0,0 +1,135 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + var checkNow = ['none','none','none','none','none','none','none','none']; + const ingredientsAdd = (e) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + // console.log(checkNow); + if (check[e.target.id]==='none') { + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616150255.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616150255.tsx new file mode 100644 index 0000000..06e06d6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616150255.tsx @@ -0,0 +1,137 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + // console.log(checkNow); + if (check[e.target.id]==='none') { + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616150313.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616150313.tsx new file mode 100644 index 0000000..4e76e38 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616150313.tsx @@ -0,0 +1,137 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + // console.log(checkNow); + if (check[e.target.id]==='none') { + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616150344.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616150344.tsx new file mode 100644 index 0000000..4e76e38 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616150344.tsx @@ -0,0 +1,137 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [activeCheck, setActiveCheck] = useState([]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + // console.log(checkNow); + if (check[e.target.id]==='none') { + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г') + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616150928.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616150928.tsx new file mode 100644 index 0000000..bcc8511 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616150928.tsx @@ -0,0 +1,138 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + // console.log(checkNow); + if (check[e.target.id]==='none') { + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616152039.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616152039.tsx new file mode 100644 index 0000000..0af2422 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616152039.tsx @@ -0,0 +1,138 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616152213.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616152213.tsx new file mode 100644 index 0000000..c0c6ee3 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616152213.tsx @@ -0,0 +1,139 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(price[activeSize]+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616152252.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616152252.tsx new file mode 100644 index 0000000..4d59501 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616152252.tsx @@ -0,0 +1,140 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(price[activeSize]+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(price[activeSize]-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616152344.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616152344.tsx new file mode 100644 index 0000000..6b63cb7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616152344.tsx @@ -0,0 +1,140 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(price[activeSize]+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616152407.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616152407.tsx new file mode 100644 index 0000000..82c75bb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616152407.tsx @@ -0,0 +1,140 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616152454.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616152454.tsx new file mode 100644 index 0000000..82c75bb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616152454.tsx @@ -0,0 +1,140 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616152554.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616152554.tsx new file mode 100644 index 0000000..ba65e47 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616152554.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616152609.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616152609.tsx new file mode 100644 index 0000000..ba65e47 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616152609.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616163109.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616163109.tsx new file mode 100644 index 0000000..5ae8f17 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616163109.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616185306.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616185306.tsx new file mode 100644 index 0000000..094c8a9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616185306.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616185340.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616185340.tsx new file mode 100644 index 0000000..a1d934f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616185340.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616185408.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616185408.tsx new file mode 100644 index 0000000..4b583c3 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616185408.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616211917.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616211917.tsx new file mode 100644 index 0000000..80adbc5 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616211917.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616211940.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616211940.tsx new file mode 100644 index 0000000..4b583c3 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616211940.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616211948.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616211948.tsx new file mode 100644 index 0000000..0be1d5e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616211948.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616211958.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616211958.tsx new file mode 100644 index 0000000..273dc4f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616211958.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616212051.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616212051.tsx new file mode 100644 index 0000000..2fa0d21 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616212051.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616212107.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616212107.tsx new file mode 100644 index 0000000..2fa0d21 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616212107.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616215739.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616215739.tsx new file mode 100644 index 0000000..d950363 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616215739.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616215850.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616215850.tsx new file mode 100644 index 0000000..05e89f2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616215850.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616215947.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616215947.tsx new file mode 100644 index 0000000..a0e5a63 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616215947.tsx @@ -0,0 +1,141 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616221209.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616221209.tsx new file mode 100644 index 0000000..15c0eee --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616221209.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616221319.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616221319.tsx new file mode 100644 index 0000000..374941c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616221319.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220616221405.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220616221405.tsx new file mode 100644 index 0000000..d5d486b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220616221405.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]:check[e.target.id]==='none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id]==='none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617062239.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617062239.tsx new file mode 100644 index 0000000..aa9b579 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617062239.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(checkNow); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617062328.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617062328.tsx new file mode 100644 index 0000000..91c3e3e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617062328.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(e.target.id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, index) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617062402.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617062402.tsx new file mode 100644 index 0000000..b161861 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617062402.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(e.target.id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617062424.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617062424.tsx new file mode 100644 index 0000000..5e531be --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617062424.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(e.target.id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617062453.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617062453.tsx new file mode 100644 index 0000000..2621ad1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617062453.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(e.target); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617062753.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617062753.tsx new file mode 100644 index 0000000..bb5748c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617062753.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log((e.target as Element).id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617062828.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617062828.tsx new file mode 100644 index 0000000..b161861 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617062828.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(e.target.id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617062837.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617062837.tsx new file mode 100644 index 0000000..bb5748c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617062837.tsx @@ -0,0 +1,142 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: React.MouseEvent) => { + setCheck({...check, [e.target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log((e.target as Element).id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063028.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063028.tsx new file mode 100644 index 0000000..9910790 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063028.tsx @@ -0,0 +1,143 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: Event) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log((target as Element).id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063052.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063052.tsx new file mode 100644 index 0000000..d5faa3f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063052.tsx @@ -0,0 +1,143 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: Event) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063126.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063126.tsx new file mode 100644 index 0000000..9143cc9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063126.tsx @@ -0,0 +1,143 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: Event) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log((target as HTMLButtonElement).id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063204.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063204.tsx new file mode 100644 index 0000000..ce0546b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063204.tsx @@ -0,0 +1,143 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + const ingredientsAdd = (e: Event) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log((target as HTMLButtonElement).value); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063331.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063331.tsx new file mode 100644 index 0000000..60cd754 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063331.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.value); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063343.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063343.tsx new file mode 100644 index 0000000..fc84276 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063343.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063354.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063354.tsx new file mode 100644 index 0000000..5bf5ea9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063354.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063412.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063412.tsx new file mode 100644 index 0000000..566663d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063412.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063603.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063603.tsx new file mode 100644 index 0000000..56f2725 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063603.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063615.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063615.tsx new file mode 100644 index 0000000..af0bca6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063615.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063636.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063636.tsx new file mode 100644 index 0000000..9f83226 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063636.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063649.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063649.tsx new file mode 100644 index 0000000..c66f68f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063649.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063654.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063654.tsx new file mode 100644 index 0000000..9f83226 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063654.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063804.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063804.tsx new file mode 100644 index 0000000..e3b571d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063804.tsx @@ -0,0 +1,151 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + const clickHandler = (e: MouseEvent): void => { + e.preventDefault(); + alert(`Clicked at ${e.pageX} ${e.pageY}`); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063826.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063826.tsx new file mode 100644 index 0000000..6c1fe5f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063826.tsx @@ -0,0 +1,151 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + const clickHandler = (e: MouseEvent): void => { + e.preventDefault(); + alert(`Clicked at ${e.id} ${e.pageY}`); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617063840.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617063840.tsx new file mode 100644 index 0000000..3a5b70d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617063840.tsx @@ -0,0 +1,151 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + const clickHandler = (e: MouseEvent): void => { + e.preventDefault(); + alert(`Clicked at ${e.name}`); + } + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617103015.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617103015.tsx new file mode 100644 index 0000000..2a2055c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617103015.tsx @@ -0,0 +1,152 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + const buttonHandler = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617103036.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617103036.tsx new file mode 100644 index 0000000..736c568 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617103036.tsx @@ -0,0 +1,153 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (e: HTMLElementEvent) => { + const { target } = e; + setCheck({...check, [target.id]: check[e.target.id] === 'none' ? 'yellow' : 'none'}); + checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(target.name); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + } + const buttonHandler = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617103148.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617103148.tsx new file mode 100644 index 0000000..d6b9f83 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617103148.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + // setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(button.id); + if (check[e.target.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617103203.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617103203.tsx new file mode 100644 index 0000000..c73e958 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617103203.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState(['none','none','none','none','none','none','none','none']); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + // setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(button.id); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617103413.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617103413.tsx new file mode 100644 index 0000000..a355996 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617103413.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: button.id > '0' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617103428.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617103428.tsx new file mode 100644 index 0000000..a355996 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617103428.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: button.id > '0' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck(['none','none','none','none','none','none','none','none']); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617103608.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617103608.tsx new file mode 100644 index 0000000..d606af3 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617103608.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: button.id > '0' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617104855.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617104855.tsx new file mode 100644 index 0000000..f683975 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617104855.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: button.id === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617105540.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617105540.tsx new file mode 100644 index 0000000..0facde0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617105540.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: !button.id}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617105605.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617105605.tsx new file mode 100644 index 0000000..af079c1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617105605.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: button.id}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617105633.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617105633.tsx new file mode 100644 index 0000000..8fc52ac --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617105633.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: button.id >= '0' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617105708.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617105708.tsx new file mode 100644 index 0000000..337237a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617105708.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: button.id === 'yellow' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617105900.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617105900.tsx new file mode 100644 index 0000000..78e82e8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617105900.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: check[button.id] === 'yellow' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617105915.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617105915.tsx new file mode 100644 index 0000000..ec89d98 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617105915.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.name]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617105952.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617105952.tsx new file mode 100644 index 0000000..7327509 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617105952.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617110031.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617110031.tsx new file mode 100644 index 0000000..e9646be --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617110031.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617110042.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617110042.tsx new file mode 100644 index 0000000..da9c466 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617110042.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617110059.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617110059.tsx new file mode 100644 index 0000000..e9646be --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617110059.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617110138.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617110138.tsx new file mode 100644 index 0000000..4abba13 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617110138.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + // if (check[button.id]==='none') { + // setSum(sum+ing[e.target.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + // } else { + // setSum(sum-ing[e.target.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617110545.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617110545.tsx new file mode 100644 index 0000000..42949e5 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617110545.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + // } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617110555.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617110555.tsx new file mode 100644 index 0000000..152c16f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617110555.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617110619.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617110619.tsx new file mode 100644 index 0000000..0ab6d5d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617110619.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617111229.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617111229.tsx new file mode 100644 index 0000000..3fabf65 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617111229.tsx @@ -0,0 +1,151 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      {check[count] === 'none' ? : }}> +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617111257.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617111257.tsx new file mode 100644 index 0000000..25503e5 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617111257.tsx @@ -0,0 +1,151 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617111316.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617111316.tsx new file mode 100644 index 0000000..77589b9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617111316.tsx @@ -0,0 +1,151 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617111350.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617111350.tsx new file mode 100644 index 0000000..98994cd --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617111350.tsx @@ -0,0 +1,152 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617111416.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617111416.tsx new file mode 100644 index 0000000..1bf84ec --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617111416.tsx @@ -0,0 +1,149 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      + +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617111430.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617111430.tsx new file mode 100644 index 0000000..bb5c7ca --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617111430.tsx @@ -0,0 +1,149 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617161037.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617161037.tsx new file mode 100644 index 0000000..4add855 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617161037.tsx @@ -0,0 +1,149 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617161138.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617161138.tsx new file mode 100644 index 0000000..06fb502 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617161138.tsx @@ -0,0 +1,149 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617163917.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617163917.tsx new file mode 100644 index 0000000..d1ca254 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617163917.tsx @@ -0,0 +1,148 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617164131.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617164131.tsx new file mode 100644 index 0000000..5246670 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617164131.tsx @@ -0,0 +1,148 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617164145.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617164145.tsx new file mode 100644 index 0000000..1f58207 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617164145.tsx @@ -0,0 +1,148 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Ingredients } from './'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617165525.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617165525.tsx new file mode 100644 index 0000000..05bffd1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617165525.tsx @@ -0,0 +1,147 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState([{}]); + + var checkNow = ['none','none','none','none','none','none','none','none']; + + type HTMLElementEvent = Event & { + target: T; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617171025.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617171025.tsx new file mode 100644 index 0000000..37eeaaf --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617171025.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize]); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + type HTMLElementEvent = Event & { + target: T; + } + + interface Employee { + id: number; + name: string; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id as unknown as number] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id]==='none') { + setSum(sum-ing[button.id].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([{}]); + setSum(price[activeSize]); + }, [activeSize, activeType, heft]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617171215.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617171215.tsx new file mode 100644 index 0000000..9fd3600 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617171215.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + type HTMLElementEvent = Event & { + target: T; + } + + interface Employee { + id: number; + name: string; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.id]: check[button.id as unknown as number] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.id as unknown as number]==='none') { + setSum(sum-ing[button.id as unknown as number].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.id as unknown as number].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617171449.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617171449.tsx new file mode 100644 index 0000000..0147935 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617171449.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + type HTMLElementEvent = Event & { + target: T; + } + + interface Employee { + id: number; + name: string; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617171653.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617171653.tsx new file mode 100644 index 0000000..df84e98 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617171653.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + type HTMLElementEvent = Event & { + target: T; + } + + interface Employee { + id: number; + name: string; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617171919.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617171919.tsx new file mode 100644 index 0000000..01717f7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617171919.tsx @@ -0,0 +1,151 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + type HTMLElementEvent = Event & { + target: T; + } + + interface Employee { + id: number; + name: string; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617171923.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617171923.tsx new file mode 100644 index 0000000..82820f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617171923.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + type HTMLElementEvent = Event & { + target: T; + } + + interface Employee { + id: number; + name: string; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617172135.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617172135.tsx new file mode 100644 index 0000000..82820f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617172135.tsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Button } from '../../../../../UI'; +import { Box } from '../../../../../../components/customer/containers'; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + const addBasket = () => { + console.log('add'); + } + + const onClick = () => { + console.log('addCheck'); + } + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + type HTMLElementEvent = Event & { + target: T; + } + + interface Employee { + id: number; + name: string; + } + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + // checkNow[e.target.id] = check[e.target.id] === 'none' ? 'yellow' : 'none'; + console.log(check); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:ingMass[e.target.id].price,ingredients:checkNow}); + } else { + setSum(sum+ing[button.value as unknown as number].price); + //props.updateData({ingredientsSum:(ingMass[e.target.id].price)*-1,ingredients:checkNow}); + } + console.log(button.name); + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617172555.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617172555.tsx new file mode 100644 index 0000000..b364323 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617172555.tsx @@ -0,0 +1,133 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617172800.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617172800.tsx new file mode 100644 index 0000000..c69fe16 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617172800.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617173043.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617173043.tsx new file mode 100644 index 0000000..0fe45ab --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617173043.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button: HTMLButtonElement = event.currentTarget as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617173835.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617173835.tsx new file mode 100644 index 0000000..bc92251 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617173835.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617190638.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617190638.tsx new file mode 100644 index 0000000..9ea1961 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617190638.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • + +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617193102.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617193102.tsx new file mode 100644 index 0000000..24729ec --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617193102.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • + +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617193132.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617193132.tsx new file mode 100644 index 0000000..6cb0a6d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617193132.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) =>
    • +
      +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617211744.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617211744.tsx new file mode 100644 index 0000000..ce9f26e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617211744.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617211746.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617211746.tsx new file mode 100644 index 0000000..ce9f26e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617211746.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617211836.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617211836.tsx new file mode 100644 index 0000000..8be8389 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617211836.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + console.log(button); + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + setSum(sum-ing[button.value as unknown as number].price); + } else { + setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617211901.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617211901.tsx new file mode 100644 index 0000000..2f4cca8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617211901.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + console.log(button); + setCheck({...check, [button.value]: check[button.value as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.value as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617211925.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617211925.tsx new file mode 100644 index 0000000..57f9079 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617211925.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + console.log(button); + setCheck({...check, [button.name]: check[button.name as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.name as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617212008.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617212008.tsx new file mode 100644 index 0000000..57f9079 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617212008.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + console.log(button); + setCheck({...check, [button.name]: check[button.name as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.name as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617212018.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617212018.tsx new file mode 100644 index 0000000..e844daf --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617212018.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + console.log(button.key); + setCheck({...check, [button.name]: check[button.name as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.name as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617212028.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617212028.tsx new file mode 100644 index 0000000..a44cb53 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617212028.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.id as any; + console.log(button.value); + setCheck({...check, [button.name]: check[button.name as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.name as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617212115.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617212115.tsx new file mode 100644 index 0000000..2408c30 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617212115.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.target as any; + console.log(button.value); + setCheck({...check, [button.name]: check[button.name as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.name as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617212134.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617212134.tsx new file mode 100644 index 0000000..2b93775 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617212134.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button.value); + setCheck({...check, [button.name]: check[button.name as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.name as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617212141.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617212141.tsx new file mode 100644 index 0000000..408ec24 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617212141.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button.name]: check[button.name as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button.name as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617212201.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617212201.tsx new file mode 100644 index 0000000..8602f4e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617212201.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + // setSum(sum-ing[button.value as unknown as number].price); + } else { + // setSum(sum+ing[button.value as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220617212215.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220617212215.tsx new file mode 100644 index 0000000..7fd133b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220617212215.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618152151.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618152151.tsx new file mode 100644 index 0000000..9338ad5 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618152151.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618152222.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618152222.tsx new file mode 100644 index 0000000..3b893a1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618152222.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618152251.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618152251.tsx new file mode 100644 index 0000000..9afe21b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618152251.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618152353.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618152353.tsx new file mode 100644 index 0000000..9b1bd4c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618152353.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618152412.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618152412.tsx new file mode 100644 index 0000000..a0d528b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618152412.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618152502.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618152502.tsx new file mode 100644 index 0000000..98db1b9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618152502.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618152528.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618152528.tsx new file mode 100644 index 0000000..1ba1089 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618152528.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618153011.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618153011.tsx new file mode 100644 index 0000000..2afa859 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618153011.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618153022.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618153022.tsx new file mode 100644 index 0000000..dc2416b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618153022.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618154531.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618154531.tsx new file mode 100644 index 0000000..bf67448 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618154531.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618154545.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618154545.tsx new file mode 100644 index 0000000..bf67448 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618154545.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618154555.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618154555.tsx new file mode 100644 index 0000000..d0d830a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618154555.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618154632.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618154632.tsx new file mode 100644 index 0000000..ba405b9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618154632.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618154648.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618154648.tsx new file mode 100644 index 0000000..48684f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618154648.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618155038.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618155038.tsx new file mode 100644 index 0000000..ba93a2a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618155038.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618155852.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618155852.tsx new file mode 100644 index 0000000..6358923 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618155852.tsx @@ -0,0 +1,132 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      + {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618155925.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618155925.tsx new file mode 100644 index 0000000..96bed28 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618155925.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618160645.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618160645.tsx new file mode 100644 index 0000000..60efe83 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618160645.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618160820.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618160820.tsx new file mode 100644 index 0000000..0bf659a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618160820.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618161353.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618161353.tsx new file mode 100644 index 0000000..7d331db --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618161353.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618161823.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618161823.tsx new file mode 100644 index 0000000..552d0a2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618161823.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618162529.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618162529.tsx new file mode 100644 index 0000000..b958336 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618162529.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618162730.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618162730.tsx new file mode 100644 index 0000000..aa6f234 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618162730.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618202323.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618202323.tsx new file mode 100644 index 0000000..196d630 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618202323.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none' ? 'yellow' : 'none'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618202436.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618202436.tsx new file mode 100644 index 0000000..8f8eed5 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618202436.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none_ing' ? 'yellow_ing' : 'none_ing'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/content_20220618202448.tsx b/.history/components/customer/pages/index/modals/pizza/content_20220618202448.tsx new file mode 100644 index 0000000..c13d6c8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/content_20220618202448.tsx @@ -0,0 +1,131 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { HiMinus, HiPlus } from "react-icons/hi"; + +type PizzaProps = { + id: number; + title: string; + heft: string[]; + description: string; + img: string[]; + price: string[]; + size: string[]; +}; + +const types=[0,1], sizes=[30,40,50], sum=0, typeNames = ['традиционное тесто','тонкое тесто'] ; + +export const PizzaModalsContent: React.FC = ({ + id, + title, + img, + heft, + description, + price, + size, +}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(1); + const [sum, setSum] = useState(price[activeSize] as unknown as number); + const [feature, setFeature] = useState(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + + const addBasket = () => { + console.log('add'); + } + + + const ing = [{name:'onion', title:'Лук', price:6}, + {name:'tomato', title:'Томаты', price:16}, + {name:'cheese', title:'Сыр', price:20}, + {name:'mushroom', title:'Грибы', price:10}, + {name:'bacon', title:'Бекон', price:30}, + {name:'pineapple', title:'Ананас', price:30}, + {name:'pickles', title:'Огурчик', price:6}, + {name:'jalapeno', title:'Халапенью', price:6}]; + + const [check, setCheck] = useState>([]); + + const ingredientsAdd = (event: React.MouseEvent) => { + event.preventDefault(); + const button = event.currentTarget.value as any; + console.log(button); + setCheck({...check, [button]: check[button as unknown as number] === 'none_ing' ? 'yellow_ing' : 'none_ing'}); + if (check[button as unknown as number]==='none') { + setSum(sum-ing[button as unknown as number].price); + } else { + setSum(sum+ing[button as unknown as number].price); + } + } + + useEffect(() => { + setFeature(sizes[activeSize]+' см, '+ typeNames[activeType] +" "+ heft[activeSize]+' г'); + setCheck([]); + setSum(price[activeSize] as unknown as number); + }, [activeSize, activeType, heft, price]); + + return ( + <> +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    +
      {ing.map((obj, count) => +
    • +
      +
      +

      {obj.title}

      +

      {obj.price} p

      +
      {check[count] === 'none_ing' ? : }
      +
      +
    • )} +
    +
    +
    + + + + +
    +
    +
    + + ); +}; + + diff --git a/.history/components/customer/pages/index/modals/pizza/index_20220601085616.ts b/.history/components/customer/pages/index/modals/pizza/index_20220601085616.ts new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/pizza/index_20220601085628.ts b/.history/components/customer/pages/index/modals/pizza/index_20220601085628.ts new file mode 100644 index 0000000..26cda92 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/index_20220601085628.ts @@ -0,0 +1 @@ +export * from './RadioButton' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/index_20220601090324.ts b/.history/components/customer/pages/index/modals/pizza/index_20220601090324.ts new file mode 100644 index 0000000..74e078b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/index_20220601090324.ts @@ -0,0 +1,2 @@ +export * from './RadioButton' +export * from './pizzaCard' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/index_20220615163354.ts b/.history/components/customer/pages/index/modals/pizza/index_20220615163354.ts new file mode 100644 index 0000000..055a5be --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/index_20220615163354.ts @@ -0,0 +1,2 @@ +export * from './content' +export * from './pizzaCard' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/index_20220616133007.ts b/.history/components/customer/pages/index/modals/pizza/index_20220616133007.ts new file mode 100644 index 0000000..0fb93b3 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/index_20220616133007.ts @@ -0,0 +1,3 @@ +export * from './content' +export * from './pizzaCard' +export * from './Ingredients' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/index_20220617162939.ts b/.history/components/customer/pages/index/modals/pizza/index_20220617162939.ts new file mode 100644 index 0000000..055a5be --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/index_20220617162939.ts @@ -0,0 +1,2 @@ +export * from './content' +export * from './pizzaCard' \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531162610.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531162610.tsx new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531162625.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531162625.tsx new file mode 100644 index 0000000..fefaaff --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531162625.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import { Header, Footer, FooterNav } from '../../components/customer/pages/index/block'; +import { ContainerInside } from '../../components/customer/containers' + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163128.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163128.tsx new file mode 100644 index 0000000..82339c6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163128.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163133.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163133.tsx new file mode 100644 index 0000000..6b89223 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163133.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163150.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163150.tsx new file mode 100644 index 0000000..c3fee5c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163150.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + + +type Props = { children: React.ReactNode }; + +export const : React.FC = ({children}) => { + return ( +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163151.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163151.tsx new file mode 100644 index 0000000..f49a101 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163151.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + + +type Props = { children: React.ReactNode }; + +export const Pi: React.FC = ({children}) => { + return ( +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163155.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163155.tsx new file mode 100644 index 0000000..749b4f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163155.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163157.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163157.tsx new file mode 100644 index 0000000..749b4f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531163157.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215502.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215502.tsx new file mode 100644 index 0000000..0b591ec --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215502.tsx @@ -0,0 +1,39 @@ +import React from 'react'; + + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215615.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215615.tsx new file mode 100644 index 0000000..edbb930 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215615.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import {} + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215634.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215634.tsx new file mode 100644 index 0000000..d409a5a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215634.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } form '' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215641.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215641.tsx new file mode 100644 index 0000000..ca98e16 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215641.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } form '../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215645.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215645.tsx new file mode 100644 index 0000000..9222d6a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215645.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215648.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215648.tsx new file mode 100644 index 0000000..870f8ce --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215648.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215655.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215655.tsx new file mode 100644 index 0000000..3b3d656 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215655.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../modals' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215658.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215658.tsx new file mode 100644 index 0000000..5144b1e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215658.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../modals/pizza' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215703.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215703.tsx new file mode 100644 index 0000000..9222d6a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215703.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215707.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215707.tsx new file mode 100644 index 0000000..412a40c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215707.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../.' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215708.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215708.tsx new file mode 100644 index 0000000..eec775e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215708.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215710.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215710.tsx new file mode 100644 index 0000000..8ec99e0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215710.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../../../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215720.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215720.tsx new file mode 100644 index 0000000..dfca073 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215720.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from './' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215724.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215724.tsx new file mode 100644 index 0000000..870f8ce --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215724.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215726.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215726.tsx new file mode 100644 index 0000000..e6fb61f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215726.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../.././/' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215733.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215733.tsx new file mode 100644 index 0000000..8ec99e0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215733.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../../../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215736.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215736.tsx new file mode 100644 index 0000000..9202600 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215736.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../../../../' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215737.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215737.tsx new file mode 100644 index 0000000..fe48e9f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215737.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215738.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215738.tsx new file mode 100644 index 0000000..fe48e9f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215738.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215823.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215823.tsx new file mode 100644 index 0000000..b38aeaa --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215823.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {//informationPizza.length ? + {informationPizza[0].description} : '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215826.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215826.tsx new file mode 100644 index 0000000..a10f107 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215826.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {//informationPizza.length ? + {informationPizza[0].description} //: '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215858.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215858.tsx new file mode 100644 index 0000000..9a4bcb8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531215858.tsx @@ -0,0 +1,40 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {//informationPizza.length ? + {informationPizza[0].description} //: '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221147.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221147.tsx new file mode 100644 index 0000000..37bfd2a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221147.tsx @@ -0,0 +1,42 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {//informationPizza.length ? + {informationPizza[0].description} //: '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221151.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221151.tsx new file mode 100644 index 0000000..f5ba48e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221151.tsx @@ -0,0 +1,43 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {//informationPizza.length ? + {informationPizza[0].description} //: '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221845.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221845.tsx new file mode 100644 index 0000000..3bbdbdb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221845.tsx @@ -0,0 +1,40 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {//informationPizza.length ? + {informationPizza[0].description} //: '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221847.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221847.tsx new file mode 100644 index 0000000..9a4bcb8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220531221847.tsx @@ -0,0 +1,40 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {//informationPizza.length ? + {informationPizza[0].description} //: '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601085821.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601085821.tsx new file mode 100644 index 0000000..bbe37a7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601085821.tsx @@ -0,0 +1,24 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601085945.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601085945.tsx new file mode 100644 index 0000000..d92d096 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601085945.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601090104.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601090104.tsx new file mode 100644 index 0000000..2251ccb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601090104.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601090857.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601090857.tsx new file mode 100644 index 0000000..a798ec2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220601090857.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174529.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174529.tsx new file mode 100644 index 0000000..3ee6d46 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174529.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: number }; + +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} +
    +
    +
    +
    + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174551.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174551.tsx new file mode 100644 index 0000000..17bff88 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174551.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string }; + +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} +
    +
    +
    +
    + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174612.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174612.tsx new file mode 100644 index 0000000..3424567 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603174612.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; + +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} +
    +
    +
    +
    + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175317.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175317.tsx new file mode 100644 index 0000000..e205441 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175317.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; + +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    + sf sd sgf gdfg dfg dgd fg +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175724.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175724.tsx new file mode 100644 index 0000000..9cf9ba5 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175724.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; + +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    + + + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175745.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175745.tsx new file mode 100644 index 0000000..1eed077 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220603175745.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; + +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    + + + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604082614.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604082614.tsx new file mode 100644 index 0000000..6deebe6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604082614.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; + +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    + + + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083212.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083212.tsx new file mode 100644 index 0000000..4319736 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083212.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    + {

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    + + + +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083327.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083327.tsx new file mode 100644 index 0000000..c824229 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083327.tsx @@ -0,0 +1,36 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083453.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083453.tsx new file mode 100644 index 0000000..1fa9f0c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083453.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description'; +const addBasket = () => { + console.log(dd); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083500.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083500.tsx new file mode 100644 index 0000000..cd97f3b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083500.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description'; +const addBasket = () => { + console.log('add'); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083527.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083527.tsx new file mode 100644 index 0000000..b499183 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083527.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', sun=33; +const addBasket = () => { + console.log('add'); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083650.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083650.tsx new file mode 100644 index 0000000..b499183 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604083650.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', sun=33; +const addBasket = () => { + console.log('add'); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131550.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131550.tsx new file mode 100644 index 0000000..6c8b822 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131550.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', sun=33; +const addBasket = () => { + console.log('add'); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131602.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131602.tsx new file mode 100644 index 0000000..b9e0aed --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131602.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', sum=33; +const addBasket = () => { + console.log('add'); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131652.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131652.tsx new file mode 100644 index 0000000..6a09628 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131652.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', sum=33; +const addBasket = () => { + console.log('add'); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131757.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131757.tsx new file mode 100644 index 0000000..d16b407 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604131757.tsx @@ -0,0 +1,38 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', sum=33; +const addBasket = () => { + console.log('add'); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    + +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604171330.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604171330.tsx new file mode 100644 index 0000000..0b9ab32 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220604171330.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', sum=33; +const addBasket = () => { + console.log('add'); +} +export const PizzaCard: React.FC = ({id}) => { + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043046.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043046.tsx new file mode 100644 index 0000000..368a00a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043046.tsx @@ -0,0 +1,64 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { id: string | string[] }; +const title='dddd', feature='feature',description='description', sum=33; +const typeNames = ['тонкое', 'традиционное']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043356.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043356.tsx new file mode 100644 index 0000000..8a126a4 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043356.tsx @@ -0,0 +1,66 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', feature='feature', description='description', sum=33, types=[1,2], sizes=[30,40, 50]; +const typeNames = ['тонкое', 'традиционное']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043417.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043417.tsx new file mode 100644 index 0000000..81f448b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043417.tsx @@ -0,0 +1,66 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', feature='feature', description='description', sum=33, types=[0,1], sizes=[30,40, 50]; +const typeNames = ['тонкое', 'традиционное']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043448.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043448.tsx new file mode 100644 index 0000000..4a71690 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043448.tsx @@ -0,0 +1,66 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', feature='feature', description='description', sum=33, types=[0,1], sizes=[30,40, 50]; +const typeNames = ['тонкое тесто', 'традиционное тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043502.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043502.tsx new file mode 100644 index 0000000..4098297 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043502.tsx @@ -0,0 +1,66 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', feature='feature', description='description', sum=33, types=[0,1], sizes=[30,40, 50]; +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см. +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043527.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043527.tsx new file mode 100644 index 0000000..25c9763 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615043527.tsx @@ -0,0 +1,66 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', feature='feature', description='description', sum=33, types=[0,1], sizes=[30,40, 50]; +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? 'active' : ''}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615052903.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615052903.tsx new file mode 100644 index 0000000..47e7830 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615052903.tsx @@ -0,0 +1,66 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', feature='feature', description='description', sum=33, types=[0,1], sizes=[30,40, 50]; +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? 'active' : ''}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615053406.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615053406.tsx new file mode 100644 index 0000000..95d0208 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615053406.tsx @@ -0,0 +1,66 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', feature='feature', description='description', sum=33, types=[0,1], sizes=[30,40, 50]; +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615054825.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615054825.tsx new file mode 100644 index 0000000..a0cd946 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615054825.tsx @@ -0,0 +1,70 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} dfg dfgdf gdgdfgdf dfgdfg dfg dfg dfg df gdfg gdf gdf g +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615054902.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615054902.tsx new file mode 100644 index 0000000..78c8849 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615054902.tsx @@ -0,0 +1,70 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055133.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055133.tsx new file mode 100644 index 0000000..22c40ec --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055133.tsx @@ -0,0 +1,76 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055327.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055327.tsx new file mode 100644 index 0000000..4e78c7b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055327.tsx @@ -0,0 +1,76 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055433.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055433.tsx new file mode 100644 index 0000000..1b67563 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055433.tsx @@ -0,0 +1,76 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055441.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055441.tsx new file mode 100644 index 0000000..0c905aa --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055441.tsx @@ -0,0 +1,76 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055444.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055444.tsx new file mode 100644 index 0000000..5ae52f2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055444.tsx @@ -0,0 +1,76 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055454.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055454.tsx new file mode 100644 index 0000000..33ea87a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055454.tsx @@ -0,0 +1,76 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {id} + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055502.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055502.tsx new file mode 100644 index 0000000..4355921 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055502.tsx @@ -0,0 +1,75 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055604.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055604.tsx new file mode 100644 index 0000000..4a17d51 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615055604.tsx @@ -0,0 +1,75 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import { RadioButton } from './index'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615060013.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615060013.tsx new file mode 100644 index 0000000..867ba88 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615060013.tsx @@ -0,0 +1,74 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615060020.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615060020.tsx new file mode 100644 index 0000000..867ba88 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615060020.tsx @@ -0,0 +1,74 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import classNames from 'classnames'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615062834.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615062834.tsx new file mode 100644 index 0000000..31de09b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615062834.tsx @@ -0,0 +1,95 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import classNames from 'classnames'; +import axios from 'axios'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + useEffect(() => { + const getData = async () => { + const { sortBy, order, category, search, currentPage } = params; + const { data } = await axios.get(`https://626d16545267c14d5677d9c2.mockapi.io/items`, { + params: pickBy( + { + page: currentPage, + limit: 4, + category, + sortBy, + order, + search, + }, + identity, + ), + }); + }; + getData(); + }, [id]); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615062851.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615062851.tsx new file mode 100644 index 0000000..59ae0bf --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615062851.tsx @@ -0,0 +1,96 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import classNames from 'classnames'; +import axios from 'axios'; +import pickBy from 'lodash/pickBy'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + useEffect(() => { + const getData = async () => { + const { sortBy, order, category, search, currentPage } = params; + const { data } = await axios.get(`https://626d16545267c14d5677d9c2.mockapi.io/items`, { + params: pickBy( + { + page: currentPage, + limit: 4, + category, + sortBy, + order, + search, + }, + identity, + ), + }); + }; + getData(); + }, [id]); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615063125.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615063125.tsx new file mode 100644 index 0000000..53fbb71 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615063125.tsx @@ -0,0 +1,97 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import classNames from 'classnames'; +import axios from 'axios'; +import pickBy from 'lodash/pickBy'; +import identity from 'lodash/identity'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + useEffect(() => { + const getData = async () => { + const { sortBy, order, category, search, currentPage } = params; + const { data } = await axios.get('/api/loadingPizzaInformation', { + params: pickBy( + { + page: currentPage, + limit: 4, + category, + sortBy, + order, + search, + }, + identity, + ), + }); + }; + getData(); + }, [id]); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615064426.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615064426.tsx new file mode 100644 index 0000000..51234cf --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615064426.tsx @@ -0,0 +1,85 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import classNames from 'classnames'; +import axios from 'axios'; +import pickBy from 'lodash/pickBy'; +import identity from 'lodash/identity'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + useEffect(() => { + const getData = async () => { + const { data } = await axios.get('/api/loadingPizzaInformation/'+id); + setRows(data); + }; + getData(); + }, [id]); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615064445.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615064445.tsx new file mode 100644 index 0000000..4199fdb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615064445.tsx @@ -0,0 +1,86 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import { Modal, Button } from '../../../../../UI'; +import classNames from 'classnames'; +import axios from 'axios'; +import pickBy from 'lodash/pickBy'; +import identity from 'lodash/identity'; + +type Props = { + id: string | string[]; + }; +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + useEffect(() => { + const getData = async () => { + const { data } = await axios.get('/api/loadingPizzaInformation/'+id); + setRows(data); + }; + getData(); + console.log(rows); + }, [id]); + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160218.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160218.tsx new file mode 100644 index 0000000..61333ea --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160218.tsx @@ -0,0 +1,79 @@ +import React, { useState, useEffect } from 'react'; +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: string | string[]; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160433.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160433.tsx new file mode 100644 index 0000000..e62ad92 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160433.tsx @@ -0,0 +1,86 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: string | string[]; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard() ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160611.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160611.tsx new file mode 100644 index 0000000..c65f359 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160611.tsx @@ -0,0 +1,89 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: string | string[]; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard() ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + const pizza = pizzaToCard_items.map((obj, index) => ); + const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160632.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160632.tsx new file mode 100644 index 0000000..8429e0d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160632.tsx @@ -0,0 +1,91 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import console from 'console'; + +type Props = { + id: string | string[]; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard() ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160645.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160645.tsx new file mode 100644 index 0000000..b4678d2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615160645.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: string | string[]; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard() ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162022.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162022.tsx new file mode 100644 index 0000000..835d167 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162022.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: string | string[]; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162403.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162403.tsx new file mode 100644 index 0000000..d283b42 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162403.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: number; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162842.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162842.tsx new file mode 100644 index 0000000..23c29ab --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162842.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: number; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items.title); + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162900.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162900.tsx new file mode 100644 index 0000000..283a752 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162900.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: number; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items[0].title); + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162915.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162915.tsx new file mode 100644 index 0000000..020f7e9 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162915.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: number; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items[0]); + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162952.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162952.tsx new file mode 100644 index 0000000..3643d20 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615162952.tsx @@ -0,0 +1,90 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import Image from 'next/image'; +import Link from "next/link"; +import classNames from 'classnames'; +import { Modal, Button } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; + +type Props = { + id: number; +}; + +const title='dddd', +feature='feature', +description='description', +sum=33, types=[0,1], sizes=[30,40, 50]; + +const typeNames = ['традиционное тесто','тонкое тесто']; + +const addBasket = () => { + console.log('add'); +} + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + const [activeType, setActiveType] = useState(0); + const [activeSize, setActiveSize] = useState(0); + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items[0].name); + //const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + +
    +
    + {'pizza'} +
    +
    +
    +
    +

    {title}

    +

    {feature}

    +

    {description}

    +
    +
      + {types.map((typeId) => ( +
    • setActiveType(typeId)} + className={activeType === typeId ? classNames('active type') : classNames('type')}> + {typeNames[typeId]} +
    • + ))} +
    +
      + {sizes.map((size, i) => ( +
    • setActiveSize(i)} + className={activeSize === i ? classNames('active size') : classNames('size')}> + {size} см +
    • + ))} +
    +
    +
    + + + + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615164006.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615164006.tsx new file mode 100644 index 0000000..721dc33 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615164006.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615164206.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615164206.tsx new file mode 100644 index 0000000..b934237 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220615164206.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616123755.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616123755.tsx new file mode 100644 index 0000000..b934237 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616123755.tsx @@ -0,0 +1,31 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616125926.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616125926.tsx new file mode 100644 index 0000000..6b8a1f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616125926.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616125948.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616125948.tsx new file mode 100644 index 0000000..6b8a1f1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616125948.tsx @@ -0,0 +1,32 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const [rows, setRows] = useState([]); + + console.log(pizzaToCard_items); + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616132026.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616132026.tsx new file mode 100644 index 0000000..ae2951e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616132026.tsx @@ -0,0 +1,30 @@ +import React, { useState, useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616132034.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616132034.tsx new file mode 100644 index 0000000..5d515bd --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220616132034.tsx @@ -0,0 +1,30 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617162344.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617162344.tsx new file mode 100644 index 0000000..e68bb04 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617162344.tsx @@ -0,0 +1,30 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + document.body.style.overflow = "hidden"; + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617162450.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617162450.tsx new file mode 100644 index 0000000..c6c669c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617162450.tsx @@ -0,0 +1,30 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: number; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617190746.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617190746.tsx new file mode 100644 index 0000000..9473162 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617190746.tsx @@ -0,0 +1,30 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617191214.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617191214.tsx new file mode 100644 index 0000000..4872ebe --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617191214.tsx @@ -0,0 +1,30 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI/index'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617191230.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617191230.tsx new file mode 100644 index 0000000..9473162 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220617191230.tsx @@ -0,0 +1,30 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import { Modal } from '../../../../../UI'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( + + {pizza} + + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618150953.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618150953.tsx new file mode 100644 index 0000000..3384472 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618150953.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151147.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151147.tsx new file mode 100644 index 0000000..adb67c3 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151147.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151400.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151400.tsx new file mode 100644 index 0000000..e00b73e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151400.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151408.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151408.tsx new file mode 100644 index 0000000..931e811 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151408.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151454.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151454.tsx new file mode 100644 index 0000000..51f50f7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220618151454.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619081333.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619081333.tsx new file mode 100644 index 0000000..817b551 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619081333.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619081810.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619081810.tsx new file mode 100644 index 0000000..6de7672 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619081810.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082020.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082020.tsx new file mode 100644 index 0000000..0b5f8f4 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082020.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082124.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082124.tsx new file mode 100644 index 0000000..817b551 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082124.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082141.tsx b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082141.tsx new file mode 100644 index 0000000..51f50f7 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/pizzaCard_20220619082141.tsx @@ -0,0 +1,36 @@ +import React, { useEffect } from 'react'; +import { useSelector } from 'react-redux' +import classNames from 'classnames'; +import { useAppDispatch } from '../../../../../../redux/store'; +import { fetchPizzaToCard, selectPizzaToCartData } from '../../../../../../redux/pizzaToCart/'; +import { PizzaModalsContent } from './'; + +type Props = { + id: any; + otherProp?: any; +}; + +export const PizzaCard: React.FC = ({id}) => { + const dispatch = useAppDispatch(); + + useEffect(() => { + dispatch( fetchPizzaToCard({id}) ); + }, [dispatch, id]); + + const { pizzaToCard_items, pizzaToCard_status } = useSelector(selectPizzaToCartData); + + const pizza = pizzaToCard_items.map((obj, index) => ); + //const pizzaSkeleton = [...new Array(6)].map((_, index) => ); + + return ( +
    +
    +
    +
    + {pizza} +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220617111701.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220617111701.scss new file mode 100644 index 0000000..cbc3864 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220617111701.scss @@ -0,0 +1,103 @@ +$color_yellow: #FED11E; + +.ingredients_box{ + text-align: center; + width: 82px; + height: 128px; + margin: 4px 1% 4px 10px; + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } +} + +.IngredientsBox{ + overflow-y: scroll; + height: 250px; +} + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154354.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154354.scss new file mode 100644 index 0000000..474637a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154354.scss @@ -0,0 +1,103 @@ +$color_yellow: #FED11E; + +.ingredients_box{ + text-align: center; + width: 82px; + height: 128px; + margin: 4px 1% 4px 10px; + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } +} + +.ingredients_box{ + overflow-y: scroll; + height: 250px; +} + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154636.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154636.scss new file mode 100644 index 0000000..1037de0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154636.scss @@ -0,0 +1,103 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + width: 82px; + height: 128px; + margin: 4px 1% 4px 10px; + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } +} + +.IngredientsBox{ + overflow-y: scroll; + height: 250px; +} + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154701.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154701.scss new file mode 100644 index 0000000..0d94a81 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618154701.scss @@ -0,0 +1,105 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + width: 82px; + height: 128px; + margin: 4px 1% 4px 10px; + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + .box{ + overflow-y: scroll; + height: 250px; + } +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155338.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155338.scss new file mode 100644 index 0000000..efe95a0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155338.scss @@ -0,0 +1,117 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + width: 82px; + height: 128px; + margin: 4px 1% 4px 10px; + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + .ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + .box{ + overflow-y: scroll; + height: 250px; + } +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155530.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155530.scss new file mode 100644 index 0000000..d516d4d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155530.scss @@ -0,0 +1,118 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + width: 82px; + height: 128px; + margin: 4px 1% 4px 10px; +} + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + .ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + .box{ + overflow-y: scroll; + height: 250px; + } + + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155544.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155544.scss new file mode 100644 index 0000000..da91201 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155544.scss @@ -0,0 +1,118 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + width: 82px; + height: 128px; + margin: 4px 1% 4px 10px; + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + .ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + .box{ + overflow-y: scroll; + height: 250px; + } +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155709.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155709.scss new file mode 100644 index 0000000..795d545 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155709.scss @@ -0,0 +1,117 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + .ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + .box{ + overflow-y: scroll; + height: 250px; + } +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155830.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155830.scss new file mode 100644 index 0000000..1947054 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155830.scss @@ -0,0 +1,114 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + .ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155843.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155843.scss new file mode 100644 index 0000000..9da486a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618155843.scss @@ -0,0 +1,119 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + + li { + overflow-y: scroll; + height: 250px; + } + } + + @media (min-width: 640px) { + .ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160025.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160025.scss new file mode 100644 index 0000000..e68deeb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160025.scss @@ -0,0 +1,120 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + height: 250px; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + + li { + overflow-y: scroll; + + } + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160033.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160033.scss new file mode 100644 index 0000000..07e47ba --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160033.scss @@ -0,0 +1,121 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + height: 250px; + overflow-y: scroll; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + + li { + + + } + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160127.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160127.scss new file mode 100644 index 0000000..8918e45 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160127.scss @@ -0,0 +1,116 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + height: 250px; + overflow-y: scroll; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160228.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160228.scss new file mode 100644 index 0000000..01e4677 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160228.scss @@ -0,0 +1,117 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + height: 250px; + overflow-y: scroll; + list-style-type: none; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160242.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160242.scss new file mode 100644 index 0000000..bdc65f0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160242.scss @@ -0,0 +1,120 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + height: 250px; + overflow-y: scroll; + list-style-type: none; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + li { + list-style-type: none; + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160302.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160302.scss new file mode 100644 index 0000000..7dcf88d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160302.scss @@ -0,0 +1,120 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 128px; + margin: 4px 1% 4px 10px; + height: 250px; + overflow-y: scroll; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + li { + list-style-type: none; + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160459.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160459.scss new file mode 100644 index 0000000..6aecbf6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160459.scss @@ -0,0 +1,118 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + li { + list-style-type: none; + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160509.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160509.scss new file mode 100644 index 0000000..f1d8f8f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160509.scss @@ -0,0 +1,119 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + li { + list-style-type: none; + margin: 5px; + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160623.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160623.scss new file mode 100644 index 0000000..183e487 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160623.scss @@ -0,0 +1,119 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + } + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .ingredients_text_box{ + border-radius: 30%; + height: 128px; + } + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160815.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160815.scss new file mode 100644 index 0000000..26e7394 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618160815.scss @@ -0,0 +1,123 @@ +$color_yellow: #FED11E; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161039.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161039.scss new file mode 100644 index 0000000..e6b5c50 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161039.scss @@ -0,0 +1,130 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + .none{ + background-color: $color_none; + height: 32px; + padding: 5px 15px 5px 15px; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161210.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161210.scss new file mode 100644 index 0000000..9cca5be --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161210.scss @@ -0,0 +1,128 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + .none { + background-color: $color_none; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161253.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161253.scss new file mode 100644 index 0000000..4cff740 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161253.scss @@ -0,0 +1,134 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + .none { + background-color: $color_none; + padding: 5px 15px 5px 15px; + } + + .yellow{ + background-color: $color_yellow; + padding: 5px 15px 5px 15px; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + .ingredients_img{ + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161334.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161334.scss new file mode 100644 index 0000000..5f3bbda --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161334.scss @@ -0,0 +1,136 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + .none { + background-color: $color_none; + padding: 5px 15px 5px 15px; + } + + .yellow{ + background-color: $color_yellow; + padding: 5px 15px 5px 15px; + } + + .img { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161600.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161600.scss new file mode 100644 index 0000000..2c4eca6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161600.scss @@ -0,0 +1,136 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + &.none { + background-color: $color_none; + padding: 5px 15px 5px 15px; + } + + &.yellow{ + background-color: $color_yellow; + padding: 5px 15px 5px 15px; + } + + .img { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161655.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161655.scss new file mode 100644 index 0000000..bae7628 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161655.scss @@ -0,0 +1,136 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + &.none { + background-color: $color_none; + padding: 5px 15px 5px 15px; + } + + &_yellow{ + background-color: $color_yellow; + padding: 5px 15px 5px 15px; + } + + .img { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161714.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161714.scss new file mode 100644 index 0000000..12e7c7e --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161714.scss @@ -0,0 +1,136 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + &_none { + background-color: $color_none; + padding: 5px 15px 5px 15px; + } + + &_yellow{ + background-color: $color_yellow; + padding: 5px 15px 5px 15px; + } + + .img { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161811.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161811.scss new file mode 100644 index 0000000..df9ede6 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618161811.scss @@ -0,0 +1,136 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + .none_ing { + background-color: $color_none; + padding: 5px 15px 5px 15px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 15px 5px 15px; + } + + .img { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162317.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162317.scss new file mode 100644 index 0000000..c9f6fe4 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162317.scss @@ -0,0 +1,137 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162440.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162440.scss new file mode 100644 index 0000000..77741cd --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162440.scss @@ -0,0 +1,138 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162535.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162535.scss new file mode 100644 index 0000000..84798bb --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162535.scss @@ -0,0 +1,138 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + } + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .ingredients_name{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_price{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162750.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162750.scss new file mode 100644 index 0000000..c053c63 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162750.scss @@ -0,0 +1,142 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + + + + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162806.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162806.scss new file mode 100644 index 0000000..80a70b0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618162806.scss @@ -0,0 +1,142 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + + + + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618174653.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618174653.scss new file mode 100644 index 0000000..80a70b0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618174653.scss @@ -0,0 +1,142 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + + + + + .ingredients_button{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202242.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202242.scss new file mode 100644 index 0000000..3927d12 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202242.scss @@ -0,0 +1,136 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + .yellow{ + background-color: $color_yellow; + } + + .none{ + background-color: #F5F1E1; + } + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202320.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202320.scss new file mode 100644 index 0000000..5af5a5f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202320.scss @@ -0,0 +1,130 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing{ + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202402.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202402.scss new file mode 100644 index 0000000..397bf2f --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202402.scss @@ -0,0 +1,130 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box{ + border-radius: 30%; + height: 128px; + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing { + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202504.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202504.scss new file mode 100644 index 0000000..6c667bd --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202504.scss @@ -0,0 +1,130 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box { + border-radius: 30%; + height: 128px; + + .none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + .yellow_ing { + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202631.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202631.scss new file mode 100644 index 0000000..fc5ed0b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202631.scss @@ -0,0 +1,130 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box { + border-radius: 30%; + height: 128px; + + &.none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + &.yellow_ing { + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202656.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202656.scss new file mode 100644 index 0000000..fc80af2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202656.scss @@ -0,0 +1,130 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box { + border-radius: 30%; + height: 128px; + + &.none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + &.yellow_ing { + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + &.img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + &.title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + &.price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + &.button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202707.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202707.scss new file mode 100644 index 0000000..8f0facf --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202707.scss @@ -0,0 +1,130 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box { + border-radius: 30%; + height: 128px; + + &.none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + &.yellow_ing { + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + &.img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202711.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202711.scss new file mode 100644 index 0000000..fc5ed0b --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202711.scss @@ -0,0 +1,130 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box { + border-radius: 30%; + height: 128px; + + &.none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + &.yellow_ing { + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + } + } + + + + .onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; + } + + .bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; + } + + .cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; + } + + .jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; + } + + .mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; + } + + .pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; + } + + .pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; + } + + .tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; + } + + + + + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202929.scss b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202929.scss new file mode 100644 index 0000000..a662637 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_ingredients_20220618202929.scss @@ -0,0 +1,102 @@ +$color_yellow: #FED11E; +$color_none: #dad9d8; + +.ingredients{ + text-align: center; + height: 250px; + overflow-y: scroll; + margin-left: 10px; + + @media (min-width: 640px) { + ul { + padding-top: 8px; + flex-wrap: wrap; + } + } + + .ul { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + .li { + list-style-type: none; + margin: 5px; + width: 83px; + + .text_box { + border-radius: 30%; + height: 128px; + + &.none_ing { + background-color: $color_none; + padding: 5px 5px 5px 5px; + } + + &.yellow_ing { + background-color: $color_yellow; + padding: 5px 5px 5px 5px; + } + + .img_ing { + color: rgb(0, 0, 0); + height: 52px; + width: 52px; + margin: 0 auto; + border-radius: 50%; + background-color: #fff; + } + + .title_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .price_ing{ + color: rgb(0, 0, 0); + font-size: 12px; + } + + .button_ing{ + display: inline-block; + -webkit-border-radius: 12px; + -moz-border-radius: 50%; + border-radius: 50%; + -khtml-border-radius: 50%;; + width: 28px; + height: 25px; + margin-top: 10px; + border: aliceblue; + } + + @import 'products'; + } + } + + + + + + + + + + .buttonCheck{ + font-size: 24px; + } + + +} + + + +.plus{ + background: url('/assets/img/plus.png') 100% 100% no-repeat; + } + + .minus{ + background: url('/assets/img/minus.png') 0% no-repeat; + margin-right: auto !important; + margin-left: auto !important; + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_products_20220618202831.scss b/.history/components/customer/pages/index/modals/pizza/styles/_products_20220618202831.scss new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/pizza/styles/_products_20220618202848.scss b/.history/components/customer/pages/index/modals/pizza/styles/_products_20220618202848.scss new file mode 100644 index 0000000..b491855 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/_products_20220618202848.scss @@ -0,0 +1,31 @@ +.onion{ + background: url('/assets/img/onion.png') 100% 100% no-repeat; +} + +.bacon{ + background: url('/assets/img/bacon.png') 100% 100% no-repeat; +} + +.cheese{ + background: url('/assets/img/cheese.png') 100% 100% no-repeat; +} + +.jalapeno{ + background: url('/assets/img/jalapeno.png') 100% 100% no-repeat; +} + +.mushroom{ + background: url('/assets/img/mushroom.png') 100% 100% no-repeat; +} + +.pickles{ + background: url('/assets/img/pickles.png') 100% 100% no-repeat; +} + +.pineapple{ + background: url('/assets/img/pineapple.png') 100% 100% no-repeat; +} + +.tomato{ + background: url('/assets/img/tomato.png') 100% 100% no-repeat; +} \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/block_selector_20220618153310.scss b/.history/components/customer/pages/index/modals/pizza/styles/block_selector_20220618153310.scss new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/pizza/styles/block_selector_20220618153802.scss b/.history/components/customer/pages/index/modals/pizza/styles/block_selector_20220618153802.scss new file mode 100644 index 0000000..e30c5d1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/block_selector_20220618153802.scss @@ -0,0 +1,58 @@ +.block { + display: block ruby; + margin-bottom: 15px; + margin-left: 15px; + border-spacing: 0; + border-collapse: separate; + + &_selector { + -moz-transition: border 250ms, color 250ms; + -o-transition: border 250ms, color 250ms; + -webkit-transition: border 250ms, color 250ms; + transition: border 250ms, color 250ms; + cursor: pointer; + + ul { + margin-left: -25px; + + &:first-of-type { + margin-bottom: 6px; + } + li { + padding: 5px; + cursor: pointer; + font-size: 14px; + display: table-cell; + height: 24px; + vertical-align: middle; + text-align: center; + position: relative; + padding-left: 8px; + padding-right: 8px; + border-radius: 32px; + + &.active { + background: #FED11E; + box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04); + cursor: auto; + } + + &.size{ + width: 60px; + height: 32px; + border-radius: 8px; + } + + &.type{ + width: 178px; + height: 24px; + border-radius: 12px; + -webkit-border-radius: 12px; + -moz-border-radius: 12px; + -ms-border-radius: 12px; + -o-border-radius: 12px; + } + } + } + } + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618153323.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618153323.scss new file mode 100644 index 0000000..e69de29 diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154205.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154205.scss new file mode 100644 index 0000000..38f7d45 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154205.scss @@ -0,0 +1,154 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + + @import './block_selector'; + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + .vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154302.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154302.scss new file mode 100644 index 0000000..939f570 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154302.scss @@ -0,0 +1,154 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + .vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154455.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154455.scss new file mode 100644 index 0000000..2821f99 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618154455.scss @@ -0,0 +1,154 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + @import './ingredients'; + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + .vendor-list_ul_modal { + padding-top: 16px; + display: flex; + flex-wrap: wrap; + } + + @media (min-width: 640px) { + .vendor-list_ul_modal { + padding-top: 8px; + flex-wrap: wrap; + } + } \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155352.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155352.scss new file mode 100644 index 0000000..6a72167 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155352.scss @@ -0,0 +1,143 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + @import './ingredients'; + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155504.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155504.scss new file mode 100644 index 0000000..ce6f0cd --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155504.scss @@ -0,0 +1,144 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + + } + @import './ingredients'; + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155509.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155509.scss new file mode 100644 index 0000000..ff093f2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155509.scss @@ -0,0 +1,144 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + + } + + } + } + } + } + @import './ingredients'; + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155512.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155512.scss new file mode 100644 index 0000000..caa5548 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155512.scss @@ -0,0 +1,144 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + + } + + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155515.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155515.scss new file mode 100644 index 0000000..ff093f2 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155515.scss @@ -0,0 +1,144 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + + } + + } + } + } + } + @import './ingredients'; + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155548.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155548.scss new file mode 100644 index 0000000..6a72167 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155548.scss @@ -0,0 +1,143 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + @import './ingredients'; + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155554.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155554.scss new file mode 100644 index 0000000..a5b55a1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155554.scss @@ -0,0 +1,143 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import './block_selector'; + @import 'ingredients'; + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155557.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155557.scss new file mode 100644 index 0000000..bfaa5c5 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618155557.scss @@ -0,0 +1,143 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + + + + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220618202354.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618202354.scss new file mode 100644 index 0000000..b4a2bf3 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220618202354.scss @@ -0,0 +1,139 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + font-family: 'Rubik'; + font-style: normal; + font-weight: 400; + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080717.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080717.scss new file mode 100644 index 0000000..a6e42a8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080717.scss @@ -0,0 +1,135 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080724.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080724.scss new file mode 100644 index 0000000..7459c88 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080724.scss @@ -0,0 +1,136 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080813.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080813.scss new file mode 100644 index 0000000..02656a8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619080813.scss @@ -0,0 +1,137 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + margin-top: 20px; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619081302.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619081302.scss new file mode 100644 index 0000000..75f4a9d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619081302.scss @@ -0,0 +1,165 @@ +.fixed-overlay__modal { + text-align: center; + white-space: nowrap; +} + +.fixed-overlay__modal::after { + display: inline-block; + vertical-align: middle; + width: 0; + height: 100%; + content: ''; +} + +.modal { + display: inline-block; + vertical-align: middle; +} + +.modal_container { + margin: 50px; + padding: 20px; + min-width: 200px; + text-align: left; + white-space: normal; + background-color: #fff; + color: #000; +} + +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + margin-top: 20px; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619081915.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619081915.scss new file mode 100644 index 0000000..cffb76a --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619081915.scss @@ -0,0 +1,309 @@ +/* Стили модального окна и содержания +-------------------------------------------------------------------------------*/ + +/* слой затемнения */ + +.dm-overlay { + position: fixed; + top: 0; + left: 0; + background: rgba(0, 0, 0, 0.65); + display: none; + overflow: auto; + width: 100%; + height: 100%; + z-index: 1000; +} +/* активируем модальное окно */ + +.dm-overlay:target { + display: block; + -webkit-animation: fade .6s; + -moz-animation: fade .6s; + animation: fade .6s; +} +/* блочная таблица */ + +.dm-table { + display: table; + width: 100%; + height: 100%; +} +/* ячейка блочной таблицы */ + +.dm-cell { + display: table-cell; + padding: 0 1em; + vertical-align: middle; + text-align: center; +} +/* модальный блок */ + +.dm-modal { + display: inline-block; + padding: 20px; + max-width: 50em; + background: #607d8b; + -webkit-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3); + -moz-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3); + box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3); + color: #cfd8dc; + text-align: left; +} +/* изображения в модальном окне */ + +.dm-modal img { + width: 100%; + height: auto; +} +/* миниатюры изображений */ + +.pl-left, +.pl-right { + width: 25%; + height: auto; +} +/* миниатюра справа */ + +.pl-right { + float: right; + margin: 5px 0 5px 15px; +} +/* миниатюра слева */ + +.pl-left { + float: left; + margin: 5px 15px 5px 0; +} +/* встраиваемое видео в модальном окне */ + +.video { + position: relative; + overflow: hidden; + padding-bottom: 56.25%; + height: 0; +} +.video iframe, +.video object, +.video embed { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +/* рисуем кнопарь закрытия */ + +.close { + z-index: 9999; + float: right; + width: 30px; + height: 30px; + color: #cfd8dc; + text-align: center; + text-decoration: none; + line-height: 26px; + cursor: pointer; +} +.close:after { + display: block; + border: 2px solid #cfd8dc; + -webkit-border-radius: 50%; + -moz-border-radius: 50%; + border-radius: 50%; + content: 'X'; + -webkit-transition: all 0.6s; + -moz-transition: all 0.6s; + transition: all 0.6s; + -webkit-transform: scale(0.85); + -moz-transform: scale(0.85); + -ms-transform: scale(0.85); + transform: scale(0.85); +} +/* кнопка закрытия при наведении */ + +.close:hover:after { + border-color: #fff; + color: #fff; + -webkit-transform: scale(1); + -moz-transform: scale(1); + -ms-transform: scale(1); + transform: scale(1); +} +/* варианты фонвой заливки модального блока */ + +.green { + background: #388e3c!important; +} +.cyan { + background: #0097a7!important; +} +.teal { + background: #00796b!important; +} +/* движуха при появлении блоков с содержанием */ + +@-moz-keyframes fade { + from { + opacity: 0; + } + to { + opacity: 1 + } +} +@-webkit-keyframes fade { + from { + opacity: 0; + } + to { + opacity: 1 + } +} +@keyframes fade { + from { + opacity: 0; + } + to { + opacity: 1 + } +} + + + +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + margin-top: 20px; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082111.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082111.scss new file mode 100644 index 0000000..02656a8 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082111.scss @@ -0,0 +1,137 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + margin-top: 20px; + height: 533px; + width: 900px; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082249.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082249.scss new file mode 100644 index 0000000..4cb7629 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082249.scss @@ -0,0 +1,147 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + margin-top: 20px; + height: 533px; + width: 900px; + + display: inline-block; + padding: 20px; + max-width: 50em; + background: #607d8b; + -webkit-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3); + -moz-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3); + box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3); + color: #cfd8dc; + text-align: left; + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082301.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082301.scss new file mode 100644 index 0000000..c884023 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082301.scss @@ -0,0 +1,138 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + margin-top: 20px; + height: 533px; + width: 900px; + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .modal_product { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .position_product{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082507.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082507.scss new file mode 100644 index 0000000..0fb1a7c --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082507.scss @@ -0,0 +1,138 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + margin: 0 auto; + margin-top: 20px; + height: 533px; + width: 900px; + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .pizza_modal_card { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .pizza_modal_card{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082619.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082619.scss new file mode 100644 index 0000000..5b085ee --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082619.scss @@ -0,0 +1,140 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + height: 533px; + width: 900px; + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .pizza_modal_card { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .pizza_modal_card{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082822.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082822.scss new file mode 100644 index 0000000..dd3667d --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082822.scss @@ -0,0 +1,141 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + height: 533px; + width: 900px; + border-radius: 20px; + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .pizza_modal_card { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .pizza_modal_card{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082939.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082939.scss new file mode 100644 index 0000000..2276fc1 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619082939.scss @@ -0,0 +1,141 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + height: 533px; + width: 900px; + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + border-radius: 20px; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + margin: 0 auto; + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .pizza_modal_card { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .pizza_modal_card{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/pages/index/modals/pizza/styles/index_20220619083157.scss b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619083157.scss new file mode 100644 index 0000000..e6d62b0 --- /dev/null +++ b/.history/components/customer/pages/index/modals/pizza/styles/index_20220619083157.scss @@ -0,0 +1,141 @@ +.pizza_modal_card { + display: block; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 100; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + + .dialog { + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + height: 533px; + width: 900px; + + /* Modal Content */ + .content { + background-color: #fefefe; + margin: auto; + border-radius: 20px; + /*border: 1px solid #888;*/ + .body{ + height: 100%; + flex-wrap: wrap; + display: flex; + + .left{ + /* margin: 0 auto;*/ + float: left; + position: static; + display: flex; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + width: 400px; + + .img{ + text-align: center; + height: 100%; + display: grid;; + justify-content: center; /*Центрирование по горизонтали*/ + align-items: center; /*Центрирование по вертикали */ + } + } + + .right{ + background: #F7F7F7; + width: 450px; + display: table; + float: left; + position: static; + + .header{ + height: 450px; + letter-spacing: 0.02em; + + .title{ + font-size: 20px; + line-height: 24px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + .feature{ + font-size: 13px; + line-height: 15px; + margin: 10px 10px 10px 15px; + color: #8E8E93; + } + + .description{ + font-size: 13px; + line-height: 15px; + color: #252A48; + margin: 10px 10px 10px 15px; + } + /* Блок переключения */ + @import 'block_selector'; + @import 'ingredients'; + } + } + } + } + } + + .modal_footer{ + display: table; + margin: 0 auto; + margin-top: 15px; + } + + + + + + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + } + + + + + + + + .position_product{ + padding-top: 100px; + /* padding-top: 100px; + right: 0; + left: unset !important; + position: absolute;*/ + } + + + @media (max-width: 940px) { + .pizza_modal_card { + height: 1010px; + width: 100vw; + max-width: 400px; + } + .pizza_modal_card{ + padding-top: 5px; + } + } + + \ No newline at end of file diff --git a/.history/components/customer/search/index_20220518151433.tsx b/.history/components/customer/search/index_20220518151433.tsx new file mode 100644 index 0000000..7cbd19b --- /dev/null +++ b/.history/components/customer/search/index_20220518151433.tsx @@ -0,0 +1,83 @@ +import React from 'react'; +import { useDispatch } from 'react-redux'; +import { debounce } from "lodash" + +import { setSearchValue } from '../../../redux/search/slice'; + +export const Search: React.FC = () => { + const dispatch = useDispatch(); + const [value, setValue] = React.useState(''); + const inputRef = React.useRef(null); + + const onClickClear = () => { + dispatch(setSearchValue('')); + setValue(''); + inputRef.current?.focus(); + }; + + const updateSearchValue = React.useCallback( + debounce((str: string) => { + dispatch(setSearchValue(str)); + }, 150), + [], + ); + + const onChangeInput = (event: React.ChangeEvent) => { + setValue(event.target.value); + updateSearchValue(event.target.value); + }; + + return ( +
    + + + + + + {value && ( + + + + )} +
    + ); +}; diff --git a/.history/components/customer/search/index_20220518152152.tsx b/.history/components/customer/search/index_20220518152152.tsx new file mode 100644 index 0000000..7cbd19b --- /dev/null +++ b/.history/components/customer/search/index_20220518152152.tsx @@ -0,0 +1,83 @@ +import React from 'react'; +import { useDispatch } from 'react-redux'; +import { debounce } from "lodash" + +import { setSearchValue } from '../../../redux/search/slice'; + +export const Search: React.FC = () => { + const dispatch = useDispatch(); + const [value, setValue] = React.useState(''); + const inputRef = React.useRef(null); + + const onClickClear = () => { + dispatch(setSearchValue('')); + setValue(''); + inputRef.current?.focus(); + }; + + const updateSearchValue = React.useCallback( + debounce((str: string) => { + dispatch(setSearchValue(str)); + }, 150), + [], + ); + + const onChangeInput = (event: React.ChangeEvent) => { + setValue(event.target.value); + updateSearchValue(event.target.value); + }; + + return ( +
    + + + + + + {value && ( + + + + )} +
    + ); +}; diff --git a/.history/components/customer/search/index_20220518152153.tsx b/.history/components/customer/search/index_20220518152153.tsx new file mode 100644 index 0000000..7cbd19b --- /dev/null +++ b/.history/components/customer/search/index_20220518152153.tsx @@ -0,0 +1,83 @@ +import React from 'react'; +import { useDispatch } from 'react-redux'; +import { debounce } from "lodash" + +import { setSearchValue } from '../../../redux/search/slice'; + +export const Search: React.FC = () => { + const dispatch = useDispatch(); + const [value, setValue] = React.useState(''); + const inputRef = React.useRef(null); + + const onClickClear = () => { + dispatch(setSearchValue('')); + setValue(''); + inputRef.current?.focus(); + }; + + const updateSearchValue = React.useCallback( + debounce((str: string) => { + dispatch(setSearchValue(str)); + }, 150), + [], + ); + + const onChangeInput = (event: React.ChangeEvent) => { + setValue(event.target.value); + updateSearchValue(event.target.value); + }; + + return ( +
    + + + + + + {value && ( + + + + )} +
    + ); +}; diff --git a/.history/components/index_20220516231522.ts b/.history/components/index_20220516231522.ts new file mode 100644 index 0000000..64f7c87 --- /dev/null +++ b/.history/components/index_20220516231522.ts @@ -0,0 +1 @@ +export * from './Header'; \ No newline at end of file diff --git a/.history/components/index_20220518134507.ts b/.history/components/index_20220518134507.ts new file mode 100644 index 0000000..a42c44a --- /dev/null +++ b/.history/components/index_20220518134507.ts @@ -0,0 +1,3 @@ +export * from './Header'; +export * from './Block/Stock/Skeleton'; +export * from './Block/Stock/Stock'; \ No newline at end of file diff --git a/.history/components/index_20220518142859.ts b/.history/components/index_20220518142859.ts new file mode 100644 index 0000000..fa93f53 --- /dev/null +++ b/.history/components/index_20220518142859.ts @@ -0,0 +1,4 @@ +export * from './Header'; +export * from './Block/Stock/Skeleton'; +export * from './Block/Stock/Stock'; +export * from './Containers/BoxScroll'; \ No newline at end of file diff --git a/.history/components/index_20220518151422.ts b/.history/components/index_20220518151422.ts new file mode 100644 index 0000000..1cce4d6 --- /dev/null +++ b/.history/components/index_20220518151422.ts @@ -0,0 +1,4 @@ +export * from './Header'; +export * from './Block/Stock/Skeleton'; +export * from './Block/Stock/Stock'; +export * from './Customer/Containers/BoxScroll'; \ No newline at end of file diff --git a/.history/components/index_20220518151448.ts b/.history/components/index_20220518151448.ts new file mode 100644 index 0000000..85595dd --- /dev/null +++ b/.history/components/index_20220518151448.ts @@ -0,0 +1,4 @@ +export * from './Customer/Header'; +export * from './Block/Stock/Skeleton'; +export * from './Block/Stock/Stock'; +export * from './Customer/Containers/BoxScroll'; \ No newline at end of file diff --git a/.history/components/index_20220518151449.ts b/.history/components/index_20220518151449.ts new file mode 100644 index 0000000..85595dd --- /dev/null +++ b/.history/components/index_20220518151449.ts @@ -0,0 +1,4 @@ +export * from './Customer/Header'; +export * from './Block/Stock/Skeleton'; +export * from './Block/Stock/Stock'; +export * from './Customer/Containers/BoxScroll'; \ No newline at end of file diff --git a/.history/components/index_20220518151803.ts b/.history/components/index_20220518151803.ts new file mode 100644 index 0000000..2aec2ab --- /dev/null +++ b/.history/components/index_20220518151803.ts @@ -0,0 +1,4 @@ +export * from './customer/Header'; +export * from './block/Stock/Skeleton'; +export * from './block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; \ No newline at end of file diff --git a/.history/components/index_20220518152149.ts b/.history/components/index_20220518152149.ts new file mode 100644 index 0000000..6d953a3 --- /dev/null +++ b/.history/components/index_20220518152149.ts @@ -0,0 +1,4 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; \ No newline at end of file diff --git a/.history/components/index_20220528174627.ts b/.history/components/index_20220528174627.ts new file mode 100644 index 0000000..34828df --- /dev/null +++ b/.history/components/index_20220528174627.ts @@ -0,0 +1,5 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; \ No newline at end of file diff --git a/.history/components/index_20220528224437.ts b/.history/components/index_20220528224437.ts new file mode 100644 index 0000000..6037292 --- /dev/null +++ b/.history/components/index_20220528224437.ts @@ -0,0 +1,6 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; \ No newline at end of file diff --git a/.history/components/index_20220528234800.ts b/.history/components/index_20220528234800.ts new file mode 100644 index 0000000..c2740fb --- /dev/null +++ b/.history/components/index_20220528234800.ts @@ -0,0 +1,7 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export \ No newline at end of file diff --git a/.history/components/index_20220528234806.ts b/.history/components/index_20220528234806.ts new file mode 100644 index 0000000..79537fb --- /dev/null +++ b/.history/components/index_20220528234806.ts @@ -0,0 +1,7 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './' \ No newline at end of file diff --git a/.history/components/index_20220528234807.ts b/.history/components/index_20220528234807.ts new file mode 100644 index 0000000..5fe6882 --- /dev/null +++ b/.history/components/index_20220528234807.ts @@ -0,0 +1,7 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/' \ No newline at end of file diff --git a/.history/components/index_20220528234810.ts b/.history/components/index_20220528234810.ts new file mode 100644 index 0000000..17fc8d3 --- /dev/null +++ b/.history/components/index_20220528234810.ts @@ -0,0 +1,7 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton' \ No newline at end of file diff --git a/.history/components/index_20220528234811.ts b/.history/components/index_20220528234811.ts new file mode 100644 index 0000000..1e482aa --- /dev/null +++ b/.history/components/index_20220528234811.ts @@ -0,0 +1,7 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; \ No newline at end of file diff --git a/.history/components/index_20220529001231.ts b/.history/components/index_20220529001231.ts new file mode 100644 index 0000000..aa8a894 --- /dev/null +++ b/.history/components/index_20220529001231.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export # \ No newline at end of file diff --git a/.history/components/index_20220529001233.ts b/.history/components/index_20220529001233.ts new file mode 100644 index 0000000..660df72 --- /dev/null +++ b/.history/components/index_20220529001233.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export \ No newline at end of file diff --git a/.history/components/index_20220529001238.ts b/.history/components/index_20220529001238.ts new file mode 100644 index 0000000..4b85ec1 --- /dev/null +++ b/.history/components/index_20220529001238.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from ; \ No newline at end of file diff --git a/.history/components/index_20220529001241.ts b/.history/components/index_20220529001241.ts new file mode 100644 index 0000000..5c35e6f --- /dev/null +++ b/.history/components/index_20220529001241.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './' \ No newline at end of file diff --git a/.history/components/index_20220529001242.ts b/.history/components/index_20220529001242.ts new file mode 100644 index 0000000..0f2bfb5 --- /dev/null +++ b/.history/components/index_20220529001242.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/' \ No newline at end of file diff --git a/.history/components/index_20220529001254.ts b/.history/components/index_20220529001254.ts new file mode 100644 index 0000000..4fb76a0 --- /dev/null +++ b/.history/components/index_20220529001254.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from '.' \ No newline at end of file diff --git a/.history/components/index_20220529001259.ts b/.history/components/index_20220529001259.ts new file mode 100644 index 0000000..1e482aa --- /dev/null +++ b/.history/components/index_20220529001259.ts @@ -0,0 +1,7 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; \ No newline at end of file diff --git a/.history/components/index_20220529002438.ts b/.history/components/index_20220529002438.ts new file mode 100644 index 0000000..d42d85e --- /dev/null +++ b/.history/components/index_20220529002438.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +ecport \ No newline at end of file diff --git a/.history/components/index_20220529002440.ts b/.history/components/index_20220529002440.ts new file mode 100644 index 0000000..9c2ea64 --- /dev/null +++ b/.history/components/index_20220529002440.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +ecport * from \ No newline at end of file diff --git a/.history/components/index_20220529002445.ts b/.history/components/index_20220529002445.ts new file mode 100644 index 0000000..519bdd7 --- /dev/null +++ b/.history/components/index_20220529002445.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from \ No newline at end of file diff --git a/.history/components/index_20220529002448.ts b/.history/components/index_20220529002448.ts new file mode 100644 index 0000000..4807e80 --- /dev/null +++ b/.history/components/index_20220529002448.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './' \ No newline at end of file diff --git a/.history/components/index_20220529002450.ts b/.history/components/index_20220529002450.ts new file mode 100644 index 0000000..1a73973 --- /dev/null +++ b/.history/components/index_20220529002450.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/' \ No newline at end of file diff --git a/.history/components/index_20220529002453.ts b/.history/components/index_20220529002453.ts new file mode 100644 index 0000000..55641cc --- /dev/null +++ b/.history/components/index_20220529002453.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box' \ No newline at end of file diff --git a/.history/components/index_20220529002455.ts b/.history/components/index_20220529002455.ts new file mode 100644 index 0000000..86ce080 --- /dev/null +++ b/.history/components/index_20220529002455.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; \ No newline at end of file diff --git a/.history/components/index_20220529002457.ts b/.history/components/index_20220529002457.ts new file mode 100644 index 0000000..c2c0146 --- /dev/null +++ b/.history/components/index_20220529002457.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; \ No newline at end of file diff --git a/.history/components/index_20220529002459.ts b/.history/components/index_20220529002459.ts new file mode 100644 index 0000000..c2c0146 --- /dev/null +++ b/.history/components/index_20220529002459.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; \ No newline at end of file diff --git a/.history/components/index_20220529004037.ts b/.history/components/index_20220529004037.ts new file mode 100644 index 0000000..000df28 --- /dev/null +++ b/.history/components/index_20220529004037.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export \ No newline at end of file diff --git a/.history/components/index_20220529004044.ts b/.history/components/index_20220529004044.ts new file mode 100644 index 0000000..c41c56b --- /dev/null +++ b/.history/components/index_20220529004044.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './' \ No newline at end of file diff --git a/.history/components/index_20220529004046.ts b/.history/components/index_20220529004046.ts new file mode 100644 index 0000000..e136dac --- /dev/null +++ b/.history/components/index_20220529004046.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/' \ No newline at end of file diff --git a/.history/components/index_20220529004049.ts b/.history/components/index_20220529004049.ts new file mode 100644 index 0000000..a036535 --- /dev/null +++ b/.history/components/index_20220529004049.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/' \ No newline at end of file diff --git a/.history/components/index_20220529004051.ts b/.history/components/index_20220529004051.ts new file mode 100644 index 0000000..2c83200 --- /dev/null +++ b/.history/components/index_20220529004051.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza' \ No newline at end of file diff --git a/.history/components/index_20220529004052.ts b/.history/components/index_20220529004052.ts new file mode 100644 index 0000000..2c83200 --- /dev/null +++ b/.history/components/index_20220529004052.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza' \ No newline at end of file diff --git a/.history/components/index_20220529004103.ts b/.history/components/index_20220529004103.ts new file mode 100644 index 0000000..4b50d7f --- /dev/null +++ b/.history/components/index_20220529004103.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza' \ No newline at end of file diff --git a/.history/components/index_20220529004108.ts b/.history/components/index_20220529004108.ts new file mode 100644 index 0000000..2c83200 --- /dev/null +++ b/.history/components/index_20220529004108.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza' \ No newline at end of file diff --git a/.history/components/index_20220529145327.ts b/.history/components/index_20220529145327.ts new file mode 100644 index 0000000..f169f35 --- /dev/null +++ b/.history/components/index_20220529145327.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/Block' \ No newline at end of file diff --git a/.history/components/index_20220529145843.ts b/.history/components/index_20220529145843.ts new file mode 100644 index 0000000..7d736f2 --- /dev/null +++ b/.history/components/index_20220529145843.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/Block'; \ No newline at end of file diff --git a/.history/components/index_20220529145850.ts b/.history/components/index_20220529145850.ts new file mode 100644 index 0000000..418cb54 --- /dev/null +++ b/.history/components/index_20220529145850.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/'; \ No newline at end of file diff --git a/.history/components/index_20220529145854.ts b/.history/components/index_20220529145854.ts new file mode 100644 index 0000000..418cb54 --- /dev/null +++ b/.history/components/index_20220529145854.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/'; \ No newline at end of file diff --git a/.history/components/index_20220529145858.ts b/.history/components/index_20220529145858.ts new file mode 100644 index 0000000..418cb54 --- /dev/null +++ b/.history/components/index_20220529145858.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/'; \ No newline at end of file diff --git a/.history/components/index_20220529145900.ts b/.history/components/index_20220529145900.ts new file mode 100644 index 0000000..86a9554 --- /dev/null +++ b/.history/components/index_20220529145900.ts @@ -0,0 +1,9 @@ +export * from './customer/Header'; +export * from './customer/block/Stock/Skeleton'; +export * from './customer/block/Stock/Stock'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/index'; \ No newline at end of file diff --git a/.history/components/index_20220530190051.ts b/.history/components/index_20220530190051.ts new file mode 100644 index 0000000..80b6cdf --- /dev/null +++ b/.history/components/index_20220530190051.ts @@ -0,0 +1,8 @@ +export * from './customer/Header'; + +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/index'; \ No newline at end of file diff --git a/.history/components/index_20220530190052.ts b/.history/components/index_20220530190052.ts new file mode 100644 index 0000000..d02a275 --- /dev/null +++ b/.history/components/index_20220530190052.ts @@ -0,0 +1,7 @@ +export * from './customer/Header'; +export * from './customer/containers/BoxScroll'; +export * from './customer/block/Motto/Index'; +export * from './customer/block/Categories/Categories'; +export * from './customer/block/Categories/Skeleton'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/index'; \ No newline at end of file diff --git a/.history/components/index_20220530190056.ts b/.history/components/index_20220530190056.ts new file mode 100644 index 0000000..c824079 --- /dev/null +++ b/.history/components/index_20220530190056.ts @@ -0,0 +1,5 @@ +export * from './customer/Header'; +export * from './customer/containers/BoxScroll'; + +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/index'; \ No newline at end of file diff --git a/.history/components/index_20220530190057.ts b/.history/components/index_20220530190057.ts new file mode 100644 index 0000000..1bce048 --- /dev/null +++ b/.history/components/index_20220530190057.ts @@ -0,0 +1,4 @@ +export * from './customer/Header'; +export * from './customer/containers/BoxScroll'; +export * from './customer/containers/Box'; +export * from './customer/block/Pizza/index'; \ No newline at end of file diff --git a/.history/components/index_20220530190059.ts b/.history/components/index_20220530190059.ts new file mode 100644 index 0000000..7d5a274 --- /dev/null +++ b/.history/components/index_20220530190059.ts @@ -0,0 +1,3 @@ +export * from './customer/Header'; +export * from './customer/containers/BoxScroll'; +export * from './customer/containers/Box'; \ No newline at end of file diff --git a/.history/components/index_20220530190104.ts b/.history/components/index_20220530190104.ts new file mode 100644 index 0000000..7d5a274 --- /dev/null +++ b/.history/components/index_20220530190104.ts @@ -0,0 +1,3 @@ +export * from './customer/Header'; +export * from './customer/containers/BoxScroll'; +export * from './customer/containers/Box'; \ No newline at end of file diff --git a/.history/components/index_20220530192732.ts b/.history/components/index_20220530192732.ts new file mode 100644 index 0000000..28f0d38 --- /dev/null +++ b/.history/components/index_20220530192732.ts @@ -0,0 +1,2 @@ +export * from './customer/containers/BoxScroll'; +export * from './customer/containers/Box'; \ No newline at end of file diff --git a/.history/import React from 'react';_20220601152621.tsx b/.history/import React from 'react';_20220601152621.tsx new file mode 100644 index 0000000..9a4bcb8 --- /dev/null +++ b/.history/import React from 'react';_20220601152621.tsx @@ -0,0 +1,40 @@ +import React from 'react'; +import Image from 'next/image'; +import { Modal } from '../../../../../UI' + +type Props = { children: React.ReactNode }; + +export const PizzaCard: React.FC = ({children}) => { + return ( + +
    +
    + {//informationPizza.length ? + {informationPizza[0].description} //: '...' + } + variableImg(e)}/> +
    +
    +
    +
    + {informationPizza.length ?

    {informationPizza[0].title}

    : '...'} +

    {feature}

    + {informationPizza.length ?

    {informationPizza[0].description}

    : '...'} + pizzaSetting(e)}/> + pizzaSetting(e)}/> + pizzaSetting(e)}/> +
    + +
    +
    +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220517162459.tsx b/.history/layouts/Customer/MainLayout_20220517162459.tsx new file mode 100644 index 0000000..4e6db1e --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220517162459.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../components'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220518151334.tsx b/.history/layouts/Customer/MainLayout_20220518151334.tsx new file mode 100644 index 0000000..4e6db1e --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220518151334.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../components'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220518151351.tsx b/.history/layouts/Customer/MainLayout_20220518151351.tsx new file mode 100644 index 0000000..13e9447 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220518151351.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529152347.tsx b/.history/layouts/Customer/MainLayout_20220529152347.tsx new file mode 100644 index 0000000..b895efc --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152347.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529152359.tsx b/.history/layouts/Customer/MainLayout_20220529152359.tsx new file mode 100644 index 0000000..13e9447 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152359.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529152400.tsx b/.history/layouts/Customer/MainLayout_20220529152400.tsx new file mode 100644 index 0000000..a146fca --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152400.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529152406.tsx b/.history/layouts/Customer/MainLayout_20220529152406.tsx new file mode 100644 index 0000000..13e9447 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152406.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + +type Props = { children: React.ReactNode }; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529152442.tsx b/.history/layouts/Customer/MainLayout_20220529152442.tsx new file mode 100644 index 0000000..e81a581 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152442.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import { Header } from '../../components'; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + diff --git a/.history/layouts/Customer/MainLayout_20220529152444.tsx b/.history/layouts/Customer/MainLayout_20220529152444.tsx new file mode 100644 index 0000000..8085bd4 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152444.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Header } from '../../components'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; + diff --git a/.history/layouts/Customer/MainLayout_20220529152446.tsx b/.history/layouts/Customer/MainLayout_20220529152446.tsx new file mode 100644 index 0000000..110e0b7 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152446.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529152522.tsx b/.history/layouts/Customer/MainLayout_20220529152522.tsx new file mode 100644 index 0000000..843ace6 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152522.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    + +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529152911.tsx b/.history/layouts/Customer/MainLayout_20220529152911.tsx new file mode 100644 index 0000000..110e0b7 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529152911.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529153148.tsx b/.history/layouts/Customer/MainLayout_20220529153148.tsx new file mode 100644 index 0000000..51a52f2 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529153148.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220529153155.tsx b/.history/layouts/Customer/MainLayout_20220529153155.tsx new file mode 100644 index 0000000..110e0b7 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220529153155.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530192706.tsx b/.history/layouts/Customer/MainLayout_20220530192706.tsx new file mode 100644 index 0000000..130bffe --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530192706.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components/'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530192709.tsx b/.history/layouts/Customer/MainLayout_20220530192709.tsx new file mode 100644 index 0000000..be7c01a --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530192709.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components/customer/'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530192712.tsx b/.history/layouts/Customer/MainLayout_20220530192712.tsx new file mode 100644 index 0000000..fbad289 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530192712.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530192713.tsx b/.history/layouts/Customer/MainLayout_20220530192713.tsx new file mode 100644 index 0000000..fbad289 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530192713.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530192718.tsx b/.history/layouts/Customer/MainLayout_20220530192718.tsx new file mode 100644 index 0000000..760cfe0 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530192718.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Header } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530192720.tsx b/.history/layouts/Customer/MainLayout_20220530192720.tsx new file mode 100644 index 0000000..08cf6e3 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530192720.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Header } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    + < +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530192727.tsx b/.history/layouts/Customer/MainLayout_20220530192727.tsx new file mode 100644 index 0000000..760cfe0 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530192727.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Header } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530192842.tsx b/.history/layouts/Customer/MainLayout_20220530192842.tsx new file mode 100644 index 0000000..fbad289 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530192842.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530193153.tsx b/.history/layouts/Customer/MainLayout_20220530193153.tsx new file mode 100644 index 0000000..94328f9 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530193153.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header, F } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530193158.tsx b/.history/layouts/Customer/MainLayout_20220530193158.tsx new file mode 100644 index 0000000..8c09115 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530193158.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header, Footer, N } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530193159.tsx b/.history/layouts/Customer/MainLayout_20220530193159.tsx new file mode 100644 index 0000000..8318ac1 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530193159.tsx @@ -0,0 +1,15 @@ +import React from 'react'; +import { Header, Footer, Nav } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530193221.tsx b/.history/layouts/Customer/MainLayout_20220530193221.tsx new file mode 100644 index 0000000..5a53141 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530193221.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Header, Footer, Nav } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530193223.tsx b/.history/layouts/Customer/MainLayout_20220530193223.tsx new file mode 100644 index 0000000..91d26ae --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530193223.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Header, Footer, Nav } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    + < +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530193227.tsx b/.history/layouts/Customer/MainLayout_20220530193227.tsx new file mode 100644 index 0000000..9251c4b --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530193227.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Header, Footer, Nav } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    + +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530193235.tsx b/.history/layouts/Customer/MainLayout_20220530193235.tsx new file mode 100644 index 0000000..a059278 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530193235.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import { Header, Footer, Nav } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +
    + ); +}; \ No newline at end of file diff --git a/.history/layouts/Customer/MainLayout_20220530193237.tsx b/.history/layouts/Customer/MainLayout_20220530193237.tsx new file mode 100644 index 0000000..2a78ef7 --- /dev/null +++ b/.history/layouts/Customer/MainLayout_20220530193237.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import { Header, Footer, Nav } from '../../components/customer/block'; + +type Props = { children: React.ReactNode }; + +export const MainLayout: React.FC = ({children}) => { + return ( +
    +
    +
    + {children} +
    +