Updated design of the site as well as added new event

This commit is contained in:
Bashy 2026-02-10 17:35:59 +01:00
parent 1e33326b03
commit 6b0249f5dc
13 changed files with 433 additions and 47 deletions

View file

@ -20,13 +20,16 @@ social:
- url: https://mastodon.social/@OpenAltRo
icon: fab fa-mastodon
enable: true
- url: https://vhsky.cz/c/openaltro/videos
icon: fa-solid fa-circle-play
enable: true
- url: https://www.linkedin.com/company/openaltro/
icon: fab fa-linkedin
enable: true
- url: https://matrix.to/#/#OpenAltRO:matrix.org
icon: fab fa-hashtag
enable: true
- url: https://gitlab.com/oss-bashynx/openalt_ro
- url: https://gitlab.com/OpenAlt/OpenAltRO
icon: fab fa-gitlab
enable: true

View file

@ -0,0 +1,44 @@
<% if(page.event.video != "TBD") { %>
<div>
<%- page.event.video %>
</div>
<%} %>
<div>
<h1 class="event">
<%- page.event.date %> at <%- page.event.time %>
</h1>
</div>
<div>
<h3 class="event">
<% if(page.event.place != "TBD") { %>
<a href='<%- page.event.place.link %>'><i class="fa fa-map-marker-alt"></i> <%- page.event.place.name %></a>
<%} else { %>
<i class="fa fa-map-marker-alt"></i>TBD
<% } %>
</h3>
</div>
<% if(page.event.program != "TBD") { %>
<div>
<h2> AGENDA </h2>
<!-- When agenda is public -->
<h2 class="program"><%- page.event.program[0].name %> by <a href="<%- page.event.program[0].speaker.url %>"><%- page.event.program[0].speaker.name %></a></h2>
<h2 class="program break">B R E A K</h2>
<h2 class="program"><%- page.event.program[1].name %> by <a href="<%- page.event.program[1].speaker.url %>"><%- page.event.program[1].speaker.name %></a></h2>
<h2 class="program break">B R E A K</h2>
<h2 class="program"><%- page.event.program[2].name %> by <a href="<%- page.event.program[2].speaker.url %>"><%- page.event.program[2].speaker.name %></a></h2>
</div>
<% } %>
<div class="smoll">
Would you like to speak on this or our next meetup? <br> Submit your talk here: <a href="http://speakers.openalt.ro/">speakers.openalt.ro</a>.
</div>
<div class="post-content">
<%- page.content %>
</div>

View file

