From 0ed9f730b2c444d15a0201398ef3d431c2484a06 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Wed, 3 Jan 2024 17:34:26 +0800 Subject: [PATCH] Add prototype of the notification, fixes and animation needed Signed-off-by: Egor Savkin --- static/css/order-hardware.css | 8 ++++++++ static/images/shop/icon-notification.svg | 1 + static/js/shop/options/DialogPopup.jsx | 11 +++++++++-- static/js/shop/options/Notification.jsx | 19 +++++++++++++++++++ 4 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 static/images/shop/icon-notification.svg create mode 100644 static/js/shop/options/Notification.jsx diff --git a/static/css/order-hardware.css b/static/css/order-hardware.css index f3033ae..5a41920 100644 --- a/static/css/order-hardware.css +++ b/static/css/order-hardware.css @@ -61,6 +61,14 @@ text-decoration: none; } +.options-notification { + width: 5px; + height: 5px; + position: relative; + top: -2.5px; + right: -2.5px; +} + /* ##Device = Tablets, Ipads (portrait) ##Screen = B/w 768px to 1024px diff --git a/static/images/shop/icon-notification.svg b/static/images/shop/icon-notification.svg new file mode 100644 index 0000000..a8091ff --- /dev/null +++ b/static/images/shop/icon-notification.svg @@ -0,0 +1 @@ + diff --git a/static/js/shop/options/DialogPopup.jsx b/static/js/shop/options/DialogPopup.jsx index d5811a3..6e96e0f 100644 --- a/static/js/shop/options/DialogPopup.jsx +++ b/static/js/shop/options/DialogPopup.jsx @@ -1,6 +1,7 @@ import React, {useState} from "react"; import {useClickAway} from "./useClickAway"; import {ProcessOptions} from "./Options"; +import {Notification} from "./Notification"; export function DialogPopup({options, data, target, id, big, first, last, options_class}) { const [show, setShow] = useState(false); @@ -17,8 +18,14 @@ export function DialogPopup({options, data, target, id, big, first, last, option return (
- + + } + />
setShow(false)}> + {content} + {tip}} + > + + +
+ ) +} \ No newline at end of file