_home.scss 21 KB

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