js+css打造的ai工具箱app原型图ui交互效果代码

代码语言:html

所属分类:其他

代码描述:js+css打造的ai工具箱app原型图ui交互效果代码

代码标签: js css 打造 ai 工具箱 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>AI工具箱 - 专业AI工具集合</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
        }

        .app-container {
            max-width: 414px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
            box-shadow: 0 0 30px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }

        .page {
            display: none;
            animation: slideIn 0.3s ease-out;
        }

        .page.active {
            display: block;
        }

        @keyframes slideIn {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }

        /* 顶部导航 */
        .top-nav {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px 20px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .back-btn {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            padding: 5px;
        }

        .nav-title {
            font-size: 18px;
            font-weight: 600;
        }

        .nav-action {
            color: white;
            text-decoration: none;
            font-size: 14px;
        }

        /* 首页样式 */
        .hero-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px 20px;
            text-align: center;
        }

        .hero-title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .hero-subtitle {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .search-box {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 25px;
            padding: 12px 20px;
            color: white;
            width: 100%;
            font-size: 16px;
            backdrop-filter: blur(10px);
        }

        .search-box::placeholder {
            color: rgba(255,255,255,0.7);
        }

        /* 分类网格 */
        .categories-grid {
            padding: 30px 20px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .category-card {
            background: white;
            border-radius: 16px;
            padding: 24px 16px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            color: inherit;
        }

        .category-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        }

        .category-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            margin: 0 auto 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .category-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .category-desc {
            font-size: 12px;
            color: #64748b;
        }

        /* 工具列表 */
        .tools-list {
            padding: 20px;
        }

        .tool-item {
            background: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            color: inherit;
        }

        .tool-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        .tool-logo {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            margin-right: 16px;
            object-fit: cover;
        }

        .tool-info {
            flex: 1;
        }

        .tool-name {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .tool-desc {
            font-size: 14px;
            color: #64748b;
            margin-bottom: 4px;
        }

        .tool-tags {
            display: flex;
            gap: 6px;
        }

        .tag {
            background: #f1f5f9;
            color: #475569;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        /* 工具详情页 */
        .tool-detail {
            padding: 0;
        }

        .tool-hero {
            height: 200px;
            background: url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=800&h=400&fit=crop') center/cover;
            position: relative;
        }

        .tool-hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
        }

        .tool-detail-content {
            padding: 20px;
            margin-top: -50px;
            position: relative;
            z-index: 2;
        }

        .tool-detail-card {
            background: white;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0