_home.scss 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  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. "presentation presentation presentation presentation presentation presentation"
  8. "actus actus actus actus actus actus"
  9. "actus actus actus actus actus actus"
  10. "programme programme programme programme programme programme"
  11. "programme programme programme programme programme programme"
  12. "programme programme programme programme programme programme";
  13. grid-template-rows: auto auto auto;
  14. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  15. min-height: 100vh;
  16. // 1er bandeau home
  17. .block-config-pages-block{
  18. grid-area: presentation;
  19. width: 100%;
  20. height: 72vh;
  21. background: url("../images/pictos/rosace_coupee.svg");
  22. // background: url("../images/carre_site.mp4");
  23. background-position-y: top;
  24. background-position-x: center;
  25. background-repeat: no-repeat;
  26. background-size: cover;
  27. padding-bottom: 3rem;
  28. @media (max-width: 428px){
  29. height: 66vh;
  30. background-size: cover;
  31. background-position-y: top;
  32. background-position-x: left;
  33. }
  34. .config_pages--type--home-front{
  35. // width:20vw;
  36. // min-width: fit-content;
  37. // height: 20vw;
  38. width: 400px;
  39. height: 400px;
  40. min-height: fit-content;
  41. margin: auto;
  42. background-color: white;
  43. margin-top: 7rem;
  44. margin-left: 22%;
  45. margin-bottom: 5rem;
  46. padding: 4rem 2rem 4rem 2rem;
  47. // padding-left: 5%;
  48. // padding-right: 5%;
  49. // padding-bottom: 4rem;
  50. // padding-top: 4rem;
  51. @media (max-width: 428px){
  52. width: 300px;
  53. height: 200px;
  54. margin-left: 10%;
  55. padding: 3rem 5% 4rem 5%;
  56. margin-top: 5rem;
  57. }
  58. .field--name-field-titre{
  59. // font-size: 5rem;
  60. // font-weight: 900;
  61. // color: $blue-light;
  62. // line-height: 5.7rem;
  63. // margin-top: 4rem;
  64. // margin-bottom: 2rem;
  65. // width: fit-content;
  66. color: #e1000f;
  67. font-weight: 900;
  68. font-size: 1.5rem;
  69. text-transform: uppercase;
  70. font-family: "Source Code Pro";
  71. @media (max-width: 428px){
  72. font-size: 1.2rem;;
  73. }
  74. }
  75. .field--name-field-sous-titre{
  76. // color: #e1000f;
  77. // font-weight: 900;
  78. // font-size: 1.8rem;
  79. // text-transform: uppercase;
  80. // font-family: "Source Code Pro";
  81. font-size: 3rem;
  82. font-weight: 900;
  83. color: $blue-light;
  84. line-height: 4rem;
  85. margin-top: 3rem;
  86. margin-bottom: 2rem;
  87. width: fit-content;
  88. @media (max-width: 428px){
  89. font-size: 2.5rem;
  90. line-height: 3rem;
  91. margin-top: 1rem;
  92. }
  93. }
  94. .field--name-field-punchline{
  95. color: $blue-light;
  96. font-weight: 900;
  97. font-size: 1.5rem;
  98. text-transform: uppercase;
  99. font-family: "Source Code Pro";
  100. padding-bottom: 3rem;
  101. }
  102. .field--name-field-lien{
  103. position: relative;
  104. background-color: $white;
  105. border: 2px solid $blue-light;
  106. width: fit-content;
  107. height: 1.5rem;
  108. padding: 0.4rem 1rem;
  109. text-align: center !important;
  110. float: right;
  111. bottom: 0;
  112. a{
  113. display: inline-flex;
  114. text-transform: uppercase;
  115. font-weight: 700;
  116. color: $blue-light;
  117. align-items: center;
  118. &:after{
  119. display: block;
  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. }
  125. }
  126. .block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
  127. display: none;
  128. }
  129. .block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  130. display: none;
  131. }
  132. // .block-views-blockhome-nodes-block-1{
  133. // grid-area: presentation;
  134. // // grid-row: 1;
  135. // background: url("../images/pictos/forme_home_2.svg");
  136. // // background: url("../images/carre_site.mp4");
  137. // background-size: 75%;
  138. // background-position-y: bottom;
  139. // background-position-x: left;
  140. // background-repeat: no-repeat;
  141. // @media (max-width: 810px){
  142. // background: url("../images/pictos/forme_home_2_smartphone.svg");
  143. // background-size: 100%;
  144. // background-position-y: bottom;
  145. // background-position-x: left;
  146. // background-repeat: no-repeat;
  147. // }
  148. // .node-type-static{
  149. // div:first-child{
  150. // display: grid;
  151. // grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  152. // grid-template-rows: repeat(4, auto);
  153. // .field--name-field-images{
  154. // ///////////////// à activer le 19 février /////////////////
  155. // display: none;
  156. // //////////////////////////////////
  157. // grid-column: 4 / span 6;
  158. // grid-row: 2;
  159. // .field__item{
  160. // display: block;
  161. // width: 400px;
  162. // height: 400px;
  163. // @media (max-width: 1517px){
  164. // width: 300px;
  165. // height: 300px;
  166. // }
  167. // img{
  168. // max-width:100%;
  169. // max-height: 100%;
  170. // }
  171. // }
  172. // }
  173. // .field--name-field-accroche{
  174. // grid-column: 2 /span 2;
  175. // grid-row: 2 / span 2;
  176. // font-size: 5rem;
  177. // font-weight: 900;
  178. // color: $blue-light;
  179. // line-height: 6.9rem;
  180. // margin-top: 4rem;
  181. // margin-bottom: 5rem;
  182. // width: fit-content;
  183. // p{
  184. // margin-top: 0rem;
  185. // margin-bottom: 0;
  186. // }
  187. // span {
  188. // background-color: $white;
  189. // }
  190. // @media (max-width: 810px){
  191. // grid-column: 2 /span 5;
  192. // grid-row: 2;
  193. // font-size: 3rem;
  194. // line-height: 4.3rem;
  195. // margin-top: 0;
  196. // margin-bottom: 1rem;
  197. // p{
  198. // margin-top: 0rem;
  199. // }
  200. // }
  201. // }
  202. // .field--name-title{
  203. // // grid-column: 4;
  204. // // grid-row: 2;
  205. // grid-column: 2;
  206. // grid-row: 1 / span 2;
  207. // margin-top: 3rem;
  208. // margin-bottom: 2rem;
  209. // h2{
  210. // background-color: $white;
  211. // a{
  212. // color: #e1000f;
  213. // font-weight: 900;
  214. // text-transform: uppercase;
  215. // font-family: "Source Code Pro";
  216. // display: table;
  217. // margin: 0px auto 0px auto;
  218. // // background-color: $white;
  219. // }
  220. // }
  221. // @media (max-width: 1517px){
  222. // }
  223. // @media (max-width: 810px){
  224. // margin-top: 1rem;
  225. // grid-column: 2 / 6;
  226. // grid-row: 1;
  227. // }
  228. // }
  229. // .links.inline{
  230. // grid-column: 2;
  231. // grid-row: 4;
  232. // max-width: 70%;
  233. // min-width: fit-content;
  234. // height: 1.5rem;
  235. // padding: 0.4rem 1rem;
  236. // font-size: 0.8rem;
  237. // margin-bottom: 2.5rem;
  238. // background-color: $white;
  239. // border: 2px solid $blue-light;
  240. // list-style: none;
  241. // text-align: center !important;
  242. // a{
  243. // display: inline-flex;
  244. // text-transform: uppercase;
  245. // font-weight: 700;
  246. // color: $blue-light;
  247. // align-items: center;
  248. // &:after{
  249. // display: block;
  250. // 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>');
  251. // }
  252. // }
  253. // @media (max-width: 810px){
  254. // grid-column: 2;
  255. // grid-row:3;
  256. // font-size: 0.6rem;
  257. // a{
  258. // &:after{
  259. // display: none;
  260. // }
  261. // }
  262. // }
  263. // }
  264. // }
  265. // }
  266. // }
  267. // // bouton déposer candidature
  268. // .block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
  269. // ///////////////// à activer le 19 février /////////////////
  270. // display: none;
  271. // //////////////////////////////////
  272. // grid-area: presentation;
  273. // grid-column: 3 /span 4;
  274. // grid-row: 4;
  275. // align-self: flex-end;
  276. // margin-bottom: 2.5rem;
  277. // max-width: 25%;
  278. // min-width: fit-content;
  279. // .field--type-link {
  280. // grid-column: 3;
  281. // // justify-self: flex-end;
  282. // position: relative;
  283. // // max-width: 70%;
  284. // // min-width: fit-content;
  285. // height: 1.5rem;
  286. // padding: 0.4rem 1rem;
  287. // font-size: 0.8rem;
  288. // margin: 0;
  289. // background-color: $white;
  290. // border: 2px solid $blue-light;
  291. // list-style: none;
  292. // top: -200%;
  293. // text-align: center !important;
  294. // a{
  295. // display: inline-flex;
  296. // text-transform: uppercase;
  297. // font-weight: 700;
  298. // color: $blue-light;
  299. // align-items: center;
  300. // .ext{
  301. // display: none;
  302. // }
  303. // }
  304. // a::after{
  305. // 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>');
  306. // }
  307. // }
  308. // @media (max-width: 810px){
  309. // grid-area: presentation;
  310. // grid-column: 5;
  311. // grid-row: 4;
  312. // .field--type-link { font-size: 0.6rem;
  313. // a::after{
  314. // display: none;
  315. // }
  316. // }
  317. // }
  318. // }
  319. // // bouton foire aux questions
  320. // .block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  321. // ///////////////// à activer le 19 février /////////////////
  322. // display: none;
  323. // //////////////////////////////////
  324. // grid-area: presentation;
  325. // grid-column: 5 ;
  326. // grid-row: 4;
  327. // background-color: $blue-light;
  328. // height: fit-content;
  329. // align-self: flex-end;
  330. // max-width: 70%;
  331. // min-width: fit-content;
  332. // .field--name-field-lien{
  333. // &:before{
  334. // margin-top: 1rem;
  335. // display: block;
  336. // content: url("../images/pictos/picto_faq.svg");
  337. // }
  338. // text-align: center;
  339. // a{
  340. // font-size: 0.8rem;
  341. // font-weight: 1000;
  342. // color: $blue-dark;
  343. // text-transform: uppercase;
  344. // }
  345. // }
  346. // .field--name-field-description{
  347. // margin-bottom: 1rem;
  348. // p{
  349. // margin-top: 0;
  350. // margin-bottom: 0;
  351. // margin-left: 1.5rem;
  352. // margin-right: 1.5rem;
  353. // text-align: center;
  354. // a{
  355. // font-weight: 800;
  356. // color: $white;
  357. // font-size: 1.3rem;
  358. // }
  359. // }
  360. // }
  361. // @media (max-width: 810px){
  362. // .field--name-field-lien{
  363. // background-color: $white;
  364. // border: 2px solid $blue-light;
  365. // padding: 0.4rem 1rem;
  366. // &:before{display: none;}
  367. // a{
  368. // display: inline-flex;
  369. // text-transform: uppercase;
  370. // font-weight: 700;
  371. // color: $blue-light;
  372. // align-items: center;
  373. // font-size: 0.6rem;
  374. // }
  375. // a::after{
  376. // display: none;
  377. // }
  378. // }
  379. // .field--name-field-description{display: none;}
  380. // }
  381. // }
  382. // // date limite de candidature
  383. // .block-block-content7db64d87-3e22-4fbd-9c11-2b95f5bef695{
  384. // ///////////////// à activer le 19 février /////////////////
  385. // // display: none;
  386. // //////////////////////////////////
  387. // grid-column: 5;
  388. // grid-row: 1;
  389. // height: fit-content;
  390. // ///////////////// à désactiver le 19 février /////////////////
  391. // display: flex;
  392. // //////////////////////////////////
  393. // justify-self: flex-end;
  394. // width: 50%;
  395. // margin-top: 3rem;
  396. // .field--name-body{
  397. // justify-content: right;
  398. // display: flex;
  399. // flex-direction: column;
  400. // text-transform: uppercase;
  401. // text-align: right;
  402. // font-size: 1.3rem;
  403. // :nth-child(1){
  404. // &:after{
  405. // display: block;
  406. // content: url("../images/pictos/noun_Arrow_3771902-rouge.svg");
  407. // transform: rotate(90deg);
  408. // height: fit-content;
  409. // position: relative;
  410. // top: -30px;
  411. // right: -60px;
  412. // }
  413. // }
  414. // :nth-child(2){
  415. // font-size: 2.5rem;
  416. // font-weight: 900;
  417. // }
  418. // }
  419. // @media (max-width: 810px){
  420. // display: none;
  421. // grid-column: 2 / span 6;
  422. // grid-row: 3;
  423. // width: 100%;
  424. // margin-top:8rem;
  425. // .field--name-body{
  426. // justify-content: left;
  427. // display: flex;
  428. // flex-direction:row;
  429. // text-transform: uppercase;
  430. // text-align: left;
  431. // align-items: center;
  432. // font-size: 1rem;
  433. // font-weight: 800;
  434. // :nth-child(1){
  435. // width: 25%;
  436. // height: fit-content;
  437. // &:after{
  438. // display: inline-flex;
  439. // transform: rotate(360deg) translateX(80px) translateY(-6px) scale(50%);
  440. // }
  441. // }
  442. // :nth-child(2){
  443. // margin: 0;
  444. // text-align: right;
  445. // justify-self: flex-end;
  446. // font-size: 1.5rem;
  447. // margin-left: 5rem;
  448. // margin-top: 0.6rem;
  449. // margin-bottom: 2rem;
  450. // }
  451. // }
  452. // }
  453. // }
  454. // bandeau actus
  455. .block-views-blockactus-blocks-pages-block-1{
  456. grid-area: actus;
  457. width: 100vw;
  458. border-bottom: 5px solid $blue-light;
  459. border-top: 5px solid $blue-light;
  460. background: $background-actus;
  461. .view-actus-blocks-pages{
  462. .view-content{
  463. display: grid;
  464. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  465. margin: auto;
  466. padding-top: 2rem;
  467. padding-bottom: 4rem;
  468. @media (max-width: 479px){
  469. display: flex;
  470. padding-left: 1rem;
  471. width: 80%;
  472. }
  473. .views-row:nth-of-type(1) { grid-column: 2; }
  474. .node-type-actualite{
  475. color: $black;
  476. line-height: 1.5rem;
  477. padding: 0.5rem;
  478. div:first-child{ // block actu dans le bandeau
  479. display: flex;
  480. flex-direction: column;
  481. // :nth-child(1) { order: 1; }
  482. // :nth-child(4) { order: 2; }
  483. // :nth-child(5) { order: 3; }
  484. }
  485. .field--name-field-images {
  486. order: 1;
  487. .field__item img{
  488. max-width: 95%;
  489. max-height: 150px;
  490. object-fit: cover;
  491. width: 100%;
  492. padding-bottom: 1rem;
  493. }
  494. }
  495. .field--name-field-date{
  496. order: 2;
  497. display: flex;
  498. flex-direction: row;
  499. justify-content: flex-start;
  500. &:not(:last-child):after{
  501. padding-right: 1rem;
  502. content: "|";
  503. }
  504. time{
  505. font-size: 0.9rem;
  506. font-weight: 800;
  507. padding-right: 1rem;
  508. width: fit-content;
  509. // :not(:last-child):after{
  510. // padding-left: 0.5rem;
  511. // content: "|";
  512. // }
  513. }
  514. }
  515. .field--name-title{
  516. order:3;
  517. }
  518. .field--name-field-sous-titre{
  519. order:4;
  520. margin-top: 0.3rem;
  521. font-weight: 800;
  522. }
  523. .field:not(.field--name-field-images){
  524. width: 100%;
  525. }
  526. h2{ margin:0; }
  527. a{ color: $black; }
  528. .inline.links{
  529. padding-top: none !important;
  530. list-style: none;
  531. width: fit-content;
  532. align-self: flex-end;
  533. padding-right: 1rem;
  534. a{
  535. display: none;
  536. }
  537. }
  538. .field--name-field-actu-type{
  539. order:5;
  540. padding-top: 1rem;
  541. }
  542. }
  543. }
  544. }
  545. }
  546. // bouton voir toutes actus du bandeau bleu
  547. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  548. grid-area: actus;
  549. grid-row: 6;
  550. grid-column: 5 / span 6;
  551. max-width: 50%;
  552. min-width: fit-content;
  553. margin-bottom: 2rem;
  554. align-self: flex-end;
  555. @media (max-width: 479px){
  556. grid-column: 3 / span 6;
  557. }
  558. .field--type-link {
  559. width: fit-content;
  560. height: fit-content;
  561. padding: 0.4rem 1rem;
  562. font-size: 0.8rem;
  563. margin: 0;
  564. background-color: $white;
  565. border: 2px solid $blue-light;
  566. list-style: none;
  567. display: inline-flex;
  568. a{
  569. text-transform: uppercase;
  570. font-weight: 700;
  571. color: $blue-light;
  572. display: inline-flex;
  573. align-items: center;
  574. }
  575. a::after{
  576. 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>');
  577. }
  578. }
  579. }
  580. // présentation programme
  581. .block-views-blockhome-nodes-block-2{
  582. grid-area: programme;
  583. .view-display-id-block_2:is(.view-id-home_nodes){
  584. padding-top: 2rem;
  585. // 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>');
  586. background: url('../images/pictos/carre-contour-bleu.svg');
  587. // background-position-y: 50%;
  588. background-repeat: no-repeat;
  589. max-width: 100vw;
  590. background-size: cover;
  591. .node-type-static{
  592. width: 70%;
  593. margin: auto;
  594. div:first-child:not(.field__item):not(.field){
  595. display: flex;
  596. flex-direction: row;
  597. flex-wrap: wrap;
  598. :nth-child(4) { order: 3; }
  599. }
  600. .inline.links{
  601. z-index: 95;
  602. align-self: flex-end;
  603. width: fit-content;
  604. height: fit-content;
  605. padding: 0.4rem 1rem;
  606. font-size: 0.8rem;
  607. margin: 0;
  608. background-color: $white;
  609. border: 2px solid $blue-light;
  610. list-style: none;
  611. a{
  612. text-transform: uppercase;
  613. font-weight: 700;
  614. color: $blue-light;
  615. display: inline-flex;
  616. align-items: center;
  617. &:after{
  618. // display: block;
  619. 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>');
  620. }
  621. }
  622. }
  623. .field--name-field-images{
  624. // grid-column: 2 / 4;
  625. .field__item{
  626. img{
  627. width: 15rem;
  628. height: auto;
  629. }
  630. }
  631. }
  632. .field--name-title{
  633. display: none;
  634. }
  635. .field--name-field-accroche{
  636. flex: 1 1 50px;
  637. // grid-column: 4 / 9;
  638. padding-left: 1rem;
  639. p{
  640. background-color: $white;
  641. font-size: 1.5rem;
  642. width: 110%;
  643. padding-bottom: 2rem;
  644. margin-block-start: 0;
  645. text-align: start !important;
  646. }
  647. }
  648. .field--name-field-videos{
  649. flex: 0 0 80%;
  650. padding-top: 4rem;
  651. margin: auto;
  652. }
  653. }
  654. }
  655. }
  656. }
  657. }