drift-bottle.component_20241227181813.html 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <ion-content [fullscreen]="true">
  2. <div class="top-image">
  3. <img src="/assets/img/漂流瓶.jpg" alt="漂流瓶">
  4. </div>
  5. <!-- 左边的按钮 -->
  6. <div class="button-container left-button" (click)="throwDriftBottleModal()">
  7. <img src="/assets/img/扔一个.png" alt="扔漂流瓶" class="circular-button">
  8. </div>
  9. <div class="button-container middle-button" (click)="goMydriftbottle()">
  10. <ion-button fill="clear" class="custom-button" (click)="catchDriftBottle()">
  11. 我的漂流瓶
  12. </ion-button>
  13. </div>
  14. <!-- 右边的按钮 -->
  15. <div class="button-container right-button" (click)="catchDriftBottle()">
  16. <img src="/assets/img/捞一个.png" alt="捞漂流瓶" class="circular-button">
  17. </div>
  18. <!-- 背景音乐 -->
  19. <audio id="backgroundAudio" loop>
  20. <source src="/assets/audio/海浪.mp3" type="audio/mpeg">
  21. Your browser does not support the audio element.
  22. </audio>
  23. <!-- 弹窗提示 -->
  24. <ion-alert *ngIf="alertMessage" [header]="alertHeader" [message]="alertMessage" [buttons]="['OK']" (didDismiss)="dismissAlert()"></ion-alert>
  25. </ion-content>