Skip to content

Commit

Permalink
feat(site-default): add Community and Team pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Apr 12, 2024
1 parent 045d69b commit b4eca5e
Show file tree
Hide file tree
Showing 17 changed files with 262 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ node_modules/
!/.knosys/sites/default/source/_posts/hello-world.md
/.knosys/sites/default/themes/*/layout/*
!/.knosys/sites/default/themes/*/layout/_nop/
!/.knosys/sites/default/themes/*/layout/_local/
/.knosys/sites/default/themes/*/scripts/
/.knosys/sites/default/themes/*/source/fonts/*
/.knosys/sites/default/themes/*/source/images/*
!/.knosys/sites/default/themes/*/source/images/nop/
!/.knosys/sites/default/themes/*/source/images/local/
/.knosys/sites/default/themes/*/source/javascripts/*
/.knosys/sites/default/themes/*/source/stylesheets/*
!/.knosys/sites/default/themes/*/_config.yml
Expand Down
4 changes: 4 additions & 0 deletions .knosys/sites/default/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ ksio:
- javascripts/ksio/components/toc
_nop/layouts/doc:
extends: ksio/doc
_local/layouts/index:
values:
ksio_asset_css:
- local/pages/index
page:
- scope:
type: posts
Expand Down
16 changes: 16 additions & 0 deletions .knosys/sites/default/source/_data/local/members.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- name: canonical
slug: canonical
job: 创作者
org: Nop 平台
projects:
- name: Nop 平台
url: https://gitee.com/canonical-entropy/nop-entropy
- name: 欧雷
slug: ourai
job: 发起人 & 站长
org: Nop 社区
website: https://linxoid.com/ourai
projects:
- name: Nop 官网
url: https://gitee.com/nop-platform/site
sponsor: https://ourai.ws/sponsor/
31 changes: 31 additions & 0 deletions .knosys/sites/default/source/community.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: 社区
---

