-
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
1 changed file
with
128 additions
and
6 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 |
---|---|---|
@@ -1,13 +1,135 @@ | ||
import React from 'react' | ||
import React from "react"; | ||
|
||
const Calculator = () => { | ||
return ( | ||
<div className='bg-gray-800 text-white w-screen h-screen flex justify-center items-center'> | ||
<div className='w-64 h-auto bg-gray-900 rounded-2xl shadow-xl border-4 border-gray-100'> | ||
<div className="bg-[#3b4664] text-white w-screen h-screen flex justify-center items-center"> | ||
{/* calculator container */} | ||
<div className="calculator-wrapper"> | ||
{/* screen container */} | ||
<div className="screen p-2 sm:w-[325px] md:w-[485px] min-w-[325px] max-w-[485px] shadow-lg rounded-2xl"> | ||
{/* actual screen */} | ||
<input | ||
type="text" | ||
className="text-white bg-[#181f32] w-full h-auto rounded-2xl p-8 text-right outline-none" | ||
/> | ||
</div> | ||
|
||
{/* keyboard container */} | ||
<div className="keyboard-container bg-[#252d44] p-4 rounded-2xl mt-4"> | ||
<div className="m-2 flex justify-between"> | ||
<input | ||
type="button" | ||
value="7" | ||
className="bg-[#eae3db] text-[#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="8" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="9" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="DEL" | ||
className="bg-[#3b4664] text-[#eae3db] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
</div> | ||
<div className="m-2 flex justify-between"> | ||
<input | ||
type="button" | ||
value="7" | ||
className="bg-[#eae3db] text-[#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="8" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="9" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="DEL" | ||
className="bg-[#3b4664] text-[#eae3db] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
</div> | ||
<div className="m-2 flex justify-between"> | ||
<input | ||
type="button" | ||
value="7" | ||
className="bg-[#eae3db] text-[#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="8" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="9" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="DEL" | ||
className="bg-[#3b4664] text-[#eae3db] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
</div> | ||
<div className="m-2 flex justify-between"> | ||
<input | ||
type="button" | ||
value="7" | ||
className="bg-[#eae3db] text-[#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="8" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="9" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="DEL" | ||
className="bg-[#3b4664] text-[#eae3db] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
</div> | ||
<div className="m-2 flex justify-between"> | ||
<input | ||
type="button" | ||
value="7" | ||
className="bg-[#eae3db] text-[#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="8" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="9" | ||
className="bg-[#eae3db] text-[#3b4664] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
<input | ||
type="button" | ||
value="DEL" | ||
className="bg-[#3b4664] text-[#eae3db] [#3b4664] py-2 px-6 rounded-lg font-bold text-2xl shadow-md" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Calculator | ||
export default Calculator; |