Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/canvas-free/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Canvas (free)",
"position": 3.4,
"link": {
"type": "generated-index",
"description": " "
}
}
108 changes: 108 additions & 0 deletions docs/canvas-free/create-a-page.md
Original file line number Diff line number Diff line change
@@ -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.
94 changes: 94 additions & 0 deletions docs/canvas-free/drupal-cms-basecore.md
Original file line number Diff line number Diff line change
@@ -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)
12 changes: 12 additions & 0 deletions docs/canvas-free/video-tutorials.md
Original file line number Diff line number Diff line change
@@ -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

<iframe width="100%" height="500" src="https://www.youtube.com/embed/V-ZiOlAUsnY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen"></iframe>
Binary file added docs/img/canvas_about_us.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_busines_solutions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_contact_us_stack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_icon_features.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_lead_generation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_logo_links.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_online_service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_services.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_start_free_trial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/canvas_why_us_stack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/recipes_installation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/video-tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading