Skip to content
Draft
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
9 changes: 7 additions & 2 deletions assets/scss/blocks/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@
}
}

// When taglines sit above the title, they own the top spacing
.hero-taglines + h1 {
padding-top: 0;
}

.hero-taglines {
list-style: none;
padding: 0;
margin: 1rem 0 0;
padding: 50px 0 0;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The value 50px is now hardcoded in three separate locations in this file (lines 52, 66, and 95) to ensure the hero content (either the title or the taglines) aligns vertically with the Kubernetes logo on the right. To improve maintainability and prevent alignment issues if this spacing needs to change in the future, consider defining a single SCSS variable for this offset.

margin: 0 0 1.25rem;
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
Expand Down
8 changes: 4 additions & 4 deletions layouts/shortcodes/blocks/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
<!-- Title row with Kubernetes logo -->
<div class="row align-items-start mb-4">
<div class="col-lg-9">
{{ with .Get "title" }}<h1 class="display-1">{{ . | html }}</h1>{{ end }}
{{ with .Get "subtitle" }}<p class="display-2">{{ . | html }}</p>{{ end }}
{{ with .Page.Params.taglines }}
<ul class="hero-taglines" aria-label="Cozystack platform positioning">
{{ range . }}<li class="hero-tagline">{{ . | html }}</li>{{ end }}
</ul>
{{ end }}
{{ with .Get "title" }}<h1 class="display-1">{{ . | html }}</h1>{{ end }}
{{ with .Get "subtitle" }}<p class="display-2">{{ . | html }}</p>{{ end }}
</div>
<div class="col-lg-3 d-none d-lg-block text-end">
<a href="https://landscape.cncf.io/?group=certified-partners-and-providers&item=platform--paas-container-service--cozystack" target="_blank" rel="noopener noreferrer">
Expand All @@ -63,11 +63,11 @@
{{ else }}
{{ .Inner | htmlUnescape | safeHTML }}
{{ end }}

{{ if ne $link_url "#" }}
<a class="btn btn-lg btn-info mt-3" href="{{ $link_url }}">{{ $link_title }} <i class="fas fa-arrow-right"></i></a>
{{ end }}

<!-- Video for mobile devices -->
<div class="hero-video-mobile d-lg-none mt-4">
<div class="ratio ratio-16x9">
Expand Down