Skip to content

Commit

Permalink
styling improvements to modal
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Nov 29, 2023
1 parent cf13f8d commit 1c8bd37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
22 changes: 14 additions & 8 deletions src/components/File/NewNote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,28 @@ const NewNoteComponent: React.FC<NewNoteComponentProps> = ({
}

return (
<div className="fixed inset-0 z-50 overflow-auto bg-smoke-light flex">
<div className="relative p-8 bg-white w-full max-w-md m-auto flex-col flex rounded-lg">
<span className="absolute top-0 right-0 p-4" onClick={onClose}>
[Close]
</span>
<div className="absolute inset-0 w-screen z-50 flex items-center justify-center bg-black bg-opacity-50">
<div className="bg-white rounded-lg shadow-xl w-full max-w-lg p-6">
<div className="flex justify-between items-center">
<h2 className="text-2xl font-semibold">Create New Note</h2>
<button
onClick={onClose}
className="text-gray-600 hover:text-gray-800 cursor-pointer"
>
<span className="text-3xl">&times;</span>
</button>
</div>
<input
type="text"
className="border border-gray-300 rounded-md p-2 w-full"
className="form-input mt-4 block w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out"
value={fileName}
onChange={(e) => setFileName(e.target.value)}
onKeyPress={handleKeyPress}
placeholder="Name"
placeholder="Note Name"
/>
<button
onClick={sendNewNoteMsg}
className="mt-4 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
className="mt-4 bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded"
>
Create
</button>
Expand Down
7 changes: 2 additions & 5 deletions src/components/TitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ const TitleBar: React.FC<TitleBarProps> = ({
setIsModalOpen(!isModalOpen);
};
return (
<div
id="customTitleBar"
className="h-[30px] bg-white flex justify-between space-x-2 pr-2"
>
<div className="ml-[65px] flex space-x-2">
<div id="customTitleBar" className="h-[30px] bg-white flex justify-between">
<div className="ml-[65px] flex">
{/* <button className="bg-transparent border-none cursor-pointer">
<MdSearch className="text-gray-600" size={24} />
</button> */}
Expand Down

0 comments on commit 1c8bd37

Please sign in to comment.