Files
landing/templates/newsletters.html
2025-11-15 19:57:35 -06:00

72 lines
2.1 KiB
HTML

{{define "title"}}RideAware - Newsletters{{end}}
{{define "content"}}
<section class="page-header">
<div class="page-header-content">
<div class="header-icon">
<i class="fas fa-newspaper"></i>
</div>
<h1>RideAware Newsletters</h1>
<p>
Stay updated with the latest cycling tips, training insights, and
product updates from our team.
</p>
</div>
</section>
<main class="main-content">
{{if .}}
<div class="newsletters-grid">
{{range .}}
<article class="newsletter-card">
<div class="newsletter-header">
<div class="newsletter-icon">
<i class="fas fa-envelope-open-text"></i>
</div>
<div class="newsletter-info">
<h2>
<a href="/newsletter/{{.ID}}">
{{.Subject}}
</a>
</h2>
</div>
</div>
<div class="newsletter-date">
<i class="fas fa-calendar-alt"></i>
<span>Sent on: {{.SentAt.Format "2006-01-02 15:04:05"}}</span>
</div>
<div class="newsletter-excerpt">
Get the latest updates on cycling training, performance tips,
and RideAware features in this newsletter edition.
</div>
<a
href="/newsletter/{{.ID}}"
class="read-more-btn"
>
Read Full Newsletter
<i class="fas fa-arrow-right"></i>
</a>
</article>
{{end}}
</div>
{{else}}
<div class="empty-state">
<div class="empty-icon">
<i class="fas fa-inbox"></i>
</div>
<h3>No Newsletters Yet</h3>
<p>
We're working on some amazing content for you. Subscribe to be the
first to know when we publish our newsletters!
</p>
<a href="/" class="subscribe-prompt">
<i class="fas fa-bell"></i>
Subscribe for Updates
</a>
</div>
{{end}}
</main>
{{end}}