Skip to content

Commit

Permalink
feat: how it works section
Browse files Browse the repository at this point in the history
  • Loading branch information
svvimming committed Sep 5, 2023
1 parent 5b289bc commit 84bf133
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 4 deletions.
12 changes: 11 additions & 1 deletion components/blocks/text-block.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<template v-if="block.heading">
<component
:is="block.h ? `h${block.h}` : 'h2'"
class="heading">
:class="['heading', { 'heading-image': block.img }]">
<img v-if="block.img" :src="block.img" />
<span
:class="block.h ? `h${block.h}` : 'h2'"
v-html="block.heading">
Expand Down Expand Up @@ -114,6 +115,15 @@ export default {
}
.heading {
&.heading-image {
display: flex;
align-items: center;
img {
width: toRem(90);
height: toRem(90);
margin-right: toRem(35);
}
}
span {
@include gradientText;
}
Expand Down
29 changes: 29 additions & 0 deletions components/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,33 @@ const iconComponent = computed(() => {
margin-bottom: toRem(22);
}
}
.card.type__horizontal {
padding: toRem(32) toRem(24);
.content {
position: relative;
z-index: 2;
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
}
.image {
padding: 0 toRem(28);
max-height: toRem(120);
}
.text {
flex-grow: 1;
max-width: 70%;
}
.title {
@include h3;
color: $sageGreen;
margin-bottom: toRem(27);
}
.description {
@include p2;
margin-bottom: 0;
}
}
</style>
74 changes: 71 additions & 3 deletions content/core/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,81 @@
}
},
{
"id": "section-features"
"id": "section-features",
"grid": ["noGutter"],
"col_1": {
"type": "text_block",
"cols": {
"num": "col-12"
},
"h": 1,
"img": "/images/lock-graphic.svg",
"heading": "Features"
}
},
{
"id": "section-how-it-works"
"id": "section-how-it-works",
"grid": ["noGutter"],
"col_1": {
"type": "text_block",
"cols": {
"num": "col-12"
},
"h": 1,
"img": "/images/increase-graphic.svg",
"heading": "How it works"
},
"col_2": {
"type": "card_list_block",
"cols": {
"num": "col-12"
},
"card_grid": ["equalHeight"],
"card_columns": "col-6",
"cards": [
{
"type": "horizontal",
"image": "/images/pie-chart-graphic.svg",
"title": "01 Prepare the Data",
"description": "The data preparation module will scan and convert a local folder recursively into CAR files ready to be onboarded to Filecoin Network. Singularity also indexes your files on IPFS for easy retrieval.",
"borderGradientAngle": "135deg"
},
{
"type": "horizontal",
"image": "/images/cube-graphic.svg",
"title": "02 Distribute CAR Files",
"description": "Easily host an HTTP server with the CAR files to be downloaded by the storage provider. You can also send the CAR files offline if the files are too large.",
"borderGradientAngle": "225deg"
},
{
"type": "horizontal",
"image": "/images/comment-graphic.svg",
"title": "03 Pick your Storage Providers",
"description": "Bring your own preferred storage providers, or join Filecoin slack channel to find reputable providers. Most storage providers today are interested in taking verified deals.",
"borderGradientAngle": "45deg"
},
{
"type": "horizontal",
"image": "/images/exchange-graphic.svg",
"title": "04 Make Storage Deals",
"description": "The client sets a schedule to send deals to storage providers through Singularity, either once or on a recurring basis.",
"borderGradientAngle": "315deg"
}
]
}
},
{
"id": "section-roadmap"
"id": "section-roadmap",
"grid": ["noGutter"],
"col_1": {
"type": "text_block",
"cols": {
"num": "col-12"
},
"h": 1,
"img": "/images/summit-graphic.svg",
"heading": "Roadmap"
}
}
]
}
Binary file modified public/images/warped-torus-made-of-segments.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84bf133

Please sign in to comment.