<script> import terminalCapacity from "../database/maxNumberOfPeople"; import { people }…
- User
from this code, please add 6 buttons under "Chips on deck". each buttons are assigned with their designated images for chipImageSrc to change. when the buttons are pressed, the chipImageSrc would to change. please also add a reset button for the chipImageSrc where it would show none when the it is pressed.
- Assistant
<br /> <div class="flex items-center justify-center mt-4"> <span class="mr-2 font-bold">Chips on deck Login:</span> <button on:click="{() => colorChip = 'blue'}" class="mr-2"><img src="images/blue-chip.png" alt="Blue Chip" class="h-8 w-8 rounded-full"></button> <button on:click="{() => colorChip = 'red'}" class="mr-2"><img src="images/red-chip.png" alt="Red Chip" class="h-8 w-8 rounded-full"></button> <button on:click="{() => colorChip = 'green'}" class="mr-2"><img src="images/green-chip.png" alt="Green Chip" class="h-8 w-8 rounded-full"></button> <button on:click="{() => colorChip = 'purple'}" class="mr-2"><img src="images/purple-chip.png" alt="Purple Chip" class="h-8 w-8 rounded-full"></button> <button on:click="{() => colorChip = 'orange'}" class="mr-2"><img src="images/orange-chip.png" alt="Orange Chip" class="h-8 w-8 rounded-full"></button> <button on:click="{() => colorChip = 'pink'}" class="mr-2"><img src="images/pink-chip.png" alt="Pink Chip" class="h-8 w-8 rounded-full"></button> <button on:click="{() => colorChip = ''}" class="mr-2">Reset</button> <img src="{chipImageSrc}" alt="Current Chip" class="h-8 w-8 rounded-full"> <!-- Adjust height and width as needed --> </div> <br />