add sections

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-08 23:23:52 +03:00
parent 1197af4fb7
commit 72c9248b81
19 changed files with 2616 additions and 312 deletions

View File

@@ -21,7 +21,7 @@
"description": {
"type": "text"
},
"comment": {
"badge": {
"type": "string"
},
"group": {

View File

@@ -14,7 +14,11 @@
"sections": {
"type": "dynamiczone",
"components": [
"sections.home-hero"
"sections.home-hero",
"sections.services",
"sections.solutions",
"sections.cases",
"sections.about"
]
}
}

View File

@@ -21,16 +21,16 @@
"description": {
"type": "text"
},
"products": {
"type": "component",
"component": "shared.product",
"repeatable": true
},
"categories": {
"type": "relation",
"relation": "manyToMany",
"target": "api::category.category",
"mappedBy": "vendors"
},
"products": {
"type": "component",
"component": "shared.string",
"repeatable": true
}
}
}

View File

@@ -0,0 +1,26 @@
{
"collectionName": "components_cards_advantages",
"info": {
"displayName": "Advantage"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"icon": {
"type": "component",
"component": "shared.icon",
"repeatable": false
},
"color": {
"type": "component",
"component": "shared.color",
"repeatable": false
}
},
"config": {}
}

View File

@@ -0,0 +1,35 @@
{
"collectionName": "components_cards_cases",
"info": {
"displayName": "Case"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"pretitle": {
"type": "string"
},
"badge": {
"type": "string"
},
"footnote": {
"type": "string"
},
"color": {
"type": "component",
"component": "shared.color",
"repeatable": false
},
"icon": {
"type": "component",
"component": "shared.icon",
"repeatable": false
}
},
"config": {}
}

View File

@@ -0,0 +1,31 @@
{
"collectionName": "components_cards_services",
"info": {
"displayName": "Service"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"icon": {
"type": "component",
"component": "shared.icon",
"repeatable": false
},
"color": {
"type": "component",
"component": "shared.color",
"repeatable": false
},
"category": {
"type": "relation",
"relation": "oneToOne",
"target": "api::category.category"
}
},
"config": {}
}

View File

@@ -0,0 +1,29 @@
{
"collectionName": "components_cards_solutions",
"info": {
"displayName": "Solution"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"footnote": {
"type": "string"
},
"icon": {
"type": "component",
"component": "shared.icon",
"repeatable": false
},
"category": {
"type": "relation",
"relation": "oneToOne",
"target": "api::category.category"
}
},
"config": {}
}

View File

@@ -0,0 +1,26 @@
{
"collectionName": "components_sections_abouts",
"info": {
"displayName": "About"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"partners": {
"type": "component",
"component": "shared.string",
"repeatable": true
},
"cards": {
"type": "component",
"component": "cards.advantage",
"repeatable": true
}
},
"config": {}
}

View File

@@ -0,0 +1,21 @@
{
"collectionName": "components_sections_cases",
"info": {
"displayName": "Cases"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"cards": {
"type": "component",
"component": "cards.case",
"repeatable": true
}
},
"config": {}
}

View File

@@ -0,0 +1,21 @@
{
"collectionName": "components_sections_services",
"info": {
"displayName": "Services"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"cards": {
"type": "component",
"component": "cards.service",
"repeatable": true
}
},
"config": {}
}

View File

@@ -0,0 +1,21 @@
{
"collectionName": "components_sections_solutions",
"info": {
"displayName": "Solutions"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"cards": {
"type": "component",
"component": "cards.solution",
"repeatable": true
}
},
"config": {}
}

View File

@@ -0,0 +1,22 @@
{
"collectionName": "components_shared_colors",
"info": {
"displayName": "Color"
},
"options": {},
"attributes": {
"value": {
"type": "enumeration",
"enum": [
"blue",
"violet",
"emerald",
"orange",
"pink",
"indigo",
"cyan"
]
}
},
"config": {}
}

View File

@@ -0,0 +1,27 @@
{
"collectionName": "components_shared_contacts",
"info": {
"displayName": "Contact"
},
"options": {},
"attributes": {
"type": {
"type": "enumeration",
"required": true,
"enum": [
"phone",
"working-hours",
"email",
"address"
]
},
"value": {
"type": "string",
"required": true
},
"displayValue": {
"type": "string"
}
},
"config": {}
}

View File

@@ -0,0 +1,33 @@
{
"collectionName": "components_shared_icons",
"info": {
"displayName": "Icon"
},
"options": {},
"attributes": {
"value": {
"type": "enumeration",
"enum": [
"cloud",
"shield",
"cpu",
"database",
"server",
"settings",
"building",
"shopping-cart",
"factory",
"heart",
"graduation-cap",
"landmark",
"rocket",
"zap",
"award",
"users",
"check-circle",
"package"
]
}
},
"config": {}
}

View File

@@ -1,11 +1,11 @@
{
"collectionName": "components_shared_products",
"collectionName": "components_shared_strings",
"info": {
"displayName": "Product"
"displayName": "String"
},
"options": {},
"attributes": {
"title": {
"value": {
"type": "string",
"required": true
}