Skip to content

Commit

Permalink
feat: honest form in blog (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
niktverd committed Jan 12, 2024
1 parent ddabd03 commit 1b36a2a
Show file tree
Hide file tree
Showing 14 changed files with 449 additions and 373 deletions.
23 changes: 23 additions & 0 deletions .mocks/forms.json
@@ -0,0 +1,23 @@
{
"default": {
"type": "blog-form-block",
"paddingTop": "xl",
"formData": {
"hubspot": {
"region": "eu1",
"portalId": "25764979",
"formId": "a3eb06a6-e8ce-45d4-81bd-7fadb7dab313"
}
}
},
"yandexForm": {
"formData": {
"yandex": {
"theme": "default",
"id": "61a4e639d4d24e0dbba36f5c",
"metrikaGoals": ["events_form_submit"],
"customFormSection": "cloud"
}
}
}
}
27 changes: 27 additions & 0 deletions .mocks/page.json
Expand Up @@ -246,13 +246,40 @@
"resetPaddings": true,
"fullWidth": false,
"children": [
{
"type": "blog-form-block",
"column": "left",
"resetPaddings": true,
"formData": {
"hubspot": {
"region": "eu1",
"portalId": "25764979",
"formId": "a3eb06a6-e8ce-45d4-81bd-7fadb7dab313"
}
}
},
{
"type": "blog-form-block",
"column": "left",
"border": "line",
"resetPaddings": true,
"formData": {
"yandex": {
"theme": "default",
"id": "61a4e639d4d24e0dbba36f5c",
"metrikaGoals": ["events_form_submit"],
"customFormSection": "cloud"
}
}
},
{
"type": "blog-meta-block",
"column": "left",
"resetPaddings": true
}
]
},

{
"type": "blog-suggest-block",
"resetPaddings": true,
Expand Down
1 change: 1 addition & 0 deletions .mocks/utils.ts
Expand Up @@ -2,6 +2,7 @@ import {ShareOptions} from '@gravity-ui/components';

import post from './post.json';
import page from './page.json';

import suggestedPosts from './suggestedPosts.json';

import {PostData} from '../src/models/common';
Expand Down

0 comments on commit 1b36a2a

Please sign in to comment.