| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>训练项目</title>
- <link href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css" rel="stylesheet">
- <style>
- body {
- margin: 0;
- padding: 0;
- font-family: Arial, sans-serif;
- height: 100vh; /* 确保整个视口高度 */
- overflow-y: auto; /* 允许垂直滚动 */
- background-color: #f0f0f0; /* 背景颜色 */
- }
- .header {
- background-color: #4CAF50; /* 标题背景颜色 */
- color: white;
- text-align: center;
- padding: 20px 0; /* 上下内边距 */
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 阴影效果 */
- }
- .header h1 {
- margin: 0; /* 去掉默认的 margin */
- font-size: 2em; /* 标题字体大小 */
- }
- .training-container {
- display: flex;
- flex-direction: column; /* 垂直排列 */
- align-items: center; /* 居中对齐 */
- padding: 20px;
- }
- .training-card {
- background-color: white; /* 卡片背景颜色 */
- border: 1px solid #ddd;
- border-radius: 8px;
- padding: 15px;
- width: 80%; /* 根据需要调整宽度 */
- margin: 10px 0; /* 卡片之间的间距 */
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 增强阴影效果 */
- transition: transform 0.2s; /* 添加过渡效果 */
- }
- .training-card:hover {
- transform: translateY(-5px); /* 悬停时上移效果 */
- }
- .training-card h2 {
- font-size: 1.5em;
- color: #333;
- margin-bottom: 10px; /* 卡片标题与内容之间的间距 */
- }
- .training-card img {
- max-width: 100%;
- height: auto;
- border-radius: 4px;
- }
- .training-card p {
- font-size: 1em;
- color: #666;
- }
- .training-card button {
- background-color: #007bff; /* 按钮颜色 */
- color: white;
- border: none;
- border-radius: 4px;
- padding: 10px 15px;
- cursor: pointer;
- margin-top: 10px;
- transition: background-color 0.3s; /* 按钮过渡效果 */
- }
- .training-card button:hover {
- background-color: #0056b3; /* 悬停效果 */
- }
- </style>
- </head>
- <body>
- <div class="header">
- <h1>训练记录</h1>
- </div>
- <div class="training-container">
- <div class="training-card">
- <h2>运球训练</h2>
- <img src="assets/tab4.img/1.jpg" alt="运球训练图片">
- <button routerLink="/tab2" (click)="gototab5()">继续训练</button>
- </div>
- <div class="training-card">
- <h2>脚步训练</h2>
- <img src="assets/tab4.img/2.jpg" alt="脚步训练图片">
- <button routerLink="/tab2" (click)="gototab5()">继续训练</button>
- </div>
- <div class="training-card">
- <h2>投篮训练</h2>
- <img src="assets/tab4.img/3.jpg" alt="投篮训练图片">
- <button routerLink="/tab2" (click)="gototab5()">继续训练</button>
- </div>
- <!-- 添加返回按钮 -->
- <ion-button slot="end" (click)="gototab4()">返回</ion-button>
- </div>
- <script src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic.js"></script>
- </body>
- </html>
|