feat(themes): add Amber Artisan 2-column bento gourmet dark theme

This commit is contained in:
AyrisAI
2026-08-20 02:56:38 +03:00
parent da3d4d291b
commit 89c2f62995
5 changed files with 173 additions and 63 deletions
+124 -56
View File
@@ -315,7 +315,7 @@ export function PublicMenuClient({
<div className="bg-stone-900 text-white px-5 py-4 border-b border-stone-800 animate-slide-up">
<div className="flex items-center justify-between mb-3">
<p className="text-xs font-bold uppercase tracking-wider text-stone-400">
Canlı Tema Önizleme (5 Şablon)
Canlı Tema Önizleme (6 Şablon)
</p>
<button
type="button"
@@ -325,7 +325,7 @@ export function PublicMenuClient({
Kapat
</button>
</div>
<div className="grid grid-cols-5 gap-2">
<div className="grid grid-cols-3 sm:grid-cols-6 gap-2">
{Object.values(THEME_PRESETS).map((preset) => {
const isSelected = selectedThemeKey === preset.key;
return (
@@ -451,70 +451,138 @@ export function PublicMenuClient({
</span>
</div>
{/* Items Container: Grid / Card / List Layout based on Theme */}
{/* Items Container: Grid / Card / List Layout based on Theme */}
<div
className={
theme.config.productLayout === "list"
theme.key === "artisan"
? "grid grid-cols-2 gap-3 sm:gap-4"
: theme.config.productLayout === "list"
? "space-y-3"
: "grid grid-cols-1 gap-3.5"
}
>
{category.menu_items.map((item) => (
<article
key={item.id}
onClick={() => setSelectedItem(item)}
className={`group relative rounded-2xl p-4 transition-all duration-200 cursor-pointer border hover:shadow-lg active:scale-[0.99] flex gap-3.5 items-center ${
theme.config.productLayout === "list" ? "justify-between" : ""
}`}
style={{
backgroundColor: theme.cardBg,
borderColor: theme.cardBorder,
}}
>
{/* Item Details */}
<div className="flex-1 min-w-0 pr-1">
<div className="flex items-start justify-between gap-2">
<h3 className="font-bold text-sm tracking-tight leading-snug group-hover:text-amber-600 transition-colors">
{item.name}
</h3>
{category.menu_items.map((item) => {
if (theme.key === "artisan") {
return (
<article
key={item.id}
onClick={() => setSelectedItem(item)}
className="group relative rounded-3xl p-3.5 transition-all duration-300 cursor-pointer border flex flex-col justify-between hover:scale-[1.02] active:scale-[0.98] shadow-md"
style={{
backgroundColor: theme.cardBg,
borderColor: theme.cardBorder,
}}
>
{/* Image Container with 3D Dish presentation */}
<div className="relative w-full aspect-square rounded-2xl overflow-hidden bg-stone-900/60 mb-3 flex items-center justify-center border border-white/5">
{item.image_url ? (
<img
src={item.image_url}
alt={item.name}
className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"
loading="lazy"
/>
) : (
<div className="text-3xl opacity-60"></div>
)}
<span
className="absolute top-2 right-2 px-2 py-0.5 rounded-full text-[9px] font-extrabold uppercase tracking-wide shadow-md"
style={{ backgroundColor: theme.config.primaryColor, color: "#121316" }}
>
ÖZEL
</span>
</div>
{/* Info */}
<div className="flex-1 flex flex-col justify-between">
<div>
<h3 className="font-bold text-xs sm:text-sm text-white tracking-tight leading-snug line-clamp-1 group-hover:text-amber-400 transition-colors">
{item.name}
</h3>
{item.description ? (
<p className="text-[11px] text-stone-400 mt-1 line-clamp-2 leading-relaxed">
{item.description}
</p>
) : null}
</div>
<div className="mt-3 pt-2.5 border-t border-white/5 flex items-center justify-between">
<span
className="text-sm sm:text-base font-black tracking-tight"
style={{ color: theme.config.primaryColor }}
>
{item.price.toFixed(0)}
</span>
<span
className="w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold text-stone-950 shadow-sm transition-transform group-hover:scale-110"
style={{ backgroundColor: theme.config.primaryColor }}
>
+
</span>
</div>
</div>
</article>
);
}
return (
<article
key={item.id}
onClick={() => setSelectedItem(item)}
className={`group relative rounded-2xl p-4 transition-all duration-200 cursor-pointer border hover:shadow-lg active:scale-[0.99] flex gap-3.5 items-center ${
theme.config.productLayout === "list" ? "justify-between" : ""
}`}
style={{
backgroundColor: theme.cardBg,
borderColor: theme.cardBorder,
}}
>
{/* Item Details */}
<div className="flex-1 min-w-0 pr-1">
<div className="flex items-start justify-between gap-2">
<h3 className="font-bold text-sm tracking-tight leading-snug group-hover:text-amber-600 transition-colors">
{item.name}
</h3>
</div>
{item.description && (
<p
className="text-xs mt-1 leading-relaxed line-clamp-2"
style={{ color: theme.textSecondary }}
>
{item.description}
</p>
)}
<div className="mt-2.5 flex items-center justify-between">
<span
className="text-base font-extrabold tracking-tight"
style={{ color: theme.config.primaryColor }}
>
{item.price.toFixed(0)}
</span>
<span className="text-[10px] font-bold px-2 py-0.5 rounded-md bg-black/5 dark:bg-white/10 group-hover:bg-amber-100 dark:group-hover:bg-amber-900/40 transition-colors">
İncele
</span>
</div>
</div>
{item.description && (
<p
className="text-xs mt-1 leading-relaxed line-clamp-2"
style={{ color: theme.textSecondary }}
>
{item.description}
</p>
{/* Item Thumbnail Image */}
{item.image_url && (
<div className="relative w-20 h-20 rounded-xl overflow-hidden flex-shrink-0 bg-stone-100 dark:bg-stone-800 shadow-sm">
<img
src={item.image_url}
alt={item.name}
className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"
loading="lazy"
/>
</div>
)}
<div className="mt-2.5 flex items-center justify-between">
<span
className="text-base font-extrabold tracking-tight"
style={{ color: theme.config.primaryColor }}
>
{item.price.toFixed(0)}
</span>
<span className="text-[10px] font-bold px-2 py-0.5 rounded-md bg-black/5 dark:bg-white/10 group-hover:bg-amber-100 dark:group-hover:bg-amber-900/40 transition-colors">
İncele
</span>
</div>
</div>
{/* Item Thumbnail Image */}
{item.image_url && (
<div className="relative w-20 h-20 rounded-xl overflow-hidden flex-shrink-0 bg-stone-100 dark:bg-stone-800 shadow-sm">
<img
src={item.image_url}
alt={item.name}
className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"
loading="lazy"
/>
</div>
)}
</article>
))}
</article>
);
})}
</div>
</section>
))