-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ClubCedille/feature/EHP/add-changements
add changes into about sections
Showing
11 changed files
with
223 additions
and
6 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
27 changes: 27 additions & 0 deletions
27
component-library/components/sections/about-section/about-section.bookshop.yml
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,27 @@ | ||
# Metadata about this component, to be used in the CMS | ||
spec: | ||
structures: | ||
- content_blocks | ||
label: About section | ||
description: Title and left right blocks | ||
icon: vertical_split | ||
tags: [] | ||
|
||
# Defines the structure of this component, as well as the default values | ||
blueprint: | ||
background: grey | ||
left_right_blocks: [bookshop:simple/left-right-block] | ||
|
||
# Overrides any fields in the blueprint when viewing this component in the component browser | ||
preview: | ||
left_right_blocks: | ||
- bookshop:simple/left-right-block | ||
|
||
# Any extra CloudCannon inputs configuration to apply to the blueprint | ||
_inputs: | ||
background: | ||
type: select | ||
options: | ||
values: | ||
- grey | ||
- black |
5 changes: 5 additions & 0 deletions
5
component-library/components/sections/about-section/about-section.hugo.html
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,5 @@ | ||
<section class="about-section case-study--{{ .background }}"> | ||
{{ range .left_right_blocks }} | ||
{{ partial "bookshop" (slice "simple/left-right-content" .)}} | ||
{{ end }} | ||
</section> |
3 changes: 3 additions & 0 deletions
3
component-library/components/sections/about-section/about-section.scss
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,3 @@ | ||
.case-study--black { | ||
background-color: #121212; | ||
} |
46 changes: 46 additions & 0 deletions
46
component-library/components/simple/left-right-content/left-right-content.bookshop.yml
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,46 @@ | ||
# Metadata about this component, to be used in the CMS | ||
spec: | ||
structures: | ||
- "" | ||
label: Left right block | ||
description: Content and image in two columns | ||
icon: vertical_split | ||
tags: [] | ||
|
||
# Defines the structure of this component, as well as the default values | ||
blueprint: | ||
image_alignment: right | ||
background: grey | ||
heading: "" | ||
content_html: "" | ||
link: bookshop:generic/link | ||
image: "" | ||
image_alt: "" | ||
|
||
# Overrides any fields in the blueprint when viewing this component in the component browser | ||
preview: | ||
heading: E Banks That Accept Us Casino Players | ||
content_html: Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam | ||
nonummy nibh euiyd tincidunt ut laoreet dolore magna aliquam nibh | ||
utpat.Ullamcorper suscipit lobo nibh euiyd tinci- dunt ut laoreet.</br> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem impedit | ||
molestias cumque dolorum, sunt, provident blanditiis tempora, aut explicabo | ||
error ipsa repudiandae. Dolores eius eaque eum mollitia esse nisi | ||
necessitatibus distinctio ea, dolorem non, optio minima temporibus | ||
blanditiis, quidem aperiam!</p> | ||
image: /images/case-study/case-study-img1.png | ||
|
||
# Any extra CloudCannon inputs configuration to apply to the blueprint | ||
_inputs: | ||
image_alignment: | ||
type: select | ||
options: | ||
values: | ||
- right | ||
- left | ||
background: | ||
type: select | ||
options: | ||
values: | ||
- grey | ||
- black |
21 changes: 21 additions & 0 deletions
21
component-library/components/simple/left-right-content/left-right-content.hugo.html
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,21 @@ | ||
<!-- About Section Description top section --> | ||
<div class="about-section-content left-right-block--{{ .background }} left-right-block--{{ .image_alignment }}"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<!-- inner sub-title --> | ||
<div class="content"> | ||
<h4 class="inner-title"> {{ .heading }}</h4> | ||
<p class="case-description">{{ .content_html | safeHTML }}</p> | ||
<!-- View More Details --> | ||
{{ partial "bookshop" (slice "generic/link" .link )}} | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="img-content"> | ||
<img class="img-responsive" src="{{ .image }}" alt="{{ .image_alt }}"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
72 changes: 72 additions & 0 deletions
72
component-library/components/simple/left-right-content/left-right-content.scss
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,72 @@ | ||
.content h4 { | ||
padding-bottom: 13px; | ||
font-family: "Roboto", sans-serif; | ||
font-size: 18px; | ||
text-transform: uppercase; | ||
color: #facd8a; | ||
font-weight: bold; | ||
} | ||
.content p { | ||
font-size: 16px; | ||
color: rgba(175, 175, 175, 0.8); | ||
} | ||
|
||
.content .btn { | ||
margin-top: 30px; | ||
} | ||
|
||
.left-right-block--black { | ||
background-color: #121212; | ||
} | ||
.left-right-block--grey { | ||
background-color: #171717; | ||
} | ||
|
||
.left-right-block--right { | ||
.row { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
.col-md-6 { | ||
grid-row: 1; | ||
width: 100%; | ||
} | ||
} | ||
@media only screen and (min-width: 1px) and (max-width: 991px) { | ||
.row { | ||
grid-template-columns: 1fr; | ||
.col-md-6:last-child { | ||
grid-row: 2; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.left-right-block--left { | ||
.row { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
.col-md-6 { | ||
grid-row: 1; | ||
width: 100%; | ||
} | ||
.col-md-6:first-child { | ||
grid-column: 2; | ||
} | ||
.col-md-6:last-child { | ||
grid-column: 1; | ||
} | ||
} | ||
@media only screen and (min-width: 1px) and (max-width: 991px) { | ||
.row { | ||
grid-template-columns: 1fr; | ||
.col-md-6:last-child { | ||
grid-column: 1; | ||
grid-row: 1; | ||
} | ||
.col-md-6:first-child { | ||
grid-column: 1; | ||
grid-row: 2; | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Blog | ||
title: Partenaires | ||
seo_options: | ||
description: Landing page for all blog posts | ||
featured_image: | ||
|