added Layout and weather card

This commit is contained in:
2025-07-27 11:06:03 +02:00
parent 7efabca15d
commit 30bdcb6e4e
6 changed files with 89 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
import React from "react";
import Cookies from "js-cookie";
const Header: React.FC = () => {
const setApiKey = () => {
const apiKey = prompt("Enter your API key:");
if (apiKey) {
Cookies.set("apiKey", apiKey);
}
};
return (
<header>
<h1>Weather App</h1>
<button onClick={() => setApiKey()}>Set API Key</button>
</header>
);
};
export default Header;