create project and home page
This commit is contained in:
5
kitabcitab/pages/_app.js
Normal file
5
kitabcitab/pages/_app.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import '../styles/globals.css'
|
||||
|
||||
export default function App({ Component, pageProps }) {
|
||||
return <Component {...pageProps} />
|
||||
}
|
||||
13
kitabcitab/pages/_document.js
Normal file
13
kitabcitab/pages/_document.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Html, Head, Main, NextScript } from 'next/document'
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head />
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
)
|
||||
}
|
||||
5
kitabcitab/pages/api/hello.js
Normal file
5
kitabcitab/pages/api/hello.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
|
||||
export default function handler(req, res) {
|
||||
res.status(200).json({ name: 'John Doe' })
|
||||
}
|
||||
27
kitabcitab/pages/index.js
Normal file
27
kitabcitab/pages/index.js
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<div className="flex flex-col items-center">
|
||||
<div className="py-3 px-2 ">
|
||||
<p className="text-5xl text-white">KitabCitab</p>
|
||||
</div>
|
||||
<div className="
|
||||
p-2 border-2 w-[90%]
|
||||
border-black rounded-3xl flex flex-row justify-center
|
||||
|
||||
tablet:w-[70%]
|
||||
tablet:p-3
|
||||
|
||||
laptop:w-[50%]
|
||||
laptop:p-2
|
||||
"
|
||||
>
|
||||
|
||||
<input className="bg-[#303134] w-[80%]"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user