Skip to content

Commit

Permalink
Adding biz models
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafabarmshory committed Oct 10, 2022
1 parent 9de48ed commit 9bfeffe
Show file tree
Hide file tree
Showing 12 changed files with 361 additions and 158 deletions.
67 changes: 67 additions & 0 deletions _businesses/api.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
title: API
icon: "/assets/images/networks-logo/cosmos.svg"
---

<section
class="container-fluid py-5">
<h2>Business Model Canvas</h2>
<div class="bmc">
<div id="partners">
<h3>Key Partners</h3>
</div>
<div id="activities">
<h3>Key Activities</h3>
<div class="note">Setup Nodes</div>
<div class="note">Maintain Nodes</div>
</div>
<div id="resources">
<h3>Key Resources</h3>
<div class="note">Infrastructure</div>
<div class="note">Assets (Coins)</div>
</div>
<div id="value">
<h3>Value Proposition</h3>
<div class="note">Network API</div>
<div class="note">Wallet Hooks</div>
</div>
<div id="relationship">
<h3>Customer Relationship</h3>
<div class="note">Website</div>
</div>
<div id="channels">
<h3>Channels</h3>
<div class="note">Wallets</div>
</div>
<div id="customers">
<h3>Customers Segments</h3>
<div class="note">Developers</div>
</div>

<div id="cost">
<h3>
<a href="#cost_structure">Cost Structure</a>
</h3>
<div class="note">
<a href="{{ '/' | relative_url }}#roles">CEO, CTO, IT Man and SPO</a>
</div>
<div class="note">
<a href="{{ '/' | relative_url }}#infrastructure">Hardware and Infrastructure</a>
</div>
<div class="note green">
<a href="{{ '/' | relative_url }}#networks">Setup</a>
</div>
<div class="note green">
<a href="{{ '/' | relative_url }}#networks">Start up asset</a>
</div>
</div>
<div id="revenue">
<h3>
<a href="{{ '/' | relative_url }}#revenue_streams">Revenue Streams</a>
</h3>
<div class="note green">
<a href="{{ '/' | relative_url }}#revenue_streams_fee">Pricing</a>
</div>
</div>
</div>
</section>
143 changes: 143 additions & 0 deletions _businesses/staking.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
---
title: Staking Business
icon: "/assets/images/networks-logo/cosmos.svg"
---


<section
class="container-fluid py-5">
<h1>Business Model Canvas</h1>
<div class="bmc">
<div id="partners">
<h3>Key Partners</h3>
</div>
<div id="activities">
<h3>Key Activities</h3>
<div class="note">Setup Nodes</div>
<div class="note">Maintain Nodes</div>
</div>
<div id="resources">
<h3>Key Resources</h3>
<div class="note">Infrastructure</div>
<div class="note">Assets (Coins)</div>
</div>
<div id="value">
<h3>Value Proposition</h3>
<div class="note">Staking Pool</div>
</div>
<div id="relationship">
<h3>Customer Relationship</h3>
<div class="note">Website</div>
</div>
<div id="channels">
<h3>Channels</h3>
<div class="note">Wallets</div>
</div>
<div id="customers">
<h3>Customers Segments</h3>
<div class="note">Holders</div>
</div>

<div id="cost">
<h3>
<a href="#cost_structure">Cost Structure</a>
</h3>
<div class="note">
<a href="{{ '/' | relative_url }}#roles">CEO, CTO, IT Man and SPO</a>
</div>
<div class="note">
<a href="{{ '/' | relative_url }}#infrastructure">Hardware and Infrastructure</a>
</div>
<div class="note green">
<a href="{{ '/' | relative_url }}#networks">Setup</a>
</div>
<div class="note green">
<a href="{{ '/' | relative_url }}#networks">Start up asset</a>
</div>
</div>
<div id="revenue">
<h3>
<a href="{{ '/' | relative_url }}#revenue_streams">Revenue Streams</a>
</h3>
<div class="note green">
<a href="{{ '/' | relative_url }}#revenue_streams_staking">Staking</a>
</div>
<div class="note green">
<a href="{{ '/' | relative_url }}#revenue_streams_fee">Staking Fee</a>
</div>
</div>
</div>
</section>


<section
class="container-fluid py-5">
<h2>Calculator</h2>
<div id="calculatorBody"></div>

<script type="application/json" id="roles-data">
[{% for role in site.roles %}
{
"id": "{{ role.id }}",
"title": "{{ role.title }}",
"abbreviation": "{{ role.abbreviation }}",
"cost": {{ role.cost }},
"throughput": {{ role.throughput }},
"url": "{{ role.url | relative_url }}",
"count": 0
},
{% endfor %}{}]
</script>


<script type="application/json" id="networks-data">
[{% for network in site.networks %}
{
"id": "{{ network.id }}",
"title": "{{ network.title }}",
"icon": "{{ network.icon | relative_url }}",
"token": "{{ network.token }}",
"tokenPrice": "{{ network.token_price }}",
"url": "{{ network.url | relative_url }}",
"count": 0,

"stakingMin": {{ network.stake_min }},
"apr": {{ network.stake_apr }},
"epoch": {{ network.network_epoch }},

"rewardConstant": {{ network.node_reward_constant}},
"rewardPercentage": {{ network.node_reward_percentage}},

"networkSymbol": "{{ network.network_symbol }}",
"networkTitle" : "{{ network.network_title }}",
"networkFee" : {{ network.network_fee }},

"nodeStartValue": {{ network.node_start_value }},
"nodeHardware" : "{{ network.node_hardware }}",

"p2pStaked": {{ network.p2p_staked_value }}
},
{% endfor %}{}]
</script>


