-
Notifications
You must be signed in to change notification settings - Fork 85
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
base: main
Are you sure you want to change the base?
Conversation
<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> |
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.
Your Markup looks great!
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.
Great work, Elaine + Sarah! 🥳
Thank you for your patience as we catch up on grading. This project is a Green. 🟢
Keep it up 💯
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 { |
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.
Amazing work with styling 👍🏾
.red { | ||
color: red; | ||
} | ||
|
||
.orange { | ||
color: orange; | ||
} | ||
|
||
.yellow { | ||
color: gold; | ||
} | ||
|
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 creating these class selectors
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 | ||
} |
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!
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.
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() |
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.
👍🏾
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'); |
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.
Super smart approach!
No description provided.