Lachlan McMurtrie
The app is a collaborative component builder. it begin by starting a project, entering in a description. the next page will be an ai assisted project scope, where the user will type the component type, which will be a list of core components (all that are core across ui domains). The ai will then ask for a framework of native react or react for web. the behavioral hooks, interactions and utilites that align with the component will then be showed. for web, these must be all react-aria, for native, these will be react-native. assume react-shared types for cross platform as common, as well as react-stately for states which are also cross platform. provide the user with a the data attributes as per react-aria or native equivilant documentation, ask them how they want to recieve their code files - combined as typed primitives, or separated through the use of an adapter that exports the behaviors etc to the primitive.
499a14d verified Download components/footer.js from EdCumberpatch/componentforge-ai-builder: direct link, hf CLI and curl.
- Browser
- Download file 2.44 kB
-
https://huggingface.co/spaces/EdCumberpatch/componentforge-ai-builder/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/EdCumberpatch/componentforge-ai-builder/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/EdCumberpatch/componentforge-ai-builder/resolve/main/components/footer.js
2.44 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: rgba(17, 24, 39, 0.8); | |
| border-top: 1px solid rgba(55, 65, 81, 0.5); | |
| margin-top: auto; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| } | |
| .footer-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 2rem 0; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 2rem; | |
| } | |
| .footer-link { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| font-size: 0.875rem; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| color: #6b7280; | |
| font-size: 0.875rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-content { | |
| flex-direction: column; | |
| gap: 1rem; | |
| text-align: center; | |
| } | |
| .footer-links { | |
| gap: 1rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="footer-content"> | |
| <div class="copyright"> | |
| © 2024 ComponentForge AI. Built with 💜 and React. | |
| </div> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Privacy</a> | |
| <a href="#" class="footer-link">Terms</a> | |
| <a href="#" class="footer-link">GitHub</a> | |
| <a href="#" class="footer-link">Contact</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |