-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtest-responsive.html
More file actions
283 lines (270 loc) · 16.7 KB
/
test-responsive.html
File metadata and controls
283 lines (270 loc) · 16.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mobile Responsiveness Test - Sealed Auction Platform</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.glass-effect {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.animate-pulse-slow {
animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.stellar-gradient {
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
@media (max-width: 640px) {
.truncate-mobile {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
</style>
</head>
<body class="stellar-gradient min-h-screen text-white">
<!-- Header -->
<header class="glass-effect shadow-lg">
<div class="container mx-auto px-4 py-4">
<div class="flex flex-col sm:flex-row justify-between items-start sm:items-center space-y-3 sm:space-y-0">
<div class="flex items-center space-x-3">
<i class="fas fa-gavel text-xl sm:text-2xl"></i>
<h1 class="text-lg sm:text-2xl font-bold">Stellar Sealed-Bid Auction</h1>
<span class="bg-purple-600 px-2 py-1 rounded text-xs hidden sm:inline">Blockchain</span>
</div>
<div class="flex items-center space-x-2 sm:space-x-4 w-full sm:w-auto">
<div id="stellarWalletInfo" class="hidden">
<span id="walletAddress" class="text-xs sm:text-sm text-gray-300 truncate max-w-[120px] sm:max-w-none">GD5...ABC123</span>
<span id="walletBalance" class="text-xs sm:text-sm font-semibold ml-2">100 XLM</span>
</div>
<button onclick="toggleWallet()" class="bg-purple-600 hover:bg-purple-700 px-3 py-2 sm:px-4 rounded-lg transition text-sm sm:text-base w-full sm:w-auto">
<i class="fas fa-wallet mr-2"></i><span class="hidden sm:inline">Connect Wallet</span><span class="sm:hidden">Wallet</span>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Navigation Tabs -->
<div class="glass-effect rounded-xl p-1 mb-8">
<div class="flex flex-col sm:flex-row space-x-0 sm:space-x-1 space-y-1 sm:space-y-0">
<button onclick="showTab('auctions')" id="auctionsTab" class="flex-1 py-2 sm:py-3 px-3 sm:px-4 rounded-lg bg-purple-600 transition text-sm sm:text-base">
<i class="fas fa-list mr-2"></i><span class="hidden sm:inline">Auctions</span><span class="sm:hidden">List</span>
</button>
<button onclick="showTab('create')" id="createTab" class="flex-1 py-2 sm:py-3 px-3 sm:px-4 rounded-lg hover:bg-purple-500 transition text-sm sm:text-base">
<i class="fas fa-plus mr-2"></i><span class="hidden sm:inline">Create Auction</span><span class="sm:hidden">Create</span>
</button>
<button onclick="showTab('myBids')" id="myBidsTab" class="flex-1 py-2 sm:py-3 px-3 sm:px-4 rounded-lg hover:bg-purple-500 transition text-sm sm:text-base">
<i class="fas fa-coins mr-2"></i><span class="hidden sm:inline">My Bids</span><span class="sm:hidden">Bids</span>
</button>
</div>
</div>
<!-- Auctions Tab -->
<div id="auctionsContent" class="tab-content">
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6" id="auctionsGrid">
<!-- Sample Auction Cards -->
<div class="glass-effect rounded-xl p-4 sm:p-6 hover:transform hover:scale-105 transition">
<div class="flex flex-col sm:flex-row sm:justify-between sm:items-start mb-4 space-y-2 sm:space-y-0">
<h3 class="text-lg sm:text-xl font-bold truncate flex-1 pr-2">Vintage Watch Collection</h3>
<span class="px-2 py-1 rounded text-xs bg-green-500 bg-opacity-30 border border-green-500 flex-shrink-0">
active
</span>
</div>
<p class="text-gray-300 mb-4 text-sm sm:text-base line-clamp-3">Rare vintage watch collection from the 1960s. Includes multiple luxury timepieces in excellent condition. Perfect for collectors and enthusiasts.</p>
<div class="space-y-2 mb-4 text-sm sm:text-base">
<div class="flex justify-between">
<span class="truncate pr-2">Starting Bid:</span>
<span class="font-semibold flex-shrink-0">$500.00</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Current Highest:</span>
<span class="font-semibold text-green-400 flex-shrink-0">$750.00</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Bids:</span>
<span class="font-semibold flex-shrink-0">12</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Ends:</span>
<span class="text-xs sm:text-sm flex-shrink-0">12/25/2026, 3:30 PM</span>
</div>
</div>
<div class="flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-2">
<button class="flex-1 bg-purple-600 hover:bg-purple-700 py-2 rounded-lg transition text-sm sm:text-base">
<i class="fas fa-gavel mr-2"></i>Place Bid
</button>
<button class="flex-1 bg-gray-600 hover:bg-gray-700 py-2 rounded-lg transition text-sm sm:text-base">
<i class="fas fa-eye mr-2"></i>Details
</button>
</div>
</div>
<div class="glass-effect rounded-xl p-4 sm:p-6 hover:transform hover:scale-105 transition">
<div class="flex flex-col sm:flex-row sm:justify-between sm:items-start mb-4 space-y-2 sm:space-y-0">
<h3 class="text-lg sm:text-xl font-bold truncate flex-1 pr-2">Antique Furniture Set</h3>
<span class="px-2 py-1 rounded text-xs bg-green-500 bg-opacity-30 border border-green-500 flex-shrink-0">
active
</span>
</div>
<p class="text-gray-300 mb-4 text-sm sm:text-base line-clamp-3">Beautiful antique furniture set including dining table, chairs, and cabinet. Handcrafted with premium wood and intricate carvings.</p>
<div class="space-y-2 mb-4 text-sm sm:text-base">
<div class="flex justify-between">
<span class="truncate pr-2">Starting Bid:</span>
<span class="font-semibold flex-shrink-0">$1,200.00</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Current Highest:</span>
<span class="font-semibold text-green-400 flex-shrink-0">$1,500.00</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Bids:</span>
<span class="font-semibold flex-shrink-0">8</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Ends:</span>
<span class="text-xs sm:text-sm flex-shrink-0">12/26/2026, 5:00 PM</span>
</div>
</div>
<div class="flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-2">
<button class="flex-1 bg-purple-600 hover:bg-purple-700 py-2 rounded-lg transition text-sm sm:text-base">
<i class="fas fa-gavel mr-2"></i>Place Bid
</button>
<button class="flex-1 bg-gray-600 hover:bg-gray-700 py-2 rounded-lg transition text-sm sm:text-base">
<i class="fas fa-eye mr-2"></i>Details
</button>
</div>
</div>
<div class="glass-effect rounded-xl p-4 sm:p-6 hover:transform hover:scale-105 transition">
<div class="flex flex-col sm:flex-row sm:justify-between sm:items-start mb-4 space-y-2 sm:space-y-0">
<h3 class="text-lg sm:text-xl font-bold truncate flex-1 pr-2">Rare Book Collection</h3>
<span class="px-2 py-1 rounded text-xs bg-red-500 bg-opacity-30 border border-red-500 flex-shrink-0">
ended
</span>
</div>
<p class="text-gray-300 mb-4 text-sm sm:text-base line-clamp-3">First edition rare books including classic literature and historical manuscripts. Excellent condition with original bindings.</p>
<div class="space-y-2 mb-4 text-sm sm:text-base">
<div class="flex justify-between">
<span class="truncate pr-2">Starting Bid:</span>
<span class="font-semibold flex-shrink-0">$300.00</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Current Highest:</span>
<span class="font-semibold text-green-400 flex-shrink-0">$450.00</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Bids:</span>
<span class="font-semibold flex-shrink-0">15</span>
</div>
<div class="flex justify-between">
<span class="truncate pr-2">Ends:</span>
<span class="text-xs sm:text-sm flex-shrink-0">12/23/2026, 2:00 PM</span>
</div>
</div>
<div class="bg-green-500 bg-opacity-20 border border-green-500 rounded-lg p-3 mb-4">
<p class="text-xs sm:text-sm"><strong>Winner:</strong> JohnDoe123</p>
<p class="text-xs sm:text-sm"><strong>Winning Bid:</strong> $450.00</p>
</div>
<div class="flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-2">
<button class="flex-1 bg-gray-600 hover:bg-gray-700 py-2 rounded-lg transition text-sm sm:text-base">
<i class="fas fa-eye mr-2"></i>Details
</button>
</div>
</div>
</div>
</div>
<!-- Create Auction Tab -->
<div id="createContent" class="tab-content hidden">
<div class="glass-effect rounded-xl p-4 sm:p-6 lg:p-8 max-w-2xl mx-auto">
<h2 class="text-xl sm:text-2xl font-bold mb-6">Create New Auction</h2>
<form class="space-y-4 sm:space-y-6">
<div>
<label class="block text-sm font-medium mb-2">Title</label>
<input type="text" class="w-full px-3 sm:px-4 py-2 rounded-lg bg-white bg-opacity-20 border border-white border-opacity-30 focus:outline-none focus:ring-2 focus:ring-purple-400 text-sm sm:text-base" placeholder="Enter auction title">
</div>
<div>
<label class="block text-sm font-medium mb-2">Description</label>
<textarea rows="4" class="w-full px-3 sm:px-4 py-2 rounded-lg bg-white bg-opacity-20 border border-white border-opacity-30 focus:outline-none focus:ring-2 focus:ring-purple-400 text-sm sm:text-base" placeholder="Describe your item"></textarea>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
<div>
<label class="block text-sm font-medium mb-2">Starting Bid ($)</label>
<input type="number" min="0" step="0.01" class="w-full px-3 sm:px-4 py-2 rounded-lg bg-white bg-opacity-20 border border-white border-opacity-30 focus:outline-none focus:ring-2 focus:ring-purple-400 text-sm sm:text-base" placeholder="0.00">
</div>
<div>
<label class="block text-sm font-medium mb-2">End Time</label>
<input type="datetime-local" class="w-full px-3 sm:px-4 py-2 rounded-lg bg-white bg-opacity-20 border border-white border-opacity-30 focus:outline-none focus:ring-2 focus:ring-purple-400 text-sm sm:text-base">
</div>
</div>
<button type="submit" class="w-full bg-purple-600 hover:bg-purple-700 py-2 sm:py-3 rounded-lg transition font-semibold text-sm sm:text-base">
<i class="fas fa-gavel mr-2"></i>Create Auction
</button>
</form>
</div>
</div>
<!-- My Bids Tab -->
<div id="myBidsContent" class="tab-content hidden">
<div class="glass-effect rounded-xl p-4 sm:p-6 lg:p-8">
<h2 class="text-xl sm:text-2xl font-bold mb-6">Your Bids</h2>
<div class="space-y-3 sm:space-y-4">
<div class="glass-effect rounded-lg p-4">
<h3 class="font-semibold mb-2">Vintage Watch Collection</h3>
<p class="text-sm text-gray-300">Your bid: $800.00</p>
<p class="text-xs text-gray-400">Status: Active</p>
</div>
<div class="glass-effect rounded-lg p-4">
<h3 class="font-semibold mb-2">Antique Furniture Set</h3>
<p class="text-sm text-gray-300">Your bid: $1,600.00</p>
<p class="text-xs text-gray-400">Status: Outbid</p>
</div>
</div>
</div>
</div>
</main>
<script>
function showTab(tabName) {
// Hide all tabs
document.querySelectorAll('.tab-content').forEach(tab => {
tab.classList.add('hidden');
});
// Remove active state from all tab buttons
document.querySelectorAll('[id$="Tab"]').forEach(btn => {
btn.classList.remove('bg-purple-600');
btn.classList.add('hover:bg-purple-500');
});
// Show selected tab
document.getElementById(tabName + 'Content').classList.remove('hidden');
// Add active state to selected tab button
const activeTab = document.getElementById(tabName + 'Tab');
activeTab.classList.add('bg-purple-600');
activeTab.classList.remove('hover:bg-purple-500');
}
function toggleWallet() {
const walletInfo = document.getElementById('stellarWalletInfo');
const walletBtn = document.querySelector('button[onclick="toggleWallet()"]');
if (walletInfo.classList.contains('hidden')) {
walletInfo.classList.remove('hidden');
walletBtn.innerHTML = '<i class="fas fa-wallet mr-2"></i><span class="hidden sm:inline">Disconnect</span><span class="sm:hidden">Disconnect</span>';
} else {
walletInfo.classList.add('hidden');
walletBtn.innerHTML = '<i class="fas fa-wallet mr-2"></i><span class="hidden sm:inline">Connect Wallet</span><span class="sm:hidden">Wallet</span>';
}
}
// Initialize
showTab('auctions');
</script>
</body>
</html>