diff --git a/themes/matery/components/Announcement.js b/themes/matery/components/Announcement.js index c4d99f97..d1ad1ac3 100644 --- a/themes/matery/components/Announcement.js +++ b/themes/matery/components/Announcement.js @@ -8,22 +8,22 @@ const Announcement = ({ notice }) => { if (!notice) { return <> } - return <> + return
-
-
- {locale.COMMON.ANNOUNCEMENT} + className="mb-4 p-2 overflow-auto shadow-md border dark:border-black rounded-xl bg-white dark:bg-hexo-black-gray"> +
+
+ {locale.COMMON.ANNOUNCEMENT} +
+ {notice && (
+ +
)}
- {notice && (
- -
)} -
- +
} export default Announcement