Skip to content

Commit

Permalink
update added on #56
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsojon committed Apr 5, 2023
1 parent 15aae9f commit e32084e
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 9 deletions.
3 changes: 3 additions & 0 deletions content/english/open-source/contributed-open-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
3 changes: 3 additions & 0 deletions content/english/open-source/our-open-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
3 changes: 3 additions & 0 deletions content/english/platform/capten.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
3 changes: 3 additions & 0 deletions content/english/platform/compage.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/content/compage/what-is-compage.svg"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/content/compage/how-it-works.svg"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/content/compage/integrations-features.svg"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
3 changes: 3 additions & 0 deletions content/english/platform/opty.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -63,6 +64,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "left" # Value will be - "left/right"
bg_color: true
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand All @@ -75,6 +77,7 @@ image_and_content_block:
title: "Lots of people love us, <br> and we're also."
image: "images/block-image-01.png"
content_position: "right" # Value will be - "left/right"
bg_color: false
content: |
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula estibulum.
Expand Down
8 changes: 6 additions & 2 deletions themes/delta/assets/scss/templates/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
}
&.dropdown-lg {
text-align: left;
max-height: 300px;
overflow-y: auto;
small {
display: block;
color: $text-muted;
Expand All @@ -212,7 +214,7 @@
line-height: 1.3;
}
.dropdown-item {
padding: 12px 15px;
padding: 15px;
}
}
}
Expand Down Expand Up @@ -250,7 +252,9 @@
width: 480px;
display: flex;
flex-wrap: wrap;
padding: 10px 5px;
padding: 18px 15px;
max-height: initial;
overflow-y: initial;
li {
transform: translateX(0) translateY(20px);
width: 50%;
Expand Down
11 changes: 7 additions & 4 deletions themes/delta/layouts/open-source/single.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{{ define "main" }}
{{ partial "header.html" . }}

{{ $bg_color := .Params.banner.bg_color }}

{{ partial "header-alt.html" . }}
{{with .Params.banner}}
<section class="banner platform-banner wave-block overflow-hidden my-4 rounded-lg" style="background-color: {{.bg_color}};">
<section class="banner platform-banner wave-block overflow-hidden my-4 rounded-lg" style="background-color: {{$bg_color}};">
<div class="container">
<div class="row align-items-center text-center text-lg-start">
<div class="col-lg-6">
Expand Down Expand Up @@ -52,7 +54,8 @@ <h1 class="title text-xl mb-3 text-white">{{.title | markdownify}}</h1>
{{with .Params.image_and_content_block}}
{{if .enable}}
{{ range .blocks }}
<section class="section pb-0">
<section class="section position-relative">
{{if .bg_color}} <span class="position-absolute h-100 w-100 top-0 left-0" style="z-index:-1;pointer-events:none;opacity:0.1;background-color: {{$bg_color}};"></span> {{end}}
<div class="container container-delta-lg">
<div class="row gx-4 gx-xl-5 align-items-center">
<div class="col-lg-6 order-1 {{with .content_position}}{{if eq . `right`}}order-lg-1{{else if eq . `left`}}order-lg-0{{else}}order-lg-0{{end}}{{end}}">
Expand All @@ -63,9 +66,9 @@ <h2 class="title">{{.title | markdownify}}</h2>
{{with .content}}<div class="content">{{. | markdownify}}</div>{{end}}
</div>
<div class="col-lg-6 order-0 mb-5 mb-lg-0 {{with .content_position}}{{if eq . `right`}}order-lg-0{{else if eq . `left`}}order-lg-1{{else}}order-lg-1{{end}}{{end}}">
<div class="bg-secondary-soft py-3 py-md-6 px-2 px-md-4 rounded-md">
<div class="px-2 px-md-4 text-center">
{{with .image}}
{{ partial "image.html" (dict "Src" . "Size" "570x" "Webp" false "Class" "img-fluid px-0 px-md-3 py-6" ) }}
{{ partial "image.html" (dict "Src" . "Size" "570x" "Webp" false "Class" "img-fluid px-0 px-md-3" ) }}
{{end}}
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions themes/delta/layouts/platform/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

{{ partial "header-alt.html" . }}

{{ $bg_color := .Params.banner.bg_color }}

{{with .Params.banner}}
<section class="banner platform-banner wave-block overflow-hidden my-4 rounded-lg" style="background-color: {{.bg_color}};">
<div class="container">
Expand Down Expand Up @@ -53,7 +55,8 @@ <h1 class="title text-xl mb-3 text-white">{{.title | markdownify}}</h1>
{{with .Params.image_and_content_block}}
{{if .enable}}
{{ range .blocks }}
<section class="section pb-0">
<section class="section position-relative">
{{if .bg_color}} <span class="position-absolute h-100 w-100 top-0 left-0" style="z-index:-1;pointer-events:none;opacity:0.1;background-color: {{$bg_color}};"></span> {{end}}
<div class="container container-delta-lg">
<div class="row gx-4 gx-xl-5 align-items-center">
<div class="col-lg-6 order-1 {{with .content_position}}{{if eq . `right`}}order-lg-1{{else if eq . `left`}}order-lg-0{{else}}order-lg-0{{end}}{{end}}">
Expand All @@ -64,9 +67,9 @@ <h2 class="title">{{.title | markdownify}}</h2>
{{with .content}}<div class="content">{{. | markdownify}}</div>{{end}}
</div>
<div class="col-lg-6 order-0 mb-5 mb-lg-0 {{with .content_position}}{{if eq . `right`}}order-lg-0{{else if eq . `left`}}order-lg-1{{else}}order-lg-1{{end}}{{end}}">
<div class="bg-secondary-soft py-3 py-md-6 px-2 px-md-4 rounded-md text-center">
<div class="px-2 px-md-4 text-center">
{{with .image}}
{{ partial "image.html" (dict "Src" . "Size" "570x" "Webp" false "Class" "img-fluid px-0 px-md-3 py-6 mx-auto" ) }}
{{ partial "image.html" (dict "Src" . "Size" "570x" "Webp" false "Class" "img-fluid px-0 px-md-3 mx-auto" ) }}
{{end}}
</div>
</div>
Expand Down

0 comments on commit e32084e

Please sign in to comment.