Add PixelFed, generic layout

This commit is contained in:
lostinlight 2018-12-19 02:09:37 +03:00
parent 50cc506e7d
commit 65504afd6a
18 changed files with 107 additions and 20 deletions

View File

@ -67,6 +67,12 @@
"url" : "https://socialhome.network",
"smallImg": "/img/socialhome.png",
"descr": "Personal webpage with social networking functionality, suitable for image based content"
},
{
"title": "PixelFed",
"url" : "https://pixelfed.org",
"smallImg": "/img/pixelfed.png",
"descr": "Federated social image sharing for everyone"
}
],
"protocols":
@ -96,7 +102,7 @@
[
{
"name": "PHP",
"networks": "Friendica, GNU Social, Social, Hubzilla, Osada, Pixelfed, postActiv"
"networks": "Friendica, GNU Social, Social, Hubzilla, Osada, PixelFed, postActiv"
},
{
"name": "Ruby",

View File

@ -27,19 +27,6 @@
"OStatusClass": false,
"categories": ["SN-ma"]
},
{
"title": "Pixelfed",
"source": "github.com/dansup/pixelfed",
"protocols": "ActivityPub",
"site": "pixelfed.org",
"logo": "/img/misc/pixelfed.svg",
"servers": "the-federation.info/pixelfed",
"apClass": true,
"zotClass": false,
"diasporaClass": false,
"OStatusClass": false,
"categories": ["Media", "SN-mi"]
},
{
"title": "Funkwhale",
"source": "code.eliotberriot.com/funkwhale/funkwhale",

View File

@ -68,6 +68,12 @@
"population": "107",
"activeUsers": "107",
"podsNum": "4"
},
"pixelfed":
{
"population": "5.054",
"activeUsers": "2.800",
"podsNum": "21"
}
}
}

View File

@ -0,0 +1,38 @@
{
"data":
{
"title": "pixelfed",
"category": "social network",
"type": "image sharing, microblogging",
"logoClr": "6736dd",
"created": "2018",
"official": "https://pixelfed.org",
"license": "AGPL-3.0",
"repo": "https://github.com/dansup/pixelfed",
"language": "PHP",
"protocols":
[
{"title": "ActivityPub", "url": "https://activitypub.rocks"}
],
"wiki": "",
"servers":
[
{"num": "1", "url": "https://the-federation.info/pixelfed"},
{"num": "2", "url": "https://fediverse.network/pixelfed"}
],
"mobile": "https://github.com/glitchpizza/morii",
"devTutorials": "https://github.com/pixelfed/pixelfed#installation",
"mascot": [{"item": "?"}],
"dwellers": "",
"communities": "",
"descr": "Pixelfed is an image sharing platform with modern user interface.",
"connections": ["Mastodon", "Pleroma"],
"donate": "https://www.patreon.com/dansup",
"tracker": "https://github.com/dansup/pixelfed/issues",
"bounty": "",
"translating": "",
"reading": "",
"notable": ""
}
}

View File

@ -1,6 +1,6 @@
---
layout: "ganggo"
layout: "generic"
title: "GangGo"
network: "ganggo"
subtitle: "social network written in GoLang"

View File

@ -1,6 +1,6 @@
---
layout: "misskey"
layout: "generic"
title: "Misskey"
network: "misskey"
subtitle: "sophisticated micro blogging"

View File

@ -1,6 +1,6 @@
---
layout: "osada"
layout: "generic"
title: "Osada"
network: "osada"
subtitle: "powered by hyper-drive social engine"

View File

@ -1,6 +1,6 @@
---
layout: "peertube"
layout: "generic"
title: "PeerTube"
network: "peertube"
subtitle: "Take back the control of your videos"

View File

@ -0,0 +1,9 @@
---
layout: "generic"
title: "PixelFed"
network: "pixelfed"
subtitle: "federated image sharing platform"
banner: "/img/pixelfed-bg.jpg"
percent: "0% 0%"
---

View File

@ -1,6 +1,6 @@
---
layout: "socialhome"
layout: "generic"
title: "Socialhome"
network: "socialhome"
subtitle: "personal webpage with social networking functionality"

BIN
source/img/pixelfed-bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB

