New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adding cat painting project #50565
feat: adding cat painting project #50565
Conversation
👀 Review this PR in a CodeSee Review Map |
Is this ready to go or are you still working on it @Ksound22? |
Not yet. I created the PR for early feedbacks so I won't write tests for what-nots. |
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c586be7180e40ddf74ff6.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c586be7180e40ddf74ff6.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5ace05e4be4211407935.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5d7057c45f432fcdd46c.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5ffef5598d449b52ec12.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f50308a3c70238ae99c42.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/6476f7a4827bcc61682f2347.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/6476fc5cf14b276e6d04e82a.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/6476fd4213318f6ee211028a.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/6477062778c85972eb648030.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is off to a good start.
Left a few comments 👍
curriculum/challenges/_meta/learn-intermediate-css-by-building-a-cat-painting/meta.json
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c47867800472a4ed5d2ea.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c48df8674cf2b91020ecc.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c586be7180e40ddf74ff6.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
.../learn/2022/responsive-web-design/learn-intermediate-css-by-building-a-cat-painting/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, this isn't a proper review (though it does look good!) I just noticed a typo when I glanced at this.
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c47867800472a4ed5d2ea.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through all the steps. The tests are working perfectly fine🚀
I have left some comments where the description needs to match the tests.
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c586be7180e40ddf74ff6.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646dde7dc20dc167489faa69.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646de6a97b50a86ac487de86.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through all of the steps and tests and I think it looks good.
Left a couple of small comments 👍
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646deb169847f86df0f95bfc.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f516dbfc1342495515625.md
Show resolved
Hide resolved
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Zaira <33151350+zairahira@users.noreply.github.com> Co-authored-by: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of nitpicks in the suggestions below, but I have some larger thoughts:
First, and I wish I had caught this when this was added to the curriculum expansion repo... There is a lot of repeated CSS. I feel like we're missing an opportunity to reinforce applying styles to multiple classes at once. It would be a pretty big refactor to change that at this point, but IMHO it's worth it. (It also felt tedious as a learner to be writing the same lines so many times)
Second, the indentation for blank lines in the editable regions are inconsistent. I've had some that started with 4 indents when they should only have 2 - even one with a good 10 or so indents. IMHO, new lines we provide for campers to write their code should either start at the appropriate indent level, or no indentation at all.
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5e727e56e743c9aed4a1.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5e727e56e743c9aed4a1.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5ffef5598d449b52ec12.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f164bf100dd11d226161f.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f1802a09a171332e14630.md
Outdated
Show resolved
Hide resolved
curriculum/challenges/_meta/learn-intermediate-css-by-building-a-cat-painting/meta.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
It would be a pretty big refactor at this point. Might not be worth doing, but essentially the common properties (e.g. width and height for all six whiskers) should be moved to a separate multi-class selector. |
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/6476f7a4827bcc61682f2347.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5ffef5598d449b52ec12.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f102bf87b350b593baa72.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646ce8bb4b35544d501c7184.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This works fine on my end: * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #c9d2fc;
}
.cat-head {
position: absolute;
right: 0;
left: 0;
top: 0;
bottom: 0;
margin: auto;
background: linear-gradient(#5e5e5e 85%, #45454f 100%);
width: 205px;
height: 180px;
border: 1px solid #000;
border-radius: 46%;
}
.left-ear {
position: absolute;
top: -26px;
left: -31px;
z-index: 1;
transform: rotate(-45deg);
border-top-left-radius: 90px;
border-top-right-radius: 10px;
border-left: 35px solid transparent;
border-right: 35px solid transparent;
border-bottom: 70px solid #5e5e5e;
}
.right-ear {
position: absolute;
top: -26px;
left: 163px;
z-index: 1;
transform: rotate(45deg);
border-top-left-radius: 90px;
border-top-right-radius: 10px;
border-left: 35px solid transparent;
border-right: 35px solid transparent;
border-bottom: 70px solid #5e5e5e;
}
.cat-left-inner-ear {
position: absolute;
top: 22px;
left: -20px;
border-top-left-radius: 90px;
border-top-right-radius: 10px;
border-bottom-right-radius: 40%;
border-bottom-left-radius: 40%;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 40px solid #3b3b4f;
}
.cat-right-inner-ear {
position: absolute;
top: 22px;
left: -20px;
border-top-left-radius: 90px;
border-top-right-radius: 10px;
border-bottom-right-radius: 40%;
border-bottom-left-radius: 40%;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 40px solid #3b3b4f;
}
.cat-left-eye {
position: absolute;
top: 54px;
left: 39px;
transform: rotate(25deg);
width: 30px;
height: 40px;
background-color: #000;
border-radius: 60%;
}
.cat-right-eye {
position: absolute;
top: 54px;
left: 134px;
transform: rotate(-25deg);
width: 30px;
height: 40px;
background-color: #000;
border-radius: 60%;
}
.cat-left-inner-eye {
position: absolute;
top: 8px;
left: 2px;
transform: rotate(10deg);
width: 10px;
height: 20px;
background-color: #fff;
border-radius: 60%;
}
.cat-right-inner-eye {
position: absolute;
top: 8px;
left: 18px;
transform: rotate(-5deg);
width: 10px;
height: 20px;
background-color: #fff;
border-radius: 60%;
}
.cat-nose {
position: absolute;
top: 108px;
left: 85px;
border-top-left-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
transform: rotate(180deg);
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-bottom: 20px solid #442c2c;
}
/* New multi-level selector for mouth starts */
.cat-mouth div {
width: 30px;
height: 50px;
border: solid 2px #000;
border-radius: 190%/190px 150px 0 0;
border-color: black transparent transparent transparent;
}
/* New multi-level selector for mouth ends */
.cat-mouth-line-left {
position: absolute;
top: 88px;
left: 74px;
transform: rotate(170deg);
}
.cat-mouth-line-right {
position: absolute;
top: 88px;
left: 91px;
transform: rotate(165deg);
}
/* New multi-level selector for whiskers starts */
.cat-whiskers-left div {
width: 40px;
height: 1px;
background-color: #000;
}
.cat-whiskers-right div {
width: 40px;
height: 1px;
background-color: #000;
}
/* New multi-level selector ends */
.cat-whisker-left-top {
position: absolute;
top: 120px;
left: 52px;
transform: rotate(10deg);
}
.cat-whisker-left-middle {
position: absolute;
top: 127px;
left: 52px;
transform: rotate(3deg);
}
.cat-whisker-left-bottom {
position: absolute;
top: 134px;
left: 52px;
transform: rotate(-3deg);
}
/* Right */
.cat-whisker-right-top {
position: absolute;
top: 120px;
left: 109px;
transform: rotate(-10deg);
}
.cat-whisker-right-middle {
position: absolute;
top: 127px;
left: 109px;
transform: rotate(-3deg);
}
.cat-whisker-right-bottom {
position: absolute;
top: 134px;
left: 109px;
transform: rotate(3deg);
} Apart from the whiskers, I also moved common selectors of the mouth to a multi-level selector. Is that enough? |
@naomi-lgbt could you please take another look now? I have moved those properties into some multi-level selectors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through all the steps and left a few comments. It looks nice.
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/6476f7a4827bcc61682f2347.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5ffef5598d449b52ec12.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646ce8bb4b35544d501c7184.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646cfd853634255d02b64cc1.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f09293eb3230723a62f77.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646de8478d6f796bfbdccfb2.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646de5dc8988076a1d992afd.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed till step 20.
A quick question- are we checking the semicolons in CSS?
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c48df8674cf2b91020ecb.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c59e942f35541923104bf.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c59e942f35541923104bf.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/6476fb7cbaafa36d65e9cf35.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5ffef5598d449b52ec12.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646ce8bb4b35544d501c7184.md
Show resolved
Hide resolved
No we are not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed till step 30.
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646ce9d790d2a44de5f99e04.md
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/64a2687ef267e5934a2f93e3.md
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f09293eb3230723a62f77.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Ksound22 !
I think the project looks good.
I just wanted to double check on the open conversations and if they are resolved.
If all of those conversations are resolved and the changes have been applied then I am happy to approve 👍
Co-authored-by: Zaira <33151350+zairahira@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Kolade, thanks for all of your hard work on this! It's looking great.
I've added a couple of formatting nitpicks - once those are resolved, happy to approve + merge.
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646c5d7057c45f432fcdd46c.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646dd7cfd0cfac630c1dd520.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646ddab8afd73764f5241bbf.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646dea1c98c2426d43a705c3.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646df0cf26413a7b35e4b8b3.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f09293eb3230723a62f77.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f0c9a1e3360092d1bbd33.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f102bf87b350b593baa72.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f135eab69d90d0c6d4e9b.md
Outdated
Show resolved
Hide resolved
...-web-design-22/learn-intermediate-css-by-building-a-cat-painting/646f1802a09a171332e14630.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on this Kolade! 💜
55097be
into
freeCodeCamp:naomi/picasso-replacement
Checklist:
main
branch of freeCodeCamp.This is the project that will replace the Picasso painting project.