Weather app (#10)

* feat: base class added and api

* feat: async method/conversions

* feat: added styling and ui

* feat: added some colors

* feat: project complete
This commit is contained in:
Smigz 2024-01-22 20:59:19 -05:00 committed by GitHub
parent 8cc79da6d9
commit 4d2291815a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 5771 additions and 0 deletions

28
weather/src/index.js Normal file
View file

@ -0,0 +1,28 @@
import { MainWebsite } from './components/website';
import './style.css';
const api = 'bd5d23eea5751c12b0ef75344e3df932';
const web = new MainWebsite(api);
function fonts() {
let fontLink = document.createElement('link');
fontLink.rel = 'preconnect';
fontLink.href = 'https://fonts.googleapis.com';
let fontLinkTwo = document.createElement('link');
fontLinkTwo.rel = 'preconnect';
fontLinkTwo.href = 'https://fonts.gstatic.com';
fontLinkTwo.crossOrigin = true;
let style = document.createElement('link');
style.rel = 'stylesheet';
style.href =
'https://fonts.googleapis.com/css2?family=Indie+Flower&family=Inter:wght@100..900&display=swap';
document.head.appendChild(fontLink);
document.head.appendChild(fontLinkTwo);
document.head.appendChild(style);
}
fonts();
document.body.appendChild(web.websiteStructure());