bouton 1er bandeau home

This commit is contained in:
2021-11-29 15:07:53 +01:00
parent 054e9dcaf2
commit 02c063cfd5
3 changed files with 160 additions and 104 deletions
+80 -56
View File
@@ -263,78 +263,102 @@ a {
.block-views-blockhome-nodes-block-1 .node-type-static div:first-child { .block-views-blockhome-nodes-block-1 .node-type-static div:first-child {
display: grid; display: grid;
grid-template-columns: 1fr repeat(4, 2fr) 1fr; } grid-template-columns: 1fr repeat(4, 2fr) 1fr;
grid-template-rows: repeat(4, auto); }
.block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-images { .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-images {
grid-column: 1 /span 10; } z-index: -99;
filter: grayscale(100%);
filter: brightness(0%);
opacity: 0.5;
grid-column: 1 /span 10;
grid-row: 1 / span 4; }
.block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-images img { .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-images img {
width: 100vw;
height: auto; } height: auto; }
.block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-field-accroche {
.block-views-blockhome-nodes-block-1 .field--name-field-accroche { display: none; }
display: none; } .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-title {
grid-column: 2;
.block-views-blockhome-nodes-block-1 .field--name-title { grid-row: 1; }
grid-column: 2; } .block-views-blockhome-nodes-block-1 .node-type-static div:first-child .field--name-title h2 a {
.block-views-blockhome-nodes-block-1 .field--name-title h2 {
grid-column: 2; }
.block-views-blockhome-nodes-block-1 .field--name-title h2 a {
color: #009ee3; color: #009ee3;
font-weight: 900; } font-weight: 900; }
.block-views-blockhome-nodes-block-1 .node-type-static div:first-child .links.inline {
grid-column: 2;
grid-row: 4;
max-width: 70%;
min-width: fit-content;
height: 1.5rem;
padding: 0.4rem 1rem;
font-size: 0.8rem;
margin-bottom: 2.5rem;
background-color: white;
border: 2px solid #009ee3;
list-style: none;
text-align: center !important; }
.block-views-blockhome-nodes-block-1 .node-type-static div:first-child .links.inline a {
display: inline-flex;
text-transform: uppercase;
font-weight: 700;
color: #009ee3; }
.block-views-blockhome-nodes-block-1 .node-type-static div:first-child .links.inline a:after {
display: block;
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
.block-views-blockhome-nodes-block-1 .links.inline { .block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca {
grid-column: 2; display: grid;
align-self: flex-end; grid-template-columns: 1fr repeat(4, 2fr) 1fr; }
width: fit-content; .block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca .field--type-link {
height: fit-content; grid-column: 3;
padding: 0.4rem 1rem; position: relative;
font-size: 0.8rem; max-width: 70%;
margin: 0; min-width: fit-content;
background-color: white; height: 1.5rem;
border: 2px solid #009ee3;
list-style: none; }
.block-views-blockhome-nodes-block-1 .links.inline a {
text-transform: uppercase;
font-weight: 700;
color: #009ee3; }
.block-views-blockhome-nodes-block-1 .links.inline a:after {
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
.block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca .field--type-link {
justify-self: end;
position: relative;
width: fit-content;
height: fit-content;
padding: 0.4rem 1rem;
font-size: 0.8rem;
margin: 0;
background-color: white;
border: 2px solid #009ee3;
list-style: none; }
.block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca .field--type-link a {
text-transform: uppercase;
font-weight: 700;
color: #009ee3; }
.block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca .field--type-link a::after {
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 {
background-color: #009ee3;
width: 25%;
float: right; }
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 .field--name-field-lien.field--type-link {
align-self: flex-end;
width: fit-content;
height: fit-content;
padding: 0.4rem 1rem; padding: 0.4rem 1rem;
font-size: 0.8rem; font-size: 0.8rem;
margin: 0; margin: 0;
background-color: white;
border: 2px solid #009ee3;
list-style: none;
top: -200%;
text-align: center !important; }
.block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca .field--type-link a {
display: inline-flex;
text-transform: uppercase;
font-weight: 700;
color: #009ee3; }
.block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca .field--type-link a::after {
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); }
.block-region-content {
position: relative; }
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 {
position: relative;
background-color: #009ee3;
width: 20%;
float: right;
margin-right: 10%; }
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 .field--name-field-lien.field--type-link {
width: fit-content;
padding: 0.4rem 1rem;
font-size: 0.8rem;
margin: auto;
list-style: none; } list-style: none; }
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 .field--name-field-lien.field--type-link a { .block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 .field--name-field-lien.field--type-link a {
text-transform: uppercase; text-transform: uppercase;
font-weight: 700; font-weight: 700;
color: black; } color: black; }
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 .field--name-field-lien.field--type-link a:before {
display: block;
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="white" stroke="white" stroke-width="0.7"/></svg>'); }
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 p { .block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483 p {
color: white; color: white;
font-size: 1.2rem; } font-size: 1.2rem;
padding-left: 1rem;
padding-right: 1rem;
margin-top: 0;
text-align: center; }
.block-views-blockactus-blocks-pages-block-1 { .block-views-blockactus-blocks-pages-block-1 {
clear: both; clear: both;
Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

+78 -46
View File
@@ -23,71 +23,92 @@
// 1er bandeau // 1er bandeau
.block-views-blockhome-nodes-block-1{ .block-views-blockhome-nodes-block-1{
.node-type-static{ .node-type-static{
div:first-child{ div:first-child{
display: grid; display: grid;
// flex-direction: column;
grid-template-columns: 1fr repeat(4, 2fr) 1fr; grid-template-columns: 1fr repeat(4, 2fr) 1fr;
grid-template-rows: repeat(4, auto);
.field--name-field-images{ .field--name-field-images{
z-index: -99;
filter: grayscale(100%);
filter: brightness(0%);
opacity: 0.5;
// display: none;
grid-column: 1 /span 10; grid-column: 1 /span 10;
grid-row: 1 / span 4;
img{ img{
width: 100vw;
height: auto; height: auto;
} }
} }
.field--name-field-accroche{
} display: none;
}
.field--name-field-accroche{
display: none;
}
.field--name-title{
grid-column: 2;
h2{
grid-column: 2;
a{
color: $blue-light;
font-weight: 900;
} }
} .field--name-title{
grid-column: 2;
grid-row: 1;
h2{
a{
color: $blue-light;
font-weight: 900;
}
}
}
.links.inline{
grid-column: 2;
grid-row: 4;
max-width: 70%;
min-width: fit-content;
height: 1.5rem;
padding: 0.4rem 1rem;
font-size: 0.8rem;
margin-bottom: 2.5rem;
background-color: $white;
border: 2px solid $blue-light;
list-style: none;
text-align: center !important;
} a{
.links.inline{ display: inline-flex;
grid-column: 2; text-transform: uppercase;
align-self: flex-end; font-weight: 700;
width: fit-content; color: $blue-light;
height: fit-content; &:after{
padding: 0.4rem 1rem; display: block;
font-size: 0.8rem; content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
margin: 0;
background-color: $white;
border: 2px solid $blue-light;
list-style: none;
a{ }
text-transform: uppercase; }
font-weight: 700;
color: $blue-light;
&:after{
// display: block;
content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
} }
} }
} }
} }
// bouton déposer candidature
.block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{ .block-block-content.block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
display: grid;
grid-template-columns: 1fr repeat(4, 2fr) 1fr;
.field--type-link { .field--type-link {
justify-self: end; grid-column: 3;
// justify-self: end;
position: relative; position: relative;
width: fit-content; max-width: 70%;
height: fit-content; min-width: fit-content;
height: 1.5rem;
padding: 0.4rem 1rem; padding: 0.4rem 1rem;
font-size: 0.8rem; font-size: 0.8rem;
margin: 0; margin: 0;
background-color: $white; background-color: $white;
border: 2px solid $blue-light; border: 2px solid $blue-light;
list-style: none; list-style: none;
top: -200%;
text-align: center !important;
a{ a{
display: inline-flex;
text-transform: uppercase; text-transform: uppercase;
font-weight: 700; font-weight: 700;
color: $blue-light; color: $blue-light;
@@ -101,33 +122,44 @@
} }
// bouton foire aux questions // bouton foire aux questions
.block-region-content{
position: relative;
}
.block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483{ .block-block-content.block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
position: relative;
background-color: $blue-light; background-color: $blue-light;
width: 25%; width: 20%;
float: right; float: right;
// display: flex;
// flex-direction: column;
margin-right: 10%;
.field--name-field-lien.field--type-link{ .field--name-field-lien.field--type-link{
align-self: flex-end; // align-self: flex-end;
width: fit-content; width: fit-content;
height: fit-content; // height: fit-content;
padding: 0.4rem 1rem; padding: 0.4rem 1rem;
font-size: 0.8rem; font-size: 0.8rem;
margin: 0; margin: auto;
list-style: none; list-style: none;
a{ a{
text-transform: uppercase; text-transform: uppercase;
font-weight: 700; font-weight: 700;
color: $black; color: $black;
// &:after{ &:before{
// // display: block; display: block;
// content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>'); content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="white" stroke="white" stroke-width="0.7"/></svg>');
// } }
} }
} }
p{ p{
color: $white; color: $white;
font-size: 1.2rem; font-size: 1.2rem;
padding-left: 1rem;
padding-right: 1rem;
margin-top: 0;
text-align: center;
} }
} }