Before EmDash migration - plain Astro site with 22 pages, unique hero layouts per page, Thai content
This commit is contained in:
209
src/components/Footer.astro
Normal file
209
src/components/Footer.astro
Normal file
@@ -0,0 +1,209 @@
|
||||
---
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
const socialLinks = [
|
||||
{ label: "Facebook", href: "https://www.facebook.com/moreminimore", icon: "facebook" },
|
||||
{ label: "LINE", href: "https://line.me/ti/p/~@539hdlul", icon: "line" },
|
||||
{ label: "LinkedIn", href: "https://www.linkedin.com/company/moreminimore", icon: "linkedin" },
|
||||
];
|
||||
|
||||
const footerLinks = [
|
||||
{ label: "นโยบายความเป็นส่วนตัว", href: "/privacy" },
|
||||
{ label: "เงื่อนไขการใช้บริการ", href: "/terms" },
|
||||
{ label: "ติดต่อเรา", href: "/contact" },
|
||||
];
|
||||
---
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="footer-grid">
|
||||
<div class="footer-brand">
|
||||
<img src="/images/logo-long.png" alt="MoreminiMore" class="footer-logo" />
|
||||
<p class="footer-tagline">
|
||||
บริษัท มอร์มินิมอร์ จำกัด<br />
|
||||
ผู้เชี่ยวชาญด้าน IT และ Digital Transformation<br />
|
||||
สำหรับธุรกิจ SMEs ไทย
|
||||
</p>
|
||||
<div class="social-links">
|
||||
{socialLinks.map((social) => (
|
||||
<a href={social.href} class="social-link" aria-label={social.label} target="_blank" rel="noopener noreferrer">
|
||||
<img src={`/icons/social/${social.icon}.svg`} alt={social.label} />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer-links">
|
||||
<h4>ลิงก์ด่วน</h4>
|
||||
<ul>
|
||||
<li><a href="/">หน้าแรก</a></li>
|
||||
<li><a href="/about">เกี่ยวกับเรา</a></li>
|
||||
<li><a href="/portfolio">ผลงาน</a></li>
|
||||
<li><a href="/blog">บทความ</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="footer-links">
|
||||
<h4>บริการ</h4>
|
||||
<ul>
|
||||
<li><a href="/services/consult">Tech Consult</a></li>
|
||||
<li><a href="/services/ai">AI Automation</a></li>
|
||||
<li><a href="/services/marketing">Marketing Automation</a></li>
|
||||
<li><a href="/services/webdev">พัฒนาเว็บไซต์</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="footer-contact">
|
||||
<h4>ติดต่อ</h4>
|
||||
<p><strong>โทร:</strong> 080-995-5945</p>
|
||||
<p><strong>อีเมล:</strong> contact@moreminimore.com</p>
|
||||
<p><strong>ที่อยู่:</strong> 53 หมู่ 1 ต.บ้านแพ้ว อ.บ้านแพ้ว สมุทรสาคร 74120</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer-bottom">
|
||||
<p>© {currentYear} บริษัท มอร์มินิมอร์ จำกัด. สงวนลิขสิทธิ์.</p>
|
||||
<div class="legal-links">
|
||||
{footerLinks.map((link) => (
|
||||
<a href={link.href}>{link.label}</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<style>
|
||||
.footer {
|
||||
background: var(--color-light-gray);
|
||||
color: var(--color-black);
|
||||
padding: 80px 0 40px;
|
||||
}
|
||||
|
||||
.footer-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr 1.5fr;
|
||||
gap: 48px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
|
||||
.footer-logo {
|
||||
height: 40px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.footer-tagline {
|
||||
font-size: 14px;
|
||||
color: var(--color-medium-gray);
|
||||
margin-bottom: 24px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.social-link img {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
opacity: 0.6;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.social-link:hover img {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.footer-links h4,
|
||||
.footer-contact h4 {
|
||||
font-family: var(--font-heading);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 20px;
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.footer-links ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.footer-links li {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.footer-links a {
|
||||
color: var(--color-medium-gray);
|
||||
font-size: 14px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.footer-links a:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.footer-contact p {
|
||||
font-size: 14px;
|
||||
color: var(--color-medium-gray);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.footer-contact strong {
|
||||
color: var(--color-black);
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
||||
padding-top: 24px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 13px;
|
||||
color: var(--color-medium-gray);
|
||||
}
|
||||
|
||||
.legal-links {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.legal-links a {
|
||||
color: var(--color-medium-gray);
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.legal-links a:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.footer-grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.footer-brand {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.footer-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.footer-brand {
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.legal-links {
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user