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

Amethyst - Elaine Watkins and Sarah Watkins #73

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

Conversation

Sarahwatkinsdev
Copy link

No description provided.

Comment on lines +61 to +82
<section class="choose-city">
<h4>City Name: </h4>
<input id="textbox"></input>
</section>
<section class="choose-sky">
<h4>Sky:</h4>
<select class="select-sky" name="select-sky">
<option value="sunny">Sunny</option>
<option value="cloudy">Cloudy</option>
<option value="rainy">Rainy</option>
<option value="snowy">Snowy</option>
</select>
</section>
</section>
<section class="row weather-garden">
<section id="sky">
<p>☁️ ☁️ ☁️ ☁️ ☀️ ☁️ ☁️ ☁️ ☁️</p>
</section>
<section id="landscape">
<p>🌸🌿🌼__🌷🌻🌿_☘️🌱_🌻🌷</p>
</section>
</section>

Choose a reason for hiding this comment

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

Your Markup looks great!

Copy link

@ameerrah9 ameerrah9 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, Elaine + Sarah! 🥳

Thank you for your patience as we catch up on grading. This project is a Green. 🟢

Keep it up 💯

Comment on lines +64 to +84
h1,
#city > h2,
h4,
.fa-solid {
font-family: 'Kanit', sans-serif;
}

#city > h2 {
text-align: right;
}

h2 {
font-size: 4em;
}

#city > h2,
h4 {
font-size: 2em;
}

#temperature {

Choose a reason for hiding this comment

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

Amazing work with styling 👍🏾

Comment on lines +146 to +157
.red {
color: red;
}

.orange {
color: orange;
}

.yellow {
color: gold;
}

Choose a reason for hiding this comment

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

Nice work creating these class selectors

Comment on lines +1 to +14
const state = {
left_arrow: null,
right_arrow: null,
degreeCountLabel: null,
landscape: "🌸🌿🌼__🌷🌻🌿_☘️🌱_🌻🌷",
degreeCount: 70,
textBox: null,
sky: "☁️ ☁️ ☁️ ☀️ ☁️ ☁️",
degreeCount: 70,
sky_options: null,
temp: 0,
tempDisplay: null,
cityHeader: null
}

Choose a reason for hiding this comment

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

Nice!

Comment on lines +20 to +43
const findCityLocation = async (cityName) => {
await axios.get('http://localhost:5000/location', {
params: {
q: cityName
}
})
.then(response => {
axios.get('http://localhost:5000/weather', {
params: {
lat: response.data[0].lat,
lon: response.data[0].lon
}
}).then(response => {
// state.temp = response.data.main.temp
// state.degreeCount = state.temp
convertKelvintoFahrenheight(response.data.main.temp)
state.degreeCountLabel.textContent = state.degreeCount
change_color()
console.log(state.degreeCount)
})
})
.catch((error) => {
console.log(error);
})

Choose a reason for hiding this comment

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

Great function naming, this looks really clean 💯

findCityLocation('Atlanta')
}

findCityLocation()

Choose a reason for hiding this comment

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

👍🏾

Comment on lines +79 to +98
const change_landscape = (garden) => {
state.landscape.textContent = garden;
}

let decreaseDegree = (event) => {
--state.degreeCount;
change_color();
refreshUI();
}

let increaseDegree = (event) => {
++state.degreeCount;
change_color();
refreshUI();
}

function updateCityName(event) {
if (event.key === "Enter") {

const cityNameInput = document.getElementById('textbox');

Choose a reason for hiding this comment

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

Super smart approach!

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.

3 participants