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

Responsive newsletter signup form

Jafar Mirzapoorโ€ข 440

@jeff-mz

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey there ๐Ÿ‘‹

Features ๐ŸŽฏ

  1. Responsive
  2. Dom (document object model )
  3. 100% performance on mobile and desktop device

Built with ๐Ÿ’ฅ

  • Html and Css
  • Javascript
  • Sass/ Scss

Your feedback helps me alot to write more clean code so Don't forget to write it ๐Ÿ˜‰

Community feedback

Petrit Nurediniโ€ข 2,860

@petritnuredini

Posted

Congratulations on completing your project! ๐ŸŽ‰ Your effort in building a responsive countdown timer app with React.js and TypeScript is truly commendable. It's great to see that you've implemented a component-based structure and made the app responsive for both mobile and desktop views. ๐Ÿ–ฅ๏ธ๐Ÿ“ฑ

Here are some best practices recommendations to consider:

  • Semantic HTML: Use more semantic elements in your markup where possible. This not only improves accessibility but also helps with SEO and maintainability of your code. For instance, consider using <button> instead of <div> for clickable actions. ๐Ÿง

  • CSS Organization: Organize your CSS by splitting it into logical sections and possibly using comments to denote those sections. This will make it easier to navigate and maintain in the long run. ๐Ÿ“

  • Avoid Inline Styles: In your JavaScript, try to avoid setting styles directly on elements. Instead, toggle classes that define these styles. This keeps your presentation and behavior concerns separate. ๐Ÿ‘

  • Use const and let: It's best practice in modern JavaScript to use const and let for variable declarations instead of var. This provides block-scoped variables, which can help prevent various bugs. ๐Ÿž

  • Accessibility: Ensure that your app is fully accessible. For example, all interactive elements should be focusable and should have appropriate ARIA labels if their purpose is not clear from the text content alone. ๐Ÿ”

  • Code Formatting: Consider using a code formatter like Prettier or ESLint. This will help you maintain a consistent code style and catch potential issues early. ๐Ÿงน

  • Performance: Keep an eye on the performance of your app. Tools like Google's Lighthouse can be used to audit your app and provide insights on how it can be improved. ๐Ÿš€

  • Testing: If you haven't already, start writing tests for your components. This will save you time in the long run and make your app much more reliable. Jest and React Testing Library are great tools to get started with. โœ…

References:

Keep up the great work, and never stop learning and improving. The world of front-end development is always evolving, and staying up-to-date with best practices will ensure your projects stand out. Remember, every line of code is a step forward in your development journey! ๐Ÿ’ช

0

Jafar Mirzapoorโ€ข 440

@jeff-mz

Posted

that was informative but this is another project @petritnuredini

1

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