_home.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. .path-frontpage{
  2. .block-region-content{
  3. display: grid;
  4. grid-template-areas: "presentation presentation presentation presentation presentation presentation"
  5. "presentation presentation presentation presentation presentation presentation"
  6. // "presentation presentation presentation presentation presentation presentation"
  7. "actus actus actus actus actus actus"
  8. "actus actus actus actus actus actus"
  9. "programme programme programme programme programme programme"
  10. "programme programme programme programme programme programme"
  11. "programme programme programme programme programme programme";
  12. grid-template-rows: auto auto auto;
  13. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  14. min-height: 100vh;
  15. .block-views-blockhome-nodes-block-1{
  16. grid-area: presentation;
  17. grid-row: 1;
  18. background: url("../images/pictos/carre-contour-bleu_contact.svg");
  19. .node-type-static{
  20. div:first-child{
  21. display: grid;
  22. // flex-direction: column;
  23. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  24. grid-template-rows: repeat(4, auto);
  25. .field--name-field-images{
  26. display: none;
  27. // z-index: -99;
  28. // filter: grayscale(100%);
  29. // filter: brightness(0%);
  30. // opacity: 0.5;
  31. // // display: none;
  32. // grid-column: 1 /span 10;
  33. // grid-row: 1 / span 4;
  34. // img{
  35. // width: 100vw;
  36. // height: auto;
  37. // }
  38. }
  39. .field--name-field-accroche{
  40. grid-column: 2 /span 3;
  41. grid-row: 2 / span 2;
  42. font-size: 5rem;
  43. font-weight: 800;
  44. color: $blue-light;
  45. line-height: 6rem;
  46. margin-bottom: 5rem;
  47. p{
  48. margin: 0;
  49. }
  50. }
  51. .field--name-title{
  52. grid-column: 4;
  53. grid-row: 1;
  54. margin-top: 2rem;
  55. h2{
  56. a{
  57. color: #e1000f;
  58. font-weight: 900;
  59. text-transform: uppercase;
  60. }
  61. }
  62. }
  63. .links.inline{
  64. grid-column: 2;
  65. grid-row: 4;
  66. max-width: 70%;
  67. min-width: fit-content;
  68. height: 1.5rem;
  69. padding: 0.4rem 1rem;
  70. font-size: 0.8rem;
  71. margin-bottom: 2.5rem;
  72. background-color: $white;
  73. border: 2px solid $blue-light;
  74. list-style: none;
  75. text-align: center !important;
  76. a{
  77. display: inline-flex;
  78. text-transform: uppercase;
  79. font-weight: 700;
  80. color: $blue-light;
  81. &:after{
  82. display: block;
  83. 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>');
  84. }
  85. }
  86. }
  87. }
  88. }
  89. }
  90. // bouton déposer candidature
  91. .block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
  92. grid-area: presentation;
  93. grid-column: 3 /span 4;
  94. grid-row: 1;
  95. align-self: end;
  96. margin-bottom: 2.5rem;
  97. width: fit-content;
  98. .field--type-link {
  99. grid-column: 3;
  100. // justify-self: end;
  101. position: relative;
  102. max-width: 70%;
  103. min-width: fit-content;
  104. height: 1.5rem;
  105. padding: 0.4rem 1rem;
  106. font-size: 0.8rem;
  107. margin: 0;
  108. background-color: $white;
  109. border: 2px solid $blue-light;
  110. list-style: none;
  111. top: -200%;
  112. text-align: center !important;
  113. a{
  114. display: inline-flex;
  115. text-transform: uppercase;
  116. font-weight: 700;
  117. color: $blue-light;
  118. }
  119. a::after{
  120. 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>');
  121. }
  122. }
  123. }
  124. // bouton foire aux questions
  125. .block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  126. grid-area: presentation;
  127. grid-column: 5;
  128. grid-row: 1;
  129. background-color: $blue-light;
  130. height: fit-content;
  131. align-self: end;
  132. .field--name-field-lien{
  133. &:before{
  134. margin-top: 1rem;
  135. display: block;
  136. content: url("../images/pictos/picto_faq.svg");
  137. }
  138. text-align: center;
  139. a{
  140. font-size: 0.8rem;
  141. font-weight: 1000;
  142. color: $blue-dark;
  143. text-transform: uppercase;
  144. }
  145. }
  146. .field--name-field-description{
  147. p{
  148. margin-top: 0;
  149. margin-bottom: 0;
  150. margin-left: 1.5rem;
  151. margin-right: 1.5rem;
  152. text-align: center;
  153. a{
  154. font-weight: 800;
  155. color: $white;
  156. font-size: 1.3rem;
  157. }
  158. &:after{
  159. display: block;
  160. content:url("../images/pictos/noun_Arrow_3771902.svg")
  161. }
  162. }
  163. }
  164. }
  165. // bandeau actus
  166. .block-views-blockactus-blocks-pages-block-1{
  167. grid-area: actus;
  168. width: 100vw;
  169. border-bottom: 5px solid $blue-light;
  170. border-top: 5px solid $blue-light;
  171. .view-actus-blocks-pages{
  172. .view-content{
  173. display: grid;
  174. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  175. margin: auto;
  176. padding-top: 2rem;
  177. padding-bottom: 4rem;
  178. .views-row:nth-of-type(1) { grid-column: 2; }
  179. .node-type-actualite{
  180. color: $black;
  181. line-height: 1.5rem;
  182. padding: 0.5rem;
  183. div:first-child{ // block actu dans le bandeau
  184. display: flex;
  185. flex-direction: column;
  186. :nth-child(1) { order: 1; }
  187. :nth-child(4) { order: 2; }
  188. :nth-child(5) { order: 3; }
  189. }
  190. .field--name-field-images {
  191. .field__item img{
  192. max-width: 70%;
  193. max-height: 150px;
  194. object-fit: cover;
  195. width: 100%;
  196. padding-bottom: 1rem;
  197. }
  198. }
  199. time{
  200. font-size: 0.9rem;
  201. font-weight: 800;
  202. padding-right: 1rem;
  203. width: fit-content;
  204. &:after{
  205. padding-left: 0.5rem;
  206. content: "|";}
  207. }
  208. .field:not(.field--name-field-images){
  209. width: 100%;
  210. }
  211. h2{ margin:0; }
  212. a{ color: $black; }
  213. .inline.links{
  214. padding-top: none !important;
  215. list-style: none;
  216. width: fit-content;
  217. align-self: flex-end;
  218. padding-right: 1rem;
  219. a{
  220. display: none;
  221. }
  222. }
  223. .field--name-field-actu-type{
  224. padding-top: 1rem;
  225. }
  226. }
  227. }
  228. }
  229. }
  230. // bouton voir toutes actus du bandeau bleu
  231. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  232. grid-area: actus;
  233. grid-row: 4;
  234. grid-column: 5 / span 6;
  235. width: fit-content;
  236. margin-bottom: 2rem;
  237. align-self: end;
  238. .field--type-link {
  239. width: fit-content;
  240. height: fit-content;
  241. padding: 0.4rem 1rem;
  242. font-size: 0.8rem;
  243. margin: 0;
  244. background-color: $white;
  245. border: 2px solid $blue-light;
  246. list-style: none;
  247. a{
  248. text-transform: uppercase;
  249. font-weight: 700;
  250. color: $blue-light;
  251. }
  252. a::after{
  253. 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>');
  254. }
  255. }
  256. }
  257. // présentation programme
  258. .block-views-blockhome-nodes-block-2{
  259. grid-area: programme;
  260. .view-display-id-block_2:is(.view-id-home_nodes){
  261. padding-top: 2rem;
  262. background: url('../images/pictos/carre-contour-bleu.svg');
  263. background-repeat: no-repeat;
  264. max-width: 100vw;
  265. background-size: cover;
  266. .node-type-static{
  267. width: 70%;
  268. margin: auto;
  269. div:first-child:not(.field__item):not(.field){
  270. display: grid;
  271. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  272. grid-template-rows: 1fr 1fr 1fr 0.5fr 1fr 1fr;
  273. }
  274. .inline.links{
  275. grid-row: 3;
  276. grid-column: 5 / span 6;
  277. width: fit-content;
  278. height: fit-content;
  279. padding: 0.4rem 1rem;
  280. font-size: 0.8rem;
  281. margin: 0;
  282. background-color: $white;
  283. border: 2px solid $blue-light;
  284. list-style: none;
  285. align-self: end;
  286. a{
  287. text-transform: uppercase;
  288. font-weight: 700;
  289. color: $blue-light;
  290. &:after{
  291. // display: block;
  292. 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>');
  293. }
  294. }
  295. }
  296. .field--name-field-images{
  297. grid-column: 1;
  298. grid-row: 1;
  299. width: fit-content;
  300. .field__item{
  301. img{
  302. width: 15rem;
  303. height: auto;
  304. }
  305. }
  306. }
  307. .field--name-title{
  308. display: none;
  309. }
  310. .field--name-field-accroche{
  311. grid-column: 2 / 6;
  312. grid-row: 1 /span 3;
  313. padding-left: 1rem;
  314. p{
  315. background-color: $white;
  316. font-size: 1.5rem;
  317. width: 110%;
  318. margin-bottom: 2rem;
  319. padding-bottom: 2rem;
  320. margin-block-start: 0;
  321. }
  322. }
  323. .field--name-field-videos{
  324. grid-column: 1 / span 5;
  325. grid-row: 5 / span 6;
  326. height: fit-content;
  327. }
  328. }
  329. }
  330. }
  331. }
  332. }