diff --git a/docs/canvas-free/_category_.json b/docs/canvas-free/_category_.json new file mode 100644 index 00000000..1747f121 --- /dev/null +++ b/docs/canvas-free/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Canvas (free)", + "position": 3.4, + "link": { + "type": "generated-index", + "description": " " + } + } \ No newline at end of file diff --git a/docs/canvas-free/create-a-page.md b/docs/canvas-free/create-a-page.md new file mode 100644 index 00000000..b4aa05d2 --- /dev/null +++ b/docs/canvas-free/create-a-page.md @@ -0,0 +1,108 @@ +--- +id: create-a-page +title: Create a Page +sidebar_label: Create a Page +sidebar_position: 2 +--- + +# Create a Page + +This guide walks you through building a Canvas page using Basecore components. + +## Step 1: Create a new page + +To create a new Canvas page, navigate to `admin/content/pages` and click the **Add Page** button at the top right corner. + +You can add any component available in the Component Library by dragging and dropping it into the page content section. + +## Step 2: Create a Hero + +Start by adding a **Section** component from the component library. Set the **Column Layout** option to `100` to create a single-column section. + +In the **Add content** placeholder, add a **Hero** component. The Hero component comes with a predefined two-column layout with equal-width columns. You can customize the layout by choosing from the available column width options and positioning the image on either the left or right side. You can also configure the button actions and link destinations according to your preferences. + +![Hero section in the Canvas editor](../img/canvas_hero.png) + +## Step 3: Create the Business solutions for growth stack + +Start by adding a **Section** component from the component library. Set the **Column Layout** option to `100` to create a single-column section. + +In the **Add content** placeholder, add a **Text** component and set the **Heading Level** to `H2` to use it as the section title. + +Below the Text component, add a **Grid Layout** component. Configure the layout as follows: + +- Set **Column Layout Extra Large** to `33-33-33`. +- Set **Column Layout Large** to `33-33-33`. + +This creates a three-column layout for screen widths of 992 px and above. + +Next, set **Column Layout Medium** to `100` so the layout collapses into a single column on screens smaller than 992 px. + +Within the **Add component** placeholders of the Grid Layout, add three **Icon Feature** components. For each component, configure the **Icon Name**, **Title**, and **Body** to match your content. + +Save your changes and preview the page to see the completed layout. + +![Business solutions section in the Canvas editor](../img/canvas_icon_features.png) + +## Step 4: Create the Why us stack + +Start by adding a new **Section** component from the component library. Set the **Column Layout** option to `50-50` to create two equal-width columns. + +In the left column, add a **Text** component and use it as the section title. Set the **Heading Level** to `H2` and adjust the **Margin** options as needed. Below the Text component, add a **Rich Text** component for the main content. + +Next, add a **Bootstrap Grid** component below the Rich Text component, and place a **Bootstrap Grid Column** component inside it. Within the **Add content** placeholder of the Bootstrap Grid Column, add a **Button** component. + +In the right column of the Section component, add an **Image** component. Select or upload an image from the media library and configure the **Aspect Ratio** according to your preferences. + +Save your changes and preview the page to see the completed layout. + +![Why us section in the Canvas editor](../img/canvas_why_us_stack.png) + +## Step 5: Create the Logo links stack + +Start by adding a **Section** component from the component library. Set the **Column Layout** option to `100` to create a single-column section. + +In the **Add content** placeholder, add a **Grid Layout** component. Configure the layout as follows: + +- Set **Column Layout Extra Large** to `25-25-25-25`. +- Set **Column Layout Large** to `50-50`. + +This creates a four-column layout for screen widths of 1200 px and above, and a two-column layout for screen widths of 992 px to 1200 px. + +Next, set **Column Layout Medium** to `100` so the layout collapses into a single column on screens smaller than 992 px. + +Within the **Add component** placeholders of the Grid Layout, add four **Logo Links** components. For each component, configure the **Image**, **Link URL**, and **Logo size** to match your content. + +Save your changes and preview the page to see the completed layout. + +![Logo links section in the Canvas editor](../img/canvas_logo_links.png) + +## Step 6: Create the Contact us stack + +Start by adding a **Section** component from the component library. Set the **Column Layout** option to `50-50` to create a two-column section. + +In the first **Add content** placeholder, add a **Text** component and set the **Heading Level** to `H3` to use it as the section title. Below the Text component, add a **Rich Text** component. Locate the **Description** field and click the **More options** button to select the source editing option. This allows you to enter your custom HTML markup. + +In the remaining **Add content** placeholder, add a **Webform** component and select the **Contact** form. + +Save your changes and preview the page to see the completed layout. + +![Contact us section in the Canvas editor](../img/canvas_contact_us_stack.png) + +## Reference Guide + +An overview of the layout components available in the Component Library. + +### Section + +The Section implements the behavior of the Bootstrap container and the Bootstrap columns. It is suggested to start building your page with this component as your base component. You can choose among a variety of column layouts and drag and drop other components from the component library. + +### Grid Layout + +The **Grid Layout** is a single grid container that hosts the child elements directly. You can choose from the predefined responsive behavior and add additional components from the component library. + +### Bootstrap Grid and Bootstrap Grid Column + +**Bootstrap Grid** and **Bootstrap Grid Column** are two components that work together to accomplish the layout behavior. + +First, add the **Bootstrap Grid** component, and inside it, add a **Bootstrap Grid Column** component. Combined, these two components give you full CSS control over the row and over each column's properties, using the Bootstrap CSS Grid. diff --git a/docs/canvas-free/drupal-cms-basecore.md b/docs/canvas-free/drupal-cms-basecore.md new file mode 100644 index 00000000..9b04d526 --- /dev/null +++ b/docs/canvas-free/drupal-cms-basecore.md @@ -0,0 +1,94 @@ +--- +id: drupal-cms-basecore +title: Drupal CMS + Basecore +sidebar_label: Drupal CMS + Basecore +sidebar_position: 1 +--- + +# Drupal CMS + Basecore + +## Install Drupal CMS + +Install Drupal CMS following the procedure described in the Drupal CMS User Guide: + +- [Drupal CMS User Guide](https://project.pages.drupalcode.org/drupal_cms/) + +## Install the Basecore theme + +Download and install the Basecore theme: + +- [Basecore theme](https://www.drupal.org/project/basecore) + +## Install required modules + +Install and enable the additional modules required for the Basecore Canvas components to function as designed: + +| Module | Link | +| --- | --- | +| Metatag | [drupal.org/project/metatag](https://www.drupal.org/project/metatag) | +| Contact | [drupal.org/project/contact](https://www.drupal.org/project/contact) | +| Canvas Full HTML | [drupal.org/project/canvas_full_html](https://www.drupal.org/project/canvas_full_html) | +| Webform | [drupal.org/project/webform](https://www.drupal.org/project/webform) | + +## Enable the theme + +Install and enable the theme, then clear the Drupal caches to ensure that all theme components are available on the website. + +## Add demo content + +### Download and install the Project Browser Extra Recipes + +Download the module using Composer: + +- [Project Browser Extra Recipes](https://www.drupal.org/project/extra_project_browser) + +```bash +composer require 'drupal/extra_project_browser:^1.0' +``` + +### Enable the Project Browser Extra Recipes module + +Navigate to `/admin/modules` and enable the Project Browser Extra Recipes. + +### Install the Project Browser Extra Recipes + +Download the recipe using Composer: + +- [Extra Content Canvas Basecore](https://www.drupal.org/project/extra_content_canvas_basecore) + +```bash +composer require drupal/extra_content_canvas_basecore +``` + +Navigate to `admin/modules/browse/extra_recipes` and enable the extra recipes to display the demo content. + +![Project Browser Extra Recipes](../img/recipes_installation.png) + +## View the landing pages + + +Once all the steps are complete, go to `admin/content/pages` to see the six new landing pages built with the Canvas components. + +### Business Solutions + +![Business Solutions](../img/canvas_busines_solutions.png) + +### Lead Generation + +![Lead Generation](../img/canvas_lead_generation.png) + +### About Us + +![About Us](../img/canvas_about_us.png) + +### Services + +![Services](../img/canvas_services.png) + +### Online Service + +![Online Service](../img/canvas_online_service.png) + +### Start Free Trial + +![Start Free Trial](../img/canvas_start_free_trial.png) \ No newline at end of file diff --git a/docs/canvas-free/video-tutorials.md b/docs/canvas-free/video-tutorials.md new file mode 100644 index 00000000..802617c4 --- /dev/null +++ b/docs/canvas-free/video-tutorials.md @@ -0,0 +1,12 @@ +--- +id: video-tutorials +title: Video Tutorials +sidebar_label: Video Tutorials +sidebar_position: 3 +--- + +# Video Tutorials + +## Create Canvas page using Basecore components + + \ No newline at end of file diff --git a/docs/img/canvas_about_us.png b/docs/img/canvas_about_us.png new file mode 100644 index 00000000..ea1188e2 Binary files /dev/null and b/docs/img/canvas_about_us.png differ diff --git a/docs/img/canvas_busines_solutions.png b/docs/img/canvas_busines_solutions.png new file mode 100644 index 00000000..3e65c715 Binary files /dev/null and b/docs/img/canvas_busines_solutions.png differ diff --git a/docs/img/canvas_contact_us_stack.png b/docs/img/canvas_contact_us_stack.png new file mode 100644 index 00000000..9131b18b Binary files /dev/null and b/docs/img/canvas_contact_us_stack.png differ diff --git a/docs/img/canvas_hero.png b/docs/img/canvas_hero.png new file mode 100644 index 00000000..7a4ddf70 Binary files /dev/null and b/docs/img/canvas_hero.png differ diff --git a/docs/img/canvas_icon_features.png b/docs/img/canvas_icon_features.png new file mode 100644 index 00000000..f2842f7a Binary files /dev/null and b/docs/img/canvas_icon_features.png differ diff --git a/docs/img/canvas_lead_generation.png b/docs/img/canvas_lead_generation.png new file mode 100644 index 00000000..b4f23cee Binary files /dev/null and b/docs/img/canvas_lead_generation.png differ diff --git a/docs/img/canvas_logo_links.png b/docs/img/canvas_logo_links.png new file mode 100644 index 00000000..f4fb9f14 Binary files /dev/null and b/docs/img/canvas_logo_links.png differ diff --git a/docs/img/canvas_online_service.png b/docs/img/canvas_online_service.png new file mode 100644 index 00000000..4a7a4404 Binary files /dev/null and b/docs/img/canvas_online_service.png differ diff --git a/docs/img/canvas_services.png b/docs/img/canvas_services.png new file mode 100644 index 00000000..e2f59b0b Binary files /dev/null and b/docs/img/canvas_services.png differ diff --git a/docs/img/canvas_start_free_trial.png b/docs/img/canvas_start_free_trial.png new file mode 100644 index 00000000..620f366d Binary files /dev/null and b/docs/img/canvas_start_free_trial.png differ diff --git a/docs/img/canvas_why_us_stack.png b/docs/img/canvas_why_us_stack.png new file mode 100644 index 00000000..f7ba67de Binary files /dev/null and b/docs/img/canvas_why_us_stack.png differ diff --git a/docs/img/recipes_installation.png b/docs/img/recipes_installation.png new file mode 100644 index 00000000..fec60681 Binary files /dev/null and b/docs/img/recipes_installation.png differ diff --git a/docs/video-tutorials.md b/docs/video-tutorials.md index 70ae37f6..aabd05e7 100644 --- a/docs/video-tutorials.md +++ b/docs/video-tutorials.md @@ -4,7 +4,7 @@ sidebar_position: 5 # Video Tutorials -## Create Landing Page with Drupal 10 and Layout Builder +## Create Landing Page with Drupal and Layout Builder The following videos will help you understand how to use the Layout Builder module to create a landing page for your Drupal 10 website.