Komponente im Kommentarbereich mit Neumorphismus-Stil
Kommentarbereich Komponente mit Neumorphism-Design, responsiven Effekten und Unterstützung für dunkle Themen. Es ist kein JavaScript-Code enthalten.
HTML-Code
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<style>
.neumorphic {
border-radius: 10px;
background: #e0e0e0;
box-shadow: 8px 8px 15px #bebebe, -8px -8px 15px #ffffff;
transition: all 0.3s ease;
}
.neumorphic:hover {
box-shadow: 4px 4px 8px #bebebe, -4px -4px 8px #ffffff;
}
.dark .neumorphic {
background: #333333;
box-shadow: 8px 8px 15px #222222, -8px -8px 15px #444444;
}
.dark .neumorphic:hover {
box-shadow: 4px 4px 8px #222222, -4px -4px 8px #444444;
}
.neumorphic-input {
border-radius: 5px;
background: #e0e0e0;
box-shadow: inset 5px 5px 10px #bebebe, inset -5px -5px 10px #ffffff;
padding: 10px;
width: 100%;
color: #333;
}
.dark .neumorphic-input {
background: #333333;
box-shadow: inset 5px 5px 10px #222222, inset -5px -5px 10px #444444;
color: #ccc;
}
</style>
<div class="container mx-auto p-4">
<div class="neumorphic p-6 mb-6">
<h2 class="text-2xl font-bold mb-4 text-gray-800 dark:text-white">Comments</h2>
<!-- Comment Input -->
<div class="mb-4">
<textarea class="neumorphic-input" rows="3" placeholder="Add a comment..."></textarea>
</div>
<button class="neumorphic bg-blue-500 text-white px-4 py-2 rounded">Post Comment</button>
<!-- Existing Comments -->
<div class="mt-6">
<!-- Comment 1 -->
<div class="neumorphic p-4 mb-4">
<div class="flex items-center mb-2">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar" class="w-10 h-10 rounded-full mr-4 neumorphic">
<div>
<p class="font-bold text-gray-800 dark:text-white">John Doe</p>
<p class="text-sm text-gray-600 dark:text-gray-400">2 days ago</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-300">This is a great component! I love the neumorphism style.</p>
</div>
<!-- Comment 2 -->
<div class="neumorphic p-4 mb-4">
<div class="flex items-center mb-2">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Avatar" class="w-10 h-10 rounded-full mr-4 neumorphic">
<div>
<p class="font-bold text-gray-800 dark:text-white">Jane Smith</p>
<p class="text-sm text-gray-600 dark:text-gray-400">1 day ago</p>
</div>
</div>
<p class="text-gray-700 dark:text-gray-300">Looks really good with the dark theme as well.</p>
</div>
</div>
</div>
</div>
Verwandte Komponenten
Komponente im Bereich "Kommentare"
Ein responsiver Kommentarbereich mit Neumorphism-Designstil, Erdtonfarben und Unterstützung für dunkle Designinhalte für Blog-Inhalte.
Komponente im Bereich "Kommentare"
Eine einfache Komponente im Kommentarbereich, die im Material Design-Stil gestaltet wurde, ein monochromatisches Farbschema verwendet, optimiert für Social-Media-Schnittstellen und responsives Design mit Unterstützung für dunkle Themen.
Komponente im Bereich "Kommentare"
Komponente für den Kommentarbereich mit Skeuomorphismus-Design, triadischem Farbschema, komplexen Interaktionen, Social-Media-Zweck, responsiver und dunkler Themenunterstützung.