# Heros

### Hero center

<figure><img src="https://2221554152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPCf6vtFuZEPHXJd7JfIe%2Fuploads%2FWkFMDyKi5iRB6pbfZQr4%2FScreenshot%202024-08-26%20at%2012.57.00.png?alt=media&#x26;token=ad0d9bf5-70e9-4644-802b-5d717b8c6a57" alt=""><figcaption><p>Hero section central</p></figcaption></figure>

To add a beautifully designed Hero section to your landing page, copy and paste this line of code where you need this section to appear in your html.erb page:

<pre><code><strong>&#x3C;%= render "components/hero" %>
</strong></code></pre>

### Hero with background

<figure><img src="https://2221554152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPCf6vtFuZEPHXJd7JfIe%2Fuploads%2FJsZDTEUUX3HaBh4Z73i3%2FScreenshot%202024-08-26%20at%2013.03.02.png?alt=media&#x26;token=5348b186-78bb-47c8-83d7-332166364b10" alt=""><figcaption></figcaption></figure>

To add the Hero section with a background frame, copy and paste this code:

```
<%= render "components/hero_bg" %>
```

### Hero image split

<figure><img src="https://2221554152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPCf6vtFuZEPHXJd7JfIe%2Fuploads%2F4pi2mDcRNqtUqn0L0S8T%2FScreenshot%202024-08-26%20at%2013.09.07.png?alt=media&#x26;token=89f5b125-36f0-4b3b-98a9-058996d5c4df" alt=""><figcaption><p>Hero with image</p></figcaption></figure>

To add the Hero section with a background frame and a split view with image, copy and paste this code:

```
<%= render "components/hero_split" %>
```

***

### See more Hero designs:

* [HyperUi Hero](#user-content-fn-1)[^1]
* [DaisyUI Hero](https://daisyui.com/components/hero/)

[^1]: <https://www.hyperui.dev/components/marketing/banners>
