Skip to content

Commit

Permalink
keyboard layout created
Browse files Browse the repository at this point in the history
  • Loading branch information
asadmash committed Dec 2, 2024
1 parent 8ebf9f8 commit 4ba28ed
Showing 1 changed file with 128 additions and 6 deletions.
134 changes: 128 additions & 6 deletions 34.calculator-app-react/src/components/Calculator.jsx
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;

0 comments on commit 4ba28ed

Please sign in to comment.