Skip to content

Amethyst - Elaine Watkins and Sarah Watkins#73

Open
Sarahwatkinsdev wants to merge 15 commits into
Ada-C19:mainfrom
Sarahwatkinsdev:main
Open

Amethyst - Elaine Watkins and Sarah Watkins#73
Sarahwatkinsdev wants to merge 15 commits into
Ada-C19:mainfrom
Sarahwatkinsdev:main

Conversation

@Sarahwatkinsdev

Copy link
Copy Markdown

No description provided.

Comment thread index.html
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>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your Markup looks great!

@ameerrah9 ameerrah9 left a comment

Copy link
Copy Markdown

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 thread styles/index.css
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 {

Copy link
Copy Markdown

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 thread styles/index.css
Comment on lines +146 to +157
.red {
color: red;
}

.orange {
color: orange;
}

.yellow {
color: gold;
}

Copy link
Copy Markdown

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 thread src/index.js
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
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice!

Comment thread src/index.js
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);
})

Copy link
Copy Markdown

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 💯

Comment thread src/index.js
findCityLocation('Atlanta')
}

findCityLocation()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍🏾

Comment thread src/index.js
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');

Copy link
Copy Markdown

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