Skip to content

Commit

Permalink
update footer links
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Dec 11, 2023
1 parent 6eb4561 commit 4162940
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 41 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ dist
./**/*.env.*
.idea
.pnpm-store/
.DS_STORE
37 changes: 0 additions & 37 deletions apps/codeimage/changelog/1-3-0_03-02-2023.mdx

This file was deleted.

12 changes: 12 additions & 0 deletions apps/codeimage/src/components/Footer/Footer.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ export const wrapper = style({
color: themeVars.dynamicColors.descriptionTextColor,
width: 'auto',
});

export const link = style({
userSelect: 'none',
':hover': {
textDecoration: 'underline',
},
selectors: {
'&:not([href])': {
cursor: 'default',
},
},
});
22 changes: 18 additions & 4 deletions apps/codeimage/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
import {Box, Link} from '@codeimage/ui';
import {appEnvironment} from '@core/configuration';
import {createControlledDialog} from '@core/hooks/createControlledDialog';
import {Changelog} from '../Changelog/Changelog';
import {link} from './Footer.css';
import * as styles from './Footer.css';

export const Footer = () => {
const {version} = appEnvironment;
const openDialog = createControlledDialog();

return (
<div class={styles.wrapper}>
<Box display={'inlineFlex'} justifyContent={'flexEnd'} padding={1}>
<Box marginRight={5}>
<Link href={'https://github.com/riccardoperra/codeimage'} size="xs">
<Link
class={link}
href={'https://github.com/riccardoperra/codeimage'}
size="xs"
>
GitHub
</Link>
</Box>

<Box marginRight={5}>
<Link
as={'a'}
class={link}
href={'https://github.com/riccardoperra/codeimage/issues'}
size="xs"
>
Expand All @@ -26,21 +35,26 @@ export const Footer = () => {

<Box marginRight={5}>
<Link
class={link}
as={'a'}
href={'https://github.com/riccardoperra/codeimage/releases'}
size="xs"
>
Changelog
Releases
</Link>
</Box>

<Box>
<Link
class={link}
as={'a'}
href={'https://github.com/riccardoperra/codeimage'}
size="xs"
onClick={() => openDialog(Changelog, {latest: false})}
>
Version {version}
🎉
<Box as={'span'} marginLeft={1}>
What's new
</Box>
</Link>
</Box>
</Box>
Expand Down

0 comments on commit 4162940

Please sign in to comment.