Edit base and home templates
This commit is contained in:
parent
6b0eaaaa22
commit
797abd2dea
8 changed files with 120 additions and 22 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -38,8 +38,8 @@ Icon
|
||||||
!/site/cache/index.html
|
!/site/cache/index.html
|
||||||
|
|
||||||
# Configuration files
|
# Configuration files
|
||||||
/site/config/config.xiaowang.fr.php
|
/site/config/config.julienmonnerie.com.php
|
||||||
/site/config/config.xiaowang.test.php
|
/site/config/config.julienmonnerie.test.php
|
||||||
|
|
||||||
# License
|
# License
|
||||||
/site/config/.license
|
/site/config/.license
|
||||||
|
|
1
assets/css/style.min.css
vendored
Normal file
1
assets/css/style.min.css
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select{margin:0}html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}img,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}body{min-height:100vh;overflow-x:hidden;display:-ms-grid;display:grid;grid:"header main" 1fr "footer main" auto/auto 1fr}header{grid-area:header}main{grid-area:main}footer{grid-area:footer}/*# sourceMappingURL=style.min.css.map */
|
1
assets/css/style.min.css.map
Normal file
1
assets/css/style.min.css.map
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"sourceRoot":"","sources":["partials/_minireset.css","style.scss"],"names":[],"mappings":"AAIA,yGAuBI,SACA,UAGJ,kBAMI,eACA,mBAGJ,GACI,gBAGJ,oBAGI,SAGJ,KACI,sBAGJ,qBACI,mBAGJ,UAEI,YACA,eAGJ,OACI,SAGJ,MACI,yBACA,iBAGJ,MAEI,UC7DJ,KACC,iBACA,kBACA,iBACA,aACA,KACC,8CAKF,OACC,iBAGD,KACC,eAGD,OACC","file":"style.min.css"}
|
|
@ -13,6 +13,29 @@
|
||||||
|
|
||||||
// General grid layout
|
// General grid layout
|
||||||
|
|
||||||
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
overflow-x: hidden;
|
||||||
|
display: -ms-grid;
|
||||||
|
display: grid;
|
||||||
|
grid:
|
||||||
|
'header main' 1fr
|
||||||
|
'footer main' auto
|
||||||
|
/ auto 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
grid-area: header;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
grid-area: main;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
grid-area: footer;
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// HEADER
|
// HEADER
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
// Kirby configuration settings (production environment)
|
|
||||||
'debug' => false,
|
|
||||||
// Matomo plugin options (critical keys)
|
|
||||||
'sylvainjule.matomo' => [
|
|
||||||
// 'token' => 'a3d53082e369334813c0ed93d5a80db6'
|
|
||||||
]
|
|
||||||
];
|
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
// Kirby configuration settings (development environment)
|
|
||||||
'debug' => true,
|
|
||||||
// Matomo plugin options (critical keys)
|
|
||||||
'sylvainjule.matomo' => [
|
|
||||||
// 'token' => 'a3d53082e369334813c0ed93d5a80db6'
|
|
||||||
]
|
|
||||||
];
|
|
74
site/templates/base.twig
Normal file
74
site/templates/base.twig
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html lang="fr">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
|
||||||
|
{# {{ snippet('metadata') }}
|
||||||
|
{{ snippet('favicon') }} #}
|
||||||
|
|
||||||
|
{# <script>
|
||||||
|
var _paq = window._paq = window._paq || [];
|
||||||
|
_paq.push(['disableCookies']);
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//matomo.paulnicoue.com/";
|
||||||
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '2']);
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script> #}
|
||||||
|
|
||||||
|
{% block stylesheets %}
|
||||||
|
<link rel="stylesheet" href="{{ asset('assets/css/style.min.css') }}">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
{% block header %}
|
||||||
|
<header>
|
||||||
|
|
||||||
|
<div class="header-bar">
|
||||||
|
<nav class="header-bar__nav" aria-label="Menu">
|
||||||
|
{% if site.homepage.exhibitions is not empty %}
|
||||||
|
<ul class="header-bar__nav-menu">
|
||||||
|
{% for exhibition in site.homePage.exhibitions.toStructure %}
|
||||||
|
<li class="header-bar__nav-item">
|
||||||
|
{% if exhibition.external_link.toBool == false %}
|
||||||
|
<a href="{{ exhibition.url }}" target="iframe">{{ exhibition.url }}</a>
|
||||||
|
{% elseif exhibition.external_link.toBool == true %}
|
||||||
|
<a href="{{ exhibition.url }}" target="_blank">{{ exhibition.url }}</a>
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block main %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block footer %}
|
||||||
|
<footer>
|
||||||
|
|
||||||
|
<div class="footer-bar">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block scripts %}
|
||||||
|
<script src="{{ asset('assets/js/app.js') }}"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
19
site/templates/home.twig
Normal file
19
site/templates/home.twig
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{% extends "base.twig" %}
|
||||||
|
|
||||||
|
{% block stylesheets %}
|
||||||
|
<link rel="stylesheet" href="{{ asset('assets/css/style.min.css') }}">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block main %}
|
||||||
|
<main>
|
||||||
|
|
||||||
|
<section class="home-section">
|
||||||
|
<iframe class="home-section__iframe" src="{{ page.featured_exhibition }}" name="iframe"></iframe>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block scripts %}
|
||||||
|
<script src="{{ asset('assets/js/app.js') }}"></script>
|
||||||
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue