@@ -3,6 +3,7 @@ import { makeStyles } from '@material-ui/core/styles';
33import Typography from '@material-ui/core/Typography' ;
44import Button from '@material-ui/core/Button' ;
55import Link from 'next/link' ;
6+ import { Star } from 'react-github-buttons' ;
67
78import LandingPageTitle from '@docs/components/landing-page/landing-page-title' ;
89import LandingPageCards from '@docs/components/landing-page/landing-page-cards' ;
@@ -26,8 +27,8 @@ const useStyles = makeStyles((theme) => ({
2627 marginTop : 48
2728 } ,
2829 npmLink : {
29- display : 'block ' ,
30- textAlign : 'center' ,
30+ display : 'flex ' ,
31+ justifyContent : 'center' ,
3132 marginTop : 24
3233 } ,
3334 getStartedAnchor : {
@@ -40,6 +41,20 @@ const useStyles = makeStyles((theme) => ({
4041 paddingLeft : 16 ,
4142 paddingRight : 16 ,
4243 textTransform : 'none'
44+ } ,
45+ gitHubStar : {
46+ textDecoration : 'none' ,
47+ '& button' : {
48+ lineHeight : 1.43 ,
49+ padding : '1px 6px' ,
50+ maxHeight : 20
51+ } ,
52+ '& a' : {
53+ padding : '2px 5px' ,
54+ lineHeight : 1.43 ,
55+ fontFamily : 'sans-serif' ,
56+ maxHeight : 20
57+ }
4358 }
4459} ) ) ;
4560
@@ -62,15 +77,9 @@ const LandingPage = () => {
6277 </ Link >
6378 </ div >
6479 < div className = { classes . npmLink } >
65- < a
66- className = "github-button"
67- href = "https://github.com/data-driven-forms/react-forms"
68- data-show-count = "true"
69- aria-label = "Star data-driven-forms/react-forms on GitHub"
70- >
71- Star
80+ < a className = { classes . gitHubStar } href = "https://github.com/data-driven-forms/react-forms" rel = "noopener noreferrer" target = "_blank" >
81+ < Star owner = "data-driven-forms" repo = "react-forms" />
7282 </ a >
73-
7483 < a href = "https://badge.fury.io/js/%40data-driven-forms%2Freact-form-renderer" rel = "noopener noreferrer" target = "_blank" >
7584 < img src = "https://badge.fury.io/js/%40data-driven-forms%2Freact-form-renderer.svg" alt = "current version" />
7685 </ a >
0 commit comments