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

All comments

  • Anarβ€’ 700

    @anar-sol

    Submitted

    Hello!

    I had some trouble placing the hero image in intermediate sizes (especially between 480px and 768px). If you have a better solution than mine, I'd be glad to hear about it.

    The W3C HTML validator considers it invalid to place a h2 inside a ul. I placed it there to have it as a grid element and place it among the li elements.

    I then placed it inside a li, but I wonder if this is an accessible solution.

    Any other advice is welcome =)

    @HA3IK

    Posted

    About the β€œlist”: I think that this is not a semantically correct solution.

    Even if the H2 outline, at the current position, extends to the entire SECTION correct. I don't see the point of making the title, in the markup, a list item. H2 should be just a heading for the UL, not an item of it.

    SECTION > H2 + UL > LI*5
    

    I also saw that you have a duplicate ID linearGradient#a. You can easily fix this by simply declaring a generic SVG[height=0] somewhere separately on the page, it should work:

    <svg height="0">
      <defs>
        <linearGradient id="a"> ... </linearGradient>
      </defs>
    </svg>
    
    0
  • Anarβ€’ 700

    @anar-sol

    Submitted

    Hello!

    I had some trouble placing the hero image in intermediate sizes (especially between 480px and 768px). If you have a better solution than mine, I'd be glad to hear about it.

    The W3C HTML validator considers it invalid to place a h2 inside a ul. I placed it there to have it as a grid element and place it among the li elements.

    I then placed it inside a li, but I wonder if this is an accessible solution.

    Any other advice is welcome =)

    @HA3IK

    Posted

    Hello, About β€œhero-image”.

    But 1st: it's a very nice effect u got πŸ‘ I'd leave it πŸ˜…

    If you want to control this image within its position, you just need to disable its absolut position (make it position:static) THEN or change object-fit to "contain", or add overflow:visible.

    IF you plan to center everything in one column (like on the mob.): .hero__body { margin:0 auto }

    ELSE IF you want to keep .hero__body and picture horizontally, just make the parent element Flexbox .hero__container { display:flex }

    0
  • @HA3IK

    Posted

    You don't need to listen to the same event on the same element for each function (DRY). You can call an anonymous function for all the functions you need:

    button.addEventListener("click", e => {
      newYear();
      newMonths();
      newDays();
    });
    

    Marked as helpful

    0
  • @HA3IK

    Posted

    Hello,

    A few recommendations for your JS code.

    1. To insert simple text do not use innerHTML, for this task use InnerText or textContent.
    2. No need to create hidden class, use [hidden] attribute.
    3. DRY (Don't repeat yourself) - You have large chunks of repetitive code. Lines 21-24 and 26-29, 46-49 and 51-54, 69-73 and 75-77,79 are absolutely identical. In this case, it is necessary to create functions that will perform the same task, and pass references to input, output, error, etc. tags as arguments:
    const showError = (label, input, output, msg) => {
      msg.hidden = true; // instead of: msg.classList.remove("hidden");
      label.classList.replace("text-SmokeyGrey", "text-LightRed");
      input.classList.replace("border-LightGrey", "border-LightRed");
      output.textContent = "--"; // instead of: output.innerHTML = "--";
    }
    
    // showError(yearsText, inputYear, years, errorMsg3);
    // showError(monthText, inputMonth, months, errorMsg2);
    // showError(dayText, inputDay, days, errorMsg1);
    

    The same for hideError()

    Marked as helpful

    0
  • @HA3IK

    Posted

    Hello.You are using the HEADER tag incorrectly.

    Semantically correct, if you wrap the main content in the MAIN tag.

    And you can use FIGURE + FIGCAPTION for the card (picture + description).

    Marked as helpful

    0
  • @amalhanaja

    Submitted

    1. Create CSS File
    2. Define styleguide sama import font-family
    3. Slicing UI
    • Card (<main>)
    • QR Code (<figure>)
    • QR Image (<img>)
    • Content (<section>)
    • Title (<h1>)
    • Description (<p>)
    1. Implement UI Structure in HTML
    2. Styling using CSS
    • Semantic HTML5 markup
    • CSS custom properties
    • Flexbox
    • CSS Grid
    • Box shadow
    • Margin shorthand

    @HA3IK

    Posted

    Also, SECTION is tag of "Sectioning Content" category - creates a section that defines the scope of the heading (H1-6) content. That is, semantically, MAIN data (with FIGURE) is outside the context of H1.

    Marked as helpful

    0
  • @amalhanaja

    Submitted

    1. Create CSS File
    2. Define styleguide sama import font-family
    3. Slicing UI
    • Card (<main>)
    • QR Code (<figure>)
    • QR Image (<img>)
    • Content (<section>)
    • Title (<h1>)
    • Description (<p>)
    1. Implement UI Structure in HTML
    2. Styling using CSS
    • Semantic HTML5 markup
    • CSS custom properties
    • Flexbox
    • CSS Grid
    • Box shadow
    • Margin shorthand

    @HA3IK

    Posted

    Hello. Instead of creating a new separate SECTION for the title and description, you can use FIGCAPTION, which is specifically intended to add text to the FIGURE content.

    MAIN > FIGURE > IMG + FIGCAPTION > H1 + P

    This will allow you to keep your HTML structure cleaner and more logical.

    Marked as helpful

    0