hellooooooo000's picture
https://lovable.dev/ copie ce site pour creer un site entierement fonctionnel qui permet à l'utililisateur quand il tape son idée d'app l'ia gemini lui code son app souhaité et ensuite il peut lui parler pour discuter ou apporter des modifs
79ed84e verified
Raw History Blame Contribute Delete
1.83 kB
class CustomNavbar extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
nav {
background: white;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 50;
}
.logo {
color: #6366f1;
font-weight: bold;
font-size: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
margin: 0;
padding: 0;
align-items: center;
}
a {
color: #4b5563;
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}
a:hover {
color: #6366f1;
}
.cta {
background: #6366f1;
color: white;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
}
.cta:hover {
background: #4f46e5;
color: white;
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
}
</style>
<nav>
<a href="/" class="logo">
<i data-feather="code"></i>
LovableAI
</a>
<ul class="nav-links">
<li><a href="#how-it-works">How it Works</a></li>
<li><a href="#generate">Generator</a></li>
<li><a href="#chat">Chat</a></li>
<li><a href="#" class="cta">Get Started</a></li>
</ul>
</nav>
`;
}
}
customElements.define('custom-navbar', CustomNavbar);