BIN
source/img/pixelfed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -74,4 +74,8 @@
<symbol id="icon-osada" viewBox="0 0 24 24">
<path d="M23.484 10.926c-.065-.029-.789-.033-1.765-.024a9.565 9.565 0 0 0-1.952-4.613c.69-.669 1.2-1.176 1.239-1.254.25-.496-1.12-1.883-1.672-1.672-.066.025-.578.532-1.257 1.223a9.894 9.894 0 0 0-4.902-2.045c.014-.921.015-1.601-.012-1.682-.174-.527-2.123-.54-2.365 0-.028.063-.033.747-.025 1.68a9.89 9.89 0 0 0-4.888 2.024c-.662-.683-1.163-1.187-1.241-1.226-.496-.25-1.883 1.12-1.672 1.672.025.066.528.574 1.215 1.249a9.575 9.575 0 0 0-1.97 4.614c-.93-.014-1.619-.015-1.7.012-.527.174-.54 2.123 0 2.365.063.028.742.033 1.669.025a9.127 9.127 0 0 0 1.985 4.693c-.678.657-1.175 1.152-1.214 1.23-.25.496 1.12 1.883 1.672 1.672.066-.025.585-.539 1.272-1.238a10.082 10.082 0 0 0 4.843 1.911c-.014.93-.015 1.619.012 1.701.174.527 2.123.54 2.365 0 .028-.063.033-.754.025-1.695a10.077 10.077 0 0 0 4.898-1.927c.679.701 1.195 1.22 1.274 1.26.496.25 1.883-1.12 1.672-1.672-.025-.066-.53-.576-1.22-1.254a9.12 9.12 0 0 0 1.97-4.652c.953.015 1.661.016 1.744-.011.527-.175.54-2.124 0-2.366zm-3.446-.001c-1.789.029-3.684.073-4.08.083a4.042 4.042 0 0 0-.333-.78 632.43 632.43 0 0 0 2.932-2.775 7.96 7.96 0 0 1 1.481 3.472zm-3.137-5.133c-1.178 1.216-2.413 2.51-2.777 2.891a4.233 4.233 0 0 0-1.092-.474c.019-.632.071-2.361.108-3.985a8.234 8.234 0 0 1 3.761 1.568zm-6.108-1.568c.026 1.629.065 3.365.08 3.992a4.218 4.218 0 0 0-1.069.469 527.347 527.347 0 0 0-2.753-2.908 8.204 8.204 0 0 1 3.742-1.553zM5.39 7.432a584.547 584.547 0 0 0 2.914 2.799c-.14.248-.251.512-.335.786-.522-.016-2.356-.071-4.075-.111A7.973 7.973 0 0 1 5.39 7.432zm-1.534 5.821c1.72-.027 3.567-.07 4.105-.082.089.297.21.58.366.844-.372.35-1.728 1.627-2.986 2.827a7.596 7.596 0 0 1-1.485-3.589zm3.169 5.224c1.237-1.277 2.548-2.651 2.854-2.971.314.176.652.313 1.006.406-.02.66-.072 2.424-.11 4.057a8.372 8.372 0 0 1-3.75-1.492zm6.101 1.496c-.026-1.634-.066-3.4-.081-4.061a4.313 4.313 0 0 0 1.059-.436c.298.317 1.597 1.697 2.825 2.984a8.375 8.375 0 0 1-3.803 1.513zm5.479-3.154a638.548 638.548 0 0 0-2.975-2.857 3.77 3.77 0 0 0 .342-.805c.43.013 2.321.071 4.099.112a7.567 7.567 0 0 1-1.466 3.55z"/>
</symbol>
<symbol id="icon-pixelfed" viewBox="-1 0 24 24">
<path d="M9.082 16.915h4.74c4.465 0 8.085-3.701 8.085-8.264S18.289.387 13.822.387H6.98c-2.577 0-4.665 2.134-4.665 4.768v18.559l6.767-6.799z"/>
</symbol>
</svg>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,22 @@
---
layout: layout
---
<%
const url = getPath();
const data = site.data[url].data;
const file = '_partial/networks/' + url;
%>
<%- partial('_partial/heroheader') %>
<main class="contents network">
<%- partial('_partial/header') %>
<div class="section-wrapper">
<%- partial('_partial/generalinfo') %>
</div>
<%- partial('_partial/world') %>
<br>
<%- partial('_partial/contributing') %>
<%- partial('_partial/buttons') %>
</main>

View File

@ -3,6 +3,7 @@
hexo.extend.helper.register('is_root', isRoot);
hexo.extend.helper.register('get_langs', getLangs);
hexo.extend.helper.register('switch_lang', switchLang);
hexo.extend.helper.register('getPath', getPath);
function isRoot() {
return this.page.path === 'index.html';
@ -22,3 +23,10 @@ function switchLang(lang) {
}
return '';
}
function getPath() {
const url = this.page.path;
const filename = url.substr(3);
const splitPath = filename.split("/");
return splitPath[0];
}

View File

@ -184,7 +184,8 @@ $taglist: (diaspora, $diaspora),
(postactiv, $postactiv),
(peertube, $peertube),
(misskey, $misskey),
(osada, $osada);
(osada, $osada),
(pixelfed, $pixelfed);
@each $tag, $color in $taglist {
svg.#{$tag} {

View File

@ -119,6 +119,11 @@
left: 90%;
}
.f-PixelFed {
top: 74%;
left: 7%;
}
.grid__card {
opacity: 0;
position: absolute;

View File

@ -21,3 +21,4 @@ $aardwolf: #46332d;
$peertube: #f1680d;
$misskey: #db3f86;
$osada: #008000;
$pixelfed: #6736dd;