Skip to content

Commit

Permalink
location and theme selector added in seperate html, today's info now …
Browse files Browse the repository at this point in the history
…in panel
  • Loading branch information
ronynn committed Jun 3, 2024
1 parent 7eb5e31 commit 76d3f23
Show file tree
Hide file tree
Showing 10 changed files with 1,380 additions and 612 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@ Simply install the app from chrome options and you're all set! Ronynn Weather wi
1. Clone this repository to your local machine.
2. Open the `index.html` file in your web browser.


## Roadmap/Ideas
- [x] Default location selector after opening for first time.
- [x] Set favourite locations to select or open their graphs all at once (But where should that button be?)
- [x] Theme selector
- [ ] Fix design of these buttons
- [ ] Export chart as png, or table as csv (why?)
- [ ] Send notifications at 9AM everyday of Weather conditions today. (why?)

## Credits
Ronynn Weather is powered by the WTTR API for real-time weather data.

## Contributing
Ronynn weather currently isn't looking for any contributions, but feel free to suggest new features.

## Feedback
We'd love to hear your thoughts on Ronynn Weather! If you have any feedback, suggestions, or just want to say hi, don't hesitate to reach out.
I'd love to hear your thoughts on Ronynn Weather! If you have any feedback, suggestions, or just want to say hi, don't hesitate to reach out.

Enjoy the weather in style with Ronynn Weather! 🌤️
193 changes: 193 additions & 0 deletions abir-closure.js

Large diffs are not rendered by default.

273 changes: 273 additions & 0 deletions abir.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<meta name="keywords" content="weather,open-source,web-app,pwa" />
<meta
name="description"
content="Open source mobile web app using wttr
api and glassmorphism aesthetics for desktop and mobile."
/>
<meta
name="subject"
content="Open source mobile web app using wttr
api and glassmorphism aesthetics for desktop and mobile"
/>
<meta name="copyright" content="ronynn" />
<meta name="language" content="ES" />
<meta name="robots" content="index,follow" />
<meta name="revised" content="Thursday, May 31st, 2024, 5:15 pm" />
<meta name="abstract" content="" />
<meta name="topic" content="Weather App" />
<meta name="summary" content="" />
<meta name="Classification" content="App" />
<meta name="author" content="ronynn" />
<meta name="designer" content="ronynn" />
<meta name="reply-to" content="ronynn" />
<meta name="owner" content="ronynn" />
<meta name="url" content="https://ronynn.github.io" />
<meta name="identifier-URL" content="https://ronynn.github.io" />

<meta name="pagename" content="ronynn weather" />
<meta name="category" content="webapp" />

<meta name="rating" content="General" />

<meta
name="subtitle"
content="Open source weather app using wttr api"
/>
<meta name="target" content="all" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />

<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>

<link rel="manifest" href="manifest.webmanifest" />

<title>UWU WEATHER</title>

<link rel="stylesheet" href="style.css" />
<style>
#favoriteDetails {
margin-top: 5px;
background: rgba(255, 255, 255, 0);
border-radius: 12px;
backdrop-filter: blur(10px);

box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
border: 0px solid rgba(255, 255, 255, 0.3);
width: 100%;
align-content: center;
}

#favoriteDetails summary {
background: rgba(255, 255, 255, 0.2);
color: #fff;
padding: 12px;
margin: 0px;
cursor: pointer;
font-size: 18px;
outline: none;
user-select: none;
border-radius: 12px;
}

#favoriteDetails summary:hover {
background: rgba(255, 255, 255, 0.3);
}

#favoriteDetails div {
padding: 2px;
margin: 6px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
border-radius: 10px;
text-align: center;
}

button {
margin: 2%;
padding: 12px;
color: white;
}

#themeButton {
margin-top: 20px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background: rgba(255,255,255,0.3);
border-radius: 20px;
}
</style>
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2749889536957447"
crossorigin="anonymous"
></script>
</head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-MDG8SVY9GB"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-MDG8SVY9GB");
</script>

<body>
<nav>
<a href="https://ronynn.github.io"
><img src="https://github.com/ronynn.png"
/></a>
<a href="https://ronynn.github.io/weather">Weather (ꈍ ω ꈍ) </a>

<a id="favoriteButton">Add City to Favourites</a>
</nav>

<br />
<br />
<details id="favoriteDetails" style="margin-top: 5px">
<summary>Locations</summary>
<div id="favoriteList" style="color: white">
<!-- Placeholder for favorite location details -->
</div>
</details>
<br />

<form id="myForm" class="glassmorphism-form">
<input type="text" id="myInput" placeholder="Enter city name .." />
</form>

<h1 id="loc"></h1>
<h5 id="date" style="text-align: center"></h5>
<center>
<h2 id="desc"></h2>
</center>
<div class="panel">
<center>
<h2 id="desc"></h2>
</center>
<div class="left-panel">
<h1 id="temp"></h1>
</div>
<div class="right-panel" style="font-size: 1.5em">
<p id="minmax"></p>
</div>
</div>

<div class="details">
<p id="detailsnow"></p>
</div>

<div class="future">
<div class="div1">
<p id="tomorrow"></p>
</div>
<div class="div2">
<p id="overmorrow"></p>
</div>
</div>

<div id="today" class="tabcontent">
<canvas id="weatherCharttoday" width="400" height="200"></canvas
><br />
</div>

<div id="nextday" class="tabcontent">
<canvas id="weatherChartnextday" width="400" height="200"></canvas
><br />
</div>

<div id="nextnextday" class="tabcontent">
<canvas
id="weatherChartnextnextday"
width="400"
height="200"
></canvas
><br />
</div>

<div id="buttons">
<button class="tablinks" onclick="openTab(event, 'today')">
Today
</button>

<button class="tablinks" onclick="openTab(event, 'nextday')">
Tomorrow
</button>
<button class="tablinks" onclick="openTab(event, 'nextnextday')">
Overmorrow
</button>
</div>


<footer>
<button id="themeButton">Change Theme</button>
<hr />
<a
href="https://github.com/ronynn/weather"
title="Go to GitHub repo"
><img
src="https://img.shields.io/static/v1?label=ronynn&message=weather&color=blue&logo=github"
alt="ronynn - weather"
/></a>
<a href="https://github.com/ronynn/weather"
><img
src="https://img.shields.io/github/stars/ronynn/weather?style=social"
alt="stars - weather"
/></a>
<hr />

<br />
</footer>
<script
type="text/javascript"
id="cookiebanner"
src="https://cdn.jsdelivr.net/gh/dobarkod/cookie-banner@1.2.2/dist/cookiebanner.min.js"
data-height="25px"
data-position="bottom"
data-moreinfo="https://ronynn.github.io/blog/privacy"
data-message="We use cookies to improve your app experience."
></script>
<noscript>
<div class="noscript" style="text-align: center">
It's not a server based app so you need javascript to run this.
</div>
</noscript>
</body>

<script src="abir.js"></script>

<script>
if (navigator.serviceWorker) {
navigator.serviceWorker.register("/weather/sw.js", {
scope: "/weather/"
});
}
</script>
</html>
Loading

0 comments on commit 76d3f23

Please sign in to comment.