Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
17
Comments
14

Sajana Wijesinghe

@StormKing969Austin, TX460 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • Responsive Website using React

    #react#sass/scss

    Sajana Wijesinghe•460
    Submitted over 2 years ago

    1 comment
  • Responsive Coming Soon Page using a mobile first approach

    #react#sass/scss

    Sajana Wijesinghe•460
    Submitted about 3 years ago

    0 comments
  • Responsive Site using a mobile first approach with React & Scss

    #react#sass/scss

    Sajana Wijesinghe•460
    Submitted about 3 years ago

    0 comments
  • Responsive Rating Component with a Mobile First Approach

    #sass/scss

    Sajana Wijesinghe•460
    Submitted over 3 years ago

    1 comment
  • Responsive Website with a mobile-first approach using SCSS

    #jquery#sass/scss

    Sajana Wijesinghe•460
    Submitted over 3 years ago

    0 comments
  • Responsive Website with a mobile-first approach using SCSS/Node JS/EJS

    #express#node#sass/scss#mongodb

    Sajana Wijesinghe•460
    Submitted over 3 years ago

    1 comment
View more solutions

Latest comments

  • James.•460
    @Jimztech
    Submitted 9 months ago
    What challenges did you encounter, and how did you overcome them?

    Working with json file, was the main challenge I faced. The second challenge I faced was the overlapping of the boxes, I had to learn z-index and really understand positioning in css.

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

    How to get the element active with a color of white when clicked.

    time tracker dashboard

    2
    Sajana Wijesinghe•460
    @StormKing969
    Posted 9 months ago

    The reason why the text won't turn white when clicked is because of the opacity that the 'daily-list' has. It basically darkens the color you placed on the timeframes. The easiest fix I can think of is adding the opacity based on what's selected and not selected. Also, I did create a pull request on your Github page if you want to see the solution.

    Marked as helpful
  • Agnimel•130
    @heless
    Submitted over 1 year ago

    advice generator using the Advice Slip API

    #accessibility#fetch#jss#sass/scss
    1
    Sajana Wijesinghe•460
    @StormKing969
    Posted over 1 year ago

    Not sure if you noticed but you seem to be getting duplicate responses from your API call especially if you preview the site on Firefox. To prevent that, you'll have to disable caching in your code.

  • andrewras58•50
    @andrewras58
    Submitted over 1 year ago

    QR Code solution (HTML, CSS Flexbox)

    2
    Sajana Wijesinghe•460
    @StormKing969
    Posted over 1 year ago

    For the best coding practice, I'd take a look at this link and as for the issue about the space between the top text and bottom one, you'll have to make the margin of the first text to be 0 instead of none or something like this

    .container > .header{
        margin-bottom: 0px;
    }
    
    Marked as helpful
  • Abere Fejiro•490
    @Fejiro001
    Submitted over 1 year ago

    Advice Generator (Flexbox+API)

    #accessibility#fetch#lighthouse
    2
    Sajana Wijesinghe•460
    @StormKing969
    Posted over 1 year ago

    Not sure if you noticed but you seem to be getting duplicate responses from your API call. to prevent that, you'll have to disable caching. Also I'd suggest that you put your call in a try catch methods. That way, you can log any error you get.

  • Bruno Afonso•110
    @BrunoAfonsoOliveira
    Submitted almost 3 years ago

    CSS Flexbox; Semantic HTML; Media Query

    2
    Sajana Wijesinghe•460
    @StormKing969
    Posted almost 3 years ago

    Hi.

    When I looked at your css file, I saw a lot of hard coded sizes which make life harder when you want to make the website responsive. A quick fix would be to use "em", "rem", "vh" or "%" when defining sizes. In some place instead of using height or width to define the length of your container, use margin or padding to set the limits. You can also use "calc()". Use "px" sparingly.

    Marked as helpful
  • Tales•60
    @sselat
    Submitted over 3 years ago

    Simple QR Code w/ html+css only

    2
    Sajana Wijesinghe•460
    @StormKing969
    Posted over 3 years ago

    Hi,

    Congratulation on completing this challenge. Overall, you did well especially since you just started. Allow me to give you some tips on improving your code.

    1.Instead of writing your CSS (style section) inside your HTML file, you should create a separate CSS file and link it in your HTML file underneath the title tag inside the head tag. <link rel="stylesheet" href="./public/css/main.css">

    2.I usually start off my styling by remove all the default browser styles and adding my own.

    * {
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    } 
    
    body {
        font-family: 'Overpass', sans-serif;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        scroll-behavior: smooth;
        overflow: hidden;
        background: $very-dark-blue;
    }
    

    3.I also try to stay away from hard coding size (depends on the situation) and instead use rem or em. This way, you can easily have your website responsive.

    4.Use @media to style your website for different devices

    @media screen and (min-width: 370px) {
        .container {
            width: 370px;
        }
    }
    

    5.I'll also learn about display: flex and grid. Here are some links that I look at when I forget some stuff about them. Flexbox, Grid

    6.Finally I learn SCSS/SASS when you have a good understanding of CSS. It's easy and it make styling a lot simpler in my opinion.

    Here's a link to my version of the QR Code Component : QR-Code

    Hope this helps

    Happy coding

    Marked as helpful
View more comments
Frontend Mentor logo

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

Beta Member

This badge is a shoutout to the early members of our community. They've been around since the early days, putting up with (and reporting!) bugs and adjusting to big UX overhauls!

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