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
Request path contains unescaped characters
Not Found

Submitted

Ping Single Column Coming Soon Page

jilenskiā€¢ 200

@jilenski

Desktop design screenshot for the Ping single column coming soon page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


šŸ¦‰ Hi Frontend Mentor Community!

It is my first solution to

šŸ’Ŗ Newbie Challenge: Ping Single Column Coming Soon Page

Feel free to check out my codes.

šŸŒšŸŽØšŸŸØ My solution is simple Vanilla HTML , CSS , and JavaScript.

šŸ’”šŸ  Lighthouse Audit Ave. Scores

āš” 95% šŸ“± - 99% šŸ–„ļø | Performance

šŸ¦Æ 95% | Accessibility

āœ… 100% | Best Practices

šŸ”Ž 100% | SEO

I plan to finish all challenges using this approach, but I will upgrade my stacks āš™ļøāš›ļøšŸŒ€ in the future. šŸ’Æ

Follow me with my coding journey!

Happy coding! šŸ„°

Community feedback

Kimo Sparkā€¢ 2,190

@kimodev1990

Posted

Really great work, Just a few feedbacks :

  • If I don't enter an email or entered a wrong form of email in the input , Then you entered the right email , the label error doesn't disappears .
  • If you add space at the beginning or end of email ( not between email ), It gives an error.

You could use in javascript:

const form = document.querySelector(".class name you provide in form tag");
const inputEmail = document.querySelector(".class name you provide in input tag");
const errorLabel = document.querySelector(".class name you provide for error");

form.addEventListener("submit", (event) => {
  event.preventDefault();
  if (validateEmail(inputEmail.value.trim()) === true) {
    showError();
  } else {
    hideError();
  }
});

function validateEmail(inputText) {
  const mailFormat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
  if (inputText.match(mailFormat)) {
    return false;
  }
  return true;
}

function showError() {
  errorLabel.classList.remove("hidden");
}

function hideError() {
  errorLabel.classList.add("hidden");
}

Hope you find this Helpful.

Marked as helpful

1

jilenskiā€¢ 200

@jilenski

Posted

@kimodev1990 Thank you so much for checking! šŸ™ I wasn't able to notice that. Your feedback was really helpful. I have already made a revision to my code. šŸ˜Š

0
Kimo Sparkā€¢ 2,190

@kimodev1990

Posted

@jilenski You're always welcome, Anytime....

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