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

Intro component with sign-up form with TailwindCSS and Vanilla CSS

Sagar Kaurav• 460

@sagarkaurav

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feedback appreciated

Community feedback

Mark Mitchell• 1,820

@markup-mitchell

Posted

I'm happy to see other tailwind users on here! It looks really close to the design.

Just a couple of things I noticed:

object-fill is not doing anything on your <body> element; it won't act on a div's background-image, only a replaced element like a <img>.

I'm not sure the validaton on the inputs is working as intended - I struggled to get the errors to show!

1

Sagar Kaurav• 460

@sagarkaurav

Posted

@markup-mitchell I have removed the object-fill class as you suggested.

The validations are seemed to work fine for me. If you having any problems please share the screenshot so I can resolve the issue.

0

@bashiroglu

Posted

@sagarkaurav, It looks good, two things I noticed, probably "try it free" is not a button just div or p. And it needs more space for form in a horizontal direction. Good luck.

1

Sagar Kaurav• 460

@sagarkaurav

Posted

@bashiroglu Made changes as you suggested.

0
P
Grace• 27,930

@grace-snow

Posted

Really nice solution, this one! I like it a lot.

A few small learning points from your html:

  • Only minor, but with aria labels, write them as you would any label. So instead of aria-label="First Name input" just put first name in there. It is announced as an input already, so screenreaders would hear input, text, first name input with how you have it at the moment.
  • make sure any text you have on the page is always in a meaningful element. Just a span or div is not enough. This one is a bit more important as paragraphs, lists, and other text elements are all used to make up the document outline for search engines and assistive tech. They don't know what to do with text in a span/div alone.

I hope these tips are helpful. You've been doing great work

0

Sagar Kaurav• 460

@sagarkaurav

Posted

@grace-snow I have changed all the arial-label with appropiate text. Now I am using h2 tag for try it free text because I think it is second important thing on page after Learn code by watching others which is using h1. My web knownledge in accessbility and HTML semantics is little weak I am working on it.

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