1
1
import { useEffect , useState } from "react"
2
- import Link from "next/link"
3
2
import { useRouter } from "next/router"
4
3
import { useTranslation } from "next-i18next"
5
4
import { MdClose } from "react-icons/md"
6
5
7
6
import type { Lang } from "@/lib/types"
8
7
9
- import { Button } from "@/components/ui/buttons/Button"
8
+ import { Button , ButtonLink } from "@/components/ui/buttons/Button"
10
9
import { Flex } from "@/components/ui/flex"
11
10
12
11
import { cn } from "@/lib/utils/cn"
@@ -45,17 +44,15 @@ const TranslationBanner = ({
45
44
return (
46
45
< aside
47
46
className = { cn (
48
- "fixed bottom-0 end-0 z-popover md:bottom-8 md:end-8" ,
47
+ "fixed bottom-0 end-0 z-popover rounded bg-background-highlight md:bottom-8 md:end-8" ,
49
48
isOpen ? "block" : "hidden"
50
49
) }
51
50
dir = { dir }
52
51
>
53
- < div className = "bg-infoBanner relative max-h-full max-w-full p-4 text-neutral-900 shadow-md md:max-w-[600px] md:rounded-sm" >
54
- < Flex className = "m-4 mt-10 flex-col sm:mt-4" >
55
- < Flex className = "mb-4 flex-col-reverse items-start sm:flex-row sm:items-center" >
56
- < h3 className = "my-0 text-2xl font-bold leading-none" >
57
- { t ( headerTextId ) }
58
- </ h3 >
52
+ < div className = "relative max-h-full max-w-full p-4 shadow-md md:max-w-[600px]" >
53
+ < Flex className = "m-4 mt-10 flex-col gap-4 sm:mt-4" >
54
+ < Flex className = "flex-col-reverse items-start sm:flex-row sm:items-center" >
55
+ < h3 className = "leading-none md:text-2xl" > { t ( headerTextId ) } </ h3 >
59
56
< Emoji
60
57
text = ":globe_showing_asia_australia:"
61
58
className = "mb-4 ms-2 text-2xl sm:mb-auto"
@@ -64,11 +61,9 @@ const TranslationBanner = ({
64
61
< p > { t ( bodyTextId ) } </ p >
65
62
< Flex className = "flex-col items-start sm:flex-row sm:items-center" >
66
63
< div >
67
- < Button asChild variant = "link" >
68
- < Link href = "/contributing/translation-program/" >
69
- { t ( "translation-banner-button-translate-page" ) }
70
- </ Link >
71
- </ Button >
64
+ < ButtonLink href = "/contributing/translation-program/" >
65
+ { t ( "translation-banner-button-translate-page" ) }
66
+ </ ButtonLink >
72
67
</ div >
73
68
{ /* Todo: Reimplement once fixed */ }
74
69
{ /* Issue: https://github.com/ethereum/ethereum-org-website/issues/12292 */ }
0 commit comments