_home.scss 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  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: 6.9rem;
  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. align-items: center;
  85. &:after{
  86. display: block;
  87. 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>');
  88. }
  89. }
  90. }
  91. }
  92. }
  93. @media (max-width: 375px){
  94. .node-type-static{
  95. div:first-child{
  96. display: grid;
  97. grid-template-columns: 1fr ;
  98. grid-template-rows: repeat(4, auto);
  99. .field--name-field-images{
  100. display: none;
  101. }
  102. .field--name-field-accroche{
  103. grid-column: 2 /span 3;
  104. grid-row: 2 / span 2;
  105. font-size: 5rem;
  106. font-weight: 900;
  107. color: $blue-light;
  108. line-height: 6.9rem;
  109. margin-top: 2rem;
  110. margin-bottom: 5rem;
  111. width: fit-content;
  112. p{
  113. margin-top: 4rem;
  114. margin-bottom: 0;
  115. }
  116. span {
  117. background-color: $white;
  118. }
  119. }
  120. .field--name-title{
  121. grid-column: 4;
  122. grid-row: 2;
  123. margin-top: 3rem;
  124. h2{
  125. background-color: $white;
  126. a{
  127. color: #e1000f;
  128. font-weight: 900;
  129. text-transform: uppercase;
  130. font-family: "Source Code Pro";
  131. display: table;
  132. margin: 0px auto 0px auto;
  133. // background-color: $white;
  134. }
  135. }
  136. }
  137. .links.inline{
  138. grid-column: 2;
  139. grid-row: 4;
  140. max-width: 70%;
  141. min-width: fit-content;
  142. height: 1.5rem;
  143. padding: 0.4rem 1rem;
  144. font-size: 0.8rem;
  145. margin-bottom: 2.5rem;
  146. background-color: $white;
  147. border: 2px solid $blue-light;
  148. list-style: none;
  149. text-align: center !important;
  150. a{
  151. display: inline-flex;
  152. text-transform: uppercase;
  153. font-weight: 700;
  154. color: $blue-light;
  155. align-items: center;
  156. &:after{
  157. display: block;
  158. 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>');
  159. }
  160. }
  161. }
  162. }
  163. }
  164. }
  165. }
  166. // bouton déposer candidature
  167. .block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
  168. grid-area: presentation;
  169. grid-column: 3 /span 4;
  170. grid-row: 1;
  171. align-self: end;
  172. margin-bottom: 2.5rem;
  173. max-width: 25%;
  174. min-width: fit-content;
  175. .field--type-link {
  176. grid-column: 3;
  177. // justify-self: end;
  178. position: relative;
  179. // max-width: 70%;
  180. // min-width: fit-content;
  181. height: 1.5rem;
  182. padding: 0.4rem 1rem;
  183. font-size: 0.8rem;
  184. margin: 0;
  185. background-color: $white;
  186. border: 2px solid $blue-light;
  187. list-style: none;
  188. top: -200%;
  189. text-align: center !important;
  190. a{
  191. display: inline-flex;
  192. text-transform: uppercase;
  193. font-weight: 700;
  194. color: $blue-light;
  195. align-items: center;
  196. .ext{
  197. display: none;
  198. }
  199. }
  200. a::after{
  201. 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>');
  202. }
  203. }
  204. }
  205. // bouton foire aux questions
  206. .block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  207. grid-area: presentation;
  208. grid-column: 5;
  209. grid-row: 1;
  210. background-color: $blue-light;
  211. height: fit-content;
  212. align-self: end;
  213. .field--name-field-lien{
  214. &:before{
  215. margin-top: 1rem;
  216. display: block;
  217. content: url("../images/pictos/picto_faq.svg");
  218. }
  219. text-align: center;
  220. a{
  221. font-size: 0.8rem;
  222. font-weight: 1000;
  223. color: $blue-dark;
  224. text-transform: uppercase;
  225. }
  226. }
  227. .field--name-field-description{
  228. margin-bottom: 1rem;
  229. p{
  230. margin-top: 0;
  231. margin-bottom: 0;
  232. margin-left: 1.5rem;
  233. margin-right: 1.5rem;
  234. text-align: center;
  235. a{
  236. font-weight: 800;
  237. color: $white;
  238. font-size: 1.3rem;
  239. }
  240. }
  241. }
  242. }
  243. .block-block-content7db64d87-3e22-4fbd-9c11-2b95f5bef695{
  244. grid-column: 5;
  245. grid-row: 1;
  246. height: fit-content;
  247. display: flex;
  248. justify-self: end;
  249. width: 50%;
  250. margin-top: 3rem;
  251. .field--name-body{
  252. justify-content: right;
  253. display: flex;
  254. flex-direction: column;
  255. text-transform: uppercase;
  256. text-align: right;
  257. font-size: 1.3rem;
  258. :nth-child(1){
  259. &:after{
  260. display: block;
  261. content: url("../images/pictos/noun_Arrow_3771902-rouge.svg");
  262. transform: rotate(90deg);
  263. height: fit-content;
  264. position: relative;
  265. top: -30px;
  266. right: -60px;
  267. }
  268. }
  269. :nth-child(2){
  270. font-size: 2.5rem;
  271. font-weight: 900;
  272. }
  273. }
  274. }
  275. // bandeau actus
  276. .block-views-blockactus-blocks-pages-block-1{
  277. grid-area: actus;
  278. width: 100vw;
  279. border-bottom: 5px solid $blue-light;
  280. border-top: 5px solid $blue-light;
  281. background: $background-actus;
  282. .view-actus-blocks-pages{
  283. .view-content{
  284. display: grid;
  285. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  286. margin: auto;
  287. padding-top: 2rem;
  288. padding-bottom: 4rem;
  289. @media (max-width: 479px){
  290. display: flex;
  291. padding-left: 1rem;
  292. width: 80%;
  293. }
  294. .views-row:nth-of-type(1) { grid-column: 2; }
  295. .node-type-actualite{
  296. color: $black;
  297. line-height: 1.5rem;
  298. padding: 0.5rem;
  299. div:first-child{ // block actu dans le bandeau
  300. display: flex;
  301. flex-direction: column;
  302. :nth-child(1) { order: 1; }
  303. :nth-child(4) { order: 2; }
  304. :nth-child(5) { order: 3; }
  305. }
  306. .field--name-field-images {
  307. .field__item img{
  308. max-width: 95%;
  309. max-height: 150px;
  310. object-fit: cover;
  311. width: 100%;
  312. padding-bottom: 1rem;
  313. }
  314. }
  315. .field--name-field-date{
  316. display: flex;
  317. flex-direction: row-reverse;
  318. justify-content: flex-end;
  319. &:not(:last-child):after{
  320. padding-right: 1rem;
  321. content: "|";
  322. }
  323. time{
  324. font-size: 0.9rem;
  325. font-weight: 800;
  326. padding-right: 1rem;
  327. width: fit-content;
  328. // :not(:last-child):after{
  329. // padding-left: 0.5rem;
  330. // content: "|";
  331. // }
  332. }
  333. }
  334. .field:not(.field--name-field-images){
  335. width: 100%;
  336. }
  337. h2{ margin:0; }
  338. a{ color: $black; }
  339. .inline.links{
  340. padding-top: none !important;
  341. list-style: none;
  342. width: fit-content;
  343. align-self: flex-end;
  344. padding-right: 1rem;
  345. a{
  346. display: none;
  347. }
  348. }
  349. .field--name-field-actu-type{
  350. padding-top: 1rem;
  351. }
  352. }
  353. }
  354. }
  355. }
  356. // bouton voir toutes actus du bandeau bleu
  357. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  358. grid-area: actus;
  359. grid-row: 4;
  360. grid-column: 5 / span 6;
  361. max-width: 50%;
  362. min-width: fit-content;
  363. margin-bottom: 2rem;
  364. align-self: end;
  365. @media (max-width: 479px){
  366. grid-column: 3 / span 6;
  367. }
  368. .field--type-link {
  369. width: fit-content;
  370. height: fit-content;
  371. padding: 0.4rem 1rem;
  372. font-size: 0.8rem;
  373. margin: 0;
  374. background-color: $white;
  375. border: 2px solid $blue-light;
  376. list-style: none;
  377. display: inline-flex;
  378. a{
  379. text-transform: uppercase;
  380. font-weight: 700;
  381. color: $blue-light;
  382. display: inline-flex;
  383. align-items: center;
  384. }
  385. a::after{
  386. 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>');
  387. }
  388. }
  389. }
  390. // présentation programme
  391. .block-views-blockhome-nodes-block-2{
  392. grid-area: programme;
  393. .view-display-id-block_2:is(.view-id-home_nodes){
  394. padding-top: 2rem;
  395. // 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>');
  396. background: url('../images/pictos/carre-contour-bleu.svg');
  397. // background-position-y: 50%;
  398. background-repeat: no-repeat;
  399. max-width: 100vw;
  400. background-size: cover;
  401. .node-type-static{
  402. width: 70%;
  403. margin: auto;
  404. div:first-child:not(.field__item):not(.field){
  405. display: flex;
  406. flex-direction: row;
  407. flex-wrap: wrap;
  408. :nth-child(4) { order: 3; }
  409. }
  410. .inline.links{
  411. z-index: 95;
  412. align-self: flex-end;
  413. width: fit-content;
  414. height: fit-content;
  415. padding: 0.4rem 1rem;
  416. font-size: 0.8rem;
  417. margin: 0;
  418. background-color: $white;
  419. border: 2px solid $blue-light;
  420. list-style: none;
  421. a{
  422. text-transform: uppercase;
  423. font-weight: 700;
  424. color: $blue-light;
  425. display: inline-flex;
  426. align-items: center;
  427. &:after{
  428. // display: block;
  429. 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>');
  430. }
  431. }
  432. }
  433. .field--name-field-images{
  434. // grid-column: 2 / 4;
  435. .field__item{
  436. img{
  437. width: 15rem;
  438. height: auto;
  439. }
  440. }
  441. }
  442. .field--name-title{
  443. display: none;
  444. }
  445. .field--name-field-accroche{
  446. flex: 1 1 50px;
  447. // grid-column: 4 / 9;
  448. padding-left: 1rem;
  449. p{
  450. background-color: $white;
  451. font-size: 1.5rem;
  452. width: 110%;
  453. padding-bottom: 2rem;
  454. margin-block-start: 0;
  455. text-align: start !important;
  456. }
  457. }
  458. .field--name-field-videos{
  459. flex: 0 0 80%;
  460. padding-top: 4rem;
  461. margin: auto;
  462. }
  463. }
  464. }
  465. }
  466. }
  467. }