Skip to content

Commit

Permalink
Adds card interactivity for product cards on the platform landing page
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Stephanus <[email protected]>
  • Loading branch information
Aaron Stephanus committed Sep 28, 2023
1 parent c353a2f commit 77a569d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
1 change: 1 addition & 0 deletions _includes/platform-products.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
{{product}}
{% endfor %}
</div>
{% include card-clickability.html card_container_selector=".platform-product-collection" card_classname="platform-product" %}
2 changes: 1 addition & 1 deletion _platform_products/data_prepper.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Data Prepper
image: '/assets/media/platform/Data-Prepper.png'
---

### Data Prepper
### [Data Prepper](https://github.com/opensearch-project/data-prepper){:target="_blank"}

Data Prepper is the server-side data collector designed to enrich, transform, and aggregate data for downstream analytics and visualization within OpenSearch.

Expand Down
3 changes: 2 additions & 1 deletion _platform_products/opensearch_core.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ title: OpenSearch Core
image: '/assets/media/platform/Core.png'
---

### OpenSearch Core
### [OpenSearch Core](https://github.com/opensearch-project/OpenSearch){:target="_blank"}

OpenSearch is a powerful search and analytics engine built on [Apache Lucene](https://lucene.apache.org/){:target="_blank"}.

At its core sits the fundamental tooling that makes OpenSearch an ideal foundation for a vast range of applications.
Expand Down
2 changes: 1 addition & 1 deletion _platform_products/opensearch_dashboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: OpenSearch Dashboards
image: '/assets/media/platform/Dashboards.png'
---

### OpenSearch Dashboards
### [OpenSearch Dashboards](https://playground.opensearch.org/app/home){:target="_blank"}

OpenSearch Dashboards is the open-source data visualization toolset built to work with OpenSearch.

Expand Down
26 changes: 26 additions & 0 deletions _sass/_redesign-platform.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,29 @@ $solutions-card-bottom-margin: 36px;
row-gap: 0;
}
margin-bottom: 75px;
:has(a[href]) {
cursor: pointer;
}
&:hover {
.platform-product--description {
a {
border-bottom: 2px solid $primary-pacific-blue;
color: $primary-open-sky;
}
}
}
&:has(a:focus) {
box-shadow: 0px 4px 12px 8px rgba(0, 99, 184, 0.50);
}
&:has(a:active) {
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25) inset;
}
&.platform-product__focused {
box-shadow: 0px 4px 12px 8px rgba(0, 99, 184, 0.50);
}
&.platform-product__active {
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25) inset;
}
> .platform-product--image {
@media screen and (min-width: 835px) {
flex-basis: 47.43%;
Expand Down Expand Up @@ -1343,6 +1366,9 @@ $solutions-card-bottom-margin: 36px;
box-sizing: border-box;
> h3 {
@include header-level3($primary-open-sky-s2);
> a {
@include header-level3($primary-open-sky-s2);
}
margin-top: 0;
}
> p {
Expand Down

0 comments on commit 77a569d

Please sign in to comment.