File tree 1 file changed +21
-17
lines changed
1 file changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ export function RedirectVersionBanner(props: {
21
21
22
22
if ( ! [ latestVersion , 'latest' ] . includes ( version ) && showModal ) {
23
23
return (
24
- < div className = "p-4 bg-white/70 text-black dark:bg-gray-500/40 dark:text-white shadow-xl shadow-black/20 flex items-center justify-center gap-4 fixed top-4 left-1/2 bottom-auto backdrop-blur-sm z-20 -translate-x-1/2 rounded-full overflow-hidden" >
25
- < div >
24
+ < div className = "p-4 bg-white/70 text-black dark:bg-gray-500/40 dark:text-white shadow-xl shadow-black/20 flex items-center justify-center gap-2.5 lg:gap- 4 fixed top-4 left-1/2 bottom-auto backdrop-blur-sm z-20 -translate-x-1/2 rounded-3xl lg:rounded- full overflow-hidden w-[80%] lg:w-auto " >
25
+ < p className = "block" >
26
26
You are currently reading < strong > { version } </ strong > docs. Redirect to{ ' ' }
27
27
< Link
28
28
params = { {
@@ -33,23 +33,27 @@ export function RedirectVersionBanner(props: {
33
33
latest
34
34
</ Link > { ' ' }
35
35
version?
36
+ </ p >
37
+ < div className = "flex gap-2 flex-col lg:flex-row items-center" >
38
+ < Link
39
+ params = { {
40
+ version : 'latest' ,
41
+ } }
42
+ replace
43
+ className = "bg-black dark:bg-white dark:text-black text-white w-full lg:w-auto py-1 px-2 rounded-md uppercase font-black text-xs"
44
+ >
45
+ Latest
46
+ </ Link >
47
+ < button
48
+ onClick = { ( ) => setShowModal ( false ) }
49
+ className = "bg-black dark:bg-white dark:text-black text-white w-full lg:w-auto py-1 px-2 rounded-md uppercase font-black text-xs"
50
+ >
51
+ Hide
52
+ </ button >
36
53
</ div >
37
- < Link
38
- params = { {
39
- version : 'latest' ,
40
- } }
41
- replace
42
- className = "bg-black dark:bg-white dark:text-black text-white py-1 px-2 rounded-md uppercase font-black text-xs"
43
- >
44
- Latest
45
- </ Link >
46
- < button
47
- onClick = { ( ) => setShowModal ( false ) }
48
- className = "bg-black dark:bg-white dark:text-black text-white py-1 px-2 rounded-md uppercase font-black text-xs"
49
- >
50
- Hide
51
- </ button >
52
54
</ div >
53
55
)
54
56
}
57
+
58
+ return null
55
59
}
You can’t perform that action at this time.
0 commit comments