チャットウィンドウコンポーネント
マテリアルデザインスタイルでデザインされたシンプルなチャットウィンドウコンポーネントで、ダークテーマとソーシャルメディアインターフェースに適したレスポンシブレイアウトを備えています。
HTMLコード
<div class="h-screen bg-gray-100 dark:bg-gray-800 flex flex-col justify-end">
<div class="max-w-md w-full bg-white dark:bg-gray-900 rounded-lg shadow-lg p-4">
<div class="flex flex-col space-y-4 overflow-y-scroll h-80">
<div class="flex items-start space-x-2">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar" class="w-8 h-8 rounded-full">
<div class="bg-blue-500 text-white p-2 rounded-lg rounded-bl-none">
Hello, how are you?
</div>
</div>
<div class="flex items-start space-x-2">
<img src="https://randomuser.me/api/portraits/women/32.jpg" alt="User Avatar" class="w-8 h-8 rounded-full">
<div class="bg-gray-300 text-gray-800 p-2 rounded-lg rounded-br-none">
I'm good, thanks! How about you?
</div>
</div>
<div class="flex items-start space-x-2">
<img src="https://randomuser.me/api/portraits/men/33.jpg" alt="User Avatar" class="w-8 h-8 rounded-full">
<div class="bg-blue-500 text-white p-2 rounded-lg rounded-bl-none">
I'm doing well! Ready for the weekend?
</div>
</div>
</div>
<div class="mt-4 flex">
<input type="text" placeholder="Type your message..." class="flex-1 bg-gray-200 dark:bg-gray-700 text-gray-900 dark:text-white rounded-lg p-2 focus:outline-none focus:ring focus:ring-blue-500">
<button class="bg-blue-500 text-white p-2 rounded-lg ml-2 focus:outline-none">Send</button>
</div>
</div>
</div>
関連コンポーネント
スキューモーフィックチャットウィンドウ
Skeuomorphism と Tailwind CSS でスタイル設定されたチャット ウィンドウ Web コンポーネント。レスポンシブレイアウト、CSSによるダークテーマのサポート、丸みを帯びたメッセージバブル、グラデーション、触感のあるシャドウを備えています。プレースホルダーのアバターと画像が含まれています。JavaScript は含まれていません。
チャットウィンドウコンポーネント
適度な複雑さとインタラクティブな機能を備えたダッシュボード用の3次元グレースケールチャットウィンドウコンポーネント。ダークテーマをサポートするレスポンシブデザイン。
チャットウィンドウコンポーネント
eコマースサイト用のミニマリストチャットウィンドウコンポーネントで、グレースケールの配色、適度な複雑さ、ダークモードのサポートによる応答性が特徴です。HTMLとTailwind CSSで構築されています。