diff --git a/apps/next/public/images/party-popper-svgrepo-com.svg b/apps/next/public/images/party-popper-svgrepo-com.svg new file mode 100644 index 00000000..2a4b3a9b --- /dev/null +++ b/apps/next/public/images/party-popper-svgrepo-com.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/apps/next/public/images/party-popper.png b/apps/next/public/images/party-popper.png new file mode 100644 index 00000000..28f63fd0 Binary files /dev/null and b/apps/next/public/images/party-popper.png differ diff --git a/apps/next/public/images/party-popper2.png b/apps/next/public/images/party-popper2.png new file mode 100644 index 00000000..c4414d7f Binary files /dev/null and b/apps/next/public/images/party-popper2.png differ diff --git a/apps/next/public/static/locales/en/common.json b/apps/next/public/static/locales/en/common.json index 61d7e1b6..5c0b5d61 100644 --- a/apps/next/public/static/locales/en/common.json +++ b/apps/next/public/static/locales/en/common.json @@ -33,8 +33,8 @@ "created_word": "Word created successfully." }, "announcement": { - "description": "We have amazing news, just for you! Learn from our blog!", - "button": "See More" + "description": "We're launching soon on", + "button": "get notified" }, "feedback": { "title": "Feedback", diff --git a/apps/next/public/static/locales/tr/common.json b/apps/next/public/static/locales/tr/common.json index 7a0316b0..e0840833 100644 --- a/apps/next/public/static/locales/tr/common.json +++ b/apps/next/public/static/locales/tr/common.json @@ -32,8 +32,8 @@ "signin_success": "Giriş başarılı, anasayfaya yönlendiriliyorsunuz." }, "announcement": { - "description": "Size özel harika haberlerimiz var! Blogumuzdan öğrenin!", - "button": "Daha Fazla Gör" + "description": "Yakında başlıyoruz", + "button": "haberdar ol" }, "navbar": { "home": "Ana Sayfa", diff --git a/apps/next/src/components/Layout/MainLayout/Banner/index.tsx b/apps/next/src/components/Layout/MainLayout/Banner/index.tsx index 49e49921..031c106b 100644 --- a/apps/next/src/components/Layout/MainLayout/Banner/index.tsx +++ b/apps/next/src/components/Layout/MainLayout/Banner/index.tsx @@ -1,8 +1,9 @@ -import { useState } from "react"; -import { PartyPopper } from "lucide-react"; -import { useTranslation } from "next-i18next"; - +import ProductHunt from "./product.hunt"; +import PartyPopper from "/public/images/party-popper.svg"; import { Button } from "@wordigo/ui"; +import { useTranslation } from "next-i18next"; +import Image from "next/image"; +import { useState } from "react"; const Banner = () => { const { t } = useTranslation(); @@ -14,19 +15,18 @@ const Banner = () => { return ( isBannerOpen && ( -
-
-
-
- -
-

-
+
+
- - {/* */} +

+ {t("announcement.description")} +

+ +

+ {t("announcement.button")} +

diff --git a/apps/next/src/components/Layout/MainLayout/Banner/product.hunt.tsx b/apps/next/src/components/Layout/MainLayout/Banner/product.hunt.tsx new file mode 100644 index 00000000..4aa5cfe1 --- /dev/null +++ b/apps/next/src/components/Layout/MainLayout/Banner/product.hunt.tsx @@ -0,0 +1,27 @@ +import { useTheme } from "next-themes"; +import React from "react"; + +export default function ProductHunt({ height, width }: any) { + const { theme, systemTheme } = useTheme(); + + const themes = + theme === "system" ? systemTheme : theme === "dark" ? "ligth" : "dark"; + + return ( + + DevSözlük - Open source social platform for developers. | Product Hunt + + ); +} diff --git a/apps/next/src/components/Layout/MainLayout/index.tsx b/apps/next/src/components/Layout/MainLayout/index.tsx index 0014d3f7..ad1ab78c 100644 --- a/apps/next/src/components/Layout/MainLayout/index.tsx +++ b/apps/next/src/components/Layout/MainLayout/index.tsx @@ -1,7 +1,6 @@ -import { type PropsWithChildren } from "react"; - import Banner from "./Banner"; import HomeHeader from "./Header"; +import { type PropsWithChildren } from "react"; const MainLayout: React.FC = ({ children }) => { return (