WebOrbiton
v3.0.0.0

FlatlyPage

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