-
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
5 changed files
with
59 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,38 @@ | ||
import React from "react"; | ||
import Modal from "../Reusable/Modal"; | ||
import { useModal } from "@/hooks/modal"; | ||
import InputField from "../Reusable/InputField"; | ||
import { Button } from "../Reusable/Button"; | ||
import ShotCard from "../Home/ShotCard"; | ||
|
||
export function PublishShotModal() { | ||
const { isOpen, type } = useModal(); | ||
const isPublishShotModal = isOpen && type === "publishShotModal"; | ||
|
||
return <Modal isOpen={isPublishShotModal}>PublishShotModal</Modal>; | ||
return ( | ||
<Modal isOpen={isPublishShotModal} title="Final touches"> | ||
<div className="flex items-center pb-10 w-full h-full"> | ||
<div className=""> | ||
<ShotCard /> | ||
</div> | ||
<div className="flex flex-col space-y-5 w-3/5 mx-auto justify-center"> | ||
<InputField label="Tags(Maximimum 20)" placeholder="Add Tags" /> | ||
|
||
<div className="flex justify-between items-center"> | ||
<Button className="py-2 px-5 text-sm font-medium border border-zinc-100"> | ||
Close | ||
</Button> | ||
<div className="inline-flex"> | ||
<Button className="py-2 px-5 text-sm font-medium mx-4 bg-zinc-100"> | ||
Save as draft | ||
</Button> | ||
<Button className="px-3 py-1 md:py-3 md:px-6 text-white text-sm font-medium bg-primary"> | ||
Publish now | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</Modal> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,5 +1,22 @@ | ||
import React from "react"; | ||
|
||
export default function InputField() { | ||
return <div>InputField</div>; | ||
interface InputFieldProps { | ||
label?: string; | ||
placeholder: string; | ||
onClick?: (event: MouseEvent) => void; | ||
} | ||
export default function InputField({ label, placeholder }: InputFieldProps) { | ||
return ( | ||
<div className="group w-full"> | ||
<label htmlFor="file" className="block font-normal py-1.5 "> | ||
{label} | ||
</label> | ||
|
||
<input | ||
type="text" | ||
placeholder={`${placeholder}`} | ||
className="block w-full placeholder-gray-400/70 rounded-xl border border-gray-200 bg-white px-5 py-3 text-gray-700 focus:border-pink-300 focus:outline-none focus:ring-2 focus:ring-pink-200 group-hover:ring-pink-200 focus:ring-opacity-40 " | ||
/> | ||
</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