ビデオプレーヤーコンポーネント
マテリアルデザインの原則を使用して設計されたシンプルなビデオプレーヤーコンポーネントで、レスポンシブレイアウトとダークテーマがサポートされています。
HTMLコード
<div class="max-w-xl mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden mt-8">
<div class="relative overflow-hidden">
<video class="w-full h-auto" controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<div class="p-4">
<h2 class="text-lg font-semibold text-gray-800 dark:text-white">Video Title</h2>
<p class="text-gray-600 dark:text-gray-300 mt-1">This is a short description of the video content. It provides useful information about what the viewer can expect.</p>
<div class="flex items-center mt-4">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-10 h-10 rounded-full mr-2">
<div>
<p class="text-gray-800 dark:text-white">Author Name</p>
<p class="text-gray-500 dark:text-gray-400 text-sm">Date Uploaded</p>
</div>
</div>
</div>
</div>
関連コンポーネント
Retro Video Playerコンポーネント
レトロ/ビンテージの美学でデザインされたインタラクティブビデオプレーヤーコンポーネントで、グレースケールの配色とeコマース目的に適した複数のインタラクティブ要素が特徴で、ダークモードがサポートされています。
ビデオプレーヤーコンポーネント
曇りガラスのような半透明の要素、パステルカラーの配色、ビジネス/企業のWebサイトに適した複雑なインターフェイスを備えたGlassmorphismスタイルのビデオプレーヤー。レスポンシブデザインと、JavaScriptなしでTailwind CSSを使用したダークテーマをサポートしています。