mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-05 19:08:32 +02:00
events page fixes (#2576)
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
---
|
---
|
||||||
title: Events
|
title: Events
|
||||||
description: Events
|
description: Events
|
||||||
|
icons:
|
||||||
|
# Filenames under static/icons/outline/”
|
||||||
|
# for more see svg.html partial
|
||||||
|
date: calendar.svg
|
||||||
|
place: map-pin.svg
|
||||||
|
time: clock.svg
|
||||||
build:
|
build:
|
||||||
render: always
|
render: always
|
||||||
cascade:
|
cascade:
|
||||||
|
|||||||
@@ -53,9 +53,12 @@
|
|||||||
&__type {
|
&__type {
|
||||||
padding: pxToRem(2) pxToRem(10);
|
padding: pxToRem(2) pxToRem(10);
|
||||||
border-radius: pxToRem(20);
|
border-radius: pxToRem(20);
|
||||||
|
border: pxToRem(1) solid $neutral-70;
|
||||||
font-size: $font-size-md;
|
font-size: $font-size-md;
|
||||||
line-height: $spacer * 1.5;
|
line-height: $spacer * 1.5;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
|
color: $neutral-70;
|
||||||
|
background-color: rgba($neutral-70, 0.1);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
&-mobile {
|
&-mobile {
|
||||||
@@ -63,19 +66,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-webinar {
|
&-webinar {
|
||||||
border: pxToRem(1) solid $secondary-blue-50;
|
border-color: $secondary-blue-50;
|
||||||
color: $secondary-blue-50;
|
color: $secondary-blue-50;
|
||||||
background-color: rgba($secondary-blue-50, 0.1);
|
background-color: rgba($secondary-blue-50, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-conference {
|
&-conference {
|
||||||
border: pxToRem(1) solid $secondary-violet-50;
|
border-color: $secondary-violet-50;
|
||||||
color: $secondary-violet-50;
|
color: $secondary-violet-50;
|
||||||
background-color: rgba($secondary-violet-50, 0.1);
|
background-color: rgba($secondary-violet-50, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-meetup {
|
&-meetup {
|
||||||
border: pxToRem(1) solid $secondary-teal-50;
|
border-color: $secondary-teal-50;
|
||||||
color: $secondary-teal-50;
|
color: $secondary-teal-50;
|
||||||
background-color: rgba($secondary-teal-50, 0.1);
|
background-color: rgba($secondary-teal-50, 0.1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,11 +12,15 @@
|
|||||||
{{ $hasEndTime = findRE "T" . }}
|
{{ $hasEndTime = findRE "T" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<a href="{{ $event.Params.link }}" class="events-card">
|
{{ $link := $event.Params.link }}
|
||||||
|
{{ $linkURL := urls.Parse $link }}
|
||||||
|
{{ $siteHost := (urls.Parse $event.Site.BaseURL).Host }}
|
||||||
|
{{ $isExternal := and $linkURL.IsAbs (ne $linkURL.Host $siteHost) }}
|
||||||
|
{{ $icons := $event.Parent.Params.icons }}
|
||||||
|
|
||||||
|
<a href="{{ $link }}" class="events-card"{{ if $isExternal }} target="_blank" rel="noopener"{{ end }}>
|
||||||
<div class="events-card__date">
|
<div class="events-card__date">
|
||||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
{{ with $icons.date }}{{ partial "svg" . }}{{ end }}
|
||||||
<path d="M5.33333 1.33203V3.9987M10.6667 1.33203V3.9987M2 6.66536H14M5.33333 9.33203H5.34M8 9.33203H8.00667M10.6667 9.33203H10.6733M5.33333 11.9987H5.34M8 11.9987H8.00667M10.6667 11.9987H10.6733M3.33333 2.66536H12.6667C13.403 2.66536 14 3.26232 14 3.9987V13.332C14 14.0684 13.403 14.6654 12.6667 14.6654H3.33333C2.59695 14.6654 2 14.0684 2 13.332V3.9987C2 3.26232 2.59695 2.66536 3.33333 2.66536Z" stroke="#D4D9E6" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
||||||
</svg>
|
|
||||||
<p>
|
<p>
|
||||||
{{ if eq ($start.Format "2006-01-02") ($end.Format "2006-01-02") }}
|
{{ if eq ($start.Format "2006-01-02") ($end.Format "2006-01-02") }}
|
||||||
{{ $start.Format "Mon, Jan 2, 2006" }}
|
{{ $start.Format "Mon, Jan 2, 2006" }}
|
||||||
@@ -36,10 +40,7 @@
|
|||||||
{{ $event.Params.type }}
|
{{ $event.Params.type }}
|
||||||
</span>
|
</span>
|
||||||
<p class="events-card__place">
|
<p class="events-card__place">
|
||||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
{{ with $icons.place }}{{ partial "svg" . }}{{ end }}
|
||||||
<path d="M13.3333 6.66536C13.3333 9.99403 9.64066 13.4607 8.40066 14.5314C8.28514 14.6182 8.14452 14.6652 7.99999 14.6652C7.85546 14.6652 7.71484 14.6182 7.59932 14.5314C6.35932 13.4607 2.66666 9.99403 2.66666 6.66536C2.66666 5.25088 3.22856 3.89432 4.22875 2.89413C5.22895 1.89393 6.5855 1.33203 7.99999 1.33203C9.41448 1.33203 10.771 1.89393 11.7712 2.89413C12.7714 3.89432 13.3333 5.25088 13.3333 6.66536Z" stroke="#8F98B3" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
||||||
<path d="M7.99999 8.66536C9.10456 8.66536 9.99999 7.76993 9.99999 6.66536C9.99999 5.5608 9.10456 4.66536 7.99999 4.66536C6.89542 4.66536 5.99999 5.5608 5.99999 6.66536C5.99999 7.76993 6.89542 8.66536 7.99999 8.66536Z" stroke="#8F98B3" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
||||||
</svg>
|
|
||||||
{{ $event.Params.place }}
|
{{ $event.Params.place }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -50,16 +51,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<p class="events-card__time">
|
<p class="events-card__time">
|
||||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
{{ with $icons.time }}{{ partial "svg" . }}{{ end }}
|
||||||
<g clip-path="url(#clip0_18745_21059)">
|
|
||||||
<path d="M8 3.9987V7.9987L10.6667 6.66536M14.6667 7.9987C14.6667 11.6806 11.6819 14.6654 8 14.6654C4.3181 14.6654 1.33333 11.6806 1.33333 7.9987C1.33333 4.3168 4.3181 1.33203 8 1.33203C11.6819 1.33203 14.6667 4.3168 14.6667 7.9987Z" stroke="#8F98B3" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
||||||
</g>
|
|
||||||
<defs>
|
|
||||||
<clipPath id="clip0_18745_21059">
|
|
||||||
<rect width="16" height="16" fill="white"/>
|
|
||||||
</clipPath>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
||||||
|
|
||||||
{{ $start.Format $timeFormat }}
|
{{ $start.Format $timeFormat }}
|
||||||
{{ if and $hasEndTime (ne ($start.Format "15:04") ($end.Format "15:04")) }}
|
{{ if and $hasEndTime (ne ($start.Format "15:04") ($end.Format "15:04")) }}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M5.33333 1.33203V3.9987M10.6667 1.33203V3.9987M2 6.66536H14M5.33333 9.33203H5.34M8 9.33203H8.00667M10.6667 9.33203H10.6733M5.33333 11.9987H5.34M8 11.9987H8.00667M10.6667 11.9987H10.6733M3.33333 2.66536H12.6667C13.403 2.66536 14 3.26232 14 3.9987V13.332C14 14.0684 13.403 14.6654 12.6667 14.6654H3.33333C2.59695 14.6654 2 14.0684 2 13.332V3.9987C2 3.26232 2.59695 2.66536 3.33333 2.66536Z" stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 597 B |
@@ -0,0 +1,3 @@
|
|||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M8 3.9987V7.9987L10.6667 6.66536M14.6667 7.9987C14.6667 11.6806 11.6819 14.6654 8 14.6654C4.3181 14.6654 1.33333 11.6806 1.33333 7.9987C1.33333 4.3168 4.3181 1.33203 8 1.33203C11.6819 1.33203 14.6667 4.3168 14.6667 7.9987Z" stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 432 B |
@@ -0,0 +1,4 @@
|
|||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M13.3333 6.66536C13.3333 9.99403 9.64066 13.4607 8.40066 14.5314C8.28514 14.6182 8.14452 14.6652 7.99999 14.6652C7.85546 14.6652 7.71484 14.6182 7.59932 14.5314C6.35932 13.4607 2.66666 9.99403 2.66666 6.66536C2.66666 5.25088 3.22856 3.89432 4.22875 2.89413C5.22895 1.89393 6.5855 1.33203 7.99999 1.33203C9.41448 1.33203 10.771 1.89393 11.7712 2.89413C12.7714 3.89432 13.3333 5.25088 13.3333 6.66536Z" stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
<path d="M7.99999 8.66536C9.10456 8.66536 9.99999 7.76993 9.99999 6.66536C9.99999 5.5608 9.10456 4.66536 7.99999 4.66536C6.89542 4.66536 5.99999 5.5608 5.99999 6.66536C5.99999 7.76993 6.89542 8.66536 7.99999 8.66536Z" stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 923 B |
Reference in New Issue
Block a user