Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement hextra hero-section #390

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fmunteanu
Copy link
Contributor

@fmunteanu fmunteanu commented May 16, 2024

New Feature Proposal: Hero Section

On Hextra front-page, I need the ability to insert a h2 heading, defining additional section titles. For example, adding a subtitle above hextra/feature-grid.

Proposed Solution

I created the following layouts/shortcodes/hextra/hero-section.html shortcode, implementing a section.

Live Example

Visit https://axivo.com/k3s-cluster/.

Shortcode Usage

Example of hextra/hero-section shortcode usage, default header size is h2:

{{< hextra/hero-section >}}
  Used Technologies
{{< /hextra/hero-section >}}

image

Example of hextra/hero-section shortcode usage, with h3 header size:

{{< hextra/hero-section header="h3" >}}
  Used Technologies
{{< /hextra/hero-section >}}

image

Example of hextra/hero-section shortcode usage, with h4 or greater header size:

{{< hextra/hero-section header="h4" >}}
  Used Technologies
{{< /hextra/hero-section >}}

image

Frontage View

The Used Technologies section title, using default h2 header:

image

Copy link

netlify bot commented May 16, 2024

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit 368c20e
🔍 Latest deploy log https://app.netlify.com/sites/hugo-hextra/deploys/6647b02a66c07b0008c0065d
😎 Deploy Preview https://deploy-preview-390--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@fmunteanu
Copy link
Contributor Author

fmunteanu commented May 16, 2024

Related to #388 and #389.

@fmunteanu fmunteanu changed the title Implement hextra hero-section feat: Implement hextra hero-section May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant