Skip to content

Commit b6adac5

Browse files
author
Koshelev Kirill
committed
feat: about hero page
1 parent 9123107 commit b6adac5

File tree

8 files changed

+96
-13
lines changed

8 files changed

+96
-13
lines changed

features/layout/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Footer } from './ui/Footer'

features/layout/ui/Footer.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export const Footer = () => {
2+
return (
3+
<footer className="border-t">
4+
<div className="px-4 py-4 mx-auto overflow-hidden max-w-7xl sm:px-6 lg:px-8">
5+
<p className="text-base text-center text-gray-400">
6+
&copy; With ❤️ by Kirill Koshelev
7+
</p>
8+
</div>
9+
</footer>
10+
)
11+
}

lib/router.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export enum ROUTES {
22
HOME = '/',
33
CAMERA = '/camera',
44
FORM = '/form',
5+
ABOUT = '/about',
56
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"@headlessui/react": "^1.6.6",
13+
"@heroicons/react": "^1.0.6",
1214
"@sentry/react": "^7.5.1",
1315
"@sentry/tracing": "^7.5.1",
1416
"amplitude-js": "^8.18.5",

pages/_app.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ function MyApp({ Component, pageProps, router }: AppProps) {
1616
React.useEffect(() => {
1717
initAmplitude()
1818
}, [])
19+
const { pathname } = router
20+
21+
if (pathname === ROUTES.ABOUT) {
22+
return <Component {...pageProps} />
23+
}
1924

2025
return (
2126
<App theme="ios" dark>

pages/about.tsx

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/* This example requires Tailwind CSS v2.0+ */
2+
import { Fragment } from 'react'
3+
import { Popover, Transition } from '@headlessui/react'
4+
import { MenuIcon, XIcon } from '@heroicons/react/outline'
5+
import { Footer } from 'features/layout'
6+
7+
const navigation = [
8+
{ name: 'Product', href: '#' },
9+
{ name: 'Features', href: '#' },
10+
{ name: 'Marketplace', href: '#' },
11+
{ name: 'Company', href: '#' },
12+
]
13+
14+
export default function About() {
15+
return (
16+
<div className="relative flex flex-col justify-between min-h-screen overflow-hidden bg-gray-50">
17+
<div className="relative pt-6 pb-16 sm:pb-24">
18+
<main className="px-4 mx-auto mt-16 max-w-7xl sm:mt-24">
19+
<div className="text-center">
20+
<h1 className="text-4xl font-extrabold tracking-tight text-gray-900 sm:text-5xl md:text-6xl">
21+
<span className="block xl:inline">Scan and save any</span>{' '}
22+
<span className="block text-indigo-600 xl:inline">QR codes</span>
23+
</h1>
24+
{/* <p className="max-w-md mx-auto mt-3 text-base text-gray-500 sm:text-lg md:mt-5 md:text-xl md:max-w-3xl">
25+
Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui
26+
lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat
27+
fugiat aliqua.
28+
</p> */}
29+
<div className="max-w-md mx-auto mt-5 sm:flex sm:justify-center md:mt-8">
30+
<div className="rounded-md shadow">
31+
<a
32+
href="/"
33+
className="flex items-center justify-center w-full px-8 py-3 text-base font-medium text-white bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-700 md:py-4 md:text-lg md:px-10"
34+
>
35+
Go to app
36+
</a>
37+
</div>
38+
{/* <div className="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
39+
<a
40+
href="#"
41+
className="flex items-center justify-center w-full px-8 py-3 text-base font-medium text-indigo-600 bg-white border border-transparent rounded-md hover:bg-gray-50 md:py-4 md:text-lg md:px-10"
42+
>
43+
Live demo
44+
</a>
45+
</div> */}
46+
</div>
47+
</div>
48+
</main>
49+
</div>
50+
<Footer />
51+
</div>
52+
)
53+
}

pages/api/hello.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)