diff --git a/docs/src/components/BannerDismissable/DDNBanner.css b/docs/src/components/BannerDismissable/DDNBanner.css new file mode 100644 index 00000000000..5d6a6a3206f --- /dev/null +++ b/docs/src/components/BannerDismissable/DDNBanner.css @@ -0,0 +1,30 @@ +.banner { + background-color: #1699e2; + color: white; + display: flex; + justify-content: center; + align-items: center; + position: relative; + padding: 15px; + font-size: 16px; +} + +.close-btn { + background: none; + color: white; + border: none; + position: absolute; + right: 10px; + top: 10px; + font-size: 18px; + cursor: pointer; +} + +.close-btn:focus { + outline: none; +} + +.banner a { + color: white; + cursor: pointer; +} \ No newline at end of file diff --git a/docs/src/components/BannerDismissable/DDNBanner.tsx b/docs/src/components/BannerDismissable/DDNBanner.tsx new file mode 100644 index 00000000000..83eda711a06 --- /dev/null +++ b/docs/src/components/BannerDismissable/DDNBanner.tsx @@ -0,0 +1,21 @@ +import React, { useState } from 'react'; +import './DDNBanner.css'; + +export const DDNBanner = () => { + const [isVisible, setIsVisible] = useState(true); + + if (!isVisible) return null; + + return ( +