You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a home page component in Vanilla that serves as the landing page for our Decentralized Web App (DWA) starter, providing different views based on the user's connection status.
🤔 Background
We need to implement the home page for our Vanilla.js DWA starter, mirroring the functionality of the existing React implementation. This page should display a welcome message and a connect button when the user is not connected, and show a TodoList component (or placeholder) when connected.
This is part of our larger project to create a Vanilla.js DWA starter. See our main issue here for the full context and list of all related tasks.
Important: For reference, please see the DWA React Vite starter app. While the implementation details will differ for Vanilla, this example provides a good overview of the structure and functionalities of a DWA.
🔑 Tasks and Acceptance Criteria
Create a HomePage.vanilla component
Implement conditional rendering based on the user's connection status:
When not connected, display:
A title "DWA Starter"
An image (use the same workplace.svg or an equivalent)
A button labeled "Connect to your DWA" that initiates the Web5 connection process
A message below the button saying "Connect your DWA to get started"
When connected, display:
If a TodoList component exists, use it here
If no TodoList component exists yet, create a simple placeholder component that says "Todo List Coming Soon!"
Ensure the component uses the Web5 connection status correctly
Implement the connection functionality when the button is clicked
Style the component using Tailwind CSS to match the existing design
Ensure the layout is responsive and looks good on various screen sizes
Create home page component - Vanilla
🚀 Goal
Create a home page component in Vanilla that serves as the landing page for our Decentralized Web App (DWA) starter, providing different views based on the user's connection status.
🤔 Background
We need to implement the home page for our Vanilla.js DWA starter, mirroring the functionality of the existing React implementation. This page should display a welcome message and a connect button when the user is not connected, and show a TodoList component (or placeholder) when connected.
🔑 Tasks and Acceptance Criteria
HomePage.vanilla
component🌟 Resources
Getting Started
Questions?
If you have any questions or need clarification, please comment on this issue or join our Discord community.
Happy coding! 🎉
The text was updated successfully, but these errors were encountered: