Skip to content

Commit

Permalink
Revert "feat: add landing"
Browse files Browse the repository at this point in the history
This reverts commit fbcd3e1.
  • Loading branch information
ValeryVerkhoturov committed Jun 19, 2023
1 parent 14d7657 commit d7bcaf0
Show file tree
Hide file tree
Showing 10 changed files with 677 additions and 2,709 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

19 changes: 9 additions & 10 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { env } from './src/env.mjs'
const config = {
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'mjs', 'cjs', 'md', 'mdx'],
reactStrictMode: true,
transpilePackages: ['three'],
images: {
domains: [
'www.mirea.ru',
Expand Down Expand Up @@ -36,15 +35,15 @@ const config = {
},
]
},
// async redirects() {
// return [
// {
// source: '/',
// destination: '/finds',
// permanent: false,
// },
// ]
// },
async redirects() {
return [
{
source: '/',
destination: '/finds',
permanent: false,
},
]
},
}

import { createRequire } from 'module'
Expand Down
3,126 changes: 657 additions & 2,469 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,22 @@
"@next/bundle-analyzer": "^13.2.4",
"@next/mdx": "^13.4.3",
"@prisma/client": "^4.15.0",
"@react-three/drei": "^9.76.0",
"@react-three/fiber": "^8.13.3",
"@t3-oss/env-nextjs": "^0.2.2",
"@tanstack/react-query": "^4.28.0",
"@trpc/client": "^10.18.0",
"@trpc/next": "^10.18.0",
"@trpc/react-query": "^10.18.0",
"@trpc/server": "^10.18.0",
"@types/three": "^0.152.1",
"@upstash/ratelimit": "^0.4.3",
"aws-sdk": "^2.1399.0",
"aws-sdk": "^2.1377.0",
"axios": "^1.4.0",
"classnames": "^2.3.2",
"date-fns": "^2.29.3",
"flowbite": "^1.6.5",
"flowbite-react": "^0.4.4",
"immer": "^10.0.2",
"next": "^13.4.6",
"next-auth": "^4.20.1",
"next": "^13.4.1",
"next-auth": "4.20.1",
"next-pwa": "^5.6.0",
"next-s3-upload": "^0.3.0",
"next-seo": "^6.0.0",
Expand All @@ -59,7 +56,6 @@
"sharp": "^0.32.0",
"spinners-react": "^1.0.7",
"superjson": "1.12.2",
"three": "^0.153.0",
"transliteration": "^2.3.5",
"unique-names-generator": "^4.7.1",
"zod": "^3.21.4",
Expand Down
Binary file removed public/compressed.glb
Binary file not shown.
10 changes: 4 additions & 6 deletions src/components/docs/docs-navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { HomeIcon } from '@heroicons/react/20/solid'
import { useRouter } from 'next/router'
import React from 'react'
import Link from 'next/link'

const pageNames = new Map<string, string>([
['docs', 'Документы'],
Expand All @@ -21,10 +19,10 @@ export default function DocsNavigation() {
<ol role='list' className='flex items-center space-x-4'>
<li>
<div>
<Link href='/' className='text-gray-400 hover:text-gray-500'>
<a href='/' className='text-gray-400 hover:text-gray-500'>
<HomeIcon className='h-5 w-5 flex-shrink-0' aria-hidden='true' />
<span className='sr-only'>Бюро находок</span>
</Link>
</a>
</div>
</li>
{pages.map((page) => (
Expand All @@ -39,13 +37,13 @@ export default function DocsNavigation() {
>
<path d='M5.555 17.776l8-16 .894.448-8 16-.894-.448z' />
</svg>
<Link
<a
href={page.href}
className='ml-4 text-sm font-medium text-gray-500 hover:text-gray-700'
aria-current={router.pathname === page.href ? 'page' : undefined}
>
{pageNames.get(page.name)}
</Link>
</a>
</div>
</li>
))}
Expand Down
12 changes: 4 additions & 8 deletions src/components/error/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Image from 'next/image'
import { ChevronRightIcon } from '@heroicons/react/20/solid'
import Head from 'next/head'
import { type ErrorProps } from '@/lib/types/error-props'
import Link from 'next/link'

const recommendationLinks = [
{
Expand Down Expand Up @@ -63,10 +62,10 @@ export default function Error(props: ErrorProps) {
<div className='min-w-0 flex-1'>
<h3 className='text-base font-medium text-gray-900'>
<span className='rounded-sm focus-within:ring-2 focus-within:ring-blue-500 focus-within:ring-offset-2'>
<Link href={link.href} className='focus:outline-none'>
<a href={link.href} className='focus:outline-none'>
<span className='absolute inset-0' aria-hidden='true' />
{link.title}
</Link>
</a>
</span>
</h3>
<p className='text-base text-gray-500'>{link.description}</p>
Expand All @@ -78,13 +77,10 @@ export default function Error(props: ErrorProps) {
))}
</ul>
<div className='mt-8'>
<Link
href='/'
className='text-base font-medium text-blue-700 hover:text-blue-600'
>
<a href='/' className='text-base font-medium text-blue-700 hover:text-blue-600'>
Или идите на начальную страницу
<span aria-hidden='true'> &rarr;</span>
</Link>
</a>
</div>
</div>
)}
Expand Down
86 changes: 0 additions & 86 deletions src/components/landing/landing.tsx

This file was deleted.

114 changes: 0 additions & 114 deletions src/components/landing/model.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/pages/index.tsx

This file was deleted.

0 comments on commit d7bcaf0

Please sign in to comment.