11import React , { FC } from 'react'
2+ import GitHubButton from 'react-github-btn'
23
3- import { CHeader , CHeaderNav , CHeaderToggler , CNavItem } from '../../index'
4+ import { CAlert , CHeader , CHeaderNav , CHeaderToggler , CNavItem } from '../../index'
45import CIcon from '@coreui/icons-react'
56import { cibDiscourse , cibGithub , cibTwitter , cilCloudDownload , cilMenu } from '@coreui/icons'
67import { CButton } from '../../components/button/CButton'
@@ -9,44 +10,61 @@ import { myContext } from './../templates/Docs'
910
1011const Header : FC = ( { ...props } ) => {
1112 return (
12- < myContext . Consumer >
13- { ( context ) => (
14- < CHeader className = "mb-5" >
15- < CHeaderToggler
16- className = "ms-md-3"
17- onClick = { ( ) => context . setSidebarVisible ( ! context . sidebarVisible ) }
18- >
19- < CIcon icon = { cilMenu } size = "lg" />
20- </ CHeaderToggler >
21- < CHeaderNav className = "ms-auto" >
22- < CNavItem href = "https://community.coreui.io/" >
23- < CIcon icon = { cibDiscourse } size = "xl" />
24- </ CNavItem >
25- < CNavItem href = "https://github.com/coreui" >
26- < CIcon icon = { cibGithub } size = "xl" />
27- </ CNavItem >
28- < CNavItem href = "https://twitter.com/core_ui" >
29- < CIcon icon = { cibTwitter } size = "xl" />
30- </ CNavItem >
31- </ CHeaderNav >
32- < CButton
33- className = "d-lg-inline-block my-2 my-md-0 ms-md-3"
34- color = "primary"
35- href = "https://coreui.io/react/#compare"
36- variant = "outline"
37- >
38- < CIcon icon = { cilCloudDownload } /> Download
39- </ CButton >
40- < CButton
41- className = "d-lg-inline-block my-2 my-md-0 ms-md-3"
42- color = "primary"
43- href = "https://coreui.io/pro/react/"
44- >
45- Get CoreUI PRO
46- </ CButton >
47- </ CHeader >
48- ) }
49- </ myContext . Consumer >
13+ < >
14+ < CAlert color = "light" className = "d-flex justify-content-center rounded-0 border-bottom mb-0" >
15+ < span className = "me-3" >
16+ If you like this project and want to help us, please give us a star ⭐️ on Github. ➡️
17+ </ span >
18+ < GitHubButton
19+ href = "https://github.com/coreui/coreui-react"
20+ data-size = "large"
21+ aria-label = "Star coreui/coreui-react on GitHub"
22+ >
23+ Star
24+ </ GitHubButton >
25+ < span className = "ms-3" > 🙏</ span >
26+ </ CAlert >
27+ < myContext . Consumer >
28+ { ( context ) => (
29+ < CHeader className = "mb-5" position = "sticky" >
30+ < CHeaderToggler
31+ className = "ms-md-3"
32+ onClick = { ( ) => {
33+ context . setSidebarVisible ( ! context . sidebarVisible )
34+ } }
35+ >
36+ < CIcon icon = { cilMenu } size = "lg" />
37+ </ CHeaderToggler >
38+ < CHeaderNav className = "ms-auto" >
39+ < CNavItem href = "https://community.coreui.io/" >
40+ < CIcon icon = { cibDiscourse } size = "xl" />
41+ </ CNavItem >
42+ < CNavItem href = "https://github.com/coreui" >
43+ < CIcon icon = { cibGithub } size = "xl" />
44+ </ CNavItem >
45+ < CNavItem href = "https://twitter.com/core_ui" >
46+ < CIcon icon = { cibTwitter } size = "xl" />
47+ </ CNavItem >
48+ </ CHeaderNav >
49+ < CButton
50+ className = "d-lg-inline-block my-2 my-md-0 ms-md-3"
51+ color = "primary"
52+ href = "https://coreui.io/react/#compare"
53+ variant = "outline"
54+ >
55+ < CIcon icon = { cilCloudDownload } /> Download
56+ </ CButton >
57+ < CButton
58+ className = "d-lg-inline-block my-2 my-md-0 ms-md-3"
59+ color = "primary"
60+ href = "https://coreui.io/pro/react/"
61+ >
62+ Get CoreUI PRO
63+ </ CButton >
64+ </ CHeader >
65+ ) }
66+ </ myContext . Consumer >
67+ </ >
5068 )
5169}
5270
0 commit comments