_home.scss 16 KB

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