|
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | | - <title>AI-Pulse</title> <link rel="icon" type="image/svg+xml" href="./favicon.svg"> |
| 6 | + <title>AI-Pulse - AI & Cybersecurity News</title> |
| 7 | + <link rel="icon" type="image/svg+xml" href="./favicon.svg"> |
| 8 | + <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> |
7 | 9 | <style> |
8 | 10 | body { |
9 | | - font-family: monospace; |
| 11 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
10 | 12 | background: #0a0e27; |
11 | | - color: #00d9ff; |
12 | | - display: flex; |
13 | | - align-items: center; |
14 | | - justify-content: center; |
15 | | - min-height: 100vh; |
| 13 | + color: #e6edf3; |
16 | 14 | margin: 0; |
| 15 | + padding: 20px; |
| 16 | + line-height: 1.6; |
| 17 | + } |
| 18 | + .container { |
| 19 | + max-width: 1200px; |
| 20 | + margin: 0 auto; |
| 21 | + } |
| 22 | + #content { |
| 23 | + background: #0d1117; |
| 24 | + padding: 40px; |
| 25 | + border-radius: 8px; |
| 26 | + border: 1px solid #30363d; |
| 27 | + } |
| 28 | + a { color: #58a6ff; text-decoration: none; } |
| 29 | + a:hover { text-decoration: underline; } |
| 30 | + h1, h2 { color: #00d9ff; border-bottom: 1px solid #30363d; padding-bottom: 10px; } |
| 31 | + code { |
| 32 | + background: #161b22; |
| 33 | + padding: 2px 6px; |
| 34 | + border-radius: 3px; |
| 35 | + font-family: monospace; |
17 | 36 | } |
18 | 37 | pre { |
19 | | - font-size: 0.8rem; |
20 | | - line-height: 1.2; |
21 | | - color: #00d9ff; |
22 | | - text-align: center; |
| 38 | + background: #161b22; |
| 39 | + padding: 16px; |
| 40 | + border-radius: 6px; |
| 41 | + overflow-x: auto; |
| 42 | + border: 1px solid #30363d; |
| 43 | + } |
| 44 | + pre code { background: none; padding: 0; } |
| 45 | + img { max-width: 100%; } |
| 46 | + .reader-link { |
| 47 | + position: fixed; |
| 48 | + bottom: 30px; |
| 49 | + right: 30px; |
| 50 | + background: #00d9ff; |
| 51 | + color: #0a0e27; |
| 52 | + padding: 15px 30px; |
| 53 | + border-radius: 50px; |
| 54 | + font-weight: bold; |
| 55 | + box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3); |
| 56 | + transition: transform 0.2s; |
23 | 57 | } |
| 58 | + .reader-link:hover { transform: scale(1.05); text-decoration: none; } |
24 | 59 | </style> |
25 | 60 | </head> |
26 | 61 | <body> |
27 | | - <pre> |
28 | | - ``` |
29 | | - ___ ____ ____ __ ____ _____ ______ |
30 | | - / | / _/ / __ \/ / / / / / ___// ____/ |
31 | | - / /| | / / / /_/ / / / / / \__ \/ __/ |
32 | | - / ___ |_/ / / ____/ /_/ / /______/ / /___ |
33 | | -/_/ |_/___/ /_/ \____/_____/____/_____/ |
34 | | -``` |
35 | | - |
36 | | - </pre> |
| 62 | + <div class="container"> |
| 63 | + <div id="content">Loading content...</div> |
| 64 | + </div> |
| 65 | + <a href="./reader.html" class="reader-link">📡 Go to Reader</a> |
37 | 66 | <script> |
38 | | - window.location.href = './reader.html'; |
| 67 | + fetch('https://raw.githubusercontent.com/ThePhoenixAgency/AI-Pulse/main/README.md') |
| 68 | + .then(response => response.text()) |
| 69 | + .then(markdown => { |
| 70 | + document.getElementById('content').innerHTML = marked.parse(markdown); |
| 71 | + }) |
| 72 | + .catch(error => { |
| 73 | + document.getElementById('content').innerHTML = '<h1>Error</h1><p>Please visit the <a href="https://github.com/ThePhoenixAgency/AI-Pulse">GitHub repository</a>.</p>'; |
| 74 | + }); |
39 | 75 | </script> |
40 | 76 | </body> |
41 | 77 | </html> |
0 commit comments