-
Notifications
You must be signed in to change notification settings - Fork 23
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
1 parent
b2234b4
commit dd634d4
Showing
6 changed files
with
60 additions
and
49 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
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,28 +1,16 @@ | ||
<template> | ||
<button | ||
class="relative flex items-center justify-center w-32 p-1 rounded-md shadow-inner h-9 bg-slate-800/60" | ||
@click="vehicleStore.takeoff()" | ||
> | ||
<div | ||
class="absolute top-auto flex items-center px-1 rounded-[4px] shadow hover:bg-slate-400/60 transition-all w-[70%] h-[80%]" | ||
:class="{ | ||
'bg-slate-900/60 text-slate-50 justify-end left-[26%]': vehicleStore.isReady, | ||
'justify-start bg-slate-800/60 text-slate-400 left-[4%]': !vehicleStore.isReady | ||
}" | ||
> | ||
<span class="inline-block font-extrabold align-middle"> | ||
Takeoff | ||
<!-- {{ vehicleStore.isReady === undefined ? '...' : vehicleStore.isReady ? 'Ready' : 'Not Ready' }} --> | ||
</span> | ||
</div> | ||
</button> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useMainVehicleStore } from '@/stores/mainVehicle' | ||
const vehicleStore = useMainVehicleStore() | ||
// You can define additional logic or computed properties here if needed | ||
</script> | ||
|
||
<button | ||
class="relative flex items-center justify-center w-32 p-1 rounded-md shadow-inner h-9 bg-slate-800/60 hover:bg-slate-400/60" | ||
@click="vehicleStore.showTakeoff ? vehicleStore.takeoff() : vehicleStore.land()" | ||
> | ||
<span class="inline-block font-extrabold align-middle text-white"> | ||
{{ vehicleStore.showTakeoff === undefined ? '...' : vehicleStore.showTakeoff ? 'Takeoff' : 'Land' }} | ||
</span> | ||
</button> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useMainVehicleStore } from '@/stores/mainVehicle' | ||
const vehicleStore = useMainVehicleStore() | ||
</script> |
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
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
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
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