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

文件查看器组件

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

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 shadow rounded-lg p-6 max-w-md mx-auto mt-10">
    <h2 class="text-2xl font-bold text-gray-800 dark:text-gray-200 mb-4">File Viewer</h2>
    <div class="border-b border-gray-300 dark:border-gray-600 mb-4">
        <h3 class="text-xl font-semibold text-gray-700 dark:text-gray-200">Document Title</h3>
        <p class="text-gray-600 dark:text-gray-400">Uploaded by: <span class="font-medium">John Doe</span></p>
    </div>
    <div class="flex flex-col items-center mb-4">
        <img src="https://picsum.photos/200/100" alt="File Preview" class="rounded-lg shadow-md mb-4" />
        <p class="text-gray-700 dark:text-gray-300 text-center">File Description: This is a placeholder file viewer that shows brief file details and presentation.</p>
    </div>
    <div class="flex justify-between items-center">
        <span class="text-gray-600 dark:text-gray-400">File Size: 2.3 MB</span>
        <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded shadow">Download</button>
    </div>
</div>

相关组件

文件查看器组件

支持深色模式的响应式 File Viewer 组件

打开

文件查看器组件

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

打开

复古文件查看器组件

一个具有响应布局和暗主题支持的复古/古董文件查看组件。包括带图标和名称的文件列表,以及预览区域。使用复古风格的字体和颜色。

打开