_home.scss 23 KB

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