css form user registrer
This commit is contained in:
@@ -15,6 +15,16 @@
|
|||||||
border: none !important;
|
border: none !important;
|
||||||
cursor: pointer; }
|
cursor: pointer; }
|
||||||
|
|
||||||
|
.form-submit {
|
||||||
|
background-color: white;
|
||||||
|
border: solid black 1px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 1rem;
|
||||||
|
height: 5rem !important;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-weight: 300; }
|
||||||
|
|
||||||
.mailto {
|
.mailto {
|
||||||
text-decoration: underline; }
|
text-decoration: underline; }
|
||||||
|
|
||||||
@@ -121,7 +131,9 @@
|
|||||||
|
|
||||||
.layout-content {
|
.layout-content {
|
||||||
padding-top: 7rem;
|
padding-top: 7rem;
|
||||||
padding-bottom: 6rem; }
|
padding-bottom: 6rem;
|
||||||
|
width: 60%;
|
||||||
|
margin: auto; }
|
||||||
|
|
||||||
main {
|
main {
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
@@ -173,33 +185,33 @@ header {
|
|||||||
grid-column: 9;
|
grid-column: 9;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 150px; }
|
height: fit-content; }
|
||||||
header div #block-reha-connexionutilisateur .bouton-connexion {
|
header div #block-reha-connexionutilisateur .bouton-connexion {
|
||||||
padding-right: 3rem; }
|
padding-right: 3rem; }
|
||||||
header div #block-reha-connexionutilisateur .bouton-connexion :before {
|
header div #block-reha-connexionutilisateur .bouton-connexion :before {
|
||||||
content: url(../images/noun-contact-2495375.svg);
|
content: url(../images/noun-contact-2495375.svg);
|
||||||
padding-right: 1rem; }
|
padding-right: 1rem; }
|
||||||
header div #block-reha-connexionutilisateur .user-login-form {
|
header div #block-reha-connexionutilisateur .connexion {
|
||||||
display: none;
|
float: right;
|
||||||
background-color: white;
|
height: 0;
|
||||||
|
/* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
position: relative; }
|
||||||
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
header div #block-reha-connexionutilisateur .connexion .connexion-full {
|
||||||
clip-path: inset(0px -10px -10px -10px);
|
display: none;
|
||||||
padding: 5% 10% 5% 5%; }
|
background-color: white;
|
||||||
header div #block-reha-connexionutilisateur ul {
|
width: 400px;
|
||||||
display: none;
|
height: 100vh;
|
||||||
background-color: white;
|
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
||||||
width: 100%;
|
clip-path: inset(0px -10px -10px -10px);
|
||||||
height: 100vh;
|
padding: 5% 10% 5% 5%;
|
||||||
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
position: relative;
|
||||||
clip-path: inset(0px -10px -10px -10px);
|
right: -150px; }
|
||||||
padding: 5% 10% 5% 5%; }
|
|
||||||
header div #block-reha-config-pages {
|
header div #block-reha-config-pages {
|
||||||
grid-column: 10;
|
grid-column: 10;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 150px; }
|
height: fit-content; }
|
||||||
header div #block-reha-config-pages .bouton-contact {
|
header div #block-reha-config-pages .bouton-contact {
|
||||||
padding-right: 4rem; }
|
padding-right: 4rem; }
|
||||||
header div #block-reha-config-pages .bouton-contact ::before {
|
header div #block-reha-config-pages .bouton-contact ::before {
|
||||||
@@ -269,20 +281,42 @@ footer {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column; }
|
flex-direction: column; }
|
||||||
|
|
||||||
|
.form-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column; }
|
||||||
|
|
||||||
/*pages*/
|
/*pages*/
|
||||||
.layout--onecol {
|
.home-page-layout-content .layout--onecol {
|
||||||
width: 70%;
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal; }
|
font-style: normal; }
|
||||||
.layout--onecol .block-region-content .block-block-content1ca95211-9fa2-4ef2-a460-8184d1eaf20f {
|
.home-page-layout-content .layout--onecol .block-region-content .block-block-content1ca95211-9fa2-4ef2-a460-8184d1eaf20f {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end; }
|
justify-content: flex-end; }
|
||||||
.layout--onecol .block-region-content .block-block-content1ca95211-9fa2-4ef2-a460-8184d1eaf20f :hover {
|
.home-page-layout-content .layout--onecol .block-region-content .block-block-content1ca95211-9fa2-4ef2-a460-8184d1eaf20f :hover {
|
||||||
background-color: #fdc300; }
|
background-color: #fdc300; }
|
||||||
.layout--onecol .block-region-content .block-block-content1dd151e8-8a8b-4586-9e62-8905ba0c93e0 {
|
.home-page-layout-content .layout--onecol .block-region-content .block-block-content1dd151e8-8a8b-4586-9e62-8905ba0c93e0 {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end; }
|
justify-content: flex-end; }
|
||||||
.layout--onecol .block-region-content .block-block-content1dd151e8-8a8b-4586-9e62-8905ba0c93e0 :hover {
|
.home-page-layout-content .layout--onecol .block-region-content .block-block-content1dd151e8-8a8b-4586-9e62-8905ba0c93e0 :hover {
|
||||||
background-color: #fdc300; }
|
background-color: #fdc300; }
|
||||||
|
|
||||||
|
.user--register h1 {
|
||||||
|
font-size: 3rem !important;
|
||||||
|
font-weight: normal; }
|
||||||
|
|
||||||
|
.user--register .form-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column; }
|
||||||
|
|
||||||
|
.user--register #user-register-form .form-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding-bottom: 1rem; }
|
||||||
|
|
||||||
|
.user--register #user-register-form label {
|
||||||
|
padding-bottom: 0.5rem; }
|
||||||
|
|
||||||
|
.user--register #user-register-form input {
|
||||||
|
height: 2rem; }
|
||||||
|
|||||||
@@ -19,37 +19,14 @@
|
|||||||
|
|
||||||
jQuery(document).ready(function($){
|
jQuery(document).ready(function($){
|
||||||
|
|
||||||
// POPIN Biographies
|
// menu déroulant
|
||||||
|
|
||||||
/////////// bof /////////////////
|
|
||||||
|
|
||||||
// $(".bouton").click(function(event){
|
|
||||||
// console.log(event);
|
|
||||||
// //
|
|
||||||
// var mods = document.querySelectorAll('.config_pages--contact--full');
|
|
||||||
// mods.forEach((m, i) => {
|
|
||||||
// m.classList.remove('open')
|
|
||||||
// });
|
|
||||||
// //
|
|
||||||
// var btn = event.currentTarget;
|
|
||||||
// console.log('btn', btn);
|
|
||||||
// var mod = btn.parentNode.querySelector('.config_pages--contact--full');
|
|
||||||
// mod.classList.add('open')
|
|
||||||
|
|
||||||
// });
|
|
||||||
|
|
||||||
// $(".config_pages--contact--full .mask, .config_pages--contact--full a.close").click(function(event){
|
|
||||||
// $ (".config_pages--contact--full").removeClass("open");
|
|
||||||
// return false;
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////// ok /////////////////
|
//////////////// ok /////////////////
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".bouton-contact").click(function(event) {
|
$(".bouton-contact").click(function(event) {
|
||||||
$(".config_pages--contact--full").slideToggle();
|
$(".config_pages--contact--full").slideToggle();
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -57,22 +34,19 @@ jQuery(document).ready(function($){
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".bouton-connexion").click(function(event) {
|
$(".bouton-connexion").click(function(event) {
|
||||||
$(".user-login-form").slideToggle();
|
$(".connexion-full").slideToggle();
|
||||||
$("ul").slideToggle();
|
// $(".user-login-form").slideToggle();
|
||||||
|
// $("ul").slideToggle();
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// $(document).ready(function() {
|
|
||||||
// $(".bouton").click(function() {
|
|
||||||
// // $(".config_pages--contact--full").slideToggle();
|
|
||||||
// var fenetre = document.querySelectorAll('.config_pages--contact--full');
|
|
||||||
|
|
||||||
// m.classList.add('open')
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -30,3 +30,7 @@ function reha_preprocess_node(&$variables) {
|
|||||||
$node = &$variables['node'];
|
$node = &$variables['node'];
|
||||||
$variables['attributes']['class'][] = 'node-type-' . $node->gettype();
|
$variables['attributes']['class'][] = 'node-type-' . $node->gettype();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
.mailto{
|
.mailto{
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ $header-height : 150px;
|
|||||||
.layout-content{
|
.layout-content{
|
||||||
padding-top: 7rem;
|
padding-top: 7rem;
|
||||||
padding-bottom: 6rem;
|
padding-bottom: 6rem;
|
||||||
|
width: 60%;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
main{
|
main{
|
||||||
|
|||||||
@@ -15,3 +15,14 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-submit{
|
||||||
|
background-color: white;
|
||||||
|
border: solid black 1px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 1rem;
|
||||||
|
height: 5rem !important;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
|
||||||
|
.user--register{
|
||||||
|
h1{
|
||||||
|
font-size: 3rem !important;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-item{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#user-register-form{
|
||||||
|
.form-item{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
|
||||||
|
}
|
||||||
|
label{
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
input{
|
||||||
|
height: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,24 +1,28 @@
|
|||||||
.layout--onecol{
|
|
||||||
width: 70%;
|
|
||||||
margin: auto;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
.block-region-content{
|
|
||||||
|
|
||||||
.block-block-content1ca95211-9fa2-4ef2-a460-8184d1eaf20f{
|
.home-page-layout-content{
|
||||||
display: flex;
|
.layout--onecol{
|
||||||
justify-content: flex-end;
|
// width: 70%;
|
||||||
:hover{
|
margin: auto;
|
||||||
background-color: $yellow-puca;
|
font-size: 1.5rem;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
.block-region-content{
|
||||||
|
|
||||||
|
.block-block-content1ca95211-9fa2-4ef2-a460-8184d1eaf20f{
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
:hover{
|
||||||
|
background-color: $yellow-puca;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
.block-block-content1dd151e8-8a8b-4586-9e62-8905ba0c93e0{
|
||||||
.block-block-content1dd151e8-8a8b-4586-9e62-8905ba0c93e0{
|
display: flex;
|
||||||
display: flex;
|
justify-content: flex-end;
|
||||||
justify-content: flex-end;
|
:hover{
|
||||||
:hover{
|
background-color: $yellow-puca;
|
||||||
background-color: $yellow-puca;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
.form-item{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
@@ -24,8 +24,6 @@ header{
|
|||||||
width: fit-content;
|
width: fit-content;
|
||||||
padding-left: 4rem;
|
padding-left: 4rem;
|
||||||
height: $header-height;
|
height: $header-height;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#block-reha-logoreha{
|
#block-reha-logoreha{
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
@@ -38,13 +36,9 @@ header{
|
|||||||
img{
|
img{
|
||||||
height: 150px;
|
height: 150px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#block-reha-connexionutilisateur{
|
#block-reha-connexionutilisateur{
|
||||||
@@ -59,29 +53,47 @@ header{
|
|||||||
}
|
}
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: $header-height;
|
height: fit-content;
|
||||||
|
.connexion{
|
||||||
.user-login-form{
|
float: right;
|
||||||
display: none;
|
// display: none; /* Cacher initialement le contenu */
|
||||||
|
height: 0; /* Hauteur initiale à 0 pour créer l'effet de glissement vers le bas */
|
||||||
// transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
|
// transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
|
||||||
background-color: $white;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
position: relative;
|
||||||
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
.connexion-full{
|
||||||
clip-path: inset(0px -10px -10px -10px);
|
display: none;
|
||||||
padding: 5% 10% 5% 5%;
|
background-color: $white;
|
||||||
|
width: 400px;
|
||||||
|
height: 100vh;
|
||||||
|
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
||||||
|
clip-path: inset(0px -10px -10px -10px);
|
||||||
|
padding: 5% 10% 5% 5%;
|
||||||
|
position: relative;
|
||||||
|
right:-150px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
ul{
|
// .user-login-form{
|
||||||
display: none;
|
// display: none;
|
||||||
// transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
|
// background-color: $white;
|
||||||
background-color: $white;
|
// width: 100%;
|
||||||
width: 100%;
|
// height: 100vh;
|
||||||
height: 100vh;
|
// box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
||||||
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
// clip-path: inset(0px -10px -10px -10px);
|
||||||
clip-path: inset(0px -10px -10px -10px);
|
// padding: 5% 10% 5% 5%;
|
||||||
padding: 5% 10% 5% 5%;
|
// }
|
||||||
}
|
// ul{
|
||||||
|
// display: none;
|
||||||
|
// // transition: height 0.5s; /* Animation de 0.5 seconde lors de l'expansion vers le bas */
|
||||||
|
// background-color: $white;
|
||||||
|
// width: 100%;
|
||||||
|
// height: 100vh;
|
||||||
|
// box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
||||||
|
// clip-path: inset(0px -10px -10px -10px);
|
||||||
|
// padding: 5% 10% 5% 5%;
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
#block-reha-config-pages{
|
#block-reha-config-pages{
|
||||||
grid-column: 10;
|
grid-column: 10;
|
||||||
@@ -94,7 +106,7 @@ header{
|
|||||||
}
|
}
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: $header-height;
|
height: fit-content;
|
||||||
|
|
||||||
.config_pages--contact--full {
|
.config_pages--contact--full {
|
||||||
float: right;
|
float: right;
|
||||||
@@ -114,7 +126,7 @@ header{
|
|||||||
clip-path: inset(0px -10px -10px -10px);
|
clip-path: inset(0px -10px -10px -10px);
|
||||||
.field__item{
|
.field__item{
|
||||||
padding: 5% 10% 5% 5%;
|
padding: 5% 10% 5% 5%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
/*global*/
|
/*global*/
|
||||||
|
|
||||||
@import "global/variables/colors";
|
@import "global/variables/colors";
|
||||||
@import "global/variables/typography.scss";
|
@import "global/variables/typography";
|
||||||
@import "global/variables/buttons.scss";
|
@import "global/variables/buttons";
|
||||||
@import "global/core";
|
@import "global/core";
|
||||||
@import "global/fonts";
|
@import "global/fonts";
|
||||||
@import "global/layout";
|
@import "global/layout";
|
||||||
@@ -15,6 +15,8 @@
|
|||||||
/*partials*/
|
/*partials*/
|
||||||
@import "partials/header";
|
@import "partials/header";
|
||||||
@import "partials/footer";
|
@import "partials/footer";
|
||||||
|
@import "partials/forms";
|
||||||
|
|
||||||
/*pages*/
|
/*pages*/
|
||||||
@import "pages/home";
|
@import "pages/home";
|
||||||
|
@import "pages/creer-un-compte";
|
||||||
|
|||||||
@@ -44,6 +44,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{{ title_suffix }}
|
{{ title_suffix }}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ content }}
|
<div class="connexion">
|
||||||
|
<div class="connexion-full">
|
||||||
|
{{ content }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
{#
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Default theme implementation for the basic structure of a single Drupal page.
|
||||||
|
*
|
||||||
|
* Variables:
|
||||||
|
* - logged_in: A flag indicating if user is logged in.
|
||||||
|
* - root_path: The root path of the current page (e.g., node, admin, user).
|
||||||
|
* - node_type: The content type for the current node, if the page is a node.
|
||||||
|
* - head_title: List of text elements that make up the head_title variable.
|
||||||
|
* May contain one or more of the following:
|
||||||
|
* - title: The title of the page.
|
||||||
|
* - name: The name of the site.
|
||||||
|
* - slogan: The slogan of the site.
|
||||||
|
* - page_top: Initial rendered markup. This should be printed before 'page'.
|
||||||
|
* - page: The rendered page markup.
|
||||||
|
* - page_bottom: Closing rendered markup. This variable should be printed after
|
||||||
|
* 'page'.
|
||||||
|
* - db_offline: A flag indicating if the database is offline.
|
||||||
|
* - placeholder_token: The token for generating head, css, js and js-bottom
|
||||||
|
* placeholders.
|
||||||
|
*
|
||||||
|
* @see template_preprocess_html()
|
||||||
|
*
|
||||||
|
* @ingroup themeable
|
||||||
|
*/
|
||||||
|
#}
|
||||||
|
{%
|
||||||
|
set body_classes = [
|
||||||
|
logged_in ? 'user-logged-in',
|
||||||
|
not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class,
|
||||||
|
node_type ? 'page-node-type-' ~ node_type|clean_class,
|
||||||
|
db_offline ? 'db-offline',
|
||||||
|
]
|
||||||
|
%}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html{{ html_attributes }}>
|
||||||
|
<head>
|
||||||
|
<head-placeholder token="{{ placeholder_token }}">
|
||||||
|
<title>{{ head_title|safe_join(' | ') }}</title>
|
||||||
|
<css-placeholder token="{{ placeholder_token }}">
|
||||||
|
<js-placeholder token="{{ placeholder_token }}">
|
||||||
|
</head>
|
||||||
|
<body{{ attributes }}>
|
||||||
|
{#
|
||||||
|
Keyboard navigation/accessibility link to main content section in
|
||||||
|
page.html.twig.
|
||||||
|
#}
|
||||||
|
<a href="#main-content" class="visually-hidden focusable">
|
||||||
|
{{ 'Skip to main content'|t }}
|
||||||
|
</a>
|
||||||
|
{{ page_top }}
|
||||||
|
{{ page }}
|
||||||
|
{{ page_bottom }}
|
||||||
|
<js-bottom-placeholder token="{{ placeholder_token }}">
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
{#
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Default theme implementation to display a single page.
|
||||||
|
*
|
||||||
|
* The doctype, html, head and body tags are not in this template. Instead they
|
||||||
|
* can be found in the html.html.twig template in this directory.
|
||||||
|
*
|
||||||
|
* Available variables:
|
||||||
|
*
|
||||||
|
* General utility variables:
|
||||||
|
* - base_path: The base URL path of the Drupal installation. Will usually be
|
||||||
|
* "/" unless you have installed Drupal in a sub-directory.
|
||||||
|
* - is_front: A flag indicating if the current page is the front page.
|
||||||
|
* - logged_in: A flag indicating if the user is registered and signed in.
|
||||||
|
* - is_admin: A flag indicating if the user has permission to access
|
||||||
|
* administration pages.
|
||||||
|
*
|
||||||
|
* Site identity:
|
||||||
|
* - front_page: The URL of the front page. Use this instead of base_path when
|
||||||
|
* linking to the front page. This includes the language domain or prefix.
|
||||||
|
*
|
||||||
|
* Page content (in order of occurrence in the default page.html.twig):
|
||||||
|
* - messages: Status and error messages. Should be displayed prominently.
|
||||||
|
* - node: Fully loaded node, if there is an automatically-loaded node
|
||||||
|
* associated with the page and the node ID is the second argument in the
|
||||||
|
* page's path (e.g. node/12345 and node/12345/revisions, but not
|
||||||
|
* comment/reply/12345).
|
||||||
|
*
|
||||||
|
* Regions:
|
||||||
|
* - page.header: Items for the header region.
|
||||||
|
* - page.primary_menu: Items for the primary menu region.
|
||||||
|
* - page.secondary_menu: Items for the secondary menu region.
|
||||||
|
* - page.highlighted: Items for the highlighted content region.
|
||||||
|
* - page.help: Dynamic help text, mostly for admin pages.
|
||||||
|
* - page.content: The main content of the current page.
|
||||||
|
* - page.sidebar_first: Items for the first sidebar.
|
||||||
|
* - page.sidebar_second: Items for the second sidebar.
|
||||||
|
* - page.footer: Items for the footer region.
|
||||||
|
* - page.breadcrumb: Items for the breadcrumb region.
|
||||||
|
*
|
||||||
|
* @see template_preprocess_page()
|
||||||
|
* @see html.html.twig
|
||||||
|
*
|
||||||
|
* @ingroup themeable
|
||||||
|
*/
|
||||||
|
#}
|
||||||
|
<div class="layout-container">
|
||||||
|
|
||||||
|
<header role="banner">
|
||||||
|
{{ page.header }}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{ page.primary_menu }}
|
||||||
|
{{ page.secondary_menu }}
|
||||||
|
|
||||||
|
{{ page.breadcrumb }}
|
||||||
|
|
||||||
|
{{ page.highlighted }}
|
||||||
|
|
||||||
|
{{ page.help }}
|
||||||
|
|
||||||
|
<main role="main">
|
||||||
|
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
|
||||||
|
|
||||||
|
<div class="layout-content home-page-layout-content">
|
||||||
|
{{ page.content }}
|
||||||
|
</div>{# /.layout-content #}
|
||||||
|
|
||||||
|
{% if page.sidebar_first %}
|
||||||
|
<aside class="layout-sidebar-first" role="complementary">
|
||||||
|
{{ page.sidebar_first }}
|
||||||
|
</aside>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.sidebar_second %}
|
||||||
|
<aside class="layout-sidebar-second" role="complementary">
|
||||||
|
{{ page.sidebar_second }}
|
||||||
|
</aside>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{% if page.footer %}
|
||||||
|
<footer role="contentinfo">
|
||||||
|
{{ page.footer }}
|
||||||
|
</footer>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>{# /.layout-container #}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
{#
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Default theme implementation to display a single page.
|
||||||
|
*
|
||||||
|
* The doctype, html, head and body tags are not in this template. Instead they
|
||||||
|
* can be found in the html.html.twig template in this directory.
|
||||||
|
*
|
||||||
|
* Available variables:
|
||||||
|
*
|
||||||
|
* General utility variables:
|
||||||
|
* - base_path: The base URL path of the Drupal installation. Will usually be
|
||||||
|
* "/" unless you have installed Drupal in a sub-directory.
|
||||||
|
* - is_front: A flag indicating if the current page is the front page.
|
||||||
|
* - logged_in: A flag indicating if the user is registered and signed in.
|
||||||
|
* - is_admin: A flag indicating if the user has permission to access
|
||||||
|
* administration pages.
|
||||||
|
*
|
||||||
|
* Site identity:
|
||||||
|
* - front_page: The URL of the front page. Use this instead of base_path when
|
||||||
|
* linking to the front page. This includes the language domain or prefix.
|
||||||
|
*
|
||||||
|
* Page content (in order of occurrence in the default page.html.twig):
|
||||||
|
* - messages: Status and error messages. Should be displayed prominently.
|
||||||
|
* - node: Fully loaded node, if there is an automatically-loaded node
|
||||||
|
* associated with the page and the node ID is the second argument in the
|
||||||
|
* page's path (e.g. node/12345 and node/12345/revisions, but not
|
||||||
|
* comment/reply/12345).
|
||||||
|
*
|
||||||
|
* Regions:
|
||||||
|
* - page.header: Items for the header region.
|
||||||
|
* - page.primary_menu: Items for the primary menu region.
|
||||||
|
* - page.secondary_menu: Items for the secondary menu region.
|
||||||
|
* - page.highlighted: Items for the highlighted content region.
|
||||||
|
* - page.help: Dynamic help text, mostly for admin pages.
|
||||||
|
* - page.content: The main content of the current page.
|
||||||
|
* - page.sidebar_first: Items for the first sidebar.
|
||||||
|
* - page.sidebar_second: Items for the second sidebar.
|
||||||
|
* - page.footer: Items for the footer region.
|
||||||
|
* - page.breadcrumb: Items for the breadcrumb region.
|
||||||
|
*
|
||||||
|
* @see template_preprocess_page()
|
||||||
|
* @see html.html.twig
|
||||||
|
*
|
||||||
|
* @ingroup themeable
|
||||||
|
*/
|
||||||
|
#}
|
||||||
|
<div class="layout-container">
|
||||||
|
|
||||||
|
<header role="banner">
|
||||||
|
{{ page.header }}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{ page.primary_menu }}
|
||||||
|
{{ page.secondary_menu }}
|
||||||
|
|
||||||
|
{{ page.breadcrumb }}
|
||||||
|
|
||||||
|
{{ page.highlighted }}
|
||||||
|
|
||||||
|
{{ page.help }}
|
||||||
|
|
||||||
|
<main role="main">
|
||||||
|
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
|
||||||
|
|
||||||
|
<div class="layout-content user--register">
|
||||||
|
{{ page.content }}
|
||||||
|
</div>{# /.layout-content #}
|
||||||
|
|
||||||
|
{% if page.sidebar_first %}
|
||||||
|
<aside class="layout-sidebar-first" role="complementary">
|
||||||
|
{{ page.sidebar_first }}
|
||||||
|
</aside>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.sidebar_second %}
|
||||||
|
<aside class="layout-sidebar-second" role="complementary">
|
||||||
|
{{ page.sidebar_second }}
|
||||||
|
</aside>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{% if page.footer %}
|
||||||
|
<footer role="contentinfo">
|
||||||
|
{{ page.footer }}
|
||||||
|
</footer>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>{# /.layout-container #}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
{#
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Default theme implementation to display a single page.
|
||||||
|
*
|
||||||
|
* The doctype, html, head and body tags are not in this template. Instead they
|
||||||
|
* can be found in the html.html.twig template in this directory.
|
||||||
|
*
|
||||||
|
* Available variables:
|
||||||
|
*
|
||||||
|
* General utility variables:
|
||||||
|
* - base_path: The base URL path of the Drupal installation. Will usually be
|
||||||
|
* "/" unless you have installed Drupal in a sub-directory.
|
||||||
|
* - is_front: A flag indicating if the current page is the front page.
|
||||||
|
* - logged_in: A flag indicating if the user is registered and signed in.
|
||||||
|
* - is_admin: A flag indicating if the user has permission to access
|
||||||
|
* administration pages.
|
||||||
|
*
|
||||||
|
* Site identity:
|
||||||
|
* - front_page: The URL of the front page. Use this instead of base_path when
|
||||||
|
* linking to the front page. This includes the language domain or prefix.
|
||||||
|
*
|
||||||
|
* Page content (in order of occurrence in the default page.html.twig):
|
||||||
|
* - messages: Status and error messages. Should be displayed prominently.
|
||||||
|
* - node: Fully loaded node, if there is an automatically-loaded node
|
||||||
|
* associated with the page and the node ID is the second argument in the
|
||||||
|
* page's path (e.g. node/12345 and node/12345/revisions, but not
|
||||||
|
* comment/reply/12345).
|
||||||
|
*
|
||||||
|
* Regions:
|
||||||
|
* - page.header: Items for the header region.
|
||||||
|
* - page.primary_menu: Items for the primary menu region.
|
||||||
|
* - page.secondary_menu: Items for the secondary menu region.
|
||||||
|
* - page.highlighted: Items for the highlighted content region.
|
||||||
|
* - page.help: Dynamic help text, mostly for admin pages.
|
||||||
|
* - page.content: The main content of the current page.
|
||||||
|
* - page.sidebar_first: Items for the first sidebar.
|
||||||
|
* - page.sidebar_second: Items for the second sidebar.
|
||||||
|
* - page.footer: Items for the footer region.
|
||||||
|
* - page.breadcrumb: Items for the breadcrumb region.
|
||||||
|
*
|
||||||
|
* @see template_preprocess_page()
|
||||||
|
* @see html.html.twig
|
||||||
|
*
|
||||||
|
* @ingroup themeable
|
||||||
|
*/
|
||||||
|
#}
|
||||||
|
<div class="layout-container">
|
||||||
|
|
||||||
|
<header role="banner">
|
||||||
|
{{ page.header }}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{ page.primary_menu }}
|
||||||
|
{{ page.secondary_menu }}
|
||||||
|
|
||||||
|
{{ page.breadcrumb }}
|
||||||
|
|
||||||
|
{{ page.highlighted }}
|
||||||
|
|
||||||
|
{{ page.help }}
|
||||||
|
|
||||||
|
<main role="main">
|
||||||
|
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
|
||||||
|
|
||||||
|
<div class="layout-content">
|
||||||
|
{{ page.content }}
|
||||||
|
</div>{# /.layout-content #}
|
||||||
|
|
||||||
|
{% if page.sidebar_first %}
|
||||||
|
<aside class="layout-sidebar-first" role="complementary">
|
||||||
|
{{ page.sidebar_first }}
|
||||||
|
</aside>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.sidebar_second %}
|
||||||
|
<aside class="layout-sidebar-second" role="complementary">
|
||||||
|
{{ page.sidebar_second }}
|
||||||
|
</aside>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{% if page.footer %}
|
||||||
|
<footer role="contentinfo">
|
||||||
|
{{ page.footer }}
|
||||||
|
</footer>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>{# /.layout-container #}
|
||||||
Reference in New Issue
Block a user