correction

This commit is contained in:
Kevin Tessier 2020-06-20 12:43:15 +02:00
parent 3aab5bcbca
commit cf57304339
12 changed files with 189 additions and 23 deletions

View File

@ -9,7 +9,7 @@ $args = array(
'post_type' => 'post', 'post_type' => 'post',
'post_status'=>'publish', 'post_status'=>'publish',
); );
$context['post'] = Timber::get_post();
$context['posts'] = Timber::get_posts( $args ); $context['posts'] = Timber::get_posts( $args );
$context['terms'] = Timber::get_terms(array( 'taxonomy'=> 'category', 'hide_empty' => true, 'parent' => 0)); $context['terms'] = Timber::get_terms(array( 'taxonomy'=> 'category', 'hide_empty' => true, 'parent' => 0));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,5 @@
var Home = document.querySelector('.hero .slide'); var Home = document.querySelector('.hero .slide');
var flkty = new Flickity( Home, { var flkty = new Flickity( Home, {
// options // options
@ -28,3 +30,27 @@ var msnry = new Masonry( '.tableau_engagements.row', {
itemSelector: '.engagement', itemSelector: '.engagement',
percentPosition: true percentPosition: true
}); });
var hamburgers = document.querySelector(".hamburger");
var nav = document.querySelector(".nav-main");
hamburgers.addEventListener("click", function() {
this.classList.toggle("is-active");
nav.classList.toggle("is-active");
});
var elem = document.querySelector('.grid');
var iso = new Isotope( elem, {
itemSelector: '.item',
layoutMode: 'fitRows'
});
var filtersElem = document.querySelector('.filter-button-group');
filtersElem.addEventListener( 'click', function( event ) {
var filterValue = event.target.getAttribute('data-filter');
iso.arrange({ filter: filterValue });
});

File diff suppressed because one or more lines are too long

View File

@ -8,11 +8,16 @@
url('../fonts/Millimetre.woff') format('woff'); url('../fonts/Millimetre.woff') format('woff');
} }
*{
box-sizing: border-box;
}
body { body {
width: 300px; width: 300px;
margin: 0 auto; margin: 0 auto;
font-size: 16px; font-size: 16px;
font-family: Universalis ADF Std, sans-serif; font-family: Universalis ADF Std, sans-serif;
padding: 0!important;
} }
h1, h2, h3, h5{ h1, h2, h3, h5{
@ -39,6 +44,21 @@ a, a:hover{
section{ section{
position: relative; position: relative;
} }
/* START KEVIN */
.nav-main{
display: none;
position: absolute;
right: 0;
top: 70px;
background: white;
padding: 30px;
}
.nav-main.is-active{
display: block
}
/* END KEVIN */
.titre_page, .titre { .titre_page, .titre {
position: absolute; position: absolute;
top: -100px; top: -100px;
@ -79,19 +99,95 @@ section{
} }
/*sections page accueil*/ /*sections page accueil*/
/* START KEVIN */
.coming_soon{
width: 100%;
}
.coming_soon .thumbnails, .other-posts .thumbnails{
transform: scale(1);
transition: transform 0.3s ease;
}
.coming_soon .thumbnails:hover, .other-posts .thumbnails:hover{
transform: scale(1.05);
transition: all 0.3s ease;
}
/* ALL thumbnails */
.thumbnails .__img{
height: 300px;
}
.thumbnails .__img img{
width: 100%;
height: 100%;
object-fit: cover;
}
.thumbnails .icone_cat{
width: 50px;
height: 50px;
content: "Picto";
position: absolute;
transform: translate(-50%, -50%);
background: grey;
border-radius: 50px;
}
/* SECTION ASSO */
#section_asso .association .__body{
position: relative;
justify-content: flex-end;
margin-top: 50px;
}
.image_sectionasso {
position: absolute;
top: 0;
left: 0;
margin-top: 100px;
width: 70%;
}
.content_asso {
width: 70%;
position: relative;
padding: 10px;
background-color: white;
border: 8px solid yellow;
}
/* responsive iframe */
#section_MineVideo .wrapper__content {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
}
#section_MineVideo .wrapper__content iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* END KEVIN */
.item { .item {
margin-top: 50px; margin-top: 50px;
} }
.wrap__content_proch { .wrap__content_proch {
position: relative; position: relative;
width: 80%; width: calc(100% - 40px);
margin: -4rem auto 0 auto;
padding: 10px; padding: 10px;
margin: -50px auto -20px auto; min-height: 160px;
align-items: center; align-items: center;
text-align: center; text-align: center;
background-color: white; background-color: white;
border: 4px solid black; border: 4px solid black;
display: flex;
flex-direction: column;
justify-content: center;
} }
.colonne_section{ .colonne_section{
@ -106,7 +202,8 @@ section{
text-transform: uppercase; text-transform: uppercase;
text-align: center; text-align: center;
} }
.image_sectionasso {
/* .image_sectionasso {
position: absolute; position: absolute;
width: 500px; width: 500px;
} }
@ -116,8 +213,7 @@ section{
padding: 10px; padding: 10px;
background-color: white; background-color: white;
border: 8px solid yellow; border: 8px solid yellow;
} */
}
.projet .colonne_section .header{ .projet .colonne_section .header{
height: 80px; height: 80px;
@ -129,16 +225,12 @@ section{
width: 100%; width: 100%;
} }
.item .__img{
width: 100%;
height: 300px;
}
.item img{ .item img{
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
} }
._content_tpsF { ._content_tpsF {
position: relative; position: relative;
width: 80%; width: 80%;
@ -222,9 +314,12 @@ section{
.cat-list{ .cat-list{
align-items: baseline; align-items: baseline;
} }
.cat_name{ .cat-list li{
margin: 0 4% 0 4%; margin-right: 20px;
} }
/* .cat_name{
margin: 0 4% 0 4%;
} */
/*fin page les projets*/ /*fin page les projets*/

View File

@ -24,6 +24,10 @@
get_template_directory_uri() . '/asset/dist/js/masonry.pkgd.min.js', get_template_directory_uri() . '/asset/dist/js/masonry.pkgd.min.js',
array() ); array() );
wp_enqueue_script( 'isotope',
get_template_directory_uri() . '/asset/dist/js/isotope.pkgd.min.js',
array() );
wp_enqueue_script( 'script', wp_enqueue_script( 'script',
get_template_directory_uri() . '/asset/dist/index.js', get_template_directory_uri() . '/asset/dist/index.js',
array() ); array() );

View File

@ -2,15 +2,21 @@
{% block content %} {% block content %}
<section> <section>
<ul class="cat-list d-flex flex-wrap"> <div class="title_page">
<h2 class="titre_page">{{post.title}}</h2>
</div>
<ul class="cat-list d-flex flex-wrap button-group filter-button-group">
{% for cat in terms %} {% for cat in terms %}
<p>|<a data-filter=".{{cat.slug}}" href="#"> <li>|
<li class="cat_name">{{cat.name}}</li> <a class="cat_name" data-filter=".{{cat.slug}}" href="#">
</a></p> {{cat.name}}
</a>
</li>
{% endfor %} {% endfor %}
|</ul> |</ul>
<div class="row align-items-start"> <div class="row align-items-start grid">
{% for item in posts %} {% for item in posts %}
{% include 'components/thumbnails/thumbnails.twig'%} {% include 'components/thumbnails/thumbnails.twig'%}
{% endfor %} {% endfor %}

View File

@ -18,7 +18,15 @@
<img src="" alt=""> <img src="" alt="">
<img src="" alt=""> <img src="" alt="">
</div> </div>
<div class="burger"></div>
<div class="burger">
<button class="hamburger hamburger--slider" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
</div>
<nav id="nav-main" class="nav-main" role="navigation"> <nav id="nav-main" class="nav-main" role="navigation">
{% include "menu.twig" with {'items': menu.get_items} %} {% include "menu.twig" with {'items': menu.get_items} %}
</nav> </nav>

View File

@ -16,6 +16,7 @@
{# BOOTSTRAP #} {# BOOTSTRAP #}
<link href="{{ site.theme.link }}/asset/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ site.theme.link }}/asset/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ site.theme.link }}/asset/dist/css/flickity.css" rel="stylesheet"> <link href="{{ site.theme.link }}/asset/dist/css/flickity.css" rel="stylesheet">
<link href="{{ site.theme.link }}/asset/dist/hamburgers.min.css" rel="stylesheet">
<link href="{{ site.theme.link }}/asset/dist/style.css" rel="stylesheet"> <link href="{{ site.theme.link }}/asset/dist/style.css" rel="stylesheet">
{{function('wp_head')}} {{function('wp_head')}}

View File

@ -5,7 +5,7 @@
<div class="wrapper__content row"> <div class="wrapper__content row">
{% for item in tpsF %} {% for item in tpsF %}
<div class="colonne_section col-md-6 col-lg-4"> <div class="colonne_section col-md-6 col-lg-4">
<div class="item"> <div class="item thumbnails">
<div class="__img"> <div class="__img">
<img src="{{item.thumbnail.src}}" alt="{{item.thumbnail.title}}"> <img src="{{item.thumbnail.src}}" alt="{{item.thumbnail.title}}">
</div> </div>

View File

@ -4,7 +4,7 @@
{% include 'components/title_page.twig' %} {% include 'components/title_page.twig' %}
<section> <section>
<div class="wrapper__content"> <div class="wrapper__content prive">
<div class="wrap__content"> <div class="wrap__content">
@ -18,7 +18,7 @@
</div> </div>
<div class="wrap__content __slide"> <div class="wrap__content privatiser __slide">
{% for item in post.meta('slide_image') %} {% for item in post.meta('slide_image') %}
<div class="images"> <div class="images">
<div class="img"> <div class="img">