[Nop 平台](/projects/nop-entropy/)[canonical](https://gitee.com/canonical-entropy) 自创的[可逆计算理论](https://zhuanlan.zhihu.com/p/64004026)的代码实现,提供新的软件构造原理的某种元机制和元工具,是一种比较纯粹的「引擎」,并不直接提供对于一线业务开发人员友好的功能。

其创作者是一个不为世俗之事所扰且具有科研人员气质的理想主义者,因而[只关心作为底层的 Nop 平台的核心功能,自身不考虑任何商业化发展](https://zhuanlan.zhihu.com/p/682133332)

鉴于上述原因,注定 Nop 平台在推广使用上会产生很大阻力。

本社区是以 Nop 平台为根基,由[一群有想法、热情和行动力的人](/team/)共建而来,旨在尽可能填平 Nop 平台与一线业务开发人员之间的鸿沟。

## 问题反馈

若在使用本网站或 Nop 平台的过程中遇到问题及 bug,可在 Gitee 上提 issue:

| 项目 | Git 仓库 |
| --- | --- |
| 官方网站 | [`nop-platform/nop-platform`](https://gitee.com/nop-platform/nop-platform/issues) |
| Nop 平台 | [`canonical-entropy/nop-entropy`](https://gitee.com/canonical-entropy/nop-entropy/issues) |

## 讨论群组

扫描下方 QR 码添加 Nop 平台创作者微信,并**备注「加入 Nop 平台群」**

<figure>
<img src="images/wechat-group.png" alt="Nop 平台创作者微信">
<figcaption>Nop 平台创作者微信</figcaption>
</figure>

另有 Discord 社区正在准备中!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions .knosys/sites/default/source/index.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: _nop/layouts/index
---

<main class="Page-content">
<article class="Homepage">
<header class="Homepage-header">
<h1>Nop</h1>
<p class="Homepage-slogan">基于可逆计算原理从零开始构建的新一代低代码平台</p>
<p class="GetStarted"><a href="/projects/nop-entropy/docs/">开始了解<i class="fa fa-long-arrow-right"></i></a></p>
</header>
</article>
</main>
6 changes: 6 additions & 0 deletions .knosys/sites/default/source/team.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 团队
ksio_slot_content: _local/partials/team
ksio_asset_css:
- local/pages/team
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<%- partial(theme.header && theme.header.partial || '_ksio/partials/header') %>
<%- partial('_ksio/slots/content') %>
<%- partial(theme.footer && theme.footer.partial || '_ksio/partials/footer') %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<h2>核心成员</h2>
<ul class="MemberList">
<% site.data['local/members'].forEach(mem => { %>
<li class="MemberList-item">
<div class="Member">
<div class="Member-header">
<%- image_tag(`images/local/avatars/${mem.slug}.jpg`, { class: 'Member-avatar', alt: mem.name }) %>
<h3 class="Member-name" data-toc-skip="true"><% if (mem.website) { %><a href="<%= mem.website %>" target="_blank" rel="external nofollow"><%= mem.name %></a><% } else { %><%= mem.name %><% } %></h3>
<p class="Member-job"><%= mem.job %><% if (mem.org) { %> @ <%= mem.org %><% } %></p>
<% if (mem.sponsor) { %><a class="Member-sponsor" href="<%= mem.sponsor %>" target="_blank" rel="external nofollow"><i class="fa fa-heart"></i><span>资助</span></a><% } %>
</div>
<div class="Member-body">
<div class="Member-projects"><i class="fa fa-code"></i><ul>
<% mem.projects.forEach(prj => { %>
<li><a href="<%= prj.url %>" target="_blank" rel="external nofollow"><%= prj.name %></a></li>
<% }) %>
</ul></div>
</div>
</div>
</li>
<% }) %>
</ul>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
@import "../../stylesheets/helper";

.Homepage {
&-header {
position: relative;
z-index: 1;
overflow: hidden;
padding: 96px 20px;
text-align: center;
background-color: #fff;

h1 {
margin-top: 0;
margin-bottom: .3em;
font-size: 10rem;
font-weight: 700;
}
}

&-slogan {
font-size: 2.5rem;
}
}

.GetStarted {
$height: 46px;

margin-top: 56px;
margin-bottom: 0;

a {
display: inline-block;
padding: 0 30px;
font-weight: 400;
line-height: $height;
border-radius: $height;
color: #fff;
background-color: #337ab7;

&:hover {
text-decoration: none;
background-color: #0871ab;
}
}

.fa {
margin-left: .5em;
}
}
104 changes: 104 additions & 0 deletions .knosys/sites/default/themes/nop-project/source/local/pages/team.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
@import "../../stylesheets/helper";

.MemberList {
list-style: none inside none;
overflow: hidden;
margin: 0 -8px !important;
padding: 0;

&-item {
float: left;
width: 100%;
padding: 8px;

@media (min-width: $screen-sm-min) {
width: 50%;
}
}
}

.Member {
display: block;
// min-height: 180px;
padding: 20px 20px 20px 120px;
overflow: hidden;
font-size: 14px;
text-decoration: none !important;
border-radius: 6px;
background-color: #f9f9f9;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.22);
@include pie-clearfix;

&-header {
position: relative;
padding-top: 10px;
}

&-avatar {
position: absolute;
top: 0;
left: -100px;
padding: 3px;
border: 1px solid #eee;
border-radius: 3px;
background-color: #fff;
@include circle(80px);
}

&-name {
margin: 0;
font-size: 24px !important;
}

&-job {
margin: 10px 0 0 !important;
line-height: 1 !important;
}

&-sponsor {
position: absolute;
top: -5px;
right: -5px;
height: 30px;
padding: 0 .8em;
font-size: 12px;
font-weight: normal;
line-height: 1;
text-align: center;
border: 1px solid #0871ab;
border-radius: 4px;
@include text-middle(".fa, span");

.fa {
margin-right: .5em;
}

&:hover {
color: #fff;
background-color: #0871ab;
}
}

&-body {
padding-top: 15px;
font-weight: normal;
}

&-projects {
.fa,
ul {
vertical-align: middle;
}

ul {
display: inline-block;
list-style: none inside none;
margin: 0 0 0 .8em;
padding: 0;
}
}

@media (min-width: $screen-sm-min) {
min-height: 0;
}
}
2 changes: 1 addition & 1 deletion .knosys/sites/en/_data/local/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
website: https://ourai.github.io
projects:
- name: Nop official website
url: https://github.com/nop-platform/nop-platform.github.io
url: https://github.com/nop-platform/site
2 changes: 1 addition & 1 deletion .knosys/sites/zh/_data/local/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
website: https://linxoid.com/ourai
projects:
- name: Nop 官网
url: https://gitee.com/nop-platform/nop-platform
url: https://gitee.com/nop-platform/site
sponsor: https://ourai.ws/sponsor/
9 changes: 9 additions & 0 deletions .knosys/sites/zh/_data/local/repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ nop-entropy:
name: Nop Entropy 项目文档
base: /projects/nop-entropy
collection: docs
source:
local: _knosys/project-nop-entropy
remote:
default:
host: github.com
url: 'https://github.com/entropy-cloud/nop-entropy/edit/master/docs/:path'
zh:
host: gitee.com
url: 'https://gitee.com/canonical-entropy/nop-entropy/edit/master/docs/:path'
toc:
- text: 介绍
slug: why-nop
Expand Down
2 changes: 1 addition & 1 deletion .knosys/sites/zh/_layouts/local/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 class="Article-title">{{ page.title }}</h1>
<div class="Article-content col-md-9">{{ content }}</div>
<footer class="Article-footer col-md-3">
{% if page.repo != "cookbook" %}
<div class="Widget" data-url="{{ page.url }}" data-path="{{ page.path }}">
<div class="Widget">
<div class="Widget-body"><a href="https://gitee.com/canonical-entropy/nop-entropy/edit/master/docs/{{ page.path || replace: '_knosys/project-nop-entropy/', '' }}" target="_blank" rel=" rel="external nofollow"">在 Gitee 上编辑文档内容</a></div>
</div>
{% endif %}
Expand Down

0 comments on commit b4eca5e

Please sign in to comment.