Add CORS headers and update UI for enhanced user profile handling.

- Added CORS support in server responses for cross-origin requests (`Access-Control-Allow-Origin`, etc.).
- Improved header panel behavior with a sticky position and refined CSS styling.
- Integrated profile data fetching (Kind 0 metadata) for user personalization.
- Enhanced login functionality to support dynamic profile display based on fetched metadata.
- Updated `index.html` to include Tailwind CSS for better design consistency.
This commit is contained in:
2025-09-20 19:54:27 +01:00
parent 0b69ea6d80
commit 6b38291bf9
4 changed files with 347 additions and 54 deletions

View File

@@ -4,8 +4,9 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nostr Relay</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<body class="bg-white">
<div id="root"></div>
<script type="module" src="index.js"></script>
</body>