Skip to content

Commit 7155dd2

Browse files
committed
update footer
1 parent e7577d3 commit 7155dd2

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

apps/codeimage/src/components/Footer/Footer.css.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {responsiveStyle} from '@codeui/kit';
12
import {style} from '@vanilla-extract/css';
23
import {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+
);

apps/codeimage/src/components/Footer/Footer.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {Box, Link} from '@codeimage/ui';
2+
import {getUmami} from '@core/constants/umami';
23
import {createControlledDialog} from '@core/hooks/createControlledDialog';
34
import {Changelog} from '../Changelog/Changelog';
4-
import {link} from './Footer.css';
5+
import {link, linkOnlyDesktop} from './Footer.css';
56
import * as styles from './Footer.css';
67

78
export 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}

apps/website/src/components/Footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {HStack, Link, Text} from '@codeimage/ui';
2-
import {onlyDesktopLink} from '~/components/Footer/Footer.css';
32
import * as styles from '~/components/Footer/Footer.css';
43

54
export 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
/>

0 commit comments

Comments
 (0)