Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 26, 2023
1 parent cfe6684 commit 6e21822
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/app/components/DesktopTopNav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import clsx from 'clsx'
import { Link } from 'react-router-dom'
import { type ComponentType } from 'react'
import { Link } from 'react-router-dom'

import type { ParsedSocialItem } from '../../config.js'
import { useConfig } from '../hooks/useConfig.js'
Expand All @@ -23,7 +23,10 @@ export function DesktopTopNav() {
<div className={styles.root}>
<div className={styles.logoWrapper}>
<div className={styles.logo}>
<Link to="/" style={{ alignItems: 'center', display: 'flex', height: '100%' }}>
<Link
to="/"
style={{ alignItems: 'center', display: 'flex', height: '56px', marginTop: '4px' }}
>
<Logo />
</Link>
</div>
Expand Down
17 changes: 14 additions & 3 deletions src/app/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
import { useEditLink } from '../hooks/useEditLink.js'
import { usePageData } from '../hooks/usePageData.js'
import * as styles from './Footer.css.js'

export function Footer() {
const { frontmatter } = usePageData()
const { layout } = frontmatter || {}

const editLink = useEditLink()

return (
<footer className={styles.root}>
<a className={styles.editLink} href={editLink.url} target="_blank" rel="noopener noreferrer">
{editLink.text}
</a>
{layout !== 'blog' && (
<a
className={styles.editLink}
href={editLink.url}
target="_blank"
rel="noopener noreferrer"
>
{editLink.text}
</a>
)}
</footer>
)
}

0 comments on commit 6e21822

Please sign in to comment.