huddle-landing-page-with-curved-sections (SASS - FLEXBOX)
Design comparison
Solution retrospective
hello, any constructive comments to improve my html or css(sass) skills are welcome.
hola, cualquier comentario constructivo para mejorar mis habilidades de html o css(sass), es bienvenido.
Community feedback
- @pikapikamartPosted almost 3 years ago
Hey, awesome work on this one. Desktop layout looks nice but needed some paddings so that the contents won't feel like they are too spaced-out on their counterpart. The site is responsive and again, that padding would be nice because if you go to like 950px, the text are now touching the screen-sides. The site on mobile state looks great though.
Some other suggestion on the site would be:
- It would be great to have a base styling of this:
html { box-sizing: border-box; font-size: 100%; } body { margin: 0; } *, *::before, *::after { box-sizing: inherit }
This way, handling an element specially its size will be easier because of the
box-sizing
- For this one, the preferred markup would look something like this:
<header /> <main /> <footer />
This way, all content of your page will be inside their own respective landmark element. The
aside
could be remove and use onlydiv
and be put inside themain
tag.- The
header
should only contain the website-logo and thetry it free
and leave the hero-section to themain
tag. The reason is that, you normally want theheader
to be as reusable for other pages of the site, by including the hero-section on that, you can't make it reusable because you don't want every page to have that default hero-section right, so only wrapped the top-most part of the site inside theheader
. figure
could just be replaced by theimg
tag itself since you don't really need to use it because there are no text to befigcaption
.- When using
img
tag, you don't need to add words that relates to "graphic" such as "logo" and others, sinceimg
is already an image so no need to describe it as one. Use onlyhuddle
for theimg
tag'salt
for the website-logo. Check otherimg
tags on the site as well if they are using those words. - The hero-section image could just use again
img
with nofigure
tag. Also, adding an extraaria-hidden="true"
attribute onimg
tags that are usingalt=""
will be really great so that screen-readers will totally ignore the image. - When wrapping up a text-content, make sure that it is inside a meaningful element like
p
tag or heading tag and not using likediv, span
to wrap the text. - Those wave-backgrounds could just be use as a value for
background-image
so that you won't have to create extra html tag.
FOOTER
- Same with the company logo, use a more proper
alt
value. - Those phone and email-icon are only decorative. Decorative images should be hidden for screen-reader at all times by using
alt=""
andaria-hidden="true"
to theimg
tag or onlyaria-hidden="true"
if you are usingsvg
instead ofimg
tag. - For the form-input. Your
input
right now currently lacks associatedlabel
to it or anaria-label
to which will define the purpose of theinput
element. Always include it so that user will know what they need to give on eachinput
. Make sure thatlabel
is pointing to theid
of theinput
as well. - Use
button
withtype="submit"
instead of usinginput
tag. - Also, creating your custom form-validation would be really nice, just to practice out that javascript skills.I have this simple accessible form snippet. Feel free to use it as reference when building out your form-validation:>
Those social-media links could be inside a
ul
element since those are "list" of links. - Each
a
tag that wraps the social-media icon should have eitheraria-label
attribute orsr-only
text inside it, defining where the link would take them. For example, you should usefacebook
as the value if the link would take the user to facebook. - Social-media image should be hidden since it is only a decorative image so use
alt=""
andaria-hidden="true"
.
Aside from those, great job again on this one.
Marked as helpful1@Francisco-Git99Posted almost 3 years ago@pikapikamart thank you very much for taking the time to watch the exercise and give me advice, I will apply the tips you gave me to continue improving. :D
1
Please log in to post a comment
Log in with GitHubJoin 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