css布局实现一个健身类app的ui原型图代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现一个健身类app的ui原型图代码
代码标签: css 布局 健身类 app ui 原型图 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Elite Fitness - 高端健身应用</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: #ffffff; overflow-x: hidden; } .container { max-width: 375px; margin: 0 auto; background: #000; min-height: 100vh; position: relative; } .page { width: 100%; min-height: 100vh; padding: 20px; display: none; position: relative; } .page.active { display: block; } .header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255, 215, 0, 0.2); } .logo { font-size: 24px; font-weight: 700; background: linear-gradient(45deg, #FFD700, #FFA500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .nav-buttons { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 375px; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(20px); padding: 15px 0; border-top: 1px solid rgba(255, 215, 0, 0.2); display: flex; justify-content: space-around; z-index: 100; } .nav-btn { background: none; border: none; color: #888; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; transition: all 0.3s ease; } .nav-btn.active { color: #FFD700; } .nav-btn svg { width: 24px; height: 24px; fill: currentColor; } .hero-section { text-align: center; padding: 40px 0; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=400&h=600&fit=crop') center/cover; border-radius: 20px; margin: 20px 0; } .hero-title { font-size: 32px; font-weight: 800; margin-bottom: 10px; background: linear-gradient(45deg, #FFD700, #FFA500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .hero-subtitle { font-size: 16px; color: #ccc; margin-bottom: 30px; } .btn-primary { background: linear-gradient(45deg, #FFD700, #FFA500); color: #000; border: none; padding: 15px 40px; border-radius: 25px; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s ease; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3); } .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 30px 0; } .stat-card { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); padding: 20px; border-radius: 15px; border: 1px solid rgba(255, 215, 0, 0.2); text-align: center; } .stat-number { font-size: 28px; font-weight: 700; color: #FFD700; margin-bottom: 5px; } .stat-label { font-size: 14px; color: #888; } .workout-card { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); border-radius: 15px; overflow: hidden; margin: 15px 0; border: 1px solid rgba(255, 215, 0, 0.2); } .workout-image { width: 100%; height: 200px; object-fit: cover; } .workout-content { padding: 20px; } .workout-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: #FFD700; } .workout-meta { display: flex; justify-content: space-between; color: #888; font-size: 14px; margin-bottom: 15px; } .progress-section { margin: 30px 0; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0