Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
48
Comments
13
cmb347827
@cmb347827

All comments

  • Nico Velasco•410
    @Darionvr
    Submitted 4 months ago
    What are you most proud of, and what would you do differently next time?

    Being able to use dnd-kit for the first time and make it work in this code was a big challenge. I'm happy with how, despite the difficulty, the code turned out quite clean and well-organized.

    What challenges did you encounter, and how did you overcome them?

    The most difficult part was adding the drag-and-drop functionality to reorder items. I used dnd-kit for the first time, and then the error appeared: {...listener} and {...attributes} from dnd-kit interfered with events like onChange. The solution was to remove {...listener} from the parent tag <li> to clear the event.

    <li {...attributes}> 
    <input onChange={()} />
    <label> 
    <p {...listener}> 
    </label> 
    </li> > 
    

    Reaching this solution took me a long time—reading the documentation, and even using AI to understand what was happening.

    What specific areas of your project would you like help with?

    I would have liked the backend .json file to be stored in local memory so that I wouldn't have to modify the original backend. However, I ultimately decided that the logic should rely on different states and that the backend fetch should only be used the first time the page is rendered.

    Todo App with Fetch Requests to Backend

    #express#react
    2
    cmb347827•900
    @cmb347827
    Posted about 12 hours ago

    For local memory access/storage, look into the localStorage.getItem/localStorage.setItem functions in js.

    You would use localStorage.getItem to retrieve the locally saved items, and localStorage.setItem to save the array locally.

  • cmb347827•900
    @cmb347827
    Submitted over 1 year ago

    Huddle landing page with curved sections master project

    #accessibility#bootstrap#sass/scss
    1
    cmb347827•900
    @cmb347827
    Posted over 1 year ago

    I've noticed the height of the screenshot is only a section of the entire project . But off course it's all there if I look at my project. It happens to have worked with the full height screenshot in the one project I didn't use Bootstrap container as much.

    Why is this? I do notice now I added the header within main, could have been the issue.

  • cmb347827•900
    @cmb347827
    Submitted about 2 years ago

    Results summary component main project

    #accessibility#jquery#sass/scss#bootstrap
    1
    cmb347827•900
    @cmb347827
    Posted about 2 years ago

    The screenshot isn't very good but thats because I fetch JSON and it takes a few seconds to load the data. Can someone please advise me why it's not correct appearantly?

  • cmb347827•900
    @cmb347827
    Submitted about 2 years ago

    Intro section with dropdown navigation project

    #accessibility#jquery#sass/scss#bootstrap
    2
    cmb347827•900
    @cmb347827
    Posted about 2 years ago

    I did use media queries that determined when the menu is shown in mobile , from line 242 in the scss file. But the code you posted above would have been a neater solution to what I did.

    I liked to seperate my code (add eventlistener one at a time) as I did as I think it's more readable maybe .

  • cmb347827•900
    @cmb347827
    Submitted over 2 years ago

    Expenses chart component main project

    #accessibility#d3#sass/scss#bootstrap
    1
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    I have added a hidden <h1> heading, as it's not really part of the project , I have to hide it. I it passes on another accessiblity checker site (https://fae.disability.illinois.edu/anonymous/?Anonymous%20Report=/)

  • cmb347827•900
    @cmb347827
    Submitted over 2 years ago

    Age calculator app main project

    #accessibility#bootstrap#sass/scss
    1
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    I had already added a display:none (d-none bootstrap) <h1> title for accesibilty reasons, but it does not validate here for some reason. All was fine in another site I used to check for accessiblity : https://fae.disability.illinois.edu/anonymous/?Anonymous%20Report=/

  • cmb347827•900
    @cmb347827
    Submitted over 2 years ago

    Project tracking info component master project

    #accessibility#bootstrap#sass/scss#jquery
    1
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    I have added menu capabilities, so the menu opens/closes and a menu item is highlighted when selected on hover.

  • Vanza Setia•27,715
    @vanzasetia
    Submitted over 2 years ago

    Pricing Component with Toggle | Progressive Enhancement

    #accessibility#lighthouse#progressive-enhancement#sass/scss#bem
    3
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    Yes, I created the toggle functionality with my code with just CSS. I also have a JS solution , but that's disabled.

    I used the :has pseudoselector:

    body:has(#annual:checked) .year{ display:block; } body:has(#annual:checked) .month{ display:none; } body:has(#monthly:checked) .year{ display:none; } body:has(#monthly:checked) .month{ display:block; }

    The year and month classes are <span> elements within the html body. They are positioned next to each other within each <li> element.

  • Nate-epp•200
    @Nate-epp
    Submitted over 2 years ago

    Pricing component with toggle

    #vite#react
    1
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    Hi, I'm not that great either at CSS, it's harder than it seems when you first get started! So don't worry, it's normal.

    Try adding a media query for the desktop width , and within that adding the following code: .middle{ margin-top: -15px; margin-bottom: -15px; border-radius: 15px; } You may need to adjust the negative margin value to make it work, but this worked for me.

    Marked as helpful
  • Vanza Setia•27,715
    @vanzasetia
    Submitted over 2 years ago

    Pricing Component with Toggle | Progressive Enhancement

    #accessibility#lighthouse#progressive-enhancement#sass/scss#bem
    3
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    Hi, about your question 'How to make an accessible toggle button with HTML and CSS only?'

    I also started out with a checkbox, until someone (at freecodecamp) pointed out that is not the correct way to code a toggle that in reality isn't an on/off (one option) toggle, but two options toggle(annual/monthly). He said to use two radio buttons.

    See the link below for an idea in the right direction: https://www.sarasoueidan.com/blog/toggle-switch-design/#if-the-switch-toggle-is-supposed-to-explicitly-offer-and-enable-two-separate-options%3A-public-and-private

  • cmb347827•900
    @cmb347827
    Submitted over 2 years ago

    Article preview component master project

    #bootstrap#sass/scss#jquery
    2
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    Thanks, I usually validate my code at https://validator.nu/#textarea , which picks up small oversights like this. And the accesibility aria-label, yes I need to remember accesibility as well.

  • sohail mahmoud•260
    @sohailmahmoud17
    Submitted over 2 years ago

    clipboard-landing-page-master

    2
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    Hi, yes to add fontawesome icons , just add the library link from cdnjs.com within your html head tag:

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />

    And then add the icon <i> tag , of whichever fontawesome icon you want, before or after the html element where you want to insert it ,like so :

    <a href='#home'><i class="fa-solid fa-house"></i>Home</a>

  • Ivan•30
    @shiyifan
    Submitted over 2 years ago

    Product Preview Card

    3
    cmb347827•900
    @cmb347827
    Posted over 2 years ago

    I haven't looked at your code, but it sounds like you may need to look into css flex?

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub