This commit is contained in:
2019-02-19 18:56:33 +01:00
parent 7fb774aab6
commit 7c5caf97d2
24 changed files with 369 additions and 250 deletions
+5
View File
@@ -2,6 +2,11 @@
title: 'Projet N°1' title: 'Projet N°1'
media_order: 'ouvrage Edith.jpg,affiche_grainesdelecteurs_2014.jpg' media_order: 'ouvrage Edith.jpg,affiche_grainesdelecteurs_2014.jpg'
mea: true mea: true
taxonomy:
category:
- Éditions
tag:
- mea
categories: test categories: test
--- ---
+2
View File
@@ -5,6 +5,8 @@ mea: true
taxonomy: taxonomy:
category: category:
- Éditions - Éditions
tag:
- mea
--- ---
Faux-texte: a pour fonction de faire office de texte de substitution ou d'outil permettant la comparaison et l'appréciation de différentes polices. Faux-texte: a pour fonction de faire office de texte de substitution ou d'outil permettant la comparaison et l'appréciation de différentes polices.
Binary file not shown.

After

Width:  |  Height:  |  Size: 826 KiB

+5
View File
@@ -1,5 +1,10 @@
--- ---
title: 'projet n°4' title: 'projet n°4'
taxonomy:
category:
- Éditions
tag:
- mea
--- ---
Faux-texte: a pour fonction de faire office de texte de substitution ou d'outil permettant la comparaison et l'appréciation de différentes polices. Faux-texte: a pour fonction de faire office de texte de substitution ou d'outil permettant la comparaison et l'appréciation de différentes polices.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+56 -52
View File
@@ -1,59 +1,63 @@
var isTouch = window.DocumentTouch && document instanceof DocumentTouch; var $cards = $('#items .full-works');
var $card = $('#items .card');
var $cat = $('.cat-list .cat a');
function scrollHeader() { function masonry() {
// Has scrolled class on header var $grid = $cards.masonry({
var zvalue = $(document).scrollTop(); itemSelector: '.card',
if ( zvalue > 75 ) columnWidth: '.card',
$("#header").addClass("scrolled"); percentPosition: true,
else transitionDuration: '0.2s'
$("#header").removeClass("scrolled"); });
$grid.imagesLoaded().progress( function() {
$grid.masonry();
});
} }
function parallaxBackground() { function isotype() {
$('.parallax').css('background-positionY', ($(window).scrollTop() * 0.3) + 'px'); var $grid = $cards.isotope({
itemSelector: '.card',
layoutMode: 'fitRows'
});
$cat.on( 'click', function(e) {
e.preventDefault();
var filterValue = $( this ).attr('data-filter');
filterValue = filterFns[ filterValue ] || filterValue;
$grid.isotope({ filter: filterValue });
});
} }
function card(){
var $item = $('.card')
console.log($item);
}
function ajax() {
var form = $('#ajax-test-form');
form.submit(function(e) {
// prevent form submission
e.preventDefault();
// submit the form via Ajax
$.ajax({
url: form.attr('action'),
type: form.attr('method'),
dataType: 'html',
data: form.serialize(),
success: function(result) {
// Inject the result in the HTML
$('#form-result').html(result);
}
});
});
}
jQuery(document).ready(function($){ jQuery(document).ready(function($){
masonry();
scrollHeader(); // card();
// ajax();
// Scroll Events // isotype();
if (!isTouch){
$(document).scroll(function() {
scrollHeader();
parallaxBackground();
});
};
// Touch scroll
$(document).on({
'touchmove': function(e) {
scrollHeader(); // Replace this with your code.
}
});
//Smooth scroll to start
$('#to-start').click(function(){
var start_y = $('#start').position().top;
var header_offset = 45;
window.scroll({ top: start_y - header_offset, left: 0, behavior: 'smooth' });
return false;
});
//Smooth scroll to top
$('#to-top').click(function(){
window.scroll({ top: 0, left: 0, behavior: 'smooth' });
return false;
});
// Responsive Menu
$('#toggle').click(function () {
$(this).toggleClass('active');
$('#overlay').toggleClass('open');
$('body').toggleClass('mobile-nav-open');
});
// Tree Menu
$(".tree").treemenu({delay:300});
}); });
@@ -11,4 +11,5 @@
@import 'theme/header'; @import 'theme/header';
@import 'theme/home'; @import 'theme/home';
@import 'theme/blog'; @import 'theme/blog';
@import 'theme/item';
@import 'theme/footer'; @import 'theme/footer';
@@ -1,7 +1,6 @@
.card{ .card{
width: calc(100% / 3); width: calc(100% / 3);
height: 100%; padding: 0 10px;
padding: 0 5px;
.card-header{ .card-header{
display: inline-flex; display: inline-flex;
& > div{ & > div{
@@ -15,3 +14,35 @@
} }
} }
} }
#items{
.full-works{
width: 100%;
}
.card{
margin-bottom: 20px;
min-width: 200px;
}
}
#body-wrapper.blog-listing{
border-top: 1px solid black;
padding-top: 20px;
#items{
.content-title{
display: inline-flex;
align-items: baseline;
}
.e-content{
width: calc(33% * 2);
column-count: 2;
margin: 20px 0;
& > p{
}
}
.top{
text-align: center;
margin-bottom: 20px;
}
}
}
@@ -1,55 +1,21 @@
// home
body{
&> .blog{
header{ header{
h1{
font-size: 11.2vw;
line-height: 7vw!important;
}
h2{
font-size: 3.7vw;
}
width: 100%; width: 100%;
height: 100vh; height: 100vh;
position: relative;
display: inline-flex; display: inline-flex;
flex-direction: column; flex-direction: column;
nav{
position: relative;
height: 100%;
.logo{
position: absolute;
top: 50%;
transform: translateY(-50%);
}
}
.contact{
position: fixed;
top: 50px;
right: 50px;
transform: scale(1);
transition: transform 0.5s ease;
cursor: pointer;
&:hover{
transition: transform 0.5s ease;
transform: scale(0.9);
}
svg{
animation: rotation 6s infinite linear;
width: 90.4px;
height: 87.45px;
}
h3{
transform: rotate(35deg);
}
p{
display: none;
}
}
& > section{ & > section{
height: 100%; position: relative;
height: 50vh;
min-height: 250px;
&.works-mea{ &.works-mea{
height: auto!important;
display: inline-flex; display: inline-flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 10px; // margin-bottom: 70px;
align-items: flex-end;
height: 100%;
.card{ .card{
line-height: 0.8!important; line-height: 0.8!important;
.card-header{ .card-header{
@@ -58,12 +24,20 @@ header{
} }
} }
} }
h1{
font-size: 11.2vw;
line-height: 7vw!important;
}
h2{ h2{
margin-left: 10px; font-size: 3.7vw;
}
nav{
margin-top: 25vh; /* poussé de la moitié de hauteur de viewport */
transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
} }
.scroll{ .scroll{
width: 50px; width: 50px;
height: 40px; height: 15px;
margin: 0 auto 10px auto; margin: 0 auto 10px auto;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
@@ -82,3 +56,30 @@ header{
} }
} }
} }
}
}
// page
body{
& > .item{
header{
height: 100px;
position: relative;
nav{
position: absolute;
margin-top: 50px; /* poussé de la moitié de hauteur de viewport */
transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
}
h1{
color: black;
}
h2{
display: none;
}
.scroll{
display: none;
}
}
}
}
@@ -3,12 +3,24 @@ h1, h2{
font-weight: normal; font-weight: normal;
} }
body{
&>.blog{
h1{ h1{
font-size: $fh1; font-size: $fh1;
-webkit-text-stroke:.1rem #111; -webkit-text-stroke:.1rem #111;
color: transparent; color: transparent;
line-height: 7rem; line-height: 7rem;
} }
}
}
body{
&>.item{
h1{
font-size: $fh2;
}
}
}
h2{ h2{
font-size: $fh2; font-size: $fh2;
@@ -21,7 +33,7 @@ h3{
} }
h5{ h5{
font-size: 1rem; font-size: $fh5;
font-family: $bold; font-family: $bold;
font-weight: normal; font-weight: normal;
} }
@@ -55,6 +67,10 @@ header{
.card-category{ .card-category{
font-family: $italic; font-family: $italic;
font-weight: normal; font-weight: normal;
font-size: $fs;
}
.card-date{
font-size: $fs;
} }
.card-footer{ .card-footer{
span{ span{
@@ -72,6 +88,7 @@ header{
.scroll{ .scroll{
p{ p{
font-size: $fs;
font-family: $bold; font-family: $bold;
font-weight: normal; font-weight: normal;
} }
@@ -104,3 +121,12 @@ header{
} }
} }
} }
body{
& > .item{
h2{
font-size: $fh2-i;
}
}
}
@@ -11,8 +11,9 @@ $fh1: 11rem;
$fh2:3rem; $fh2:3rem;
$fh2-i: 1.3rem; $fh2-i: 1.3rem;
$fh3: 1rem; $fh3: 1rem;
$fh5:0.8rem;
$fp: 1rem; $fp: 1rem;
$fs:0.9rem; $fs:0.8rem;
// interline // interline
//interlettre //interlettre
@@ -1,3 +1,32 @@
body{ body{
padding: 0 2%; padding: 0 2%;
} }
header{
.contact{
position: fixed;
top: 50px;
right: 50px;
transform: scale(1);
transition: transform 0.5s ease;
cursor: pointer;
&:hover{
transition: transform 0.5s ease;
transform: scale(0.9);
}
svg{
animation: rotation 6s infinite linear;
width: 90.4px;
height: 87.45px;
}
h3{
transform: rotate(35deg);
}
p{
display: none;
}
}
h2{
margin-left: 10px;
}
}
@@ -6,16 +6,6 @@
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %} {% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %} {% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
{% block stylesheets %}
{% do assets.addCss('theme://css/bricklayer.css') %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% do assets.add('theme://js/bricklayer.min.js') %}
{% do assets.add('theme://js/scopedQuerySelectorShim.min.js') %}
{% endblock %}
{% block body %} {% block body %}
<section id="body-wrapper"> <section id="body-wrapper">
@@ -58,8 +48,5 @@
{% endembed %} {% endembed %}
</section> </section>
</section> </section>
<script>
//Bricklayer
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
</script>
{% endblock %} {% endblock %}
@@ -6,28 +6,6 @@
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %} {% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
{% block javascripts %}
{% if show_onpage_menu %}
{% do assets.add('theme://js/singlepagenav.min.js') %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block bottom %}
{{ parent() }}
{% if show_onpage_menu %}
<script>
// singlePageNav initialization & configuration
$('ul.navigation').singlePageNav({
offset: $('#header').outerHeight(),
filter: ':not(.external)',
updateHash: true,
currentClass: 'active'
});
</script>
{% endif %}
{% endblock %}
{% block header_navigation %} {% block header_navigation %}
{% if show_onpage_menu %} {% if show_onpage_menu %}
<ul class="navigation"> <ul class="navigation">
@@ -22,7 +22,9 @@
{% block javascripts %} {% block javascripts %}
{% do assets.addJs('jquery', 101) %} {% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %} {% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/isotope.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %} {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %} {% endblock %}
{{ assets.js()|raw }} {{ assets.js()|raw }}
@@ -30,23 +32,14 @@
{% endblock head %} {% endblock head %}
</head> </head>
<body id="top"> <body id="top">
<div id="page-wrapper"> <div id="page-wrapper" class="{{page.template}}">
{% block header %} {% block header %}
<header> <header>
<section class="container {{ grid_size }}"> <section class="container {{ grid_size }}">
<nav class="navbar"> <nav class="navbar">
<section class="navbar-section logo"> <a href="/"><h1>{{site.title|capitalize}}</h1>
<a href="/"><h1>{{site.title|capitalize}}</h1></a> <h2>{{site.header.status|upper}}</h2></a>
<h2>{{site.header.status|upper}}</h2>
</section>
<section class="navbar-section desktop-menu">
{% if config.plugins.login.enabled and grav.user.username %}
<span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span>
{% endif %}
</section>
</nav> </nav>
<div class="contact"> <div class="contact">
<svg> <svg>
@@ -1,7 +1,3 @@
<div class="content-item h-entry">
{% if not hero_image_name %} {% if not hero_image_name %}
<div class="content-title text-center"> <div class="content-title text-center">
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %} {% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
@@ -62,6 +58,9 @@
<div class="e-content"> <div class="e-content">
{{ page.content|raw }} {{ page.content|raw }}
</div>
<div class="img">
{% set image = page.media.images|first %} {% set image = page.media.images|first %}
{% if image %} {% if image %}
{{ image.cropZoom(800,400).html }} {{ image.cropZoom(800,400).html }}
@@ -74,4 +73,3 @@
<p>top</p> <p>top</p>
</a> </a>
</div> </div>
</div>
@@ -1,4 +1,6 @@
<div class="card"> {% for category in page.taxonomy.category %}
<div class="card {{ category }}" data-category= "{{ category }}">
{% set image = page.media.images|first %} {% set image = page.media.images|first %}
{% if image %} {% if image %}
<div class="card-image"> <div class="card-image">
@@ -31,3 +33,4 @@
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% endfor %}
@@ -1,5 +1,5 @@
{% if page.taxonomy.category %} {% if page.taxonomy.category %}
{% for category in page.taxonomy.category %} {% for category in page.taxonomy.category %}
<a href="{{ blog.url|rtrim('/') }}/category{{ config.system.param_sep }}{{ category }}">{{ category }}</a> <a href="{{ blog.url|rtrim('/') }}/category{{ config.system.param_sep }}{{ category }}" data-filter="{{ category }}" >{{ category }}</a>
{% endfor %} {% endfor %}
{% endif %} {% endif %}