Skip to content

Commit d118c8e

Browse files
authored
Merge pull request #2 from EyeACT/initial0
fix: 🐛 typescript errors
2 parents d92176d + ac5c576 commit d118c8e

File tree

4 files changed

+40
-49
lines changed

4 files changed

+40
-49
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "aireadi.org",
2+
"name": "eyeactstudy.org",
33
"version": "0.0.1",
44
"private": false,
55
"typings": "index.d.ts",
@@ -46,21 +46,21 @@
4646
"react-lottie-player": "^1.5.0",
4747
"react-toastify": "^9.1.1",
4848
"react-use": "^17.5.0",
49-
"rehype-document": "7.0.3",
50-
"rehype-external-links": "3.0.0",
51-
"rehype-format": "5.0.0",
52-
"rehype-highlight": "7.0.0",
53-
"rehype-raw": "7.0.0",
49+
"rehype-document": "^7.0.3",
50+
"rehype-external-links": "^3.0.0",
51+
"rehype-format": "^5.0.1",
52+
"rehype-highlight": "^7.0.1",
53+
"rehype-raw": "^7.0.0",
5454
"rehype-sanitize": "6.0.0",
55-
"rehype-stringify": "10.0.0",
55+
"rehype-stringify": "^10.0.1",
5656
"remark": "15.0.1",
5757
"remark-gfm": "^4.0.0",
58-
"remark-parse": "11.0.0",
59-
"remark-rehype": "11.1.0",
58+
"remark-parse": "^11.0.0",
59+
"remark-rehype": "^11.1.1",
6060
"sharp": "^0.31.3",
6161
"sib-api-v3-sdk": "^8.4.2",
6262
"tailwind-merge": "^1.7.0",
63-
"unified": "11.0.4",
63+
"unified": "^11.0.5",
6464
"words-count": "^2.0.2"
6565
},
6666
"devDependencies": {

src/pages/404.tsx

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,37 @@
1+
import Link from 'next/link';
2+
13
import Layout from '@/components/layout/Layout';
2-
import ArrowLink from '@/components/links/ArrowLink';
3-
import ButtonLink from '@/components/links/ButtonLink';
4-
import LottieAnimation from '@/components/lotties';
54
import Seo from '@/components/Seo';
65

7-
import heroLottie from '~/lotties/404.json';
8-
96
export default function NotFoundPage() {
107
return (
118
<Layout>
129
<Seo templateTitle='404' />
1310

14-
<main>
15-
<section className='layout flex h-[calc(100vh-60px)] flex-col items-center justify-center text-center'>
16-
<div className='flex items-center justify-center space-x-4'>
17-
<LottieAnimation
18-
animationData={heroLottie}
19-
width={250}
20-
height={250}
21-
/>
22-
<div className='max-w-lg text-left'>
23-
<h1 className='mt-8 text-6xl font-black'>404!</h1>
24-
<h2 className='my-4 text-2xl'>
25-
The page you are looking for might have been removed or had its
26-
name changed or is temporarily unavailable.
27-
</h2>
28-
<ArrowLink
29-
className='mt-4 inline-flex items-center md:text-lg'
30-
href='/'
31-
as={ButtonLink}
32-
variant='light'
33-
>
34-
Back to Home
35-
</ArrowLink>
36-
</div>
11+
<main className='grid min-h-full place-items-center bg-white px-6 py-24 sm:py-32 lg:px-8'>
12+
<div className='text-center'>
13+
<p className='text-base font-semibold text-indigo-600'>404</p>
14+
<h1 className='mt-4 text-balance text-5xl font-semibold tracking-tight text-gray-900 sm:text-7xl'>
15+
Page not found
16+
</h1>
17+
<p className='mt-6 text-pretty text-lg font-medium text-gray-500 sm:text-xl/8'>
18+
Sorry, we couldn’t find the page you’re looking for.
19+
</p>
20+
<div className='mt-6 space-x-4'>
21+
<Link
22+
href='/'
23+
className='rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600'
24+
>
25+
Go back home
26+
</Link>
27+
<Link
28+
href='/contact'
29+
className='text-sm font-semibold text-gray-900'
30+
>
31+
Contact support <span aria-hidden='true'>&rarr;</span>
32+
</Link>
3733
</div>
38-
</section>
34+
</div>
3935
</main>
4036
</Layout>
4137
);

src/pages/_document.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ class MyDocument extends Document {
2424
type='font/woff2'
2525
crossOrigin='anonymous'
2626
/>
27-
28-
<script
29-
async
30-
defer
31-
data-website-id='b6587885-8dd3-426f-a805-4caa432aaaa2'
32-
src='https://umami.fairdataihub.org/mushroom'
33-
/>
3427
</Head>
3528

3629
<body

src/pages/team/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const TeamPage: React.FC<InferGetStaticPropsType<typeof getStaticProps>> = ({
136136
{'mastodon' in member.social && (
137137
<li className='flex items-center justify-center text-gray-500 transition-all hover:text-sky-600'>
138138
<a
139-
href={member.social.mastodon}
139+
href={member.social.mastodon as string | undefined}
140140
rel='noopener noreferrer'
141141
target='_blank'
142142
className='cursor-newtab'
@@ -192,7 +192,7 @@ const TeamPage: React.FC<InferGetStaticPropsType<typeof getStaticProps>> = ({
192192
{'profiles' in member.social && (
193193
<li className='flex items-center justify-center text-gray-500 transition-all hover:text-sky-600'>
194194
<a
195-
href={member.social.profiles}
195+
href={member.social.profiles as string | undefined}
196196
rel='noopener noreferrer'
197197
target='_blank'
198198
className='cursor-newtab'
@@ -206,7 +206,9 @@ const TeamPage: React.FC<InferGetStaticPropsType<typeof getStaticProps>> = ({
206206
{'medprofile' in member.social && (
207207
<li className='flex items-center justify-center text-gray-500 transition-all hover:text-sky-600'>
208208
<a
209-
href={member.social.medprofile}
209+
href={
210+
member.social.medprofile as string | undefined
211+
}
210212
rel='noopener noreferrer'
211213
target='_blank'
212214
className='cursor-newtab'

0 commit comments

Comments
 (0)