@ -1,21 +1,24 @@
<section id="minifeed">
<% counter = 3 %>
<% page.posts.forEach(function(post) { %>
<% if (counter != 0) { %>
<% isEvent = false %>
<% post.tags.data.forEach(function(tag) { %>
<% if (tag.name == "Events") { %>
<% isEvent = true %>
<% } %>
<% }); %>
<h1>Blog posts</h1>
<div class="minifeed">
<% counter = 3 %>
<% page.posts.forEach(function(post) { %>
<% if (counter != 0) { %>
<% isEvent = false %>
<% post.tags.data.forEach(function(tag) { %>
<% if (tag.name == "Events") { %>
<% isEvent = true %>
<% } %>
<% }); %>
<% if (isEvent == false) { %>
<%- include('post_preview',
{ post: post,
source: "index"
}) %>
<% counter = counter - 1 %>
<% if (isEvent == false) { %>
<%- include('post_preview',
{ post: post,
source: "index"
}) %>
<% counter = counter - 1 %>
<% } %>
<% } %>
<% } %>
<% }); %>
<% }); %>
</div>
</section>

View file

@ -8,24 +8,55 @@
%>
<!-- This is the template for the post. It is used to display the posts in the feeds. -->
<% if(isEvent && (source == "index") && (event == 2) ) { %>
<div class="event-wrapper">
<img src="/images/assets/OpenAltRomania.svg" alt="<%= post.title || "Untitled" %>" style="max-height: 250px" width="300px" />
<% if(isEvent) { %>
<% if(source == "index") { %>
<% if(event == 2) { %>
<div class="event-wrapper">
<img src="/images/assets/OpenAltRomania.svg" alt="<%= post.title || "Untitled" %>" style="max-height: 250px" width="300px" />
<a href='<%= url_for(post.path) %>'><h1><%= post.title || "Untitled" %></h1></a>
<%- 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>
<h2 class="event-spacer">
<%- post.event.date %> at <%- post.event.time %>
</h2>
<% if(post.event.video != "TBD") { %>
<div class="vhsky-video">
<%- post.event.video %>
</div>
<%} %>
<% } %>
<% } else { %>
<div class="post">
<div class="post-feed">
<% if(post.event.video != "TBD") { %>
<div class="post-with-video">
<% } else { %>
<div class="post-without-video">
<% } %>>
<div class="post-blerp">
<a href='<%= url_for(post.path) %>'><h2><%= post.title || "Untitled" %></h2>
<div class="date smoll">
<%- include('date', { date: post.date.toISOString() }) %></a>
</div>
<p class="post_description"><%= post.description %></p>
<h3 class="event-spacer"Bashy.jpg>
<a href='<%- post.event.place.link %>'><i class="fa fa-map-marker-alt"></i> <%- post.event.place.name %></a>
</h3>
<a href='<%= url_for(post.path) %>'><p>Read More...</p></a>
<div class="post-content">
<%- post.content %>
<div class="tags smoll">
<% post.tags.data.forEach(function(tag) { %>
<a href="<%= url_for('/tags/' + tag.slug || tag.name.replace(/\s+/g, '-')) %>">#<%= tag.name %></a>
<% }); %>
</div>
</div>
<% if(post.event.video != "TBD") { %>
<div class="post-vhsky-cover">
<%- post.event.video %>
</div>
<% } %>
</div>
</div>
</div>
<% } %>
<% } else { %>
<div class="post">
<% if(post.photos && post.photos.length) { %>

View file

@ -1,3 +1,12 @@
<%
isEvent = false
page.tags.data.forEach(function(tag) {
if ( (tag.name == "Events") && (!isEvent) ) {
isEvent = true
}
});
%>
<div class="post-page post">
<% if(page.photos && page.photos.length) { %>
<div class="post-cover">
@ -6,6 +15,10 @@
<% } %>
<div class="post-text-wrapper">
<% if(isEvent) { %>
<div class="post-event">
<%- include('_partial/event') %>
<% } else { %>
<div class="post-text">
<div class="post-header">
<h1 class="article"><%= page.title || "Untitled" %></h1>
@ -24,6 +37,8 @@
<% } else {console.log(page)} %>
</div>
</div>
<% } %>
</div>
</div>
</div>

View file

@ -54,6 +54,11 @@ h4 {
color: #dcdcdf;
}
.vhsky-video {
width: 75%;
margin-bottom: 1em;
}
a {
text-decoration: none;
color: #31486b;
@ -132,6 +137,15 @@ main {
flex: 1;
}
.program{
padding: 10px !important;
}
.break{
font-weight: 100 !important;
letter-spacing: 0.5em !important;
}
/* Homepage settings */
.post-home img {
border-radius: 5px 5px 0 0;
@ -166,8 +180,33 @@ main {
flex-direction: column;
}
.post-feed .post-with-video {
display: flex;
flex-wrap: wrap;
align-items: stretch;
gap: 0;
}
.post-feed .post-with-video iframe {
border-radius: 0 5px 5px 0;
height: 100%;
object-fit: cover;
}
.post-feed .post-with-video .post-vhsky-cover {
width: 49.4% !important;
display: flex;
}
.post-feed .post-with-video .post-blerp {
border-radius: 5px 0 0 5px;
width: 49.4% !important;
display: flex;
flex-direction: column;
}
.post-feed .post-without-image .post-blerp,
.post-event .post-without-image .post-blerp {
.post-feed .post-without-video .post-blerp {
border-radius: 5px;
}
@ -223,6 +262,12 @@ iframe {
padding: 40px 0;
}
.post .post-event{
width: 75%;
margin: 0 auto;
padding: 40px 0;
}
/* Post - Tags */
.tags {
text-align: right;
@ -263,10 +308,6 @@ section {
max-width: 600px;
}
.event-spacer{
margin: 10px 0;
}
.event-wrapper img{
vertical-align: middle;
margin: auto;
@ -283,14 +324,36 @@ section {
}
/* Event blog page */
.post-event {
text-align: center;
margin: 0 auto;
min-height: calc(100vh - 63px);
display: block;
}
.event-wrapper div,
.post-event div{
margin: 2.5em 0;
}
.event .post-event {
padding-bottom: 5px;
}
.event .post-event a {
color: #fcd116;
}
/* Feed Preview */
#minifeed {
.minifeed {
display: flex;
flex-wrap: wrap;
gap: 1.25%;
}
#minifeed .post {
.minifeed .post {
width: 32.5%;
}
@ -399,11 +462,11 @@ section {
@media (max-width: 1250px) {
#minifeed {
.minifeed {
flex-direction: column;
}
#minifeed .post {
.minifeed .post {
width: 100%;
}