<script type="application/json" id="resources-data">
[{% for resources in site.resources %}
{
"id": "{{ resources.id }} ",
"url": "{{ resources.url | relative_url }}",
"name": "{{ resources.name }}",
"title": "{{ resources.title }}",
"CPU": {{ resources.CPU }},
"RAM": {{ resources.RAM }},
"HDD": {{ resources.HDD }},
"SSD": {{ resources.SSD }},
"cost": {{ resources.cost }}
},
{% endfor %}{}]
</script>


<script src="{{ '/assets/js/owl.js' | relative_url }}"></script>
<script src="{{ '/assets/js/calculator-staking.js' | relative_url }}"></script>
</section>
20 changes: 18 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
################################################################################
title: GenZ Bank Organization
title: GenZ Bank
logo: /assets/logo.svg
email: [email protected]
description: >-
Expand Down Expand Up @@ -51,6 +51,9 @@ collections:
output: true
resources:
output: true
businesses:
output: true




Expand Down Expand Up @@ -166,6 +169,18 @@ defaults:
values:
layout: "role"
category: "roles"
-
scope:
type: "businesses"
values:
layout: "business"
category: "business"
-
scope:
type: "resources"
values:
layout: "resource"
category: "resource"


#liquid:
Expand Down Expand Up @@ -204,9 +219,10 @@ ignore_theme_config: true
# and configure order of the links.
#
header_pages:
- calculator.html
- businesses.html
- roles.html
- networks.html
- resources.html
- about.html

#
Expand Down
24 changes: 24 additions & 0 deletions _layouts/business.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
layout: default
---


<link
rel="stylesheet"
href="{{ '/assets/home.css' | relative_url }}" >

<section class="container-fluid">
<div class="row">
<div class="col">
<h1>
<img src="{{ page.icon | relative_url }}"
width="64px"
heigh="64px">
{{ page.title | escape }}
</h1>
<p>{{ page.description | escape }}</p>
</div>
</div>
</section>

{{ content }}
49 changes: 49 additions & 0 deletions _layouts/resource.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
layout: default
---

<section class="container-fluid">
<div class="row">
<div class="col">
<h1>
<img src="{{ page.icon | relative_url }}"
width="64px"
heigh="64px">
{{ page.title | escape }}
</h1>
<p>{{ page.description | escape }}</p>
</div>
</div>
<div class="row">
<div class="col">
<table class="table">
<thead>
<tr>
<td>Title</td>
<td>Value</td>
</tr>
</thead>
<tbody>
<tr>
<td>CPU Cores</td>
<td>{{ page.CPU | upcase }}</td>
</tr>
<tr>
<td>RAM</td>
<td>{{ page.RAM | upcase }} GB</td>
</tr>
<tr>
<td>HDD</td>
<td>{{ page.HDD | upcase }} TB</td>
</tr>
<tr>
<td>SSD</td>
<td>{{ page.SSD | upcase }} TB</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>

{{ content }}
11 changes: 0 additions & 11 deletions assets/js/calculator.js → assets/js/calculator-staking.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
<th scope="row"><img width="32px" height="32px" t-att-src="props.network.icon" /></th>
<td><a t-att-href="props.network.url"><t t-esc="props.network.title"/></a></td>
<td><t t-esc="props.network.tokenPrice"/></td>
<td><t t-esc="props.network.count"/></td>
<td><t t-esc="props.network.tokenPrice * props.network.count"/></td>
<td>
<button type="button"
class="btn btn-link"
Expand Down Expand Up @@ -82,8 +80,6 @@
<th scope="col"></th>
<th scope="col">Title</th>
<th scope="col">Cost/Month (USDT)</th>
<th scope="col">required count</th>
<th scope="col">partial sum</th>
<th scope="col">Actions</th>
</tr>
</thead>
Expand Down Expand Up @@ -117,8 +113,6 @@
<th scope="col">Abbreviation</th>
<th scope="col">Title</th>
<th scope="col">Cost/Month (USDT)</th>
<th scope="col">required count</th>
<th scope="col">partial sum</th>
</tr>
</thead>
<tbody>
Expand All @@ -127,8 +121,6 @@
<th scope="row"><a t-att-href="role.url"><t t-esc="role.abbreviation"/></a></th>
<td><a t-att-href="role.url"><t t-esc="role.title"/></a></td>
<td><t t-esc="role.cost"/></td>
<td><t t-esc="role.count"/></td>
<td><t t-esc="role.cost * role.count"/></td>
</tr>
</t>
</tbody>
Expand Down Expand Up @@ -325,10 +317,7 @@
const APP_TEMPLATE = xml /* xml */`
<section
class="container-fluid py-5">
<ResourceTable resources="env.resourcesDb" />
<NetworkTable networks="env.networksDb" />
<RolesTable roles="env.rolesDb" />
<InitCost
networks="env.networksDb"
roles="env.rolesDb"
Expand Down
Loading

0 comments on commit 9bfeffe

Please sign in to comment.