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

Ping Single Column Coming Soon Page | HTML CSS Sass JavaScript

#accessibility#pwa#sass/scss#workbox#bem
Vanza Setiaβ€’ 27,855

@vanzasetia

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


I've finished another challenge! πŸŽ‰

This challenge has a straightforward layout and it is a nice challenge to keep my skill sharp. However, I try a new thing by changing the order of the head meta tags which hopefully makes the site run faster. In 4G the site loads after 1.3s, and in 3G the site loads after 3.5s which, is still really slow. So, is the site loads fast enough on your side?

I also make this as PWA (Progressive Web Apps), just for practice. So, you can install it and, it should be able to work even without the internet. 😁

Feel free to give me any feedback or comments. πŸ˜‰

If you have finished this challenge and would like me to give feedback on it, please include a link to your solution. I would be glad to help you! πŸ˜€

Thanks!

P.S. I follow the order of the meta tags that Harry Roberts recommends. You can learn more about it by watching this YouTube video (Harry Roberts - Get Your "head" Straight).

Community feedback

Rickyβ€’ 470

@pyaetheiN

Posted

Hello Vanza! The amount of extra work you put into this challenge is amazing and I would love to add them into my solution too. However, I've a few questions...

  • How do u redirect your page to display "Thank you!". I don't see any extra html files nor additional line of codes for that redirected page... Would you mind explaining me how things worked?
  • I also don't understand the difference between capturing groups and non-capturing groups in RegEx patterns so could you explain to me in simpler terms?

Marked as helpful

1

Vanza Setiaβ€’ 27,855

@vanzasetia

Posted

@pyaetheiN Hi Ricky! Thank you for the questions! Here are the answers to your questions.

  • I use the Netlify built-in form handling that’s enabled by default. It gives me the default "Thank you" page. You can do the same thing by hosting your solution to Netlify and follow the setup guide.
  • The difference between those is the capturing group remembers the matched text while the non-capturing group doesn't. So, for example.
const sentence = "hello world"
const captureRegex = /(hello) (world)/
const nonCaptureRegex = /(?:hello) (?:world)/

const captureMatch = sentence.match(captureRegex)
const nonCaptureMatch = sentence.match(nonCaptureRegex)

// It remembers the matched string
console.log(captureMatch[1]) // hello
console.log(captureMatch[2]) // world

// It doesn't remember the matched string
console.log(nonCaptureMatch[1]) // undefined
console.log(nonCaptureMatch[2]) // undefined

So, by using the capturing group, you can recall or use the matched strings later with an array from index number one to index number two in this case. While the non-capturing group doesn't remember the matched string. So, it just returns undefined.

The number zero index of the array returns all the matched strings.

console.log(captureMatch[0]) // ["hello world"]
console.log(nonCaptureMatch[0]) // ["hello world"]

I recommend trying it yourself by copy-paste the code and running the code by yourself. It's going to help you understand what's going on. Feel free to play around with it and ask me more questions about it.

2
Vanza Setiaβ€’ 27,855

@vanzasetia

Posted

@pyaetheiN I want to share the resources that I used to answer your second question.

Hopefully, it's helpful to you. πŸ˜„

1
Rickyβ€’ 470

@pyaetheiN

Posted

@vanzasetia Thank you so much for helping me out... everything's adding up to my questions. I really appreciate your time and support on this!

0
Vanza Setiaβ€’ 27,855

@vanzasetia

Posted

@pyaetheiN No problem! πŸ‘

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