tailwind布局实现考试做题做试卷答题卡倒计时ui代码

代码语言:html

所属分类:布局界面

代码描述:tailwind布局实现考试做题做试卷答题卡倒计时ui代码

代码标签: tailwind 布局 考试 做题 做试卷 答题卡 倒计时 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>英皇乐理5级考试 - Piano Learning 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>
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        /* 选项样式 */
        .option-item {
            transition: all 0.2s ease;
        }
        .option-item:hover {
            background-color: rgba(124, 58, 237, 0.05);
        }
        .option-item.selected {
            background-color: rgba(124, 58, 237, 0.1);
            border-color: #7c3aed;
        }
        /* 题目导航 */
        .question-nav-item {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            border: 1px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .question-nav-item:hover {
            border-color: #7c3aed;
        }
        .question-nav-item.active {
            background-color: #7c3aed;
            color: white;
            border-color: #7c3aed;
        }
        .question-nav-item.completed {
            background-color: #10b981;
            color: white;
            border-color: #10b981;
        }
        .question-nav-item.marked {
            border-color: #f59e0b;
            color: #f59e0b;
            font-weight: bold;
        }
        /* 计时器 */
        .timer {
            transition: color 0.3s ease;
        }
        .timer.warning {
            color: #f59e0b;
        }
        .timer.danger {
            color: #dc2626;
            animation: pulse 1s infinite;
        }
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        /* 动画 */
        .fade-enter { opacity: 0; transform: translateY(10px); }
        .fade-enter-active { opacity: 1; transform: translateY(0); transition: all 300ms ease-out; }
    </style>
</head>
<body class="bg-gray-50 min-h-screen">
    <!-- Header -->
    <header class="bg-white shadow-lg sticky top-0 z-40">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center h-16">
                <div class="flex items-center">
                    <div class="w-40 h-10 bg-gray-200 rounded flex items-center justify-center">
                        <i class="fas fa-music text-purple-600 text-xl mr-2"></i>
                        <span class="text-gray-500 text-sm">Logo位置</span>
                    </div>
                </div>
                <nav class="hidden md:flex space-x-8">
                    <a href="#" class="text-gray-700 hover:text-purple-600">首页</a>
                    <a href="#" class="text-gray-700 hover:text-purple-600">课程</a>
                    <a href="#" class="text-gray-700 hover:text-purple-600">练习</a>
                    <a href="#" class="text-purple-600 font-bold border-b-2 border-purple-600">考试</a>
                    <a href="#" class="text-gray-700 hover:text-purple-600">关于</a>
                </nav>
                <div class="flex items-center space-x-6">
                    <div class="hidden sm:flex items-center space-x-4 text-sm">
                        <div class="flex items-center text-gray-600"><i class="fas fa-user-circle text-blue-500 mr-1"></i><span>1872233***</span></div>
                    </div>
                    <button class="md:hidden"><i class="fas fa-bars text-gray-600"></i></button>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        <!-- 考试信息栏 -->
        <div class="bg-white rounded-lg shadow-md p-4 mb-6 flex flex-col sm:flex-row justify-between items-center">
            <div class="flex items-center mb-4 sm:mb-0">
                <h1 class="text-xl font-bold text-gray-800 mr-4">英皇乐理5级模拟考试2023秋季版</h1>
                <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2.5 py-0.5 rounded">限时45分钟</span>
            </div>
            <div class=&qu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0