组件 文件查看器 文件查看器组件

文件查看器组件

一个响应式文件查看器组件,采用粗犷主义风格,支持深色主题,并使用Tailwind CSS。

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-200 dark:bg-gray-800 p-4">
    <div class="bg-white dark:bg-gray-900 border border-gray-400 dark:border-gray-700 rounded-lg shadow-lg p-6 w-full max-w-3xl">
        <h1 class="text-3xl font-bold text-gray-800 dark:text-white mb-4">File Viewer</h1>
        <div class="flex items-center mb-4">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="rounded-full h-12 w-12 border-2 border-gray-600">
            <span class="ml-3 text-xl font-medium text-gray-800 dark:text-white">Uploaded by John Doe</span>
        </div>
        <div class="flex mb-4">
            <h2 class="text-2xl font-bold text-gray-800 dark:text-white">File: Project Report.pdf</h2>
            <div class="ml-auto text-lg font-semibold text-gray-600 dark:text-gray-300">10 MB</div>
        </div>
        <p class="text-gray-600 dark:text-gray-300 mb-6">
            This document contains a detailed report on project progress and future milestones. Please review it carefully.
        </p>
        <img src="https://picsum.photos/600/400" alt="Placeholder Image" class="rounded-md mb-4">
        <div class="flex justify-between">
            <button class="bg-gray-800 text-white font-bold py-2 px-4 rounded hover:bg-gray-600 transition duration-200">Download</button>
            <button class="bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded hover:bg-gray-400 transition duration-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600">Delete</button>
        </div>
    </div>
</div>

相关组件

文件查看器组件

一个受材料设计启发的文件查看器组件,展示带有预览图像、文件名、文件大小和用户头像的文件列表。支持响应式设计和暗主题。

打开

文件查看器组件

用于电子商务的响应式文件查看器组件,具有 3D 设计、互补配色方案和简单布局,支持使用 Tailwind CSS 的深色模式。它显示产品文件或文档。

打开

文件查看器组件

一个极简而扁平的设计文件查看器组件,适用于仪表板设置中的数据可视化,具有单色配色方案和深色主题支持。

打开