File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
import type { FC } from 'react' ;
2
2
import React from 'react' ;
3
3
import Link from '@docusaurus/Link' ;
4
- import useBaseUrl from '@docusaurus/useBaseUrl' ;
5
4
6
5
import Translate from '@docusaurus/Translate' ;
7
6
8
7
const ArrowAnim : FC = ( ) => (
9
8
< Link
10
- to = { useBaseUrl ( ' blog' ) }
9
+ href = "/ blog"
11
10
className = "btn-docs"
12
11
>
13
12
< div className = "goto" >
Original file line number Diff line number Diff line change 1
1
import type { FC } from 'react' ;
2
2
import React from 'react' ;
3
3
import Link from '@docusaurus/Link' ;
4
- import useBaseUrl from '@docusaurus/useBaseUrl' ;
5
4
import Translate from '@docusaurus/Translate' ;
6
5
import { LazyLoadImage } from 'react-lazy-load-image-component' ;
7
6
import useWindowType from '@theme/hooks/useWindowSize' ;
@@ -28,7 +27,7 @@ const EndCTA: FC = () => {
28
27
) }
29
28
</ p >
30
29
< div className = { style . links } >
31
- < Link to = { useBaseUrl ( ' docs/apisix/getting-started' ) } className = "btn btn-download" >
30
+ < Link href = "/ docs/apisix/getting-started" className = "btn btn-download" >
32
31
< Translate id = "hero.component.download.btn" > Getting Started</ Translate >
33
32
</ Link >
34
33
< ArrowAnim />
Original file line number Diff line number Diff line change 1
1
import type { FC } from 'react' ;
2
2
import React from 'react' ;
3
3
import Link from '@docusaurus/Link' ;
4
- import useBaseUrl from '@docusaurus/useBaseUrl' ;
5
4
import Translate from '@docusaurus/Translate' ;
6
5
7
6
import BrowserOnly from '@docusaurus/BrowserOnly' ;
@@ -47,7 +46,7 @@ const HeroSection: FC = () => (
47
46
</ Translate >
48
47
</ h3 >
49
48
< div className = "hero-ctas" >
50
- < Link to = { useBaseUrl ( ' docs/apisix/getting-started' ) } className = "btn btn-download" >
49
+ < Link href = "/ docs/apisix/getting-started" className = "btn btn-download" >
51
50
< Translate id = "hero.component.download.btn" > Getting Started</ Translate >
52
51
</ Link >
53
52
< ArrowAnim />
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ $apisix-color: #e8433e;
54
54
55
55
@include respond-below (sm) {
56
56
min-height : 50vh ;
57
- margin : 0 1rem ;
57
+ margin : 4 rem 1rem 0 ;
58
58
align-items : flex-start ;
59
59
padding : 100px 2rem ;
60
60
You can’t perform that action at this time.
0 commit comments