-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
92 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Link from "next/link"; | ||
import React from "react"; | ||
|
||
const Notfound = () => { | ||
return ( | ||
<div className="flex flex-col items-center w-full justify-center pt-28"> | ||
<h1 className=" font-bold text-4xl">Notfound</h1> | ||
<p>the page that you are searching is not there </p> | ||
<Link href="/"> | ||
{" "} | ||
<div className=" mt-10 border rounded-lg p-3 shadow cursor-pointer transition hover:shadow-none hover:text-gray-500 "> | ||
GO HOME | ||
</div> | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Notfound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { createpostla } from "@/actions/actions"; | ||
import React from "react"; | ||
|
||
const Forms = () => { | ||
return ( | ||
<form | ||
action={createpostla} | ||
className=" mx-auto space-y-4 max-w-[400px] flex flex-col my-10" | ||
> | ||
<input | ||
required | ||
placeholder=" title for new post" | ||
name="title" | ||
type="text" | ||
className=" outline-none border rounded px-3 h-10" | ||
/> | ||
<textarea | ||
name="body" | ||
required | ||
className=" py-2 outline-none border rounded px-3" | ||
placeholder="Body for new post" | ||
rows={6} | ||
/> | ||
<button className=" h-10 px-2 py-1 text-sm rounded bg-green-500 text-white"> | ||
Submit | ||
</button> | ||
</form> | ||
); | ||
}; | ||
|
||
export default Forms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters