CSNET's picture
ช่วยทำเว็บแอพ พี่สามารถถ่ายรูปตัวเอง โดยใช้การเปิดกล้องเท่านั้น และอัพโหลดรูปเข้าไปที่ ChatGPT ผ่าน API key เพื่อที่จะแปลงรูปตัวเอง ให้เป็นรูปคนที่หุ่นดี fit & firm ได้ ทั้งเพศหญิง และเพศชาย โดยที่หน้าไม่เปลี่ยน แต่เปลี่ยนหุ่น และชุดเป็นชุดฟิตเนส เน้นถึงกล้ามท้อง และสัดส่วนที่เหมาะสมกับคนออกกำลังกายเป็นอย่างดี
8bbd13a verified
Raw History Blame Contribute Delete
1.74 kB
class CustomHeader extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
header {
background: linear-gradient(135deg, #10b981 0%, #059669 50%, #f97316 100%);
color: white;
padding: 1rem 0;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
font-size: 1.5rem;
font-weight: bold;
text-decoration: none;
color: white;
}
.logo:hover {
transform: scale(1.05);
}
.logo-icon {
margin-right: 0.5rem;
font-size: 2rem;
}
</style>
<header>
<div class="container">
<a href="#" class="logo">
<span class="logo-icon">💪</span>
FitTransform Pro
</a>
<div>
<span style="font-size: 0.9rem; opacity: 0.9;">AI Body Transformation</span>
</div>
</div>
</header>
`;
}
}
customElements.define('custom-header', CustomHeader);