diff --git a/src/components/Common/Announcement.tsx b/src/components/Common/Announcement.tsx new file mode 100644 index 0000000..e117b0e --- /dev/null +++ b/src/components/Common/Announcement.tsx @@ -0,0 +1,33 @@ +import { BOT_GITHUB_REPO_URL } from "@/utils/links"; +import { FC } from "react"; +import { MdTipsAndUpdates } from "react-icons/md"; + +interface AnnouncementProps { + show?: boolean; +} + +const Announcement: FC = ({ show = false }) => { + if (!show) { + return <>; + } + + return ( +
+
+

+ {" "} + We’re celebrating 2,000 commits in{" "} + + SudoBot’s GitHub Repository + + ! +

+
+
+ ); +}; + +export default Announcement; diff --git a/src/components/Common/Navbar.tsx b/src/components/Common/Navbar.tsx index f322224..52e552b 100644 --- a/src/components/Common/Navbar.tsx +++ b/src/components/Common/Navbar.tsx @@ -1,21 +1,21 @@ /* -* This file is part of SudoBot Dashboard. -* -* Copyright (C) 2021-2023 OSN Developers. -* -* SudoBot Dashboard is free software; you can redistribute it and/or modify it -* under the terms of the GNU Affero General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* SudoBot Dashboard is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU Affero General Public License for more details. -* -* You should have received a copy of the GNU Affero General Public License -* along with SudoBot Dashboard. If not, see . -*/ + * This file is part of SudoBot Dashboard. + * + * Copyright (C) 2021-2023 OSN Developers. + * + * SudoBot Dashboard is free software; you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SudoBot Dashboard is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with SudoBot Dashboard. If not, see . + */ "use client"; @@ -38,6 +38,7 @@ import { MdMenu } from "react-icons/md"; import logo from "../../images/logo.png"; import GuildSwitcher from "../Dashboard/GuildSwitcher"; import Link from "../Router/Link"; +import Announcement from "./Announcement"; import MobileNavbar from "./MobileNavbar"; import Profile from "./Profile"; @@ -56,6 +57,8 @@ const Navbar: FC = () => { return (
+ {pathname === "/" && } + { )} */} -
); diff --git a/src/components/Home/Top.tsx b/src/components/Home/Top.tsx index 35fbdbe..4077ed2 100644 --- a/src/components/Home/Top.tsx +++ b/src/components/Home/Top.tsx @@ -18,7 +18,6 @@ */ import { FC } from "react"; -import styles from "../../styles/Top.module.css"; import Shield from "../Images/Shield"; import HomeButtons from "./HomeButtons"; @@ -30,13 +29,12 @@ const Top: FC = () => {

The ultimate{" "} - Discord Bot - . + Discord Bot.
With every{" "} - + moderation tool {" "} you’ll ever need. @@ -46,7 +44,7 @@ const Top: FC = () => {

- SudoBot. + SudoBot.


diff --git a/src/styles/Top.module.css b/src/styles/Top.module.css deleted file mode 100644 index 38f44a3..0000000 --- a/src/styles/Top.module.css +++ /dev/null @@ -1,6 +0,0 @@ -.gradientText { - background: linear-gradient(45deg, #19dafa, #007bff); - background-clip: text; - -webkit-background-clip: text; - color: transparent; -} \ No newline at end of file diff --git a/src/styles/globals.css b/src/styles/globals.css index 0b9ae4f..2bdfed3 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -39,3 +39,10 @@ body { color: #036bd9; text-decoration: underline; } + +.gradient-text { + background: linear-gradient(45deg, #19dafa, #007bff); + background-clip: text; + -webkit-background-clip: text; + color: transparent; +} \ No newline at end of file