Skip to content

Commit

Permalink
docs: added more info to README.md and added some margin to footer gr…
Browse files Browse the repository at this point in the history
…id items
  • Loading branch information
michaelbrusegard committed Jan 20, 2024
1 parent 8314516 commit bcb35eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Here is a list of documentation to help you get started:
## Quirks to keep in mind

- When you want to link to a new internal page use the `<Link>` component from `@/lib/navigation` instead of the normal anchortag `<a>`. This will ensure that the page is loaded with the correct locale. If you want to link to external resources or other media, use the built-in `<Link>` component from Next.js. Remember to add `prefetch={false}` to the `<Link>` component if the page is not visited often.
- Remember to surround Links with the `Button` ui component. This will provide some basic styling and accessibility features for keyboard navigation even if it is not supposed to look like a button.

## Development setup

Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function Footer() {
<div>
<h4>{t('links')}</h4>
<nav>
<ul className='mt-2 space-y-1.5'>
<ul className='ml-2 mt-2 space-y-1.5'>
<li>
<Button asChild variant='nav' size='none'>
<Link href='/news'>{t('news')}</Link>
Expand All @@ -134,7 +134,7 @@ function Footer() {
</div>
<div>
<h4>{t('utilities')}</h4>
<p className='[&:not(:first-child)]:mt-0'>
<p className='ml-2 [&:not(:first-child)]:mt-0'>
<Button asChild variant='link' size='none'>
<Link href='/'>{t('signIn')}</Link>
</Button>
Expand Down

0 comments on commit bcb35eb

Please sign in to comment.