File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ body > header {
1616 font-size : 2.8rem ;
1717 line-height : 1em ;
1818 letter-spacing : -0.03rem ;
19+ em {
20+ font-style : normal ;
21+ color : #d81b60 ;
22+ }
1923 }
2024 }
2125 > nav {
Original file line number Diff line number Diff line change 11/* eslint-disable react/jsx-no-target-blank */
22import { NoPropComponent } from 'tinydocs' ;
33import React from 'react' ;
4+ import { useMetadata } from './BuildContext' ;
45
56export const Footer : NoPropComponent = ( ) => {
7+ const { version} = useMetadata ( ) ;
68 return (
79 < footer >
810 < nav >
911 < a id = "tw" href = "https://twitter.com/tinybasejs" target = "_blank" />
1012 < a id = "fb" href = "https://facebook.com/tinybasejs" target = "_blank" />
1113 </ nav >
1214 < nav >
13- < a href = "/" > TinyBase</ a > © 2021- All Rights Reserved
15+ < a href = "/" > TinyBase { version } </ a > © 2021- All Rights Reserved
1416 </ nav >
1517 </ footer >
1618 ) ;
Original file line number Diff line number Diff line change 11import { NoPropComponent , NodeChildren , useRootNode } from 'tinydocs' ;
22import React from 'react' ;
3+ import { useMetadata } from './BuildContext' ;
34
45export const Header : NoPropComponent = ( ) => {
6+ const { version} = useMetadata ( ) ;
57 const rootNode = useRootNode ( ) ;
68
79 return (
810 < header >
911 < a href = "/" >
1012 < img src = "/favicon.svg" />
11- < span > TinyBase</ span >
13+ < span >
14+ TinyBase
15+ { version . includes ( 'beta' ) && (
16+ < >
17+ { ' ' }
18+ < em title = { version } > beta</ em >
19+ </ >
20+ ) }
21+ </ span >
1222 </ a >
1323 < nav >
1424 < ul >
You can’t perform that action at this time.
0 commit comments