<section class="o-galleries-section">
    <div class="o-galleries-section__inner">
        <div class="o-galleries-section__wrapper">
            <div class="o-galleries-section__container">
                <h2 class="o-galleries-section__title">
                    Nos galeries photos
                </h2>
                <div class="o-galleries-section__cta_row">
                    <div class="o-galleries-section__cta">
                        <a href="#" class="o-galleries-section__cta_link"><span>Découvrir plus</span><svg class="a-icon a-icon--primary" role="img" title="Nos galeries photos">
	<use xlink:href="#arrow-left" />
</svg>
</a>
                    </div>
                </div>
                <div class="o-galleries-section__content_row">
                    <div class="o-galleries-section__main_gallery">
                        <article class="o-galleries-section__gallery_wrapper o-galleries-section__gallery_wrapper--main">
                            <a class="o-galleries-section__gallery o-galleries-section__gallery--main" href="">
								<img src="../../img/gallery-section-1.png" class="o-galleries-section__gallery_image o-galleries-section__gallery_image--main" alt="gallery1">
								<div class="o-galleries-section__gallery_num_photos">
										<svg class="a-gallery-number" width="55" height="55" viewBox="0 0 55 55" xmlns="http://www.w3.org/2000/svg" data-gallery-number>
										  <g fill="#FFF" fill-rule="evenodd">
										    <path fill-rule="nonzero" d="M11.124 36v2H5V8h36v6.074h-2V10H7v26z"/>
												<path class="frame" d="M14 47V17h36v30H14zm2-2h32V19H16v26z" fill-rule="nonzero"/>
												<text class="text" x="22" y="37">22</text>
										  </g>
										</svg>
								</div>

								<h1 class="o-galleries-section__gallery_title o-galleries-section__gallery_title--main">
									Le monde sidérant des océans
								</h1>
							</a>

                        </article>
                    </div>
                    <div class="o-galleries-section__secondary_galleries">
                        <article class="o-galleries-section__gallery_wrapper o-galleries-section__gallery_wrapper--secondary">
                            <a class="o-galleries-section__gallery o-galleries-section__gallery--secondary" href="#">
								<img src="../../img/gallery-section-2.png" class="o-galleries-section__gallery_image o-galleries-section__gallery_image--secondary" alt="gallery2">
								<h1 class="o-galleries-section__gallery_title o-galleries-section__gallery_title--secondary">
									Titre de la galerie qui suit
								</h1>
							</a>
                        </article>
                        <article class="o-galleries-section__gallery_wrapper o-galleries-section__gallery_wrapper--secondary">
                            <a class="o-galleries-section__gallery o-galleries-section__gallery--secondary" href="#">
								<img src="../../img/gallery-section-3.png" class="o-galleries-section__gallery_image o-galleries-section__gallery_image--secondary" alt="gallery3">
								<h1 class="o-galleries-section__gallery_title o-galleries-section__gallery_title--secondary">
									Titre de la troisième gallerie
								</h1>
							</a>
                        </article>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<section class="o-galleries-section">
	<div class="o-galleries-section__inner">
		<div class="o-galleries-section__wrapper">
			<div class="o-galleries-section__container">
				<h2 class="o-galleries-section__title">
					{{ title }}
				</h2>
				<div class="o-galleries-section__cta_row">
					<div class="o-galleries-section__cta">
						<a href="#" class="o-galleries-section__cta_link"><span>{{ cta.text }}</span>{{> @a-icon name="arrow-left" title=title modifier="primary" }}</a>
					</div>
				</div>
				<div class="o-galleries-section__content_row">
					<div class="o-galleries-section__main_gallery">
						<article class="o-galleries-section__gallery_wrapper o-galleries-section__gallery_wrapper--main">
							<a class="o-galleries-section__gallery o-galleries-section__gallery--main" href="{{ galleries.main.link }}">
								<img src="{{ path galleries.main.image.src }}" class="o-galleries-section__gallery_image o-galleries-section__gallery_image--main" alt="{{ galleries.main.image.alt }}">
								<div class="o-galleries-section__gallery_num_photos">
										{{> @a-gallery-number count=galleries.main.numphotos }}
								</div>

								<h1 class="o-galleries-section__gallery_title o-galleries-section__gallery_title--main">
									{{ galleries.main.title }}
								</h1>
							</a>

						</article>
					</div>
					<div class="o-galleries-section__secondary_galleries">
						{{#each galleries.secondary}}
						<article class="o-galleries-section__gallery_wrapper o-galleries-section__gallery_wrapper--secondary">
							<a class="o-galleries-section__gallery o-galleries-section__gallery--secondary" href="{{ link }}">
								<img src="{{path image.src}}" class="o-galleries-section__gallery_image o-galleries-section__gallery_image--secondary" alt="{{ image.alt }}">
								<h1 class="o-galleries-section__gallery_title o-galleries-section__gallery_title--secondary">
									{{ title }}
								</h1>
							</a>
						</article>
						{{/each}}
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
  • Content:
    $xs-border: 8px;
    $sm-border: 16px;
    $section-border-color: $color-blacker;
    
    .o-galleries-section {
    	width: 100%;
    	height: 100%;
    	font-family: $font-highlight;
    	text-transform: uppercase;
    	font-weight: $font-weight-bold;
    	color: $color-text-negative;
    	background-color: $color-black;
    
    	@include media($sm-breakpoint) {
    		padding-left: $sm-border;
    		padding-right: $sm-border;
    	}
    
    	@include media($md-breakpoint) {
    		padding-left: 0;
    		padding-right: 0;
    		border-left: solid $sm-border $section-border-color;
    		border-right: solid $sm-border $section-border-color;
    	}
    
    	&__inner {
    		@include fluid-props(padding-top, $fluid-min, $fluid-max, 36px, 62px);
    		@include fluid-props(padding-bottom, $fluid-min, $fluid-max, 40px, 95px);
    		padding-left: $xs-border;
    		padding-right: $xs-border;
    
    		@include media($sm-breakpoint) {
    			padding-left: 0;
    			padding-right: 0;
    		}
    	}
    
    	&__wrapper {
    		@extend .grid-wrapper--wide;
    	}
    
    	&__container {
    		@extend .grid-container;
    		padding-left: 0;
    		padding-right: 0;
    	}
    
    	&__title {
    		@extend .o-article-list__title;
    		@extend .u-t-title-hlt-1;
    		padding-bottom: 1em;
    		width: 100%;
    		color: $color-text-negative;
    		position: relative;
    		margin: 0;
    
    		&::after {
    			content: '';
    			background-color: $color-primary;
    			position: absolute;
    			height: 1px;
    			@include fluid-props(width, $fluid-min, $fluid-max, 32px, 46px);
    			bottom: 0;
    			left: 50%;
    			transform: translateX(-50%);
    		}
    	}
    
    	&__cta_row,
    	&__content_row {
    		@extend .row;
    	}
    
    	&__cta {
    		@extend .col-sm-12;
    		@extend .u-t-size--15;
    		text-align: right;
    		position: relative;
    		padding-left: 0;
    		padding-right: 0;
    		display: none;
    
    		@include media($sm-breakpoint) {
    			display: block;
    		}
    
    		&_link {
    			@extend .m-highlight-article__all-link;
    			text-transform: none;
    			color: $color-text-negative;
    			padding-right: $sm-border;
    			transform: translateY(-55%);
    		}
    	}
    
    	&__content_row {
    		@include fluid-props(margin-top, $fluid-min, $fluid-max, 20px, 44px);
    	}
    
    	&__main_gallery {
    		@extend .col-xs-12;
    		@extend .col-sm-8;
    		margin-bottom: 8px;
    
    		@include media($sm-breakpoint) {
    			margin-bottom: auto;
    		}
    	}
    
    	&__secondary_galleries {
    		display: flex;
    		flex-direction: row;
    		@extend .col-xs-12;
    		@extend .col-sm-4;
    
    		@include media($sm-breakpoint) {
    			flex-direction: column;
    			justify-content: space-between;
    			margin-left: 0;
    		}
    	}
    
    	&__gallery_wrapper {
    		width: 100%;
    		height: 0;
    		overflow: hidden;
    		position: relative;
    
    		@include hover-behaviour {
    			.o-galleries-section__gallery::after {
    				opacity: 0.9;
    			}
    		}
    
    		&--main {
    			padding-top: $two-third-ratio;
    			position: relative;
    
    			&::before {
    				@include fluid-props(width, $fluid-min, $fluid-max, 3px, 6px );
    				content: "";
    				position: absolute;
    				bottom: 0;
    				right: 0;
    				height: 90%;
    				background-color: $color-primary;
    				z-index: 2;
    				transition: background-color $transition-slow ease;
    			}
    
    			.a-gallery-number {
    				@include fluid-props(width height, $fluid-min, $fluid-max, 19px, 33px);
    				position: absolute;
    				top: 10%;
    				right: 0;
    			}
    
    			.o-galleries-section__gallery_num_photos {
    
    				@include fluid-props(width height, $fluid-min, $fluid-max, 24px, 48px);
    				position: absolute;
    				background: $color-primary;
    				transition: background-color $transition-slow ease;
    				display: block;
    				top: 10%;
    				right: 0;
    
    				svg {
    					@include fluid-props(width height, $fluid-min, $fluid-max, 20px, 33px);
    					@include centerer(true, true);
    				}
    			}
    		}
    
    		&--secondary {
    			padding-top: $one-third-ratio;
    
    			&:first-of-type {
    				margin-right: 8px;
    			}
    
    			@include media($sm-breakpoint) {
    				margin-right: auto;
    				padding-top: $two-third-ratio;
    			}
    		}
    	}
    
    	&__gallery {
    		display: block;
    		position: absolute;
    		top: 0;
    		left: 0;
    		width: 100%;
    		height: 100%;
    		@include object-fit(cover, center);
    		text-decoration: none;
    		color: $color-text-negative;
    		font-family: $font-highlight;
    
    		&::after {
    			content: "";
    			position: absolute;
    			display: block;
    			bottom: 0;
    			left: 0;
    			opacity: .5;
    			background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
    			z-index: 1;
    			@include size(100%, 50%);
    			transition: opacity $transition-slow ease;
    		}
    
    		&_image {
    			@include object-fit(cover, center);
    			@include size(100%, 100%);
    		}
    	}
    
    	&__gallery_title {
    		position: absolute;
    		bottom: 0;
    		z-index: 2;
    		letter-spacing: .07em;
    		transition: color $transition-mid ease;
    
    		&::after {
    			content: '';
    			position: absolute;
    			left: 0;
    			bottom: -1em;
    			background-color: $color-primary;
    			height: 2px;
    		}
    
    		@include hover-behaviour {
    			color: $color-primary;
    		}
    
    		&--main {
    			@include fluid-props(font-size, $fluid-min, $fluid-max, 10px, 24px);
    			@include fluid-props(line-height, $fluid-min, $fluid-max, 10px, 35px);
    			@include fluid-props(margin-left padding-right, $fluid-min, $fluid-max, 24px, 60px);
    			@include fluid-props(margin-bottom, $fluid-min, $fluid-max, 30px, 60px);
    
    			&::after {
    				@include fluid-props(width, $fluid-min, $fluid-max, 21px, 54px);
    
    				@include media($md-breakpoint) {
    					height: 4px;
    				}
    			}
    		}
    
    		&--secondary {
    			@include fluid-props(font-size, $fluid-min, $fluid-max, 8px, 18px);
    			@include fluid-props(margin-left padding-right, $fluid-min, $fluid-max, 10px, 20px);
    			@include fluid-props(margin-bottom, $fluid-min, $fluid-max, 20px, 30px);
    
    			&::after {
    				@include fluid-props(width, $fluid-min, $fluid-max, 11px, 31px);
    			}
    		}
    	}
    }
    
  • URL: /components/raw/o-galleries-section/_o-galleries-section.scss
  • Filesystem Path: src/components/organisms/o-galleries-section/_o-galleries-section.scss
  • Size: 5.5 KB
{
  "link": "#",
  "title": "Nos galeries photos",
  "cta": {
    "link": "#",
    "text": "Découvrir plus"
  },
  "galleries": {
    "main": {
      "image": {
        "src": "/img/gallery-section-1.png",
        "alt": "gallery1"
      },
      "title": "Le monde sidérant des océans",
      "numphotos": 22
    },
    "secondary": [
      {
        "image": {
          "src": "/img/gallery-section-2.png",
          "alt": "gallery2"
        },
        "title": "Titre de la galerie qui suit",
        "link": "#"
      },
      {
        "image": {
          "src": "/img/gallery-section-3.png",
          "alt": "gallery3"
        },
        "title": "Titre de la troisième gallerie",
        "link": "#"
      }
    ]
  }
}

There are no notes for this item.