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

文件查看器组件

一个受怀旧的 80/90 年代美学启发的文件查看组件,使用 Tailwind CSS 设计,支持响应效果和暗黑主题。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 max-w-md mx-auto">
    <h2 class="text-2xl font-bold mb-4 text-center text-gray-800 dark:text-white">File Viewer</h2>
    <div class="flex flex-col items-center">
        <div class="mb-4">
            <img src="https://picsum.photos/200/150" alt="File Thumbnail" class="w-full h-auto rounded-lg shadow-md transition-transform duration-300 hover:scale-105" />
        </div>
        <div class="text-center">
            <h3 class="text-lg font-semibold text-gray-700 dark:text-gray-300">File Name: Example Document.pdf</h3>
            <p class="text-sm text-gray-500 dark:text-gray-400">Uploaded by:</p>
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mx-auto" />
            <p class="text-sm text-gray-700 dark:text-gray-300">John Doe</p>
            <p class="text-xs text-gray-500 dark:text-gray-400">Uploaded on: June 10, 2023</p>
        </div>
        <div class="mt-4">
            <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded transition duration-300">Open File</button>
            <button class="ml-2 bg-gray-300 dark:bg-gray-600 hover:bg-gray-400 dark:hover:bg-gray-500 text-gray-800 dark:text-white font-bold py-2 px-4 rounded transition duration-300">Delete File</button>
        </div>
    </div>
</div>

相关组件

文件查看器组件

一个具有响应式设计和暗黑模式支持的野兽派文件查看组件,使用Tailwind CSS。

打开

File Viewer 组件

一个复杂的响应式文件查看器组件,具有包豪斯风格的设计,使用相似的颜色,适用于工作委员会和职业发展平台。包括深色模式支持。

打开

文件查看器组件

一个响应式文件查看器组件,采用材料设计原则,使用 Tailwind CSS,支持暗主题。

打开