File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 1+ import { responsiveStyle } from '@codeui/kit' ;
12import { style } from '@vanilla-extract/css' ;
23import { themeVars } from '@codeimage/ui' ;
34
@@ -21,3 +22,14 @@ export const link = style({
2122 } ,
2223 } ,
2324} ) ;
25+
26+ export const linkOnlyDesktop = style (
27+ responsiveStyle ( {
28+ xs : {
29+ display : 'none' ,
30+ } ,
31+ md : {
32+ display : 'inline-block' ,
33+ } ,
34+ } ) ,
35+ ) ;
Original file line number Diff line number Diff line change 11import { Box , Link } from '@codeimage/ui' ;
2+ import { getUmami } from '@core/constants/umami' ;
23import { createControlledDialog } from '@core/hooks/createControlledDialog' ;
34import { Changelog } from '../Changelog/Changelog' ;
4- import { link } from './Footer.css' ;
5+ import { link , linkOnlyDesktop } from './Footer.css' ;
56import * as styles from './Footer.css' ;
67
78export const Footer = ( ) => {
@@ -10,6 +11,18 @@ export const Footer = () => {
1011 return (
1112 < div class = { styles . wrapper } >
1213 < Box display = { 'inlineFlex' } justifyContent = { 'flexEnd' } padding = { 1 } >
14+ < Box marginRight = { 5 } >
15+ < Link
16+ class = { `${ styles . link } ${ styles . linkOnlyDesktop } ` }
17+ target = { '_blank' }
18+ title = "Better Comments for GitHub"
19+ href = { 'https://github.com/riccardoperra/better-comments-for-github' }
20+ size = "xs"
21+ onClick = { ( ) => getUmami ( ) . track ( 'better-comments-for-github' ) }
22+ >
23+ Better Comments for GitHub
24+ </ Link >
25+ </ Box >
1326 < Box marginRight = { 5 } >
1427 < Link
1528 class = { link }
Original file line number Diff line number Diff line change 11import { HStack , Link , Text } from '@codeimage/ui' ;
2- import { onlyDesktopLink } from '~/components/Footer/Footer.css' ;
32import * as styles from '~/components/Footer/Footer.css' ;
43
54export default function Footer ( ) {
@@ -27,6 +26,7 @@ export default function Footer() {
2726 href = {
2827 'https://github.com/riccardoperra/better-comments-for-github'
2928 }
29+ target = { '_blank' }
3030 title = "Better Comments for GitHub"
3131 children = { 'GitHub' }
3232 />
You can’t perform that action at this time.
0 commit comments