Implemented comprehensive beta testing system with tier badges and
reorganized environment configuration for better maintainability.
Beta Testing Features:
- Beta banner component with dismissible state (localStorage)
- Auto-assign SUPPORTER tier to new registrations (env controlled)
- TierBadge component with SUPPORTER/COMFORT tier display
- Badge shown in Navbar, ProfilePage, and PublicProfilePage
- Environment variables: VITE_BETA_MODE, BETA_AUTO_SUPPORTER
Environment Configuration Reorganization:
- Moved .env files from root to frontend/ and backend/ directories
- Created .env.{development,production}{,.example} structure
- Updated docker-compose.yml to use env_file for frontend
- All env vars properly namespaced and documented
Privacy Policy Implementation:
- New /privacy route with dedicated PrivacyPage component
- Comprehensive GDPR/RODO compliant privacy policy (privacy.html)
- Updated CookieConsent banner to link to /privacy
- Added Privacy Policy links to all footers (HomePage, PublicFooter)
- Removed privacy section from About Us page
HTML Content System:
- Replaced react-markdown dependency with simple HTML loader
- New HtmlContentPage component for rendering .html files
- Converted about-us.md and how-it-works.md to .html format
- Inline CSS support for full styling control
- Easier content editing without React knowledge
Backend Changes:
- Registration auto-assigns SUPPORTER tier when BETA_AUTO_SUPPORTER=true
- Added accountTier to auth middleware and user routes
- Updated public profile endpoint to include accountTier
Files:
- Added: frontend/.env.{development,production}{,.example}
- Added: backend/.env variables for BETA_AUTO_SUPPORTER
- Added: components/BetaBanner.jsx, TierBadge.jsx, HtmlContentPage.jsx
- Added: pages/PrivacyPage.jsx
- Added: public/content/{about-us,how-it-works,privacy}.html
- Modified: docker-compose.yml (env_file configuration)
- Modified: App.jsx (privacy route, beta banner)
- Modified: auth.js (auto SUPPORTER tier logic)
121 lines
2.8 KiB
HTML
121 lines
2.8 KiB
HTML
<style>
|
|
.content-wrapper {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
}
|
|
|
|
.content-wrapper h1 {
|
|
font-size: 2.25rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1.5rem;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.content-wrapper h2 {
|
|
font-size: 1.875rem;
|
|
font-weight: 700;
|
|
margin-top: 2.5rem;
|
|
margin-bottom: 1rem;
|
|
color: #1f2937;
|
|
border-bottom: 2px solid #e5e7eb;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.content-wrapper h3 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin-top: 2rem;
|
|
margin-bottom: 0.75rem;
|
|
color: #374151;
|
|
}
|
|
|
|
.content-wrapper p {
|
|
margin-bottom: 1.25rem;
|
|
color: #4b5563;
|
|
}
|
|
|
|
.content-wrapper ol {
|
|
list-style: decimal;
|
|
margin-left: 1.5rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.content-wrapper li {
|
|
margin-bottom: 0.75rem;
|
|
color: #4b5563;
|
|
}
|
|
|
|
.content-wrapper strong {
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.content-wrapper a {
|
|
color: #6366f1;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content-wrapper a:hover {
|
|
color: #4f46e5;
|
|
}
|
|
|
|
.content-wrapper hr {
|
|
margin: 2.5rem 0;
|
|
border: 0;
|
|
border-top: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.footer-text {
|
|
font-style: italic;
|
|
color: #6b7280;
|
|
margin-top: 2rem;
|
|
}
|
|
</style>
|
|
|
|
<div class="content-wrapper">
|
|
<h1>How It Works</h1>
|
|
|
|
<h2>Lorem Ipsum</h2>
|
|
|
|
<p>
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
</p>
|
|
|
|
<h2>Ut Enim Ad Minim</h2>
|
|
|
|
<p>
|
|
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat:
|
|
</p>
|
|
|
|
<ol>
|
|
<li><strong>Duis aute irure</strong> - Dolor in reprehenderit in voluptate velit esse cillum dolore</li>
|
|
<li><strong>Eu fugiat nulla</strong> - Pariatur excepteur sint occaecat cupidatat non proident</li>
|
|
<li><strong>Sunt in culpa</strong> - Qui officia deserunt mollit anim id est laborum</li>
|
|
</ol>
|
|
|
|
<h2>Sed Ut Perspiciatis</h2>
|
|
|
|
<p>
|
|
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
|
|
</p>
|
|
|
|
<h2>Nemo Enim Ipsam</h2>
|
|
|
|
<p>
|
|
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
|
|
</p>
|
|
|
|
<h3>Neque Porro Quisquam</h3>
|
|
|
|
<p>
|
|
Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
<p class="footer-text">
|
|
For questions or feedback, <a href="/contact">contact us</a>.
|
|
</p>
|
|
</div>
|