mirror of
https://gitlab.com/OpenAlt/OpenAltRO/openalt_ro.git
synced 2026-11-23 15:19:15 +00:00
Design updates, adding 2027 posts
This commit is contained in:
parent
2d50bec4cb
commit
e51d53994a
30 changed files with 521 additions and 81 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div>
|
||||
<% page.posts.forEach(function(post) { %>
|
||||
<% item.forEach(function(post) { %>
|
||||
<%- include('post_preview',
|
||||
{ post: post,
|
||||
source: "feed"
|
||||
|
|
|
|||
|
|
@ -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> · <strong><%= e.event.time %></strong>
|
||||
<% if (e.event.place && e.event.place !== 'TBD') { %>
|
||||
· <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>
|
||||
· <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>
|
||||
<% } %>
|
||||
|
|
|
|||
|
|
@ -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) { %>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
<% }); %>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
<% }); %>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue