|
4 | 4 | <meta charset="UTF-8" /> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | 6 | <title>SproutPHP</title> |
7 | | - <meta name="description" content="SproutPHP is a modern, minimalist PHP framework for rapid web development. Batteries-included, HTMX-ready, and developer-happy." /> |
8 | | - <meta name="keywords" content="PHP, framework, SproutPHP, HTMX, web development, minimal, open source" /> |
| 7 | + <meta |
| 8 | + name="description" |
| 9 | + content="SproutPHP is a modern, minimalist PHP framework for rapid web development. Batteries-included, HTMX-ready, and developer-happy." |
| 10 | + /> |
| 11 | + <meta |
| 12 | + name="keywords" |
| 13 | + content="PHP, framework, SproutPHP, HTMX, web development, minimal, open source" |
| 14 | + /> |
9 | 15 | <meta name="author" content="Yanik Kumar, SproutPHP" /> |
10 | 16 | <meta property="og:title" content="SproutPHP - Minimal PHP Framework" /> |
11 | | - <meta property="og:description" content="SproutPHP is a modern, minimalist PHP framework for rapid web development. Batteries-included, HTMX-ready, and developer-happy." /> |
| 17 | + <meta |
| 18 | + property="og:description" |
| 19 | + content="SproutPHP is a modern, minimalist PHP framework for rapid web development. Batteries-included, HTMX-ready, and developer-happy." |
| 20 | + /> |
12 | 21 | <meta property="og:type" content="website" /> |
13 | 22 | <meta property="og:url" content="https://sproutphp.github.io/" /> |
14 | | - <meta property="og:image" content="https://sproutphp.github.io/img/SproutPHP_Logo.png" /> |
| 23 | + <meta |
| 24 | + property="og:image" |
| 25 | + content="https://sproutphp.github.io/img/SproutPHP_Logo.png" |
| 26 | + /> |
15 | 27 | <meta name="twitter:card" content="summary_large_image" /> |
16 | 28 | <meta name="twitter:title" content="SproutPHP - Minimal PHP Framework" /> |
17 | | - <meta name="twitter:description" content="SproutPHP is a modern, minimalist PHP framework for rapid web development. Batteries-included, HTMX-ready, and developer-happy." /> |
18 | | - <meta name="twitter:image" content="https://sproutphp.github.io/img/SproutPHP_Logo.png" /> |
| 29 | + <meta |
| 30 | + name="twitter:description" |
| 31 | + content="SproutPHP is a modern, minimalist PHP framework for rapid web development. Batteries-included, HTMX-ready, and developer-happy." |
| 32 | + /> |
| 33 | + <meta |
| 34 | + name="twitter:image" |
| 35 | + content="https://sproutphp.github.io/img/SproutPHP_Logo.png" |
| 36 | + /> |
19 | 37 | <meta name="twitter:site" content="@SproutPHP" /> |
20 | 38 | <link rel="canonical" href="https://sproutphp.github.io/" /> |
21 | 39 | <link rel="icon" type="image/png" href="img/SproutPHP_Logo.png" /> |
|
66 | 84 | background: transparent; |
67 | 85 | box-shadow: none; |
68 | 86 | } |
| 87 | + .beta-ribbon { |
| 88 | + position: absolute; |
| 89 | + top: 0; |
| 90 | + right: 0; |
| 91 | + background: #ff9800; |
| 92 | + color: white; |
| 93 | + padding: 5px 10px; |
| 94 | + font-weight: bold; |
| 95 | + font-size: 14px; |
| 96 | + text-decoration: none; |
| 97 | + border-bottom-left-radius: 5px; |
| 98 | + z-index: 999; |
| 99 | + } |
69 | 100 | .logo-row { |
70 | 101 | display: flex; |
71 | 102 | align-items: center; |
|
313 | 344 | </style> |
314 | 345 | </head> |
315 | 346 | <body> |
| 347 | + <a href="#" class="beta-ribbon"> Beta </a> |
316 | 348 | <header> |
317 | 349 | <div class="logo-row"> |
318 | 350 | <img |
|
378 | 410 | class="main-logo" |
379 | 411 | /> |
380 | 412 | <div class="main-title">SproutPHP</div> |
381 | | - <div class="main-version">v0.1.7-beta.1 (pre-release)</div> |
| 413 | + <code class="main-version sproutphp-version"> ... </code> |
382 | 414 | <div class="main-desc"> |
383 | 415 | Welcome to <b>SproutPHP</b>, the seed-to-plant minimal PHP framework |
384 | 416 | 🌱<br /> |
|
401 | 433 | >❤️ Sponsor</a |
402 | 434 | > |
403 | 435 | </div> |
| 436 | + <div class="alert warning"> |
| 437 | + 🚧 SproutPHP is currently in beta (<code class="sproutphp-version" |
| 438 | + >...</code |
| 439 | + >). Expect changes and improvements. |
| 440 | + </div> |
404 | 441 | </main> |
405 | 442 | <footer |
406 | 443 | class="footer" |
|
494 | 531 | .catch(() => { |
495 | 532 | document.getElementById("star-count").textContent = "—"; |
496 | 533 | }); |
| 534 | + |
| 535 | + // Fetch latest release version |
| 536 | + fetch("https://api.github.com/repos/SproutPHP/framework/releases") |
| 537 | + .then((response) => response.json()) |
| 538 | + .then((data) => { |
| 539 | + if (Array.isArray(data) && data.length > 0 && data[0].tag_name) { |
| 540 | + var version = data[0].tag_name; |
| 541 | + if (data[0].prerelease) { |
| 542 | + version += " (pre-release)"; |
| 543 | + } |
| 544 | + var versionSpans = document.querySelectorAll(".sproutphp-version"); |
| 545 | + versionSpans.forEach(function (span) { |
| 546 | + span.textContent = version; |
| 547 | + }); |
| 548 | + } |
| 549 | + }) |
| 550 | + .catch(() => { |
| 551 | + // Optionally handle error |
| 552 | + }); |
497 | 553 | </script> |
498 | 554 | </body> |
499 | 555 | </html> |
0 commit comments