_home.scss 29 KB

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