forked from enviPath/enviPy
Added news entries
This commit is contained in:
+32
-10
@@ -260,15 +260,40 @@
|
||||
</div>
|
||||
|
||||
<!-- Community News Section -->
|
||||
<section class="bg-base-200 z-10 mx-8 py-16">
|
||||
<section class="bg-base-200 z-10 mx-8 py-6">
|
||||
<div class="mx-auto max-w-7xl px-4">
|
||||
<h2 class="h2 mb-8 text-left font-bold">Community Updates</h2>
|
||||
<h2 class="h2 mb-8 text-left font-bold">News</h2>
|
||||
|
||||
<div id="community-news-container" class="flex justify-center gap-4">
|
||||
<!-- News cards will be populated here -->
|
||||
<div id="loading" class="flex w-full justify-center">
|
||||
<span class="loading loading-spinner loading-lg"></span>
|
||||
</div>
|
||||
<div id="services-container" class="flex justify-center gap-4">
|
||||
{% for ne in news_entries %}
|
||||
<div class="card-body flex flex-col h-full justify-between p-5">
|
||||
<div>
|
||||
<div class="flex items-center gap-2 mb-2">
|
||||
<div class="bg-primary/10 text-primary rounded-lg p-1.5">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
|
||||
<polyline points="9 22 9 12 15 12 15 22"></polyline>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="card-title text-base font-semibold tracking-tight">
|
||||
{{ ne.title }} - {{ ne.publication_date|date }}
|
||||
</h3>
|
||||
</div>
|
||||
<p class="text-sm text-base-content/60 leading-snug line-clamp-4">
|
||||
{{ ne.content }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<a href="{{ ne.url }}" class="btn btn-primary btn-sm w-full group-hover:btn-active mt-1">
|
||||
Read Full
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
|
||||
<polyline points="15 3 21 3 21 9"></polyline>
|
||||
<line x1="10" y1="14" x2="21" y2="3"></line>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="mt-6 text-right">
|
||||
@@ -280,9 +305,6 @@
|
||||
Read More Announcements
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Discourse API integration -->
|
||||
<script src="{% static 'js/discourse-api.js' %}"></script>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user