rmcg.dev/projects/FrontendMentor/newbie/base-apparel-coming-soon
Robert McGovern 4995e1c9e4 cleanup of JavaScript 2022-10-20 00:16:56 +01:00
..
css hack that puts button and error message beside input field, but possibly means cannot use button 2022-10-20 00:01:07 +01:00
design added base files for the remaining newbiew projects I have 2022-09-07 10:53:05 +01:00
images added base files for the remaining newbiew projects I have 2022-09-07 10:53:05 +01:00
js cleanup of JavaScript 2022-10-20 00:16:56 +01:00
.gitignore added base files for the remaining newbiew projects I have 2022-09-07 10:53:05 +01:00
README-orig.md added advice-generator-app challenge and beginning of base apparel 2022-10-04 10:19:15 +01:00
README.md near finished state, must redo submit button positioning and add the error icon 2022-10-19 23:05:01 +01:00
desktop-design.jpg temp submit to ask for help 2022-10-19 19:22:49 +01:00
index.html bbzzzzt wrong, can use button, I was thinking of form vs div 2022-10-20 00:11:59 +01:00
mobile-design-with-boxes.jpg temp submit to ask for help 2022-10-19 19:22:49 +01:00
mobile-design-with-smaller-boxes.jpg temp submit to ask for help 2022-10-19 19:22:49 +01:00
style-guide.md added base files for the remaining newbiew projects I have 2022-09-07 10:53:05 +01:00

README.md

Frontend Mentor - Base Apparel coming soon page solution

This is a solution to the Base Apparel coming soon page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Receive an error message when the form is submitted if:
    • The input field is empty
    • The email address is not formatted correctly

Screenshot

Add a screenshot of your solution. The easiest way to do this is to use Firefox to view your project, right-click the page and select "Take a Screenshot". You can choose either a full-height screenshot or a cropped one based on how long the page is. If it's very long, it might be best to crop it.

Alternatively, you can use a tool like FireShot to take the screenshot. FireShot has a free option, so you don't need to purchase it.

Then crop/optimize/edit your image however you like, add it to your project, and update the file path in the image above.

Note: Delete this note and the paragraphs above when you add your screenshot. If you prefer not to add a screenshot, feel free to remove this entire section.

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • React - JS library
  • Next.js - React framework
  • Styled Components - For styles

Note: These are just examples. Delete this note and replace the list above with your own choices

What I learned

The element is a container only. The element is the main part describing its contents. only describes different sources. So the alt remains the same for all of them.

https://stackoverflow.com/a/48207973

Continued development

Use this section to outline areas that you want to continue focusing on in future projects. These could be concepts you're still not completely comfortable with or techniques you found useful that you want to refine and perfect.

Note: Delete this note and the content within this section and replace with your own plans for continued development.

Useful resources

  • Example resource 1 - This helped me for XYZ reason. I really liked this pattern and will use it going forward.
  • Example resource 2 - This is an amazing article which helped me finally understand XYZ. I'd recommend it to anyone still learning this concept.

Note: Delete this note and replace the list above with resources that helped you during the challenge. These could come in handy for anyone viewing your solution or for yourself when you look back on this project in the future.

Author

Acknowledgments

My thanks to Julio Cinquina on the FEM Slack for correcting my misunderstanding of the :has pseudo-class.

Initial HTML

  <main>
    <header>
      <picture>
        <img src="images/logo.svg" alt="Logo of Base Apparel. Hollow round circle with the text Base Apparel beside it">
      </picture>
    </header>

    <picture>
      <source srcset="images/hero-desktop.jpg" media="(min-width: 1000px">
      <img src="images/hero-mobile.jpg"
        alt="Hero image of a young lady holding her arm up showing some jewelry on her wrist. The lady stands in front of a bush">
    </picture>

    <h1></h1>
    <p></p>

    <form action="submit">
      <label class="visually-hidden" for="email">Email input field</label>
      <input placeholder="Email Address" type="email" name="email" id="email">
      <button type="submit"><img src="" alt=""></button>

    </form>
  </main>

visually hidden https://stackoverflow.com/a/71349645