_home.scss 15 KB

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