Code Monkey home page Code Monkey logo

Comments (15)

yuliana-r avatar yuliana-r commented on May 30, 2024 1

Yes absolutely, enjoy @749cakeee ! :)

from curriculum.

MaoShizhong avatar MaoShizhong commented on May 30, 2024 1

@749cakeee 👌 Just realised the original .container is lightblue and not aqua, no idea why my suggestion ended up with aqua XD We can keep aqua - just a funny observation.

If you go ahead with the first PR to add that image file to the repo, then once that's merged, you can make the 2nd PR to swap the image link in the lesson and delete the old image file from the repo.

from curriculum.

nikitarevenco avatar nikitarevenco commented on May 30, 2024

Gap is a property that is covered in a later lesson. So there is no need to ask learners to try to search it up, when it's already explained at a later point.

Another alternative is to add a note that these images have gap property that will be covered in a later lesson and learner's shouldn't worry about it. But I don't think this is a good idea, why not just fix the images instead?

So lets fix the images instead. These two images should be changed so that they don't include the gap property.

This image doesn't need to be changed. It doesn't use a code example, just demonstrates what is possible. Perhaps adding a note akin to 'you'll be able to make this type of layout by the end of this section' or something like that. But not necessary.

So what do you think about this?

Just my 2 cents

from curriculum.

MaoShizhong avatar MaoShizhong commented on May 30, 2024

Thanks @749cakeee for opening the issue and @nikitarevenco for the input.

Just investigated this and it looks like the only issue was the incorrect CSS properties were applied in the fix PR.

The following will produce the correct display in the first image without the gap property:

.container {
    background-color: aqua;
    padding: 12px;
    border: 4px solid blue;
    display: flex;
}

.item {
    background-color: peachpuff;
    border: 4px solid salmon;
    height: 48px;
    flex: 1;
    margin: 4px;
}

assuming an intuitive HTML structure of

<div class="container">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
</div>

Essentially, replacing gap with margin had margin put on the incorrect selector. gap goes on the flex container whilst margins go on the flex items - in the PR, margin was put on the flex container instead.

What I've done to replicate the image is the following:

  • Replace .item's padding for margin (keeping 4px to better reflect the image's scale). The flex items do not need a padding in this scenario.
  • Removed the margin property entirely from .container as its sole purpose was to "replace gap" but should've gone on .item instead.
  • Changed .container's padding to 12px just so the scaling better reflects the image.

I'd be very happy to have the image with the CSS fixed to show the CSS I've used above @749cakeee. I can assign you if you're happy to make implement this change. Changes to images in this repo needs to be done in 2 separate PRs as per the wiki instructions on adding images to the curriculum repo. i.e. one PR to replace the image in question, then after that's merged, a second PR to have the lesson file use the appropriate Statically CDN link (and delete the old image file).

from curriculum.

github-actions avatar github-actions commented on May 30, 2024

This issue is stale because it has had no activity for the last 30 days.

from curriculum.

CouchofTomato avatar CouchofTomato commented on May 30, 2024

@749cakeee Are you still interested in working on this issue?

from curriculum.

yuliana-r avatar yuliana-r commented on May 30, 2024

If no one is working on this I am happy to take it :)

from curriculum.

MaoShizhong avatar MaoShizhong commented on May 30, 2024

It doesn't look like the issue author is active so I'll assign this to you @yuliana-r.
The changes required are in my comment above, as are the instructions for how to handle adding images to the curriculum, meaning this change will be a 2-PR process.

Let me know if you have any questions.

from curriculum.

749cakeee avatar 749cakeee commented on May 30, 2024

@CouchofTomato, sorry, just saw this!

Yeah, I'm still interested in working on this issue 😄

@yuliana-r, since this is a 2-PR process, would you like to split the work? 😋

from curriculum.

yuliana-r avatar yuliana-r commented on May 30, 2024

@749cakeee heyy happy for you to take over if you want to work on both, otherwise I don't mind taking one PR! :)

from curriculum.

MaoShizhong avatar MaoShizhong commented on May 30, 2024

Guess I was a little too hasty in the assignment. It'll be easier for one person to do both PRs since they're back to back and not simultaneous.

If you're okay with that, @yuliana-r then I'll swap assignment to @749cakeee for this one.

from curriculum.

749cakeee avatar 749cakeee commented on May 30, 2024

Thanks, @yuliana-r!

Perhaps we can collab on another PR 😋

@MaoShizhong, how does this look? 🤔

Just wanted to run it by you before I go ahead ⬇️

03

from curriculum.

749cakeee avatar 749cakeee commented on May 30, 2024

@MaoShizhong, not sure if you got a notification so just tagging you here!

from curriculum.

MaoShizhong avatar MaoShizhong commented on May 30, 2024

@749cakeee Just checking in as the first step (replacing the image file) has been completed and merged. You're ready to do the second PR where you replace the image link in the lesson with the new one generated by Statically as per https://github.com/TheOdinProject/curriculum/wiki/Adding-Images-to-the-Curriculum

from curriculum.

749cakeee avatar 749cakeee commented on May 30, 2024

Hey @MaoShizhong, just created the second PR! 👉 #27817

from curriculum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.