コンポーネント 列コンポーネントニューモーフィズム

列コンポーネントニューモーフィズム

Columns Component Neumorphism - 微妙な影を使用して背景から押し出されたように見える要素を作成するソフトな UI スタイルです。このコンポーネントはレスポンシブで、ダークテーマをサポートしています。JavaScript コードは必要ありません。ダークモードの場合、CSSのサポートで十分です。

プレビュー

HTMLコード

<div class="flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-4 p-4 dark:bg-gray-800">
  <div class="flex-1 bg-gray-100 dark:bg-gray-700 p-6 rounded-xl shadow-xl dark:shadow-xl-dark flex flex-col items-center">
    <img class="w-24 h-24 rounded-full mb-4" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar">
    <h3 class="text-xl font-semibold text-gray-800 dark:text-white mb-2">Column 1</h3>
    <p class="text-gray-600 dark:text-gray-300 text-center">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
  </div>
  <div class="flex-1 bg-gray-100 dark:bg-gray-700 p-6 rounded-xl shadow-xl dark:shadow-xl-dark flex flex-col items-center">
    <img class="w-24 h-24 rounded-full mb-4" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Avatar">
    <h3 class="text-xl font-semibold text-gray-800 dark:text-white mb-2">Column 2</h3>
    <p class="text-gray-600 dark:text-gray-300 text-center">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
  </div>
  <div class="flex-1 bg-gray-100 dark:bg-gray-700 p-6 rounded-xl shadow-xl dark:shadow-xl-dark flex flex-col items-center">
    <img class="w-24 h-24 rounded-full mb-4" src="https://randomuser.me/api/portraits/men/4.jpg" alt="Avatar">
    <h3 class="text-xl font-semibold text-gray-800 dark:text-white mb-2">Column 3</h3>
    <p class="text-gray-600 dark:text-gray-300 text-center">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
  </div>
</div>

<style>
/* Basic Neumorphism shadows - adjust values for desired effect */
.shadow-xl {
  box-shadow: 8px 8px 15px #b0b0b0, -8px -8px 15px #ffffff;
}

.dark .shadow-xl-dark {
  box-shadow: 8px 8px 15px #444444, -8px -8px 15px #333333;
}
</style>

関連コンポーネント

列コンポーネント

ポートフォリオページのレスポンシブ3Dスタイルのグレースケール列、ダークモードのサポート。

開ける

列コンポーネント

Glassmorphismスタイル、トライアドカラースキーム、ビジネス/企業目的のシンプル複雑度を備えたレスポンシブカラムコンポーネントには、ダークモードのサポートが含まれています。

開ける

列コンポーネント

ダッシュボードの列コンポーネントで、補色の 3D デザインが特徴です。シンプルなレイアウト、ダークモードのサポート、スタイル設定にTailwind CSSを使用する3つのレスポンシブカラムが含まれています。JavaScriptは含まれていません。

開ける