mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2025-01-09 17:39:33 +00:00
Rearrange Fedi, News pages; remove unused styles
This commit is contained in:
parent
00a97cc709
commit
21353d2f39
|
@ -9,7 +9,6 @@ knowledge: Knowledge
|
||||||
more: All apps
|
more: All apps
|
||||||
devTools: Dev tools
|
devTools: Dev tools
|
||||||
portal: Servers
|
portal: Servers
|
||||||
magic: Magic Ball
|
|
||||||
logo: logo hub
|
logo: logo hub
|
||||||
about: about us
|
about: about us
|
||||||
|
|
||||||
|
@ -29,13 +28,14 @@ projects: related projects
|
||||||
latest: latest news
|
latest: latest news
|
||||||
forDevs: developer resources
|
forDevs: developer resources
|
||||||
reading: additional reading
|
reading: additional reading
|
||||||
|
magic: CRYSTAL BALL
|
||||||
|
|
||||||
# Knowledge page
|
# Knowledge page
|
||||||
share: SHARE WITH FRIENDS
|
share: SHARE WITH FRIENDS
|
||||||
|
|
||||||
# Chronicles page
|
# Chronicles page
|
||||||
theChronicles: The Chronicles
|
theChronicles: The Chronicles
|
||||||
primary: your primary source of news
|
primary: updates about this webite and Fedi
|
||||||
subscribe: Subscribe via RSS
|
subscribe: Subscribe via RSS
|
||||||
submit: Submit news
|
submit: Submit news
|
||||||
tags: Tags
|
tags: Tags
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
|
|
||||||
<main class="contents chronicles">
|
|
||||||
<header>
|
|
||||||
<div class="heading">
|
|
||||||
<h1>The Chronicles</h1>
|
|
||||||
<h4 class="subheading">your primary source of news</h4>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<ul class="links">
|
|
||||||
<li><a href="">Subscribe via RSS</a></li>
|
|
||||||
<li><a href="">Submit news</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<% if (pagination == 2){ %>
|
|
||||||
<% page.posts.each(function(post) { %>
|
|
||||||
<% if (post.wanted) { %>
|
|
||||||
<%- partial('wanted', {post: post, index: true}) %>
|
|
||||||
<% } %>
|
|
||||||
<% }) %>
|
|
||||||
|
|
||||||
<% page.posts.each(function(post) { %>
|
|
||||||
<% if (post.featured) { %>
|
|
||||||
<%- partial('featured', {post: post, index: true}) %>
|
|
||||||
<% } %>
|
|
||||||
<% }) %>
|
|
||||||
<div class="section-title">
|
|
||||||
<h4>IN THE NEWS</h4>
|
|
||||||
</div>
|
|
||||||
<div class="flexrow">
|
|
||||||
<% page.posts.each(function(post) { %>
|
|
||||||
<% if (!post.wanted && !post.featured) { %>
|
|
||||||
<%- partial('article', {post: post, index: true}) %>
|
|
||||||
<% } %>
|
|
||||||
<% }) %>
|
|
||||||
</div>
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
<% if (page.total > 1){ %>
|
|
||||||
<nav id="page-nav" class="page-nav">
|
|
||||||
<%- paginator({prev_text: "‹", next_text: "›"}) %>
|
|
||||||
</nav>
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
<%- partial('_partial/buttons') %>
|
|
||||||
</main>
|
|
|
@ -17,12 +17,6 @@ layout: layout
|
||||||
<li><%- partial('_partial/snowflake') %><a href="<%- url_for('/tags') %>"><%- __('tags') %></a></li>
|
<li><%- partial('_partial/snowflake') %><a href="<%- url_for('/tags') %>"><%- __('tags') %></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<% page.posts.each(function(post) { %>
|
|
||||||
<% if (post.wanted) { %>
|
|
||||||
<%- partial('_partial/wanted', {post: post, index: true}) %>
|
|
||||||
<% } %>
|
|
||||||
<% }) %>
|
|
||||||
|
|
||||||
<% page.posts.each(function(post) { %>
|
<% page.posts.each(function(post) { %>
|
||||||
<% if (post.featured) { %>
|
<% if (post.featured) { %>
|
||||||
<%- partial('_partial/featured', {post: post, index: true}) %>
|
<%- partial('_partial/featured', {post: post, index: true}) %>
|
||||||
|
|
|
@ -75,7 +75,7 @@ layout: layout
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h4><%- __('protocols') %></h4>
|
<h4><%- __('protocols') %></h4>
|
||||||
<ul class="section-list">
|
<ul class="section-list">
|
||||||
<% for (item in protocols) { %>
|
<% for (item in protocols) { %>
|
||||||
|
@ -83,15 +83,15 @@ layout: layout
|
||||||
<a href="<%= protocols[item].url %>"><%= protocols[item].name %></a><span>, </span>
|
<a href="<%= protocols[item].url %>"><%= protocols[item].name %></a><span>, </span>
|
||||||
</li>
|
</li>
|
||||||
<% } %>
|
<% } %>
|
||||||
</ul>
|
/ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p><%= fv.info %></p>
|
|
||||||
|
|
||||||
<p class="u-center">
|
<p class="u-center">
|
||||||
<a href="/en/portal/servers" class="u-block u-emphasize btn-action centered"><%- __('joinF') %></a>
|
<a href="/en/portal/servers" class="u-block u-emphasize btn-action centered"><%- __('joinF') %></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p><%= fv.info %></p>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h4><%- __('latest') %></h4>
|
<h4><%- __('latest') %></h4>
|
||||||
<ul class="article-list">
|
<ul class="article-list">
|
||||||
|
@ -119,5 +119,9 @@ layout: layout
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p class="u-center">
|
||||||
|
<a href="/en/crystalball" class="u-block u-emphasize btn-action centered"><%- __('magic') %></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
<%- partial('_partial/buttons') %>
|
<%- partial('_partial/buttons') %>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -10,8 +10,7 @@
|
||||||
|
|
||||||
.chronicles .links {
|
.chronicles .links {
|
||||||
width: 160px;
|
width: 160px;
|
||||||
height: 150px;
|
height: 130px;
|
||||||
margin-bottom: 2em;
|
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +41,7 @@
|
||||||
border: 1px solid $grey;
|
border: 1px solid $grey;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-top: 1em;
|
||||||
&:hover {
|
&:hover {
|
||||||
border: 1px solid $black;
|
border: 1px solid $black;
|
||||||
}
|
}
|
||||||
|
@ -53,29 +53,20 @@
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview:not(.wanted):not(.featured) a:focus > p {
|
.post__preview:not(.featured) a:focus > p {
|
||||||
color: $coral;
|
color: $coral;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview.wanted p {
|
.post__preview:nth-child(n+4) {
|
||||||
margin: .3em 0;
|
|
||||||
line-height: 1.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post__preview:not(.wanted) {
|
|
||||||
margin-top: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post__preview:not(.wanted):nth-child(n+4) {
|
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview:not(.wanted):not(.featured) {
|
.post__preview:not(.featured) {
|
||||||
flex: 32% 0 0;
|
flex: 32% 0 0;
|
||||||
height: 290px;
|
height: 290px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview:not(.wanted):not(.featured) .post__meta {
|
.post__preview:not(.featured) .post__meta {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
@ -91,11 +82,7 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview.wanted .post__meta span:last-child {
|
.post__preview:not(.featured) .post__content {
|
||||||
right: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post__preview:not(.wanted):not(.featured) .post__content {
|
|
||||||
width: 80%;
|
width: 80%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
|
@ -179,11 +166,11 @@
|
||||||
right: 9em;
|
right: 9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview:not(.wanted):not(.featured) {
|
.post__preview:not(.featured) {
|
||||||
flex: 46% 0 0;
|
flex: 46% 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview:not(.wanted):nth-child(n+4) {
|
.post__preview:nth-child(n+4) {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,12 +198,12 @@
|
||||||
margin: -90px auto 3em;
|
margin: -90px auto 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview:not(.wanted):not(.featured) {
|
.post__preview:not(.featured) {
|
||||||
flex: 100% 0 0;
|
flex: 100% 0 0;
|
||||||
height: 230px;
|
height: 230px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview:not(.wanted):not(.featured) .post__meta {
|
.post__preview:not(.featured) .post__meta {
|
||||||
margin: .5em 0;
|
margin: .5em 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -226,7 +213,7 @@
|
||||||
padding-top: 7em;
|
padding-top: 7em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post__preview:not(.wanted):not(.featured) {
|
.post__preview:not(.featured) {
|
||||||
height: 240px;
|
height: 240px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue