Amethyst - Elaine Watkins and Sarah Watkins#73
Open
Sarahwatkinsdev wants to merge 15 commits into
Open
Conversation
ameerrah9
reviewed
Jun 27, 2023
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> |
ameerrah9
reviewed
Jun 27, 2023
ameerrah9
left a comment
There was a problem hiding this comment.
Great work, Elaine + Sarah! 🥳
Thank you for your patience as we catch up on grading. This project is a Green. 🟢
Keep it up 💯
ameerrah9
reviewed
Jun 27, 2023
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 { |
ameerrah9
reviewed
Jun 27, 2023
Comment on lines
+146
to
+157
| .red { | ||
| color: red; | ||
| } | ||
|
|
||
| .orange { | ||
| color: orange; | ||
| } | ||
|
|
||
| .yellow { | ||
| color: gold; | ||
| } | ||
|
|
There was a problem hiding this comment.
Nice work creating these class selectors
ameerrah9
reviewed
Jun 27, 2023
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 | ||
| } |
ameerrah9
reviewed
Jun 27, 2023
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); | ||
| }) |
There was a problem hiding this comment.
Great function naming, this looks really clean 💯
ameerrah9
reviewed
Jun 27, 2023
| findCityLocation('Atlanta') | ||
| } | ||
|
|
||
| findCityLocation() |
ameerrah9
reviewed
Jun 27, 2023
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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.