Skip to content

Commit

Permalink
bump nodes; update next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
seiry committed Jul 16, 2023
1 parent 12d70b5 commit 499612f
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.13.2
v18
14 changes: 8 additions & 6 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ export const Header = () => {
</label>
</div>
<div className="flex items-center flex-none ">
<Link href="/" aria-label="Homepage">
<a className="px-2 flex-0 btn btn-ghost md:px-4 ">
<div className="inline-block text-3xl font-title text-primary-content">
<span className="">强哥勇敢飞,雷子永相随</span>
</div>
</a>
<Link
href="/"
aria-label="Homepage"
className="px-2 flex-0 btn btn-ghost md:px-4 "
>
<div className="inline-block text-3xl font-title text-primary-content">
<span className="">强哥勇敢飞,雷子永相随</span>
</div>
</Link>
</div>
</div>
Expand Down
20 changes: 8 additions & 12 deletions components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,15 @@ const Layout: FC<React.PropsWithChildren<Props>> = ({ children, home }) => {
) : (
<>
<Link href="/">
<a>
<img
src="/images/profile.jpg"
className={` ${styles.headerImage} ${utilStyles.borderCircle} animate-bounce`}
alt={name}
/>
</a>
<img
src="/images/profile.jpg"
className={` ${styles.headerImage} ${utilStyles.borderCircle} animate-bounce`}
alt={name}
/>
</Link>
<h2 className={utilStyles.headingLg}>
<Link href="/">
<a className={utilStyles.colorInherit}>{name}</a>
<Link href="/" className={utilStyles.colorInherit}>
{name}
</Link>
</h2>
</>
Expand All @@ -61,9 +59,7 @@ const Layout: FC<React.PropsWithChildren<Props>> = ({ children, home }) => {
<main>{children}</main>
{!home && (
<div className={styles.backToHome}>
<Link href="/">
<a>← Back to home</a>
</Link>
<Link href="/">← Back to home</Link>
</div>
)}
</div>
Expand Down
49 changes: 34 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@types/styled-components": "^5.1.26",
"axios": "^1.3.4",
"beautiful-react-hooks": "^4.3.0",
"chart.js": "^3.9.1",
"chart.js": "^4.3.0",
"clsx": "^1.2.1",
"cypress": "^12.17.1",
"daisyui": "^2.51.3",
Expand All @@ -27,7 +27,7 @@
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-preset-env": "^9.0.0",
"react": "18.2.0",
"react-chartjs-2": "^5.0.0",
"react-chartjs-2": "^5.2.0",
"react-dom": "18.2.0",
"react-flatpickr": "^3.10.13",
"sass": "^1.63.6",
Expand Down

0 comments on commit 499612f

Please sign in to comment.