-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a language partial for the SCA product landing page + adjusts the TS size for Static Analysis partial.
- Loading branch information
Showing
3 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{ $root := . }} | ||
{{ $supported_languages := slice | ||
(dict "name" "Python" "href" "/code_analysis/software_composition_analysis#lockfiles" "src" "integrations_logos/python_avatar.svg" "width" "50") | ||
(dict "name" "JavaScript" "href" "/code_analysis/software_composition_analysis#lockfiles" "src" "integrations_logos/javascript_large.png" "width" "50") | ||
(dict "name" "Java" "href" "/code_analysis/software_composition_analysis#lockfiles" "src" "integrations_logos/java_avatar.svg" "width" "50") | ||
(dict "name" "CSharp" "href" "/code_analysis/software_composition_analysis#lockfiles" "src" "integrations_logos/dotnet_avatar.svg" "width" "50") | ||
(dict "name" "Go" "href" "/code_analysis/software_composition_analysis#lockfiles" "src" "integrations_logos/golang-avatar.png" "width" "60") | ||
(dict "name" "Rust" "href" "/code_analysis/software_composition_analysis#lockfiles" "src" "integrations_logos/rust.png" "width" "60") | ||
(dict "name" "Ruby" "href" "/code_analysis/software_composition_analysis#lockfiles" "src" "integrations_logos/ruby_avatar.svg" "width" "45") | ||
(dict "name" "PHP" "href" "/code_analysis/software_composition_analysis#lockfiles" "src" "integrations_logos/php_opcache.png" "width" "80") | ||
(dict "name" "Other" "href" "/code_analysis/software_composition_analysis/generic_ci_providers" "src" "integrations_logos/datadog_avatar.svg" "width" "50") | ||
}} | ||
|
||
<div class="sca-supported-languages"> | ||
<div class="container cards-dd"> | ||
<div class="row justify-content-center"> | ||
{{ range $index, $lang := $supported_languages }} | ||
<div class="col"> | ||
<a class="card h-100" href="{{ $lang.href }}"> | ||
<div class="card-body text-center py-2 px-1 d-flex justify-content-center align-items-center"> | ||
{{ partial "img.html" (dict "root" $root "src" $lang.src "class" "img-fluid" "alt" $lang.name "width" $lang.width) }} | ||
</div> | ||
</a> | ||
</div> | ||
{{ if eq (mod (add $index 1) 3) 0 }} | ||
</div> | ||
<br> | ||
<div class="row justify-content-center"> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> |