_home.scss 15 KB

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