WebOrbiton
v3.0.0.2

FlatlyPage

123 lines · 4.6 KB
  1. <!-- Powered by Renderion Engine -->
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. ​
  5. <head>
  6. <meta charset="UTF-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <?php $domain = $_SERVER['HTTP_HOST'] ?? 'localhost'; $domain = preg_replace('/[^a-z0-9\.\-]/i', '', $domain); $domain = ucfirst(strtolower($domain)); ?>
  9. <title><?= htmlspecialchars($domain, ENT_QUOTES, 'UTF-8') ?></title> <!-- Dynamically added -->
  10. <link rel="icon" href="nl.ico?v=<?= filemtime(__DIR__ . '/../newsletter/nl.ico') ?>" type="image/x-icon">
  11. <meta name="author" content="FlatlyPage Team">
  12. <meta name="robots" content="noindex, nofollow">
  13. ​
  14. <link rel="stylesheet" href="/css/styles.css?v=<?= date('YmdH') ?>">
  15. <?php if (is_file(__DIR__ . "/../css/theme.css")): ?><link rel="stylesheet" href="/css/theme.css?v=<?= date("YmdH") ?>"><?php endif; ?>
  16. ​
  17. <style>
  18. body {
  19. font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  20. }
  21. </style>
  22. ​
  23. </head>
  24. ​
  25. <body>
  26. ​
  27. <main>
  28. ​
  29. <section class="hero" id="hero-1">
  30. <div class="hero-grid"></div>
  31. <div class="container hero-content">
  32. <div class="badge"><span class="badge-dot"></span><span>Notice</span></div>
  33. <h1>Not available</h1>
  34. <p>Sorry! The newsletter is not available on this page, but you can still explore other content on the site.</p>
  35. </div>
  36. </section>
  37. ​
  38. </main>
  39. ​
  40. <footer class="footer">
  41. <div class="container">
  42. <div class="footer-brand">
  43. <h3>
  44. FlatlyPage CMS
  45. </h3>
  46. <p>Build websites faster and easier.</p>
  47. </div>
  48. <div class="footer-bottom">
  49. <div style="flex: 1;">
  50. <p>© 2026 FlatlyPage CMS. All rights reserved.</p>
  51. </div>
  52. <button class="theme-toggle" aria-label="Toggle theme" title="Toggle light/dark theme">
  53. <svg class="theme-icon-sun" viewBox="0 0 24 24" style="display: none;">
  54. <circle cx="12" cy="12" r="5" />
  55. <line x1="12" y1="1" x2="12" y2="3" />
  56. <line x1="12" y1="21" x2="12" y2="23" />
  57. <line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
  58. <line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
  59. <line x1="1" y1="12" x2="3" y2="12" />
  60. <line x1="21" y1="12" x2="23" y2="12" />
  61. <line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
  62. <line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
  63. </svg>
  64. <svg class="theme-icon-moon" viewBox="0 0 24 24" style="display: block;">
  65. <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
  66. </svg>
  67. </button>
  68. </div>
  69. </div>
  70. </footer>
  71. ​
  72. <script>
  73. const themeToggle = document.querySelector('.theme-toggle');
  74. const sunIcon = document.querySelector('.theme-icon-sun');
  75. const moonIcon = document.querySelector('.theme-icon-moon');
  76. const html = document.documentElement;
  77. ​
  78. function initTheme() {
  79. let theme = localStorage.getItem('theme');
  80. if (!theme) {
  81. const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
  82. theme = prefersDark ? 'dark' : 'light';
  83. }
  84. setTheme(theme);
  85. }
  86. ​
  87. function setTheme(theme) {
  88. if (theme === 'light') {
  89. html.setAttribute('data-theme', 'light');
  90. sunIcon.style.display = 'block';
  91. moonIcon.style.display = 'none';
  92. localStorage.setItem('theme', 'light');
  93. } else {
  94. html.removeAttribute('data-theme');
  95. sunIcon.style.display = 'none';
  96. moonIcon.style.display = 'block';
  97. localStorage.setItem('theme', 'dark');
  98. }
  99. }
  100. ​
  101. function toggleTheme() {
  102. const currentTheme = html.getAttribute('data-theme') || 'dark';
  103. const newTheme = currentTheme === 'light' ? 'dark' : 'light';
  104. setTheme(newTheme);
  105. }
  106. ​
  107. if (themeToggle) {
  108. themeToggle.addEventListener('click', toggleTheme);
  109. }
  110. ​
  111. initTheme();
  112. ​
  113. document.querySelectorAll('.mobile-nav a').forEach(link => {
  114. link.addEventListener('click', () => {
  115. document.querySelector('.mobile-nav').classList.remove('active');
  116. });
  117. });
  118. </script>
  119. ​
  120. ​
  121. </body>
  122. ​
  123. </html>