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