_home.scss 21 KB

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