Compare commits

..

No commits in common. "3d989cfe4eac4a9e80d18133be7e789b15bdce31" and "b5fd9e34e75b5987f7c2c21dfef1c2ad29687691" have entirely different histories.

2 changed files with 16 additions and 16 deletions

View File

@ -361,6 +361,13 @@ export const CalculatorInput = ({ value, onChange, label, options = {}, id, clas
÷ ÷
</button> </button>
{/* 숫자 버튼 */}
{[7, 8, 9, 4, 5, 6, 1, 2, 3].map((num) => (
<button key={num} onClick={() => handleNumber(num)} className="btn-number">
{num}
</button>
))}
<button onClick={() => handleOperation('×')} className="btn-operator"> <button onClick={() => handleOperation('×')} className="btn-operator">
× ×
</button> </button>
@ -371,12 +378,6 @@ export const CalculatorInput = ({ value, onChange, label, options = {}, id, clas
+ +
</button> </button>
{/* 숫자 버튼 */}
{[1,2,3,4,5,6,7,8,9].map((num) => (
<button key={num} onClick={() => handleNumber(num)} className="btn-number">
{num}
</button>
))}
{/* 0 버튼 */} {/* 0 버튼 */}
<button onClick={() => handleNumber('0')} className="btn-number btn-zero"> <button onClick={() => handleNumber('0')} className="btn-number btn-zero">
0 0

View File

@ -112,24 +112,23 @@ $colors: (
} }
.btn-delete { .btn-delete {
background-color: map-get($colors, 'dark-500');
&:hover {
background-color: map-get($colors, 'dark-300');
}
}
.btn-equals {
background-color: map-get($colors, 'primary'); background-color: map-get($colors, 'primary');
grid-column: span 2;
&:hover { &:hover {
background-color: map-get($colors, 'primary-dark'); background-color: map-get($colors, 'primary-dark');
} }
} }
.btn-equals {
background-color: map-get($colors, 'warning');
&:hover {
background-color: map-get($colors, 'warning-dark');
}
}
.btn-zero { .btn-zero {
grid-column: span 1; grid-column: span 2;
} }
} }
} }