-
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
75 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default function AddNew() { | ||
return ( | ||
<div className="text-center"> | ||
<p className="font-thin">no commands found</p> | ||
<a | ||
href="https://github.com/ArunGovil/cmdr#how-do-i-add-a-command" | ||
className=" font-thin text-sm underline underline-offset-4" | ||
> | ||
help us by adding new command | ||
</a> | ||
</div> | ||
); | ||
} |
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,38 @@ | ||
import Link from "next/link"; | ||
import React, { useEffect, useState } from "react"; | ||
import { placeholders } from "../utils"; | ||
import { useRouter } from "next/router"; | ||
|
||
export default function DemoSearch() { | ||
const [placeholder, setPlaceholder] = useState(placeholders[0]); | ||
const router = useRouter(); | ||
const handleNavigation = () => { | ||
router.push("/search"); | ||
}; | ||
|
||
useEffect(() => { | ||
const timer = setTimeout(() => { | ||
if (placeholder.id < placeholders.length) { | ||
setPlaceholder(placeholders[placeholder.id]); | ||
} else { | ||
setPlaceholder(placeholders[0]); | ||
} | ||
}, 3000); | ||
return () => clearTimeout(timer); | ||
}, [placeholder]); | ||
|
||
return ( | ||
<div> | ||
<div className="mt-12 flex"> | ||
<input | ||
onFocus={handleNavigation} | ||
className="bg-black border-l border-r border-t border-b rounded-l-lg p-2 border-slate-800 h-12 w-96 max-w-[75vw] text-sm" | ||
placeholder={placeholder.placeholder} | ||
/> | ||
<div className="p-2 flex items-center justify-center bg-gradient-to-br from-[#FF4D4D] to-orange-500 rounded-r-lg text-sm pl-3 pr-3"> | ||
<p>search</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ export default function Details() { | |
); | ||
setData(filtered); | ||
}; | ||
|
||
return ( | ||
<div> | ||
<Head> | ||
|
f6cbfdf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cmdr – ./
cmdr-arungovil.vercel.app
cmdr-git-main-arungovil.vercel.app
cmdr.vercel.app