Design updates, adding 2027 posts

This commit is contained in:
Bashy 2026-10-05 23:12:01 +03:00
parent 2d50bec4cb
commit e51d53994a
30 changed files with 521 additions and 81 deletions

View file

@ -5,14 +5,18 @@
<% } %>
<div>
<h1 class="event">
<% var cancelled = page.event.status === "cancelled"; %>
<% if (cancelled) { %>
<h1 class="event-cancelled">Cancelled</h1>
<% } %>
<h1 class="event<%= cancelled ? ' cancelled' : '' %>">
<%- page.event.date %> at <%- page.event.time %>
</h1>
<div class="event-actions">
<% if (page.event.luma && page.event.luma !== false) { %>
<a href="<%- page.event.luma %>" target="_blank" class="btn-event btn-luma"><i class="fa-solid fa-calendar-check"></i> RSVP on Luma</a>
<% if (!cancelled && page.event.luma && page.event.luma !== false) { %>
<a href="<%- page.event.luma %>" target="_blank" class="btn-event btn-luma"><%- icon('lucide:calendar-check') %> RSVP on Luma</a>
<% } %>
<a href="http://speakers.openalt.ro/" target="_blank" class="btn-event btn-speaker"><i class="fa-solid fa-microphone"></i> Call for Presentations</a>
<a href="http://speakers.openalt.ro/" target="_blank" class="btn-event btn-speaker"><%- icon('lucide:mic') %> Call for Presentations</a>
</div>
</div>
@ -31,14 +35,14 @@
<div>
<% if(page.event.place != "TBD") { %>
<h3>
<a href='<%- page.event.place.link %>'><i class="fa fa-map-marker-alt"></i> <%- page.event.place.name %></a>
<a href='<%- page.event.place.link %>'><%- icon('lucide:map-pin') %> <%- page.event.place.name %></a>
</h3>
<% if(page.event.place.osm && page.event.place.osm != "TBD" && page.event.place.osm != "") { %>
<span class="osm"><%- page.event.place.osm %></span>
<% } %>
<% } else { %>
<h3>
<i class="fa fa-map-marker-alt"></i> TBD
<%- icon('lucide:map-pin') %> TBD
</h3>
<% } %>
</div>

View file

@ -1,5 +1,5 @@
<div>
<% page.posts.forEach(function(post) { %>
<% item.forEach(function(post) { %>
<%- include('post_preview',
{ post: post,
source: "feed"

View file

@ -4,18 +4,18 @@
<img class="event-banner-logo" src="/images/assets/OpenAltRomania.svg" alt="">
<div class="event-banner-inner">
<div class="event-banner-kicker">Next Meetup</div>
<h1 class="event-banner-title"><%= e.title %></h1>
<h1 class="event-banner-title"><% if (e.event.status === 'cancelled') { %>[Cancelled] <% } %><%= e.title %></h1>
<p class="event-banner-meta">
<strong><%= e.event.date %></strong> &nbsp;·&nbsp; <strong><%= e.event.time %></strong>
<% if (e.event.place && e.event.place !== 'TBD') { %>
&nbsp;·&nbsp; <span class="event-banner-loc"><i class="fa fa-map-marker-alt"></i><a href="<%- e.event.place.link %>"><%= e.event.place.name %></a></span>
&nbsp;·&nbsp; <span class="event-banner-loc"><%- icon('lucide:map-pin') %><a href="<%- e.event.place.link %>"><%= e.event.place.name %></a></span>
<% } %>
</p>
<div class="event-actions" style="margin-bottom: 2.5em;">
<% if (e.event.luma && e.event.luma !== false) { %>
<a href="<%- e.event.luma %>" target="_blank" class="btn-event btn-luma"><i class="fa-solid fa-calendar-check"></i> RSVP on Luma</a>
<% if (e.event.status !== 'cancelled' && e.event.luma && e.event.luma !== false) { %>
<a href="<%- e.event.luma %>" target="_blank" class="btn-event btn-luma"><%- icon('lucide:calendar-check') %> RSVP on Luma</a>
<% } %>
<a href="http://speakers.openalt.ro/" target="_blank" class="btn-event btn-speaker"><i class="fa-solid fa-microphone"></i> Call for Presentations</a>
<a href="http://speakers.openalt.ro/" target="_blank" class="btn-event btn-speaker"><%- icon('lucide:mic') %> Call for Presentations</a>
</div>
<div class="event-banner-agenda">
<% if (e.event.program && e.event.program !== 'TBD') { %>
@ -35,7 +35,7 @@
<% if (site.lastEvent) { var l = site.lastEvent; %>
<div style="padding-top: 2em;">
<a href="<%- url_for(l.path) %>"><h1>Video of our last event: <%= l.title %></h1></a>
<a href="<%- url_for(l.path) %>"><h1>Video of our last event: <% if (l.event.status === 'cancelled') { %>[Cancelled] <% } %><%= l.title %></h1></a>
<% if (l.event.video && l.event.video !== 'TBD') { %>
<div class="vhsky-video"><%- l.event.video %></div>
<% } %>

View file

@ -1,5 +1,5 @@
<section id="minifeed">
<h1>Blog posts</h1>
<a href="<%- url_for('/archives/') %>"><h1>Blog posts</h1></a>
<div class="minifeed">
<% counter = 3 %>
<% page.posts.forEach(function(post) { %>

View file

@ -15,11 +15,7 @@ site.data.members.forEach(function(member) { %>
<% member.contact.forEach(function(social) { %>
<span class="social-icon">
<a href="<%= social.url %>" target="_blank">
<% if (theme.fontawesome) { %>
<i class="<%= social.icon %>"></i>
<% } else { %>
<img src='<%= url_for(theme.avatar) %>'></img>
<% } %>
<%- icon(social.icon) %>
</a>
</span>
<% }); %>

View file

@ -24,11 +24,7 @@
<% partner.contact.forEach(function(social) { %>
<span class="social-icon">
<a href="<%= social.url %>" target="_blank">
<% if (theme.fontawesome) { %>
<i class="<%= social.icon %>"></i>
<% } else { %>
<img src='<%= url_for(theme.avatar) %>'></img>
<% } %>
<%- icon(social.icon) %>
</a>
</span>
<% }); %>

View file

@ -3,8 +3,9 @@
post.tags.data.forEach(function(tag) {
if ( (tag.name == "Events") && (!isEvent) ) {
isEvent = true
}
}
});
titlePrefix = (isEvent && post.event && post.event.status === "cancelled") ? "[Cancelled] " : ""
%>
<!-- This is the template for the post. It is used to display the posts in the feeds. -->
@ -17,7 +18,7 @@
<%- include('event', { page: post }) %>
</div>
<% } else if(event == 1) { %>
<a href='<%= url_for(post.path) %>'><h1>Video of our last event: <%= post.title || "Untitled" %></h1></a>
<a href='<%= url_for(post.path) %>'><h1>Video of our last event: <%= titlePrefix %><%= post.title || "Untitled" %></h1></a>
<% if(post.event.video != "TBD") { %>
<div class="vhsky-video">
@ -34,7 +35,7 @@
<div class="post-without-video">
<% } %>>
<div class="post-blerp">
<a href='<%= url_for(post.path) %>'><h2><%= post.title || "Untitled" %></h2>
<a href='<%= url_for(post.path) %>'><h2><%= titlePrefix %><%= post.title || "Untitled" %></h2>
<div class="date smoll">
<%- include('date', { date: post.date.toISOString() }) %></a>
</div>

View file

@ -1,5 +1,7 @@
<%- include("_partial/feed",
{ item: page.posts.sort('-date'),
{ item: page.posts.filter(function(p) {
return !(p.tags && p.tags.data.some(function(t) { return t.name === "Events"; }));
}).sort('-date'),
source: "archive"
}
)%>

View file

@ -0,0 +1,55 @@
<div class="timeline-page">
<h1 class="article"><%= page.title || "Events" %></h1>
<% if (page.content) { %>
<div class="post-content"><%- page.content %></div>
<% } %>
<% var events = site.allEvents || []; %>
<% if (!events.length) { %>
<p>No events yet.</p>
<% } else { %>
<ol class="timeline">
<% events.forEach(function(item) {
var p = item.post;
var ev = p.event || {};
var cancelled = ev.status === "cancelled";
var hasVideo = ev.video && ev.video !== "TBD";
var labels = { past: "Past", next: "Next meetup", upcoming: "Upcoming" };
%>
<li class="timeline-item <%= item.state %><%= cancelled ? ' cancelled' : '' %>"<% if (item.state === 'next') { %> id="next-event"<% } %>>
<div class="timeline-card">
<div class="timeline-kicker"><%= cancelled ? "Cancelled" : labels[item.state] %></div>
<h2 class="timeline-title">
<% var title = (cancelled ? "[Cancelled] " : "") + (p.title || "Untitled"); %>
<% if (item.hasPage) { %><a href="<%- url_for(p.path) %>"><%= title %></a><% } else { %><%= title %><% } %>
</h2>
<p class="timeline-meta">
<strong><%= ev.date %></strong><% if (ev.time) { %> &nbsp;·&nbsp; <strong><%= ev.time %></strong><% } %>
<% if (ev.place && ev.place !== "TBD") { %>
<br><span class="timeline-loc"><%- icon('lucide:map-pin') %> <%= ev.place.name %></span>
<% } %>
</p>
<div class="event-actions">
<% if (!cancelled && item.state !== "past" && ev.luma) { %>
<a href="<%- ev.luma %>" target="_blank" class="btn-event btn-luma"><%- icon('lucide:calendar-check') %> RSVP on Luma</a>
<% } %>
<% if (item.hasPage && hasVideo) { %>
<a href="<%- url_for(p.path) %>" class="btn-event btn-speaker"><%- icon('lucide:play') %> Watch video</a>
<% } else if (item.hasPage) { %>
<a href="<%- url_for(p.path) %>" class="btn-event btn-speaker">Details</a>
<% } %>
</div>
</div>
</li>
<% }); %>
</ol>
<script>
(function () {
var target = document.getElementById("next-event") ||
document.querySelector(".timeline-item:last-child");
if (target) target.scrollIntoView({ block: "center" });
})();
</script>
<% } %>
</div>

View file

@ -18,8 +18,6 @@
<link rel="icon" href="<%= url_for(theme.favicon) %>">
<script src="<%= url_for(theme.fontawesome) %>" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap">
<title><%= config.title %></title>
@ -62,11 +60,7 @@
<% } else { %>
<a href="<%= social.url %>" target="_blank">
<% } %>
<% if (theme.fontawesome) { %>
<i class="<%= social.icon %>"></i>
<% } else { %>
<img src='<%= url_for(theme.avatar) %>'></img>
<% } %>
<%- icon(social.icon) %>
</a>
</span>
<% } %>