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

Feature/add adaptivescale section #151

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions content/en/resources/plugins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ hero:
background_color: "#012F4B"
background_image: /images/hero-background-blue.svg
background_image_secondary: /images/hero-background-blue.svg
adaptivescale_intro: "Try the new interactive CDAP plugin Hub experience powered by"
adaptivescale_link: "https://adaptivescale.com"
adaptivescale_img: /images/AdaptiveScale_Logo_white.png
filter_title: Filter By
select_types:
- Sink
Expand Down
15 changes: 14 additions & 1 deletion layouts/partials/components/hero-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,20 @@ <h4 class="not-apply m-0" >{{ .title | markdownify }}</h4>
</div>
{{ end }}
</div>
<div class="hero-panel__info col-lg-6 col-md-12">
<div class="hero-panel__info col-lg-6 col-md-12 text-center">
{{if eq .Params.type "plugins"}}
<p class="mt-5 not-apply">
{{ .Params.hero.adaptivescale_intro | markdownify }}
</p>
<p>
<a href="{{.Params.hero.adaptivescale_link}}">
<img src="{{ .Params.hero.adaptivescale_img }}" class="hero-image"/>
</a>
</p>
<a href="{{.Params.hero.adaptivescale_link}}" target="_blank" class="mt-3 mb-5">
<button class="btn-cta">Explore</button>
</a>
{{ end }}
{{ with .Params.hero.image }}
<img src="/{{ . }}">
{{ end }}
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
{{ end }}
</a>
{{ end }}
<a href="/resources/plugins">Plugins</a>
</div>
</li>
{{ else if eq $firstUrlElement "accelerators" }}
Expand Down
Binary file added static/images/AdaptiveScale_Logo_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions themes/cdap/assets/scss/components/section-hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,14 @@ section.hero.opened {
img {
margin-top: 29px;
margin-bottom: 40px;

width: 40%;

@include media-breakpoint-down(md) {
display: none;
width: 50%;
}

@include media-breakpoint-down(sm) {
width: 100%;
}
}
}
Expand Down