tested some continue.dev edits

This commit is contained in:
Nico Melone
2025-02-28 19:13:51 -06:00
parent 8fa85cf165
commit c17a43a50e
3 changed files with 54 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ body {
} }
header { header {
background-color: #007BFF; background-color: #008C2F;
color: white; color: white;
padding: 1em 0; padding: 1em 0;
text-align: center; text-align: center;
@@ -57,3 +57,13 @@ main {
.mb-2{ .mb-2{
list-style-type: none; list-style-type: none;
} }
/* styles.css */
#add-rank-btn, #save-btn {
background-color: #7A288A; /* This is a deep purple color */
border-color: #7A288A;
}
#add-rank-btn:hover, #save-btn:hover {
background-color: #55107B; /* This is a darker shade of purple for hover effect */
}

View File

@@ -1,6 +1,18 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1 id="datetime" data-time="{{now.isoformat()}}">{{now.strftime("%Y/%m/%d %H:%M:%S")}}</h1> <h1 id="datetime" data-time="{{now.isoformat()}}">{{now.strftime("%Y/%m/%d %H:%M:%S")}}</h1>
<!-- A bit of context for how this page was created -->
<p>This page was created with the help of LLMs and the Flask framework. It's a great way to learn about how these technologies work together.</p>
<p>Here are some of the key components that were used:</p>
<ul>
<li><strong>LLMs</strong>: Language Model, which is a type of AI model that can generate human-like text based on input prompts.</li>
<li><strong>Flask</strong>: A lightweight web framework for Python. It's great for building simple web applications quickly.</li>
<li><strong>Jinja2</strong>: A templating engine used in Flask to dynamically render HTML templates with data from the server.</li>
<li><strong>Bootstrap</strong>: A popular CSS framework that provides responsive, mobile-first design and layout tools.</li>
<li><strong>Python</strong>: The programming language used for web development. It's a great choice for building dynamic websites.</li>
</ul>
<p>I hope you found this information helpful! If you have any questions or need further assistance, feel free to reach out.</p>
<p>Best of luck with your project!</p>
<script> <script>
// JavaScript to update the datetime dynamically // JavaScript to update the datetime dynamically
function formatDateTime(date) { function formatDateTime(date) {

View File

@@ -1,20 +1,42 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<!-- Display header for current weather information -->
<h1>Current Weather</h1> <h1>Current Weather</h1>
<p>Temperature: {{ temperature }} {{ temperature_unit }} | {{(temperature * 9/5) + 32}}°F</p>
<p>Wind Speed: {{ wind_speed }} {{ wind_speed_unit }}</p> <!-- Display temperature with unit and conversion to Fahrenheit -->
<p>
Temperature: {{ temperature }} {{ temperature_unit }}
|
<!-- Convert Celsius to Fahrenheit using (°C * 9/5) + 32 formula -->
{{(temperature * 9/5) + 32}}°F
</p>
<!-- Display wind speed with unit -->
<p>
Wind Speed: {{ wind_speed }} {{ wind_speed_unit }}
</p>
<!-- Container for displaying wind direction and arrow -->
<div class="wind-container"> <div class="wind-container">
<p>Wind Direction: {{ wind_direction }} {{ wind_direction_unit }}</p> <!-- Display wind direction with unit -->
<p>
Wind Direction:
{{ wind_direction }} {{ wind_direction_unit }}
</p>
<!-- Dynamically rotate the arrow based on wind direction -->
<div class="arrow" id="wind-arrow"></div> <div class="arrow" id="wind-arrow"></div>
</div> </div>
<!-- JavaScript code to dynamically rotate the wind arrow based on wind direction -->
<script> <script>
// JavaScript to rotate the arrow dynamically // Store wind direction value from template variables
const windDirection = {{ wind_direction }}; const windDirection = {{ wind_direction }};
// Select HTML element with id "wind-arrow"
const arrowElement = document.getElementById('wind-arrow'); const arrowElement = document.getElementById('wind-arrow');
// Rotate the arrow based on wind direction // Rotate the arrow by applying transform style with wind direction value
arrowElement.style.transform = `rotate(${windDirection}deg)`; arrowElement.style.transform = `rotate(${windDirection}deg)`;
</script> </script>
{% endblock %} {% endblock %}