Phase 3: Portfolio & Blog magazine-style redesign
- Portfolio page: magazine hero, category filters, dark theme grid - Blog index page: editorial featured post, card grid layout - Consistent magazine styling with wave transitions
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
import Base from '../../layouts/Base.astro';
|
import Base from '../../layouts/Base.astro';
|
||||||
import Navigation from '../../components/Navigation.astro';
|
import Navigation from '../../components/Navigation.astro';
|
||||||
import Footer from '../../components/Footer.astro';
|
import Footer from '../../components/Footer.astro';
|
||||||
import PageHero from '../../components/PageHero.astro';
|
|
||||||
import BlogCard from '../../components/BlogCard.astro';
|
|
||||||
import { getCollection } from 'astro:content';
|
import { getCollection } from 'astro:content';
|
||||||
|
|
||||||
const blogPosts = await getCollection('blog');
|
const blogPosts = await getCollection('blog');
|
||||||
@@ -13,58 +11,119 @@ const sortedPosts = blogPosts.sort((a, b) => b.data.date.valueOf() - a.data.date
|
|||||||
<Base title="บทความ | MoreminiMore - รับทำเว็บไซต์ SEO AI Chatbot">
|
<Base title="บทความ | MoreminiMore - รับทำเว็บไซต์ SEO AI Chatbot">
|
||||||
<Navigation />
|
<Navigation />
|
||||||
|
|
||||||
<PageHero
|
<!-- =============================================
|
||||||
badge="บทความ"
|
HERO SECTION - MAGAZINE STYLE
|
||||||
title="บทความ"
|
============================================= -->
|
||||||
subtitle="ความรู้ด้านดิจิทัลและเทคนิคใหม่ๆ สำหรับธุรกิจไทย"
|
<section class="blog-hero">
|
||||||
/>
|
<div class="hero-bg">
|
||||||
|
<div class="hero-grid"></div>
|
||||||
|
<div class="hero-gradient"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hero-deco">
|
||||||
|
<div class="deco-circle"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Featured Post -->
|
|
||||||
{sortedPosts.length > 0 && (
|
|
||||||
<section class="section featured-section">
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a href={`/blog/${sortedPosts[0].id}`} class="featured-card">
|
<div class="hero-content">
|
||||||
|
<div class="hero-badge">
|
||||||
|
<span class="badge-dot"></span>
|
||||||
|
<span class="badge-text">บทความ</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1 class="hero-title">
|
||||||
|
<span class="title-line">ความรู้</span>
|
||||||
|
<span class="title-line title-accent">ด้านดิจิทัล</span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p class="hero-desc">
|
||||||
|
เทคนิคและความรู้ใหม่ๆ สำหรับธุรกิจไทย
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hero-wave">
|
||||||
|
<svg viewBox="0 0 1440 100" fill="none" preserveAspectRatio="none">
|
||||||
|
<path d="M0 50C240 100 480 0 720 50C960 100 1200 0 1440 50V100H0V50Z" fill="#ffffff"/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- =============================================
|
||||||
|
FEATURED POST - MAGAZINE STYLE
|
||||||
|
============================================= -->
|
||||||
|
{sortedPosts.length > 0 && (
|
||||||
|
<section class="featured-section">
|
||||||
|
<div class="container">
|
||||||
|
<a href={`/blog/${sortedPosts[0].slug}`} class="featured-card">
|
||||||
<div class="featured-image">
|
<div class="featured-image">
|
||||||
{sortedPosts[0].data.image && (
|
{sortedPosts[0].data.image && (
|
||||||
<img src={sortedPosts[0].data.image} alt={sortedPosts[0].data.title} loading="eager" />
|
<img src={sortedPosts[0].data.image} alt={sortedPosts[0].data.title} loading="eager" />
|
||||||
)}
|
)}
|
||||||
|
<span class="featured-badge">บทความล่าสุด</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="featured-content">
|
<div class="featured-content">
|
||||||
<span class="category-badge">{sortedPosts[0].data.category}</span>
|
<span class="category-badge">{sortedPosts[0].data.category}</span>
|
||||||
<h2 class="featured-title">{sortedPosts[0].data.title}</h2>
|
<h2 class="featured-title">{sortedPosts[0].data.title}</h2>
|
||||||
<p class="featured-excerpt">{sortedPosts[0].data.excerpt}</p>
|
<p class="featured-excerpt">{sortedPosts[0].data.excerpt}</p>
|
||||||
<span class="read-more">อ่านต่อ →</span>
|
<span class="read-more">
|
||||||
|
อ่านต่อ
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
|
<path d="M5 12h14M12 5l7 7-7 7"/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<!-- Blog Grid -->
|
<!-- =============================================
|
||||||
|
BLOG GRID - EDITORIAL STYLE
|
||||||
|
============================================= -->
|
||||||
<section class="section blog-section">
|
<section class="section blog-section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="section-header">
|
||||||
|
<span class="section-badge">บทความทั้งหมด</span>
|
||||||
|
<h2 class="section-title">
|
||||||
|
บทความ<br/><span class="title-accent">ล่าสุด</span>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="blog-grid">
|
<div class="blog-grid">
|
||||||
{sortedPosts.slice(1).map((post, i) => (
|
{sortedPosts.slice(1).map((post, i) => (
|
||||||
<BlogCard
|
<a href={`/blog/${post.slug}`} class="blog-card" style={`--delay: ${i * 0.1}s`}>
|
||||||
title={post.data.title}
|
<div class="blog-image">
|
||||||
excerpt={post.data.excerpt}
|
{post.data.image && (
|
||||||
image={post.data.image}
|
<img src={post.data.image} alt={post.data.title} loading="lazy" />
|
||||||
date={post.data.date}
|
)}
|
||||||
slug={post.id}
|
</div>
|
||||||
category={post.data.category}
|
<div class="blog-content">
|
||||||
/>
|
<span class="blog-category">{post.data.category}</span>
|
||||||
|
<h3 class="blog-title">{post.data.title}</h3>
|
||||||
|
<p class="blog-excerpt">{post.data.excerpt}</p>
|
||||||
|
<span class="blog-date">
|
||||||
|
{new Date(post.data.date).toLocaleDateString('th-TH', { year: 'numeric', month: 'long', day: 'numeric' })}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- CTA Section -->
|
<!-- =============================================
|
||||||
|
CTA SECTION
|
||||||
|
============================================= -->
|
||||||
<section class="section section-primary cta-section">
|
<section class="section section-primary cta-section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="cta-content">
|
<div class="cta-content">
|
||||||
<h2 class="cta-title">ต้องการความช่วยเหลือ?</h2>
|
<h2 class="cta-title">ต้องการความช่วยเหลือ?</h2>
|
||||||
<p class="cta-desc">ปรึกษาฟรี! เราพร้อมช่วยวิเคราะห์และให้คำแนะนำ</p>
|
<p class="cta-desc">ปรึกษาฟรี! เราพร้อมช่วยวิเคราะห์และให้คำแนะนำ</p>
|
||||||
<a href="/contact" class="btn btn-secondary btn-lg">ติดต่อเรา</a>
|
<div class="cta-actions">
|
||||||
|
<a href="/contact" class="btn btn-dark btn-lg">ติดต่อเรา</a>
|
||||||
|
<a href="tel:0809955945" class="btn btn-outline-dark btn-lg">080-995-5945</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -73,10 +132,138 @@ const sortedPosts = blogPosts.sort((a, b) => b.data.date.valueOf() - a.data.date
|
|||||||
</Base>
|
</Base>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
/* =============================================
|
||||||
|
BLOG HERO - MAGAZINE STYLE
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.blog-hero {
|
||||||
|
position: relative;
|
||||||
|
min-height: 50vh;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: var(--color-white);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-bg {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-grid {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background-image:
|
||||||
|
linear-gradient(rgba(254, 212, 0, 0.02) 1px, transparent 1px),
|
||||||
|
linear-gradient(90deg, rgba(254, 212, 0, 0.02) 1px, transparent 1px);
|
||||||
|
background-size: 60px 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-gradient {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: radial-gradient(ellipse at 50% 0%, rgba(254, 212, 0, 0.05) 0%, transparent 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-deco {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deco-circle {
|
||||||
|
position: absolute;
|
||||||
|
width: 300px;
|
||||||
|
height: 300px;
|
||||||
|
background: var(--color-primary);
|
||||||
|
border-radius: 50%;
|
||||||
|
top: -100px;
|
||||||
|
left: -50px;
|
||||||
|
opacity: 0.05;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-content {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
text-align: center;
|
||||||
|
padding: 80px 0 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-badge {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 12px 24px;
|
||||||
|
background: var(--color-primary);
|
||||||
|
border-radius: 100px;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-dot {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
background: var(--color-black);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-text {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
color: var(--color-black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: clamp(40px, 7vw, 64px);
|
||||||
|
font-weight: 900;
|
||||||
|
line-height: 1;
|
||||||
|
color: var(--color-dark);
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-line {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-accent {
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-desc {
|
||||||
|
font-size: 20px;
|
||||||
|
color: var(--color-gray-600);
|
||||||
|
max-width: 500px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-wave {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 80px;
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-wave svg {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
FEATURED SECTION
|
||||||
|
============================================= */
|
||||||
|
|
||||||
.featured-section {
|
.featured-section {
|
||||||
background: var(--color-white);
|
background: var(--color-white);
|
||||||
padding-top: 80px;
|
padding: 60px 0 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-card {
|
.featured-card {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1.5fr 1fr;
|
grid-template-columns: 1.5fr 1fr;
|
||||||
@@ -84,88 +271,342 @@ const sortedPosts = blogPosts.sort((a, b) => b.data.date.valueOf() - a.data.date
|
|||||||
background: var(--color-dark);
|
background: var(--color-dark);
|
||||||
border-radius: 24px;
|
border-radius: 24px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: transform 0.4s ease;
|
transition: all 0.4s ease;
|
||||||
}
|
}
|
||||||
.featured-card:hover { transform: scale(1.01); }
|
|
||||||
|
.featured-card:hover {
|
||||||
|
transform: scale(1.01);
|
||||||
|
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
.featured-image {
|
.featured-image {
|
||||||
|
position: relative;
|
||||||
aspect-ratio: 16/10;
|
aspect-ratio: 16/10;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-image img {
|
.featured-image img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
transition: transform 0.5s ease;
|
transition: transform 0.5s ease;
|
||||||
}
|
}
|
||||||
.featured-card:hover .featured-image img { transform: scale(1.05); }
|
|
||||||
|
.featured-card:hover .featured-image img {
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.featured-badge {
|
||||||
|
position: absolute;
|
||||||
|
top: 20px;
|
||||||
|
left: 20px;
|
||||||
|
background: var(--color-primary);
|
||||||
|
color: var(--color-black);
|
||||||
|
padding: 8px 16px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
.featured-content {
|
.featured-content {
|
||||||
padding: 48px;
|
padding: 48px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-badge {
|
.category-badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background: var(--color-primary);
|
background: rgba(254, 212, 0, 0.2);
|
||||||
color: var(--color-black);
|
color: var(--color-primary);
|
||||||
padding: 6px 14px;
|
padding: 4px 12px;
|
||||||
border-radius: 12px;
|
border-radius: 8px;
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-title {
|
.featured-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
font-size: clamp(24px, 3vw, 32px);
|
font-size: clamp(24px, 3vw, 32px);
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
color: var(--color-white);
|
color: var(--color-white);
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-excerpt {
|
.featured-excerpt {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: rgba(255,255,255,0.6);
|
color: rgba(255, 255, 255, 0.6);
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.read-more {
|
.read-more {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
font-weight: 600;
|
font-family: var(--font-display);
|
||||||
|
font-weight: 700;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-more:hover {
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-more svg {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
SECTION HEADER
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.section-header {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-badge {
|
||||||
|
display: inline-block;
|
||||||
|
background: var(--color-primary);
|
||||||
|
color: var(--color-black);
|
||||||
|
padding: 8px 20px;
|
||||||
|
border-radius: 100px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: clamp(32px, 5vw, 48px);
|
||||||
|
font-weight: 900;
|
||||||
|
line-height: 1.1;
|
||||||
|
color: var(--color-dark);
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
BLOG SECTION
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.blog-section {
|
||||||
|
background: var(--color-gray-100);
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-section { background: var(--color-gray-100); }
|
|
||||||
.blog-grid {
|
.blog-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 32px;
|
gap: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-primary { background: var(--color-primary); }
|
.blog-card {
|
||||||
.cta-content { text-align: center; }
|
display: block;
|
||||||
|
background: var(--color-white);
|
||||||
|
border: 2px solid var(--color-gray-200);
|
||||||
|
border-radius: 20px;
|
||||||
|
overflow: hidden;
|
||||||
|
transition: all 0.4s ease;
|
||||||
|
animation: fadeUp 0.6s ease backwards;
|
||||||
|
animation-delay: var(--delay);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-card:hover {
|
||||||
|
border-color: var(--color-primary);
|
||||||
|
transform: translateY(-8px);
|
||||||
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-image {
|
||||||
|
aspect-ratio: 16/10;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-image img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
transition: transform 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-card:hover .blog-image img {
|
||||||
|
transform: scale(1.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-content {
|
||||||
|
padding: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-category {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 4px 12px;
|
||||||
|
background: var(--color-gray-100);
|
||||||
|
color: var(--color-gray-600);
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
border-radius: 100px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--color-dark);
|
||||||
|
margin-bottom: 12px;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-excerpt {
|
||||||
|
font-size: 14px;
|
||||||
|
color: var(--color-gray-600);
|
||||||
|
line-height: 1.6;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-date {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--color-gray-400);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
CTA SECTION
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.cta-section {
|
||||||
|
background: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-content {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.cta-title {
|
.cta-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
font-size: clamp(28px, 4vw, 42px);
|
font-size: clamp(28px, 4vw, 42px);
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
color: var(--color-black);
|
color: var(--color-black);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cta-desc {
|
.cta-desc {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: rgba(0,0,0,0.7);
|
color: rgba(0, 0, 0, 0.7);
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
.btn-lg { padding: 16px 36px; font-size: 16px; }
|
|
||||||
|
.cta-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 16px;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
BUTTONS
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 16px 32px;
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-dark {
|
||||||
|
background: var(--color-dark);
|
||||||
|
color: var(--color-white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-dark:hover {
|
||||||
|
background: var(--color-dark-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-dark {
|
||||||
|
background: transparent;
|
||||||
|
color: var(--color-black);
|
||||||
|
border: 2px solid var(--color-black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-dark:hover {
|
||||||
|
background: var(--color-black);
|
||||||
|
color: var(--color-white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-lg {
|
||||||
|
padding: 18px 40px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeUp {
|
||||||
|
from { opacity: 0; transform: translateY(20px); }
|
||||||
|
to { opacity: 1; transform: translateY(0); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
RESPONSIVE
|
||||||
|
============================================= */
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.featured-card { grid-template-columns: 1fr; }
|
.featured-card {
|
||||||
.featured-image { aspect-ratio: 16/7; }
|
grid-template-columns: 1fr;
|
||||||
.blog-grid { grid-template-columns: repeat(2, 1fr); }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.featured-image {
|
||||||
|
aspect-ratio: 16/7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blog-grid {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.blog-grid { grid-template-columns: 1fr; }
|
.blog-grid {
|
||||||
.featured-content { padding: 32px; }
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.featured-content {
|
||||||
|
padding: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-actions {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-lg {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -2,21 +2,54 @@
|
|||||||
import Base from '../layouts/Base.astro';
|
import Base from '../layouts/Base.astro';
|
||||||
import Navigation from '../components/Navigation.astro';
|
import Navigation from '../components/Navigation.astro';
|
||||||
import Footer from '../components/Footer.astro';
|
import Footer from '../components/Footer.astro';
|
||||||
import PageHero from '../components/PageHero.astro';
|
|
||||||
import { portfolioItems } from '../data/portfolio';
|
import { portfolioItems } from '../data/portfolio';
|
||||||
---
|
---
|
||||||
|
|
||||||
<Base title="ผลงาน | MoreminiMore - รับทำเว็บไซต์ SEO AI Chatbot">
|
<Base title="ผลงาน | MoreminiMore - รับทำเว็บไซต์ SEO AI Chatbot">
|
||||||
<Navigation />
|
<Navigation />
|
||||||
|
|
||||||
<PageHero
|
<!-- =============================================
|
||||||
badge="ผลงาน"
|
HERO SECTION - MAGAZINE STYLE
|
||||||
title="ผลงานของเรา"
|
============================================= -->
|
||||||
subtitle="รวมผลงานพัฒนาเว็บไซต์และโปรเจกต์ที่เราภาคภูมิใจ"
|
<section class="portfolio-hero">
|
||||||
/>
|
<div class="hero-bg">
|
||||||
|
<div class="hero-grid"></div>
|
||||||
|
<div class="hero-gradient"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Filter Section -->
|
<div class="hero-deco">
|
||||||
<section class="filter-section" style="background: #1a1a2e; margin-top: -1px;">
|
<div class="deco-circle"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="hero-content">
|
||||||
|
<div class="hero-badge">
|
||||||
|
<span class="badge-dot"></span>
|
||||||
|
<span class="badge-text">ผลงานของเรา</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1 class="hero-title">
|
||||||
|
<span class="title-line">โปรเจกต์ที่</span>
|
||||||
|
<span class="title-line title-accent">เราภาคภูมิใจ</span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p class="hero-desc">
|
||||||
|
รวมผลงานพัฒนาเว็บไซต์และโปรเจกต์ที่เราภาคภูมิใจ
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="hero-wave">
|
||||||
|
<svg viewBox="0 0 1440 100" fill="none" preserveAspectRatio="none">
|
||||||
|
<path d="M0 50C240 100 480 0 720 50C960 100 1200 0 1440 50V100H0V50Z" fill="#0F172A"/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- =============================================
|
||||||
|
FILTER SECTION
|
||||||
|
============================================= -->
|
||||||
|
<section class="filter-section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="filter-buttons" id="category-filters">
|
<div class="filter-buttons" id="category-filters">
|
||||||
<button class="filter-btn active" data-category="all">ทั้งหมด</button>
|
<button class="filter-btn active" data-category="all">ทั้งหมด</button>
|
||||||
@@ -27,7 +60,9 @@ import { portfolioItems } from '../data/portfolio';
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Portfolio Grid -->
|
<!-- =============================================
|
||||||
|
PORTFOLIO GRID - MAGAZINE STYLE
|
||||||
|
============================================= -->
|
||||||
<section class="section portfolio-section">
|
<section class="section portfolio-section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="portfolio-grid" id="portfolio-grid">
|
<div class="portfolio-grid" id="portfolio-grid">
|
||||||
@@ -51,7 +86,7 @@ import { portfolioItems } from '../data/portfolio';
|
|||||||
<div class="portfolio-content">
|
<div class="portfolio-content">
|
||||||
<span class="portfolio-category">{item.category_label}</span>
|
<span class="portfolio-category">{item.category_label}</span>
|
||||||
<h3 class="portfolio-name">{item.name}</h3>
|
<h3 class="portfolio-name">{item.name}</h3>
|
||||||
<p class="portfolio-desc">{item.description}</p>
|
{item.description && <p class="portfolio-desc">{item.description}</p>}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
))}
|
))}
|
||||||
@@ -59,14 +94,16 @@ import { portfolioItems } from '../data/portfolio';
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- CTA Section -->
|
<!-- =============================================
|
||||||
|
CTA SECTION
|
||||||
|
============================================= -->
|
||||||
<section class="section section-primary cta-section">
|
<section class="section section-primary cta-section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="cta-content">
|
<div class="cta-content">
|
||||||
<h2 class="cta-title">อยากได้เว็บไซต์แบบนี้บ้าง?</h2>
|
<h2 class="cta-title">อยากได้เว็บไซต์แบบนี้บ้าง?</h2>
|
||||||
<p class="cta-desc">ปรึกษาฟรี! เราพร้อมช่วยวิเคราะห์และออกแบบโซลูชันที่เหมาะกับคุณ</p>
|
<p class="cta-desc">ปรึกษาฟรี! เราพร้อมช่วยวิเคราะห์และออกแบบโซลูชันที่เหมาะกับคุณ</p>
|
||||||
<div class="cta-actions">
|
<div class="cta-actions">
|
||||||
<a href="/contact" class="btn btn-secondary btn-lg">ปรึกษาฟรี</a>
|
<a href="/contact" class="btn btn-dark btn-lg">ปรึกษาฟรี</a>
|
||||||
<a href="tel:0809955945" class="btn btn-outline-dark btn-lg">080-995-5945</a>
|
<a href="tel:0809955945" class="btn btn-outline-dark btn-lg">080-995-5945</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -76,6 +113,412 @@ import { portfolioItems } from '../data/portfolio';
|
|||||||
<Footer />
|
<Footer />
|
||||||
</Base>
|
</Base>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/* =============================================
|
||||||
|
PORTFOLIO HERO - MAGAZINE STYLE
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.portfolio-hero {
|
||||||
|
position: relative;
|
||||||
|
min-height: 50vh;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: var(--color-white);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-bg {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-grid {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background-image:
|
||||||
|
linear-gradient(rgba(254, 212, 0, 0.02) 1px, transparent 1px),
|
||||||
|
linear-gradient(90deg, rgba(254, 212, 0, 0.02) 1px, transparent 1px);
|
||||||
|
background-size: 60px 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-gradient {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: radial-gradient(ellipse at 50% 0%, rgba(254, 212, 0, 0.05) 0%, transparent 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-deco {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deco-circle {
|
||||||
|
position: absolute;
|
||||||
|
width: 400px;
|
||||||
|
height: 400px;
|
||||||
|
background: var(--color-primary);
|
||||||
|
border-radius: 50%;
|
||||||
|
top: -150px;
|
||||||
|
right: -100px;
|
||||||
|
opacity: 0.05;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-content {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
text-align: center;
|
||||||
|
padding: 80px 0 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-badge {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 12px 24px;
|
||||||
|
background: var(--color-primary);
|
||||||
|
border-radius: 100px;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-dot {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
background: var(--color-black);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-text {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
color: var(--color-black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: clamp(40px, 7vw, 64px);
|
||||||
|
font-weight: 900;
|
||||||
|
line-height: 1;
|
||||||
|
color: var(--color-dark);
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-line {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-accent {
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-desc {
|
||||||
|
font-size: 20px;
|
||||||
|
color: var(--color-gray-600);
|
||||||
|
max-width: 500px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-wave {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 80px;
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-wave svg {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
FILTER SECTION
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.filter-section {
|
||||||
|
background: #0F172A;
|
||||||
|
padding: 20px 0;
|
||||||
|
position: sticky;
|
||||||
|
top: 80px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-buttons {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 12px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-btn {
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
color: rgba(255, 255, 255, 0.6);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
padding: 10px 24px;
|
||||||
|
border-radius: 100px;
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-btn:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
color: var(--color-white);
|
||||||
|
border-color: rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-btn.active {
|
||||||
|
background: var(--color-primary);
|
||||||
|
color: var(--color-black);
|
||||||
|
border-color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
PORTFOLIO SECTION
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.portfolio-section {
|
||||||
|
background: #0F172A;
|
||||||
|
padding-top: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-card {
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
border-radius: 24px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
transition: all 0.4s ease;
|
||||||
|
animation: fadeUp 0.6s ease backwards;
|
||||||
|
animation-delay: var(--delay);
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-card:hover {
|
||||||
|
transform: translateY(-8px);
|
||||||
|
border-color: var(--color-primary);
|
||||||
|
box-shadow: 0 20px 50px rgba(254, 212, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-image {
|
||||||
|
position: relative;
|
||||||
|
aspect-ratio: 16/10;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-image img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
transition: transform 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-card:hover .portfolio-image img {
|
||||||
|
transform: scale(1.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-overlay {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: rgba(254, 212, 0, 0.95);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-card:hover .portfolio-overlay {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.visit-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
background: var(--color-black);
|
||||||
|
color: var(--color-white);
|
||||||
|
padding: 14px 28px;
|
||||||
|
border-radius: 100px;
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: transform 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.visit-btn:hover {
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.visit-btn svg {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-content {
|
||||||
|
padding: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-category {
|
||||||
|
display: inline-block;
|
||||||
|
background: var(--color-primary);
|
||||||
|
color: var(--color-black);
|
||||||
|
padding: 4px 12px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-name {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--color-white);
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio-desc {
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgba(255, 255, 255, 0.5);
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
CTA SECTION
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.cta-section {
|
||||||
|
background: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-content {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-title {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: clamp(28px, 4vw, 42px);
|
||||||
|
font-weight: 800;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
color: var(--color-black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-desc {
|
||||||
|
font-size: 18px;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
margin-bottom: 32px;
|
||||||
|
max-width: 500px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 16px;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
BUTTONS
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 12px;
|
||||||
|
padding: 16px 32px;
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-dark {
|
||||||
|
background: var(--color-dark);
|
||||||
|
color: var(--color-white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-dark:hover {
|
||||||
|
background: var(--color-dark-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-dark {
|
||||||
|
background: transparent;
|
||||||
|
color: var(--color-black);
|
||||||
|
border: 2px solid var(--color-black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-dark:hover {
|
||||||
|
background: var(--color-black);
|
||||||
|
color: var(--color-white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-lg {
|
||||||
|
padding: 18px 40px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeUp {
|
||||||
|
from { opacity: 0; transform: translateY(20px); }
|
||||||
|
to { opacity: 1; transform: translateY(0); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =============================================
|
||||||
|
RESPONSIVE
|
||||||
|
============================================= */
|
||||||
|
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.portfolio-grid {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.portfolio-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-buttons {
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-btn {
|
||||||
|
padding: 8px 16px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-actions {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-lg {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const filterBtns = document.querySelectorAll('.filter-btn');
|
const filterBtns = document.querySelectorAll('.filter-btn');
|
||||||
@@ -100,164 +543,3 @@ import { portfolioItems } from '../data/portfolio';
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
|
||||||
.filter-section {
|
|
||||||
background: var(--color-dark);
|
|
||||||
padding: 20px 0;
|
|
||||||
position: sticky;
|
|
||||||
top: 80px;
|
|
||||||
z-index: 1;
|
|
||||||
margin-top: -1px;
|
|
||||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
||||||
}
|
|
||||||
.filter-buttons {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 12px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
.filter-btn {
|
|
||||||
background: rgba(255,255,255,0.05);
|
|
||||||
color: rgba(255,255,255,0.6);
|
|
||||||
border: 1px solid rgba(255,255,255,0.1);
|
|
||||||
padding: 10px 24px;
|
|
||||||
border-radius: 24px;
|
|
||||||
font-family: var(--font-heading);
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 500;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
.filter-btn:hover {
|
|
||||||
background: rgba(255,255,255,0.1);
|
|
||||||
color: var(--color-white);
|
|
||||||
border-color: rgba(255,255,255,0.2);
|
|
||||||
}
|
|
||||||
.filter-btn.active {
|
|
||||||
background: var(--color-primary);
|
|
||||||
color: var(--color-black);
|
|
||||||
border-color: var(--color-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.portfolio-section {
|
|
||||||
background: var(--color-black);
|
|
||||||
padding-top: 80px;
|
|
||||||
}
|
|
||||||
.portfolio-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
gap: 32px;
|
|
||||||
}
|
|
||||||
.portfolio-card {
|
|
||||||
background: rgba(255,255,255,0.02);
|
|
||||||
border-radius: 20px;
|
|
||||||
overflow: hidden;
|
|
||||||
border: 1px solid rgba(255,255,255,0.05);
|
|
||||||
transition: all 0.4s ease;
|
|
||||||
animation: fadeUp 0.6s ease backwards;
|
|
||||||
animation-delay: var(--delay);
|
|
||||||
}
|
|
||||||
.portfolio-card:hover {
|
|
||||||
transform: translateY(-8px);
|
|
||||||
border-color: var(--color-primary);
|
|
||||||
box-shadow: 0 20px 50px rgba(254, 212, 0, 0.1);
|
|
||||||
}
|
|
||||||
.portfolio-image {
|
|
||||||
position: relative;
|
|
||||||
aspect-ratio: 16/10;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.portfolio-image img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
transition: transform 0.5s ease;
|
|
||||||
}
|
|
||||||
.portfolio-card:hover .portfolio-image img { transform: scale(1.08); }
|
|
||||||
.portfolio-overlay {
|
|
||||||
position: absolute;
|
|
||||||
inset: 0;
|
|
||||||
background: rgba(254, 212, 0, 0.95);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.3s ease;
|
|
||||||
}
|
|
||||||
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
|
|
||||||
.visit-btn {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
background: var(--color-black);
|
|
||||||
color: var(--color-white);
|
|
||||||
padding: 14px 28px;
|
|
||||||
border-radius: 30px;
|
|
||||||
font-family: var(--font-heading);
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 14px;
|
|
||||||
transition: transform 0.2s ease;
|
|
||||||
}
|
|
||||||
.visit-btn:hover { transform: scale(1.05); }
|
|
||||||
.visit-btn svg { width: 18px; height: 18px; }
|
|
||||||
.portfolio-content { padding: 28px; }
|
|
||||||
.portfolio-category {
|
|
||||||
display: inline-block;
|
|
||||||
background: var(--color-primary);
|
|
||||||
color: var(--color-black);
|
|
||||||
padding: 4px 12px;
|
|
||||||
border-radius: 12px;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 600;
|
|
||||||
margin-bottom: 14px;
|
|
||||||
}
|
|
||||||
.portfolio-name {
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: var(--color-white);
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.portfolio-desc {
|
|
||||||
font-size: 14px;
|
|
||||||
color: rgba(255,255,255,0.5);
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-primary { background: var(--color-primary); }
|
|
||||||
.cta-content { text-align: center; }
|
|
||||||
.cta-title {
|
|
||||||
font-size: clamp(28px, 4vw, 42px);
|
|
||||||
font-weight: 800;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
color: var(--color-black);
|
|
||||||
}
|
|
||||||
.cta-desc {
|
|
||||||
font-size: 18px;
|
|
||||||
color: rgba(0,0,0,0.7);
|
|
||||||
margin-bottom: 32px;
|
|
||||||
max-width: 550px;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
|
|
||||||
.btn-outline-dark { background: transparent; color: var(--color-black); border: 2px solid var(--color-black); }
|
|
||||||
.btn-outline-dark:hover { background: var(--color-black); color: var(--color-white); }
|
|
||||||
.btn-lg { padding: 16px 36px; font-size: 16px; }
|
|
||||||
|
|
||||||
@keyframes fadeUp {
|
|
||||||
from { opacity: 0; transform: translateY(20px); }
|
|
||||||
to { opacity: 1; transform: translateY(0); }
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
|
||||||
.portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
|
|
||||||
}
|
|
||||||
@media (max-width: 640px) {
|
|
||||||
.portfolio-grid { grid-template-columns: 1fr; }
|
|
||||||
.filter-buttons { gap: 8px; }
|
|
||||||
.filter-btn { padding: 8px 16px; font-size: 13px; }
|
|
||||||
.cta-actions { flex-direction: column; }
|
|
||||||
.btn-lg { width: 100%; justify-content: center; }
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
Reference in New Issue
Block a user