Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu007-creator committed Nov 13, 2022
0 parents commit ea0ba1e
Show file tree
Hide file tree
Showing 35 changed files with 16,610 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next", "next/core-web-vitals", "prettier"]
}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated via Next.js
.next

# Generated via Node.js
node_modules

# Generated via next-pwa
**/public/workbox**
**/public/sw**
36 changes: 36 additions & 0 deletions components/meta.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import Head from 'next/head'

const Meta = () => (
<Head>
<title>ParchiApp</title>
<meta charSet='utf-8' />
<meta name='mobile-web-app-capable' content='yes' />
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta
name='apple-mobile-web-app-status-bar-style'
content='black-translucent'
/>
<meta name='apple-mobile-web-app-title' content='Parchi' />
<meta name='application-name' content='Parchi' />
<meta name='description' content='Health records on your tips' />
<meta
name='theme-color'
content='#f4f4f5'
media='(prefers-color-scheme: light)'
/>
<meta
name='theme-color'
content='#18181b'
media='(prefers-color-scheme: dark)'
/>
<meta
name='viewport'
content='width=device-width, initial-scale=1, user-scalable=0, viewport-fit=cover'
/>
<link rel='apple-touch-icon' href='/icons/icon-maskable-512.png' />
<link rel='icon' type='image/png' href='/icons/favicon.ico' />
<link rel='manifest' href='/manifest.json' />
</Head>
)

export default Meta
32 changes: 32 additions & 0 deletions components/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Head from 'next/head'

interface Props {
title?: string
children: React.ReactNode
}

const Page = ({ title, children }: Props) => (
<>
{title ? (
<Head>
<title>ParchiApp | {title}</title>
</Head>
) : null}

{/* <Appbar /> */}

<main
/**
* Padding top = `appbar` height
* Padding bottom = `bottom-nav` height
*/
className='mx-auto max-w-screen-md pt-20 pb-16 px-safe sm:pb-0'
>
<div className='p-6'>{children}</div>
</main>

{/* <BottomNav /> */}
</>
)

export default Page
5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const withPWA = require('next-pwa')
const runtimeCaching = require('next-pwa/cache')

module.exports = withPWA({
pwa: {
dest: 'public',
runtimeCaching,
},
})
Loading

1 comment on commit ea0ba1e

@vercel
Copy link

@vercel vercel bot commented on ea0ba1e Nov 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.