8000 Started adding cards to Ecosystem page · NetFPGA/NetFPGA.github.io@e96ea13 · GitHub
[go: up one dir, main page]

Skip to content

Commit e96ea13

Browse files
Started adding cards to Ecosystem page
1 parent bea33ed commit e96ea13

File tree

6 files changed

+118
-11
lines changed

6 files changed

+118
-11
lines changed

.DS_Store

0 Bytes
Binary file not shown.

_posts/.DS_Store

0 Bytes
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: NetFPGA
3+
date: 2021-07-15
4+
posttype: ecosystem
5+
type: product
6+
category:
7+
description: A line-rate, flexible, and open platform for research
8+
organisation: NetFPGA
9+
organisation-logo: ./assets/images/thumbnail.png
10+
product-repo: https://github.com/NetFPGA/NetFPGA-public
11+
product-site: https://netfpga.org
12+
primary-contact-name: Andrew Moore
13+
primary-contact-email: enquiries@netfpga.org
14+
secondary-contact-name:
15+
secondary-contact-email:
16+
seller: Xilinx
17+
seller-url:
18+
seller-email:
19+
seller-phone:
20+
---

_posts/ecosystem/example-ecosystem.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: example
3+
date: 0001-01-01
4+
posttype: ecosystem
5+
type: product
6+
category: software
7+
description: this is an example
8+
organisation: NetFPGA
9+
organisation-logo: ./assets/images/thumbnail.png
10+
product-repo: https://github.com/NetFPGA/NetFPGA-public
11+
product-site: https://netfpga.org
12+
primary-contact-name: Andrew Moore
13+
primary-contact-email: enquiries@netfpga.org
14+
secondary-contact-name:
15+
secondary-contact-email:
16+
seller:
17+
seller-url:
18+
seller-email:
19+
seller-phone:
20+
---
21+
22+
title: The name for the product/Project/service
23+
date: the date it was added to the site
24+
posttype: used for the ecosystem cards to show up on the ecosystem page not the news and events page
25+
type: whether it is a product/project/service
26+
category: what kind of product/project/service it is
27+
description: A description of the product/project/service
28+
organisation: The name of the organisation
29+
organisation-logo: the url to the organisation's logo
30+
product-repo: the link to the product/project/service's public repo/website
31+
primary-contact-name: The name provided from the submission form
32+
primary-contact-email: The email provided from the submission form
33+
secondary-contact-name: If provided from the submission form
34+
secondary-contact-email: If provided from the submission form
35+
seller: The name of the seller of the product
36+
seller-url: The link to the seller's website, if provided
37+
seller-email: The email of the seller, if provided
38+
seller-phone: The phone number of the seller, if provided

assets/css/_sass/custom.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,8 @@ a {
193193
margin-bottom: 0px;
194194
}
195195
}
196+
197+
.organisation-img {
198+
height: 50px;
199+
width: auto;
200+
}

ecosystem.html

Lines changed: 55 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
<h1>The NetFPGA Ecosystem</h1>
66
<p>These are some of the open-source projects based on NetFPGA. If you have a project that uses NetFPGA and would like to be featured as part of the NetFPGA ecosystem, please let us know <a href="">here</a></p>
77

8-
<br>
9-
<br>
10-
11-
<h2><a href="https://github.com/NetFPGA/">The NetFPGA GitHub Repository</a></h2>
128

139
<br>
1410
<br>
@@ -39,11 +35,59 @@ <h2><a href="https://github.com/mtpsa/">MTPSA</a></h2>
3935
<br>
4036

4137
<h2><a href="https://github.com/pta-project-repo/pta-artifacts">PTA</a></h2>
42-
43-
<div class="row">
44-
<div class="col-12 col-md-12 col-lg-12 mb-5">
45-
<div class="card border-0 shadow h-100">
46-
38+
<br>
39+
{% for post in site.posts %}
40+
{% if post.posttype == "ecosystem" %}
41+
<div class="row">
42+
<div class="col-12 col-md-12 col-lg-12 mb-5">
43+
<div class="card border-1 h-100">
44+
<div class="card-body">
45+
<div class="row">
46+
<h2 class="card-title col-6">{{post.title}}</h2>
47+
<div class="col-6 9E88 ">
48+
<img src="{{post.organisation-logo}}" alt="The logo of {{post.organisation}}" class="organisation-img float-right">
49+
</div>
50+
</div>
51+
<br>
52+
<h3><i>{{post.organisation}}</i></h3>
53+
{% if condition %}
54+
<p><b>Category:</b> {{post.category}}</p>
55+
{% endif %}
56+
<p>{{post.description}}</p>
57+
<br>
58+
<p>Contact {{post.organisation}} here: <a href="mailto:{{post.primary-contact-email}}">{{post.primary-contact-email}}</a></p>
59+
<hr>
60+
{% if post.seller %}
61+
<div>
62+
<p>{{post.title}} is sold by {{post.seller}}.
63+
<br>
64+
{% if post.seller-url %}
65+
You can purchase {{post.title}} <a href="{{post.seller-url}}">here</a>.
66+
{% endif %}
67+
<br>
68+
{% if post.seller-email or post.seller-phone %}
69+
You can contact {{post.seller}} by:
70+
<br>
71+
{% if post.seller-email %}
72+
&nbsp Email: <a href="mailto:{{post.seller-email}}">{{post.seller-email}}</a>.
73+
{% endif %}
74+
<br>
75+
{% if post.seller-phone %}
76+
&nbsp Phone: {{post.seller-phone}}
77+
{% endif %}
78+
{% endif %}</p>
79+
</div>
80+
{% endif %}
81+
</div>
82+
<div class="card-footer">
83+
<p class="mb-0">
84+
<a href="{{post.product-repo}}">Repository</a>
85+
&nbsp
86+
<a href="{{post.product-site}}">Website</a>
87+
</p>
88+
</div>
89+
</div>
90+
</div>
4791
</div>
48-
</div>
49-
</div>
92+
{% endif %}
93+
{% endfor%}

0 commit comments

Comments
 (0)
0