forumone / gesso

Gesso Drupal theme
66 stars 13 forks source link

Create call to action Storybook component and Drupal paragraph template #838

Open carsoncho opened 3 months ago

carsoncho commented 3 months ago

A common component we have on all of our sites is a Call to Action component. The thought here would be that component would have at least the following fields:

I'm unsure if we need to provide designs or anything for that, but we feel this would be a useful component to include as part of our starter projects and thus part of Gesso.

coreylafferty commented 3 months ago

@carsoncho We didn't realize this was part of the Drupal starter paragraphs project when we discussed this earlier. In that case this makes more sense coming from that direction... we'd just need to give it very minimal design on the theming side, but I can do that as well as create the supporting templates once the fields are created on the backend. If you can point me to a PR or something for the backend portion, I can add supporting templates and styles to Gesso and help with a default template in the module if needed.

coreylafferty commented 1 week ago

@carsoncho Did this paragraph type ever get created as part of drupal starter?

carsoncho commented 1 week ago

@coreylafferty Yes, this component now exists as part of drupal-starter. This is included in the latest drupal-starter now (https://github.com/forumone/drupal-project/tree/main/web/modules/starterkit/f1_call_to_action_paragraph). This follows the rough content model proposed above.

coreylafferty commented 1 week ago

Next step -- create a Storybook "call to action" component with a very simple design and a Drupal paragraph template that matches the configuration (field machine names, etc.) in the Drupal Project (https://github.com/forumone/drupal-project/tree/main/web/modules/starterkit/f1_call_to_action_paragraph). This is similar to what we've done for the Hero and Accordion paragraphs.