Skip to content
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

Cedar - Lux #65

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Cedar - Lux #65

wants to merge 16 commits into from

Conversation

k-nox
Copy link

@k-nox k-nox commented Dec 13, 2021

No description provided.

Copy link

@beccaelenzil beccaelenzil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this javascript in the web project! The styles are super cool, and you've clearly met the learning goals around applying styles dynamically and event handling. Your code is clear and readable, and makes great use of helper functions. Nice work!

<body>

</body>
</html>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work writing clear, semantic html.

@@ -0,0 +1,204 @@
const state = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great use of state object

// rendering
const renderTemp = () => {
const {
temp: { cTemp, fTemp },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice destructuring!

};

// helper logic for rendering
const getTempClass = () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice that getTempClass and getLandscapeContent have the same conditional tests. Consider refactoring and combining to DRY up your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants