mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-05 19:08:32 +02:00
card links fix (#1604)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
@use '../helpers/functions' as *;
|
||||
|
||||
.card {
|
||||
background-color: $neutral-98;
|
||||
padding: $spacer * 1.5;
|
||||
@@ -19,6 +21,8 @@
|
||||
0 1px 2px 0 rgba(22, 30, 51, 0.1);
|
||||
|
||||
.link {
|
||||
$icon-width: pxToRem(20);
|
||||
padding-right: calc($icon-width + 6px);
|
||||
&:after {
|
||||
animation: dash 0.3s ease-in-out forwards;
|
||||
}
|
||||
|
||||
+2
-2
@@ -35,7 +35,7 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
.link {
|
||||
margin-top: pxToRem(12);
|
||||
}
|
||||
}
|
||||
@@ -76,7 +76,7 @@
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
.link {
|
||||
margin-top: pxToRem(12);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,14 +4,22 @@
|
||||
<div class="qdrant-cloud-bento-cards__cards row">
|
||||
{{ range $index, $element := .Params.items }}
|
||||
<div class="col-12">
|
||||
<div class="card qdrant-cloud-bento-cards__card">
|
||||
<h5 class="qdrant-cloud-bento-cards__card-title">{{ .title }}</h5>
|
||||
<p class="qdrant-cloud-bento-cards__card-description">{{ .description | safeHTML }}</p>
|
||||
{{ if .link }}
|
||||
<a class="link link_md align-self-start" href="{{ .link.url }}">{{ .link.text }}</a>
|
||||
{{ end }}
|
||||
<img src="{{ .image.src }}" alt="{{ .image.alt }}" />
|
||||
</div>
|
||||
{{ if .link }}
|
||||
<a href="{{ .link.url }}" class="card qdrant-cloud-bento-cards__card">
|
||||
<h5 class="qdrant-cloud-bento-cards__card-title">{{ .title }}</h5>
|
||||
<p class="qdrant-cloud-bento-cards__card-description">{{ .description | safeHTML }}</p>
|
||||
{{ if .link }}
|
||||
<span class="link link_md align-self-start">{{ .link.text }}</span>
|
||||
{{ end }}
|
||||
<img src="{{ .image.src }}" alt="{{ .image.alt }}" />
|
||||
</a>
|
||||
{{ else }}
|
||||
<div class="card qdrant-cloud-bento-cards__card">
|
||||
<h5 class="qdrant-cloud-bento-cards__card-title">{{ .title }}</h5>
|
||||
<p class="qdrant-cloud-bento-cards__card-description">{{ .description | safeHTML }}</p>
|
||||
<img src="{{ .image.src }}" alt="{{ .image.alt }}" />
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user