step1:
<template>
<v-app dark
class="main-app">
<v-main class="bg">
<router-view />
</v-main>
</v-app>
</template>
<script>
export default {
name: "App",
};
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* text-align: center; */
color: #2c3e50;
/* margin-top: 60px; */
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #eee;
}
</style>
step2:
<template>
<div class="calculator"
style="margin-top:10%">
<div class="result"
style="grid-area:result;">{
{ equation }}</div>
<button style="grid-area:ac"
@click="clear">AC</button>
<button style="grid-area:plus-minus"
@click="calculateToggle">±</button>
<button style="grid-area:percent"
@click="calculatePercentage">%</button>
<button style="grid-area:add"
@click="append('+')">+</button>
<button style="grid-area:subtract"