-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Open
Description
[
<title>ธุรกิจของคุณ - Professional Website</title> <style> /* --- ตั้งค่าพื้นฐาน (Reset & Base) --- */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Prompt', sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; } a { text-decoration: none; color: inherit; } ul { list-style: none; } img { max-width: 100%; height: auto; } /* --- ส่วนหัว (Navbar) --- */
nav {
background: #fff;
padding: 1rem 5%;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.logo { font-size: 1.5rem; font-weight: 600; color: #2563eb; }
.nav-links a { margin-left: 20px; font-weight: 400; color: #555; transition: 0.3s; }
.nav-links a:hover { color: #2563eb; }
/* --- ส่วนแนะนำ (Hero Section) --- */
.hero {
background: linear-gradient(135deg, #2563eb, #1e40af);
color: white;
padding: 100px 20px;
text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.btn-cta {
background: #ffca28;
color: #333;
padding: 12px 30px;
border-radius: 50px;
font-weight: 600;
transition: 0.3s;
display: inline-block;
}
.btn-cta:hover { background: #ffd740; transform: translateY(-3px); }
/* --- ส่วนบริการ (Services) --- */
.container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; color: #1e293b; }
.section-title p { color: #64748b; margin-top: 10px; }
.grid-3 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.card {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
text-align: center;
transition: 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card h3 { margin: 15px 0; color: #2563eb; }
/* --- ส่วนติดต่อ (Contact) --- */
.contact-section { background: #e2e8f0; }
.contact-form {
max-width: 600px;
margin: 0 auto;
background: white;
padding: 30px;
border-radius: 10px;
}
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-family: 'Prompt', sans-serif;
}
.btn-submit {
background: #2563eb;
color: white;
border: none;
padding: 12px 30px;
border-radius: 5px;
cursor: pointer;
width: 100%;
font-size: 1rem;
}
.btn-submit:hover { background: #1d4ed8; }
/* --- ส่วนท้าย (Footer) --- */
footer {
background: #1e293b;
color: white;
text-align: center;
padding: 20px;
margin-top: auto;
}
/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
.hero h1 { font-size: 2rem; }
.nav-links { display: none; } /* ซ่อนเมนูบนมือถือแบบง่าย */
}
</style>
<nav>
<div class="logo">MyBrand</div>
<div class="nav-links">
<a href="#home">หน้าแรก</a>
<a href="#services">บริการ</a>
<a href="#about">เกี่ยวกับเรา</a>
<a href="#contact">ติดต่อ</a>
</div>
</nav>
<header id="home" class="hero">
<h1>ยกระดับธุรกิจของคุณไปอีกขั้น</h1>
<p>เราพร้อมสร้างสรรค์ผลงานคุณภาพเพื่อความสำเร็จของคุณ</p>
<a href="#contact" class="btn-cta">เริ่มต้นใช้งานฟรี</a>
</header>
<section id="services" class="container">
<div class="section-title">
<h2>บริการของเรา</h2>
<p>สิ่งที่เชี่ยวชาญและพร้อมให้บริการคุณ</p>
</div>
<div class="grid-3">
<div class="card">
<h3>การตลาดออนไลน์</h3>
<p>วางแผนกลยุทธ์เพิ่มยอดขาย เจาะกลุ่มเป้าหมายอย่างแม่นยำ</p>
</div>
<div class="card">
<h3>รับออกแบบกราฟิก</h3>
<p>สร้างภาพลักษณ์แบรนด์ให้โดดเด่น ด้วยดีไซน์ที่ทันสมัย</p>
</div>
<div class="card">
<h3>พัฒนาเว็บไซต์</h3>
<p>เว็บไซต์คุณภาพสูง รองรับทุกอุปกรณ์ ใช้งานง่าย</p>
</div>
</div>
</section>
<section id="about" class="container" style="background-color: white; border-radius: 10px;">
<div class="section-title">
<h2>เกี่ยวกับเรา</h2>
</div>
<p style="text-align: center; max-width: 800px; margin: 0 auto;">
เราคือทีมงานมืออาชีพที่มีประสบการณ์มากกว่า 10 ปี มุ่งมั่นที่จะส่งมอบผลงานที่ดีที่สุดให้กับลูกค้าทุกคน
ไม่ว่าจะเป็นธุรกิจขนาดเล็กหรือองค์กรขนาดใหญ่ เราพร้อมเป็นพาร์ทเนอร์เคียงข้างความสำเร็จของคุณ
</p>
</section>
<section id="contact" class="contact-section">
<div class="container">
<div class="section-title">
<h2>ติดต่อเรา</h2>
<p>กรอกข้อมูลด้านล่าง แล้วเราจะติดต่อกลับโดยเร็วที่สุด</p>
</div>
<form class="contact-form">
<div class="form-group">
<input type="text" placeholder="ชื่อของคุณ" required>
</div>
<div class="form-group">
<input type="email" placeholder="อีเมล" required>
</div>
<div class="form-group">
<textarea rows="5" placeholder="ข้อความที่ต้องการสอบถาม"></textarea>
</div>
<button type="submit" class="btn-submit">ส่งข้อความ</button>
</form>
</div>
</section>
<footer>
<p>© 2024 MyBrand Website. All Rights Reserved.</p>
</footer>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels