FreedomPage.vala 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. using Astralis;
  2. using Spry;
  3. /**
  4. * FreedomPage - Free/Libre philosophy page
  5. *
  6. * Celebrates the free software roots and values of the project
  7. */
  8. public class FreedomPage : PageComponent {
  9. public const string ROUTE = "/freedom";
  10. public override string markup { get {
  11. return """
  12. <div sid="freedom-page" class="section">
  13. <div class="container">
  14. <!-- Hero -->
  15. <section class="freedom-section" style="margin-bottom: var(--space-12);">
  16. <div class="freedom-icon">🕊</div>
  17. <h1>Free as in Freedom</h1>
  18. <p>
  19. Spry, Astralis, and Inversion are Free/Libre Open Source Software.
  20. We believe software freedom is essential for a free society.
  21. </p>
  22. </section>
  23. <!-- The Four Freedoms -->
  24. <section style="margin-bottom: var(--space-12);">
  25. <div class="section-header">
  26. <h2>The Four Essential Freedoms</h2>
  27. <p>As defined by the Free Software Foundation</p>
  28. </div>
  29. <div class="features-grid">
  30. <div class="feature-card">
  31. <div class="feature-icon purple">0️⃣</div>
  32. <h3>Freedom 0</h3>
  33. <p><strong>The freedom to run the program as you wish, for any purpose.</strong></p>
  34. <p style="margin-top: var(--space-2);">Use Spry for personal projects, commercial applications, education, or anything else. No restrictions.</p>
  35. </div>
  36. <div class="feature-card">
  37. <div class="feature-icon blue">1️⃣</div>
  38. <h3>Freedom 1</h3>
  39. <p><strong>The freedom to study how the program works, and change it.</strong></p>
  40. <p style="margin-top: var(--space-2);">Full source code is available. Learn from it, modify it, make it your own.</p>
  41. </div>
  42. <div class="feature-card">
  43. <div class="feature-icon green">2️⃣</div>
  44. <h3>Freedom 2</h3>
  45. <p><strong>The freedom to redistribute copies so you can help others.</strong></p>
  46. <p style="margin-top: var(--space-2);">Share Spry with your friends, colleagues, and community. Help spread software freedom.</p>
  47. </div>
  48. <div class="feature-card">
  49. <div class="feature-icon purple">3️⃣</div>
  50. <h3>Freedom 3</h3>
  51. <p><strong>The freedom to distribute modified versions to others.</strong></p>
  52. <p style="margin-top: var(--space-2);">Improve Spry and share your improvements. Give the whole community a benefit.</p>
  53. </div>
  54. </div>
  55. </section>
  56. <!-- Why Free Software Matters -->
  57. <section class="demo-section" style="margin-bottom: var(--space-12);">
  58. <h2>💚 Why Free Software Matters</h2>
  59. <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-6); margin-top: var(--space-6);">
  60. <div>
  61. <h3>🔓 Transparency</h3>
  62. <p>With source code available, you can verify exactly what the software does. No hidden behavior, no secret data collection.</p>
  63. </div>
  64. <div>
  65. <h3>🛡 Security</h3>
  66. <p>Open code means more eyes reviewing it. Security vulnerabilities can be found and fixed by anyone in the community.</p>
  67. </div>
  68. <div>
  69. <h3>📚 Learning</h3>
  70. <p>Free software is a treasure trove of knowledge. Study real-world code to become a better developer.</p>
  71. </div>
  72. <div>
  73. <h3>🌐 Community</h3>
  74. <p>Free software builds communities. Contributors from around the world work together to improve shared resources.</p>
  75. </div>
  76. <div>
  77. <h3>♾ Longevity</h3>
  78. <p>Free software can't be discontinued. If the original authors stop maintaining it, the community can continue.</p>
  79. </div>
  80. <div>
  81. <h3>⚖ Ethics</h3>
  82. <p>Respecting users' freedom is the ethical approach to software development. Users deserve control over their computing.</p>
  83. </div>
  84. </div>
  85. </section>
  86. <!-- Licensing -->
  87. <section class="demo-section" style="margin-bottom: var(--space-12);">
  88. <h2>📜 Licensing</h2>
  89. <div class="ecosystem-grid" style="margin-top: var(--space-6);">
  90. <div class="ecosystem-card spry">
  91. <h3>
  92. <div class="ecosystem-logo">S</div>
  93. Spry
  94. </h3>
  95. <p>Licensed under the <strong>LGPL v2.1</strong> or later.</p>
  96. <p style="margin-top: var(--space-2);">You can use Spry in proprietary applications while modifications to Spry itself must be shared.</p>
  97. </div>
  98. <div class="ecosystem-card astralis">
  99. <h3>
  100. <div class="ecosystem-logo">A</div>
  101. Astralis
  102. </h3>
  103. <p>Licensed under the <strong>LGPL v2.1</strong> or later.</p>
  104. <p style="margin-top: var(--space-2);">Build high-performance web services on top of Astralis without licensing restrictions.</p>
  105. </div>
  106. <div class="ecosystem-card inversion">
  107. <h3>
  108. <div class="ecosystem-logo">I</div>
  109. Inversion
  110. </h3>
  111. <p>Licensed under the <strong>LGPL v2.1</strong> or later.</p>
  112. <p style="margin-top: var(--space-2);">Use dependency injection in any project with the freedom to keep your code private.</p>
  113. </div>
  114. </div>
  115. </section>
  116. <!-- Contributing -->
  117. <section class="demo-section" style="margin-bottom: var(--space-12);">
  118. <h2>🤝 Contributing</h2>
  119. <p>We welcome contributions from everyone! Here's how you can help:</p>
  120. <div class="features-grid" style="margin-top: var(--space-6);">
  121. <div class="feature-card">
  122. <div class="feature-icon blue">💻</div>
  123. <h3>Code</h3>
  124. <p>Fix bugs, add features, improve performance. Every contribution makes Spry better for everyone.</p>
  125. </div>
  126. <div class="feature-card">
  127. <div class="feature-icon green">📝</div>
  128. <h3>Documentation</h3>
  129. <p>Write tutorials, improve API docs, create examples. Help others learn and use Spry effectively.</p>
  130. </div>
  131. <div class="feature-card">
  132. <div class="feature-icon purple">🐛</div>
  133. <h3>Testing</h3>
  134. <p>Report bugs, test new releases, write test cases. Quality assurance is essential for reliability.</p>
  135. </div>
  136. </div>
  137. </section>
  138. <!-- Quote -->
  139. <section class="demo-section">
  140. <blockquote class="pull-quote">
  141. <p>"Free software is a matter of liberty, not price. To understand the concept, you should think of 'free' as in 'free speech,' not as in 'free beer.'"</p>
  142. <cite>— Richard Stallman</cite>
  143. </blockquote>
  144. </section>
  145. <!-- CTA -->
  146. <div class="text-center" style="margin-top: var(--space-12);">
  147. <h2>Join the Community</h2>
  148. <p style="margin-bottom: var(--space-6);">Start building with free software today.</p>
  149. <div class="hero-actions" style="justify-content: center;">
  150. <a href="/demo" class="btn btn-primary">Try Demo</a>
  151. <a href="/features" class="btn btn-secondary">Explore Features</a>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. """;
  157. }}
  158. }