Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Age Calculator with VueJS

@G-Jasser

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey there, thank you for checking out my solution. This is my first time using this platform and I am somewhat new to Web Development. I have a few questions I'd like to ask:

  • What would a proper VueJS Web application look like? As in the file structure, code structure, ect..
  • How can one effectively approach project planning?
  • Also I have an issue with the button not changing color when hovering it, any clue on why?
.calculator-submit button{
border-radius: 100px;
border: 0;
background-color: hsl(259, 100%, 65%);
.
.
.
}
.calculator-submit button:hover{
background-color: hsl(0, 0, 8%);
cursor: pointer;
}

Thank you in advance.

Community feedback

web weaver 310

@servant-of-Allah

Posted

Great job on your solution! It's wonderful to see your enthusiasm for web development and your willingness to learn. I'll address your questions:

  • Proper VueJS Web Application: A proper VueJS web application typically follows a specific file and code structure. It's recommended to organize your files into components, views, and other relevant directories. Maintain a clear separation of concerns, with components handling specific functionalities and views serving as the main pages. Also, make sure to leverage Vue's reactive data system and utilize features like computed properties and lifecycle hooks.

  • Effective project planning: Project planning is crucial for successful development. Start by defining clear goals and requirements. Break down the project into smaller tasks, create a timeline, and allocate resources accordingly. Additionally, consider using project management tools, establishing regular communication channels, and conducting periodic reviews to track progress effectively.

  • Button color change issue: The code you provided looks fine, and the button should change color when hovered. However, ensure that there are no conflicting styles overriding the background-color property for the button in other CSS rules. Additionally, check if there are any errors in the browser console that might be affecting the button's behavior.

Keep up the great work, and don't hesitate to ask any further questions you may have. Happy learning and coding!

0

@G-Jasser

Posted

Thank you so much for your response! I am grateful for the guidance you have provided.

However, I must express that the answers provided so far are unclear to me. Could you please break down the first 2 concepts or provide examples to illustrate your points?

I apologize if my previous statement seemed less appreciative than intended. Please understand that my intention is to seek further clarification and gain a deeper understanding, and your assistance in achieving that would be immensely helpful.

Thank you for your patience and willingness to assist me further.

0
web weaver 310

@servant-of-Allah

Posted

No problem at all! I appreciate your willingness to seek further clarification. Let's break down the concepts with clearer examples:

  • Proper VueJS Web Application: When creating a VueJS web application, it's important to organize your files in a structured manner. Here's an example of a simple file structure:
- src/
- components/
- Button.vue
- Input.vue
- views/
- Home.vue
- About.vue
- App.vue
- main.js

In this example, the components folder contains reusable components like Button.vue and Input.vue. The views folder holds the different pages of your application, such as Home.vue and About.vue. The App.vue file represents the main component, and main.js is the entry point of your application.

  • Code Structure: Let's say you have a "Button" component. In this component's code, you can define its HTML structure, CSS styles, and functionality using VueJS. By following best practices, you'll keep the code organized, separating concerns. For instance, you could have a separate CSS file for styling, a <template> section for HTML markup, and a section for VueJS logic.

I hope these additional explanations and examples provide you with a clearer understanding.

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord