WebOrbiton
v3.0.0.2

FlatlyPage

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