San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame^] | 1 | .container { |
| 2 | display: flex; |
| 3 | flex-direction: row; |
| 4 | align-items: flex-start; |
| 5 | justify-content: space-between; |
| 6 | padding: 20px; |
| 7 | border: 1px solid #ccc; |
| 8 | border-radius: 10px; |
| 9 | background-color: #f9f9f9; |
| 10 | width: 100%; |
| 11 | height: 200px; /* Adjust height as needed */ |
| 12 | box-sizing: border-box; |
| 13 | } |
| 14 | |
| 15 | .left { |
| 16 | display: flex; |
| 17 | flex-direction: column; |
| 18 | align-items: center; |
| 19 | justify-content: flex-start; |
| 20 | width: 20%; /* Adjust width for avatar section */ |
| 21 | } |
| 22 | |
| 23 | .avatar { |
| 24 | width: 80px; |
| 25 | height: 80px; |
| 26 | border-radius: 50%; |
| 27 | object-fit: cover; |
| 28 | margin-bottom: 10px; |
| 29 | } |
| 30 | .right { |
| 31 | display: flex; |
| 32 | flex-direction: column; |
| 33 | justify-content: space-between; |
| 34 | align-items: flex-start; |
| 35 | width: 75%; /* Adjust width for info and button section */ |
| 36 | } |
| 37 | |
| 38 | .info { |
| 39 | display: flex; |
| 40 | flex-direction: column; |
| 41 | align-items: flex-start; |
| 42 | margin-bottom: 10px; |
| 43 | } |
| 44 | |
| 45 | .userName { |
| 46 | font-size: 18px; |
| 47 | font-weight: bold; |
| 48 | margin-bottom: 5px; |
| 49 | } |
| 50 | .role, |
| 51 | .uploadTraffic, |
| 52 | .downloadTraffic, |
| 53 | .shareRatio { |
| 54 | font-size: 14px; |
| 55 | margin-bottom: 5px; |
| 56 | } |
| 57 | |
| 58 | .signInButton { |
| 59 | align-self: flex-end; |
| 60 | padding: 10px 20px; |
| 61 | font-size: 14px; |
| 62 | background-color: #4CAF50; |
| 63 | color: white; |
| 64 | border: none; |
| 65 | border-radius: 5px; |
| 66 | cursor: pointer; |
| 67 | } |
| 68 | |
| 69 | .signInButton:hover { |
| 70 | background-color: #45a049; |
| 71 | } |