Spaces:
Running
Running
File size: 15,713 Bytes
a383d0e |
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 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>
Bounding Boxes Layout
</title>
<style>
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.container {
position: relative;
width: 100%;
height: 100%;
box-sizing: border-box;
}
.box {
position: absolute;
box-sizing: border-box;
overflow: hidden;
}
.box > .container {
display: grid;
width: 100%;
height: 100%;
}
</style>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
<div class="box" id="1" style="left: 0.4905395935529082%; top: 0.1770956316410862%; width: 14.891380518570427%; height: 98.99645808736717%;">
<div class="flex flex-col justify-between h-full p-4 bg-white">
<!-- 主要导航区域 -->
<div class="flex flex-col space-y-6">
<div class="text-3xl font-bold">
Instagram
</div>
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M12 2L2 9h3v12h14v-12h3L12 2zm0 14H7v-7h10v7zm0-9H7V6h10v1z">
</path>
</svg>
<span>
首页
</span>
</div>
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-.24-1.02-.37-1.61-.37-1.4 0-2.5.99-2.89 2.34h-3v-2h3c.03-.89.46-1.75 1.23-2.33C11.99 3.5 13.1 3 14.5 3c1.65 0 3 1.35 3 3s-1.35 3-3 3c-.59 0-1.14-.13-1.61-.37a6.5 6.5 0 0 0-1.48 5.34l-.28.27v.79l5 4.99L15.5 14z">
</path>
</svg>
<span>
搜索
</span>
</div>
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-1.96.64-3.78 1.74-5.21L7.4 10.8a7.97 7.97 0 0 1 2.6 0l1.66-1.66C15.36 8.22 16 10.04 16 12c0 4.41-3.59 8-8 8zm0-14c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z">
</path>
</svg>
<span>
探索
</span>
</div>
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-1.57.46-3.08 1.28-4.32l1.44 1.44C7.9 12.5 7 14.2 7 16c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.8-.9-3.5-2.28-4.44l1.44-1.44C19.54 8.92 20 10.43 20 12c0 4.41-3.59 8-8 8zm3-8H9v-2h6v2z">
</path>
</svg>
<span>
Reels
</span>
</div>
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z">
</path>
</svg>
<span>
消息
</span>
</div>
<div class="flex items-center space-x-4 relative">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35zm-2.25-5.5c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4.5 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z">
</path>
</svg>
<span>
通知
</span>
<span class="absolute top-0 right-[-8px] bg-red-500 text-white text-xs rounded-full h-3 w-3 flex items-center justify-center">
•
</span>
</div>
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z">
</path>
</svg>
<span>
创建
</span>
</div>
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-gray-500" viewbox="0 0 24 24">
<circle cx="12" cy="12" r="4">
</circle>
</svg>
<span>
主页
</span>
</div>
</div>
<!-- 底部导航区域 -->
<div class="flex flex-col space-y-4">
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-1.8.6-3.5 1.5-4.9C7.5 6.6 9.2 6 11 6c1.8 0 3.5.6 4.9 1.1 1.3 1.4 2.1 3.1 2.1 4.9 0 4.41-3.59 8-8 8zm0-14c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z">
</path>
</svg>
<span>
Threads
</span>
</div>
<div class="flex items-center space-x-4">
<svg class="w-6 h-6 fill-black" viewbox="0 0 24 24">
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z">
</path>
</svg>
<span>
更多
</span>
</div>
</div>
</div>
</div>
<div class="box" id="2" style="left: 24.487035739313246%; top: 0.1770956316410862%; width: 84.09250175192712%; height: 30.047225501770956%;">
<div class="flex items-center space-x-8 p-6">
<!-- 头像及渐变环 -->
<div class="relative">
<svg class="w-40 h-40" viewbox="0 0 200 200">
<defs>
<lineargradient id="avatar-gradient" x1="0%" x2="100%" y1="0%" y2="100%">
<stop offset="0%" stop-color="#ff28a4">
</stop>
<stop offset="100%" stop-color="#ffb646">
</stop>
</lineargradient>
</defs>
<circle cx="100" cy="100" fill="transparent" r="90" stroke="url(#avatar-gradient)" stroke-width="10">
</circle>
</svg>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-36 h-36 bg-gray-400 rounded-full">
</div>
</div>
<!-- 右侧信息区域 -->
<div class="flex flex-col">
<!-- 顶部栏:用户名 + 认证 + 按钮 -->
<div class="flex items-center space-x-2">
<h1 class="text-xl font-bold">
mirandakerr
</h1>
<!-- 认证徽章 -->
<svg class="w-5 h-5 text-blue-600" fill="currentColor" viewbox="0 0 20 20">
<path d="M16.704 3.296a.75.75 0 011.06 1.06l-2.5 2.5a.75.75 0 01-1.06 0l-1.5-1.5a.75.75 0 111.06-1.06l.94.94 2.04-2.04z">
</path>
</svg>
<button class="px-4 py-2 bg-blue-600 text-white rounded font-medium">
关注
</button>
<button class="px-4 py-2 bg-gray-200 text-gray-700 rounded font-medium">
发消息
</button>
<button class="flex items-center justify-center w-8 h-8 bg-gray-200 rounded">
<svg class="w-5 h-5 text-gray-700" fill="currentColor" viewbox="0 0 20 20">
<path d="M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z">
</path>
</svg>
</button>
<button class="flex items-center justify-center w-8 h-8 bg-gray-200 rounded">
<svg class="w-5 h-5 text-gray-700" fill="currentColor" viewbox="0 0 20 20">
<path d="M5 5a1 1 0 112 0v8a1 1 0 11-2 0V5zm6 0a1 1 0 112 0v8a1 1 0 11-2 0V5z">
</path>
</svg>
</button>
</div>
<!-- 统计数据 -->
<div class="mt-4 flex space-x-6">
<div>
<span class="font-bold">
3206
</span>
帖子
</div>
<div>
<span class="font-bold">
1438万
</span>
粉丝
</div>
<div>
<span class="font-bold">
7496
</span>
关注
</div>
</div>
<!-- 名字 -->
<div class="mt-2 text-lg font-semibold">
Miranda Kerr
</div>
<!-- @用户名 -->
<div class="mt-1 text-gray-600">
@mirandakerr
</div>
<!-- 简介 -->
<div class="mt-1">
Founder & CEO of
<span class="text-blue-600">
@koraorganics
</span>
<svg class="inline w-4 h-4 text-yellow-300" fill="currentColor" viewbox="0 0 20 20">
<path d="M10 1.25a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 1.25zm0 4.75a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75zm0 4.75a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75zm0 4.75a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75z">
</path>
</svg>
</div>
<!-- 链接 -->
<div class="mt-1 text-blue-600">
<svg class="inline w-5 h-5" fill="currentColor" viewbox="0 0 20 20">
<path d="M13.5 6a2.5 2.5 0 10-5 0v8a2.5 2.5 0 005 0V6zm-1.25 7a1.25 1.25 0 112.5 0v1.5a.75.75 0 01-1.5 0v-1.5a1.25 1.25 0 01-1.25-1.25zM6.5 3a1 1 0 00-1 1v12a1 1 0 001 1h7a1 1 0 001-1V4a1 1 0 00-1-1h-7z">
</path>
</svg>
linktr.ee/mirandakerr
</div>
<!-- 关注者提示 -->
<div class="mt-2 text-gray-600">
cristiano关注了
</div>
</div>
</div>
</div>
<div class="box" id="3" style="left: 24.487035739313246%; top: 30.22432113341204%; width: 84.09250175192712%; height: 15.407319952774499%;">
<div class="flex items-center space-x-20 overflow-x-auto px-4 py-2">
<div class="flex flex-col items-center">
<svg class="w-20 h-20 rounded-full bg-gray-400" viewbox="0 0 24 24">
<rect fill="gray" height="24" width="24" x="0" y="0">
</rect>
</svg>
<p class="mt-1 text-sm font-medium">
KORA Glow
</p>
</div>
<div class="flex flex-col items-center">
<svg class="w-20 h-20 rounded-full bg-gray-400" viewbox="0 0 24 24">
<rect fill="gray" height="24" width="24" x="0" y="0">
</rect>
</svg>
<p class="mt-1 text-sm font-medium">
KORA Orga...
</p>
</div>
<div class="flex flex-col items-center">
<svg class="w-20 h-20 rounded-full bg-gray-400" viewbox="0 0 24 24">
<rect fill="gray" height="24" width="24" x="0" y="0">
</rect>
</svg>
<p class="mt-1 text-sm font-medium">
Events
</p>
</div>
<div class="flex flex-col items-center">
<svg class="w-20 h-20 rounded-full bg-gray-400" viewbox="0 0 24 24">
<rect fill="gray" height="24" width="24" x="0" y="0">
</rect>
</svg>
<p class="mt-1 text-sm font-medium">
MK Home
</p>
</div>
<div class="flex flex-col items-center">
<svg class="w-20 h-20 rounded-full bg-gray-400" viewbox="0 0 24 24">
<rect fill="gray" height="24" width="24" x="0" y="0">
</rect>
</svg>
<p class="mt-1 text-sm font-medium">
Self-care
</p>
</div>
<div class="flex flex-col items-center">
<svg class="w-20 h-20 rounded-full bg-gray-400" viewbox="0 0 24 24">
<rect fill="gray" height="24" width="24" x="0" y="0">
</rect>
</svg>
<p class="mt-1 text-sm font-medium">
Tutorials
</p>
</div>
<div class="flex flex-col items-center">
<svg class="w-20 h-20 rounded-full bg-gray-400" viewbox="0 0 24 24">
<rect fill="gray" height="24" width="24" x="0" y="0">
</rect>
</svg>
<p class="mt-1 text-sm font-medium">
Wellness W...
</p>
</div>
</div>
</div>
<div class="box" id="4" style="left: 24.487035739313246%; top: 45.63164108618654%; width: 84.09250175192712%; height: 53.54191263282172%;">
<div>
<div class="flex justify-center border-b">
<div class="flex items-center px-4 py-3 border-b-2 border-black">
<svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zm0 6a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1v-2zm0 6a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1v-2z" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
</path>
</svg>
<span>
帖子
</span>
</div>
<div class="flex items-center px-4 py-3 text-gray-700">
<svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.26c0 .537.213 1.052.555 1.402l3.197 2.132a1 1 0 001.448-1.074l-.448-2.685a2 2 0 012.944-2.143l2.685.448a1 1 0 001.074-1.448l-2.132-3.197a1 1 0 00-1.402-.555l-4.26.213a2 2 0 01-2.143-2.944l.448-2.685a1 1 0 00-1.074-1.448l-2.132 3.197A1 1 0 009.87 10h4.26c.537 0 1.052.213 1.402.555z" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
</path>
</svg>
<span>
REELS
</span>
</div>
<div class="flex items-center px-4 py-3 text-gray-700">
<svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l2 2c.391.391.586.902.586 1.414v5c0 .512-.195 1.024-.586 1.414l-2 2A2.001 2.001 0 0112 19h-5c-.512 0-1.024-.195-1.414-.586L3 16.414V11c0-.512.195-1.024.586-1.414L7 7zm2 4a2 2 0 114 0 2 2 0 01-4 0z" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
</path>
</svg>
<span>
标记内容
</span>
</div>
</div>
<div class="grid grid-cols-3 gap-2 mt-2">
<div class="relative">
<div class="bg-gray-400 w-full h-96">
</div>
<div class="absolute top-2 right-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zm0 6a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1v-2zm0 6a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1v-2z" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
</path>
</svg>
</div>
</div>
<div class="relative">
<div class="bg-gray-400 w-full h-96">
</div>
<div class="absolute top-2 right-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.26c0 .537.213 1.052.555 1.402l3.197 2.132a1 1 0 001.448-1.074l-.448-2.685a2 2 0 012.944-2.143l2.685.448a1 1 0 001.074-1.448l-2.132-3.197a1 1 0 00-1.402-.555l-4.26.213a2 2 0 01-2.143-2.944l.448-2.685a1 1 0 00-1.074-1.448l-2.132 3.197A1 1 0 009.87 10h4.26c.537 0 1.052.213 1.402.555z" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
</path>
</svg>
</div>
</div>
<div class="relative">
<div class="bg-gray-400 w-full h-96">
</div>
<div class="absolute top-2 right-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zm0 6a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1v-2zm0 6a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1v-2z" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
</path>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|