_home.scss 22 KB

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