feat(portfolio): move what_we_did to hover overlay + show 4 specific clients

Per user spec:
1. Home portfolio now shows only 4 specific clients in order:
   Dataroot → Jet Industries → ทวนทอง 99 → สำนักงานกฎหมาย ตถาตา
   (was filtering by featured: true, now filters by slug)

2. PortfolioCard: what_we_did moved from always-visible to
   yellow hover overlay (shown above "เยี่ยมชมเว็บไซต์" button).
   All cards now have uniform layout:
   - Default: image + name + industry + category + result
   - On hover (desktop): overlay shows what_we_did text + visit button
   - No hover effect on mobile (tap navigates to URL)

3. Added what_we_did + result to 3 cards that were missing them:
   - Jet Industries, ทวนทอง 99, สำนักงานกฎหมาย ตถาตา

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Kunthawat Greethong
2026-06-10 09:55:50 +07:00
parent 0ff6ae9020
commit a1b1b16288
5 changed files with 45 additions and 26 deletions

View File

@@ -22,6 +22,7 @@ const { name, url, category, category_label, industry, thumbnail, description, w
<div class="portfolio-image">
<img src={thumbnail} alt={name} loading="lazy" />
<div class="portfolio-overlay">
{what_we_did && <p class="overlay-did">{what_we_did}</p>}
<span class="visit-btn">
เยี่ยมชมเว็บไซต์
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
@@ -34,7 +35,6 @@ const { name, url, category, category_label, industry, thumbnail, description, w
{industry && <span class="portfolio-industry">{industry}</span>}
<span class="portfolio-category">{category_label}</span>
<h3 class="portfolio-name">{name}</h3>
{what_we_did && <p class="portfolio-did">{what_we_did}</p>}
{result && <p class="portfolio-result">→ {result}</p>}
{!what_we_did && description && <p class="portfolio-desc">{description}</p>}
</div>
@@ -84,8 +84,11 @@ const { name, url, category, category_label, industry, thumbnail, description, w
inset: 0;
background: rgba(254, 212, 0, 0.95);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
padding: 24px;
opacity: 0;
transition: opacity 0.3s ease;
}
@@ -94,6 +97,14 @@ const { name, url, category, category_label, industry, thumbnail, description, w
opacity: 1;
}
.overlay-did {
font-size: 13px;
line-height: 1.6;
color: var(--color-black);
text-align: center;
max-width: 280px;
}
.visit-btn {
display: inline-flex;
align-items: center;

View File

@@ -1,11 +1,12 @@
---
name: Jet Industries
url: https://jetindustries.co.th
name: "Jet Industries"
url: "https://jetindustries.co.th"
category: webdev
category_label: พัฒนาเว็บไซต์
industry: 🏭 โรงงาน
thumbnail: /images/portfolio/jetindustries.png
description: ผู้ผลิตพลาสติกฉีดขึ้นรูปอย่างแม่นยำ (Precision Plastic Injection Molding) มีประสบการณ์กว่า 40 ปี
what_we_did: ออกแบบเว็บ B2B + SEO เทคนิค + Multi-language (TH/EN/JP)
result: ลูกค้าจากญี่ปุ่นและออสเตรเลียติดต่อเข้ามา 58 ราย/เดือน
category_label: "พัฒนาเว็บไซต์"
industry: "โรงงาน / B2B"
what_we_did: "ออกแบบ + พัฒนาเว็บไซต์ B2B ทันสมัย พร้อมระบบขอใบเสนอราคา"
result: "เว็บไซต์ที่สื่อสารตรงกับกลุ่มลูกค้า B2B สมัครใช้งานง่ายขึ้น"
thumbnail: "/images/portfolio/jetindustries.png"
featured: true
order: 18
---

View File

@@ -1,11 +1,12 @@
---
name: สำนักงานกฎหมาย ตถาตา
url: https://lawyernoom.com
name: "สำนักงานกฎหมาย ตถาตา"
url: "https://lawyernoom.com"
category: webdev
category_label: พัฒนาเว็บไซต์
industry: ⚖️ สำนักงานกฎหมาย
thumbnail: /images/portfolio/lawyernoom.png
description: สำนักงานกฎหมายโดย ทนายความ คมสัน ศรีวนิชย์ - บริการด้านคดีความ คดีแพ่ง คดีอาญา
what_we_did: เว็บไซต์มาตรฐาน + SEO คีย์เวิร์ด "ทนายความ" ในจังหวัด
result: ติดหน้า 1 Google ใน 4 เดือน ลูกค้าโทรเข้ามา 10+ ราย/เดือน
category_label: "พัฒนาเว็บไซต์"
industry: "สำนักงานกฎหมาย"
what_we_did: "ออกแบบเว็บไซต์สำนักงานกฎหมาย น่าเชื่อถือ + SEO ท้องถิ่น + ระบบนัดหมาย"
result: "เว็บไซต์มืออาชีพที่สร้างความเชื่อมั่นให้ลูกความ"
thumbnail: "/images/portfolio/lawyernoom.png"
featured: true
order: 17
---

View File

@@ -1,11 +1,12 @@
---
name: ทวนทอง 99
url: https://tuanthong99.com
name: "ทวนทอง 99"
url: "https://tuanthong99.com"
category: ecommerce
category_label: อีคอมเมิร์ซ
industry: 🛒 E-commerce
thumbnail: /images/portfolio/tuanthong.png
description: ร้านค้าออนไลน์สมุนไพรไทยคุณภาพสูง
what_we_did: เว็บไซต์ + ระบบสั่งซื้อ + ผูก Facebook Pixel
result: ROAS โฆษณาเฉลี่ย 4.8 เท่า
category_label: "อีคอมเมิร์ซ"
industry: "สินค้าอุปโภคบริโภค"
what_we_did: "พัฒนาเว็บไซต์ขายของออนไลน์ + ระบบตะกร้า + จัดการสินค้าด้วยตัวเอง"
result: "เว็บไซต์ขายสินค้าอุปโภคบริโภค ดูแลเองได้ สะดวกรวดเร็ว"
thumbnail: "/images/portfolio/tuanthong.png"
featured: true
order: 11
---

View File

@@ -69,7 +69,12 @@ const dedupedServices = (() => {
})();
const portfolio = await getCollection('portfolio');
const featuredPortfolio = portfolio.filter(p => p.data.featured).slice(0, 4);
const featuredPortfolio = portfolio.filter(p =>
['dataroot', 'jet-industries', 'tuanthong', 'lawyernoom'].includes(p.id)
).sort((a, b) => {
const order = ['dataroot', 'jet-industries', 'tuanthong', 'lawyernoom'];
return order.indexOf(a.id) - order.indexOf(b.id);
});
---
<Base title="MoreminiMore - ที่ปรึกษาเว็บ การตลาด และ AI สำหรับ SME ไทย">