File tree 3 files changed +13
-11
lines changed
3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ const features = [
66
66
67
67
const Features : React . FC = ( ) => (
68
68
< section id = "features" className = { styles . features } >
69
- < h2 >
69
+ < Heading as = "h2" >
70
70
< Translate id = "Features.title" > Why Choose ts-graphviz?</ Translate >
71
- </ h2 >
71
+ </ Heading >
72
72
< div className = { styles . featureList } >
73
73
{ features . map ( ( { title, Svg, description } ) => (
74
74
< div key = { title } className = { styles . featureItem } >
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ const HeroSection: React.FC = () => {
42
42
< Link className = "button button--secondary button--lg" to = "/playground" >
43
43
< Translate id = "HeroSection.playground" > Playground 🎡</ Translate >
44
44
</ Link >
45
- < a
45
+ < Link
46
46
className = "button button--secondary button--lg"
47
- href = "https://ts-graphviz.github.io/ts-graphviz/"
47
+ to = "https://ts-graphviz.github.io/ts-graphviz/"
48
48
>
49
- < Translate id = "HeroSection.api" > API Refarence 📖</ Translate >
50
- </ a >
49
+ < Translate id = "HeroSection.api" > API Reference 📖</ Translate > { ' ' }
50
+ </ Link >
51
51
</ div >
52
52
{ init ? (
53
53
< Particles
Original file line number Diff line number Diff line change
1
+ import Link from '@docusaurus/Link' ;
1
2
import Translate , { translate } from '@docusaurus/Translate' ;
3
+ import Heading from '@theme/Heading' ;
2
4
import styles from './Tools.module.css' ;
3
5
4
6
// NOTE: Get icons from https://simpleicons.org/
@@ -43,20 +45,20 @@ const tools = [
43
45
44
46
const Tools : React . FC = ( ) => (
45
47
< section id = "tools" className = { styles . tools } >
46
- < h2 >
48
+ < Heading as = "h2" >
47
49
< Translate id = "Tools.title" > Our Tools and Libraries</ Translate >
48
- </ h2 >
50
+ </ Heading >
49
51
< div className = { styles . toolList } >
50
52
{ tools . map ( ( tool ) => (
51
53
< div key = { tool . name } className = { styles . toolItem } >
52
54
< div className = { styles . toolItemHeader } >
53
- < h3 > { tool . name } </ h3 >
55
+ < Heading as = "h3" > { tool . name } </ Heading >
54
56
< tool . Svg fill = { tool . fill } className = { styles . toolSvg } role = "img" />
55
57
</ div >
56
58
< p > { tool . description } </ p >
57
- < a href = { tool . link } target = "_blank" rel = "noopener noreferrer" >
59
+ < Link to = { tool . link } target = "_blank" rel = "noopener noreferrer" >
58
60
< Translate id = "Tools.learnMore" > Learn More</ Translate >
59
- </ a >
61
+ </ Link >
60
62
</ div >
61
63
) ) }
62
64
</ div >
You can’t perform that action at this time.
0 commit comments