├── .gitignore ├── public ├── favicon.ico ├── images │ ├── clear.jpeg │ ├── mist.jpeg │ ├── rain.jpeg │ ├── snow.jpeg │ └── clouds.jpeg ├── global.css └── index.html ├── src ├── main.js ├── ErrorBar.svelte ├── Loading.svelte ├── WeatherContent.svelte ├── App.svelte └── Sidebar.svelte ├── README.md ├── package.json ├── LICENSE └── rollup.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /public/build/ 3 | 4 | .DS_Store 5 | .env -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brdtheo/weatherify/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/images/clear.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brdtheo/weatherify/HEAD/public/images/clear.jpeg -------------------------------------------------------------------------------- /public/images/mist.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brdtheo/weatherify/HEAD/public/images/mist.jpeg -------------------------------------------------------------------------------- /public/images/rain.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brdtheo/weatherify/HEAD/public/images/rain.jpeg -------------------------------------------------------------------------------- /public/images/snow.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brdtheo/weatherify/HEAD/public/images/snow.jpeg -------------------------------------------------------------------------------- /public/images/clouds.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brdtheo/weatherify/HEAD/public/images/clouds.jpeg -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import App from './App.svelte'; 2 | 3 | const app = new App({ 4 | target: document.body, 5 | }); 6 | 7 | export default app; -------------------------------------------------------------------------------- /public/global.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | box-sizing: border-box; 5 | } 6 | 7 | :root { 8 | --accent-color: rgba(50, 50, 50, .4); 9 | } 10 | 11 | body { 12 | font-family: 'Jost'; 13 | } 14 | 15 | main { 16 | height: 100%; 17 | } 18 | 19 | body { 20 | height: 100vh; 21 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Weatherify 2 | A realtime weather app built with svelte and some CSS. 3 | 4 | --- 5 | design by [Arthur K](https://dribbble.com/thearthurk) 6 | 7 |  8 | 9 |  10 | 11 |  -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "weatherify", 3 | "scripts": { 4 | "build": "rollup -c", 5 | "dev": "rollup -c -w", 6 | "start": "sirv public" 7 | }, 8 | "devDependencies": { 9 | "@rollup/plugin-commonjs": "^17.0.0", 10 | "@rollup/plugin-node-resolve": "^11.0.0", 11 | "@rollup/plugin-replace": "^2.4.1", 12 | "rollup": "^2.3.4", 13 | "rollup-plugin-css-only": "^3.1.0", 14 | "rollup-plugin-livereload": "^2.0.0", 15 | "rollup-plugin-svelte": "^7.0.0", 16 | "rollup-plugin-terser": "^7.0.0", 17 | "svelte": "^3.49.0" 18 | }, 19 | "dependencies": { 20 | "date-fns": "^2.16.1", 21 | "dotenv": "^8.2.0", 22 | "sirv-cli": "^1.0.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Théo Billardey 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/ErrorBar.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 |
14 | 15 | 53 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 |loading...
13 |