_home.scss 13 KB

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