_home.scss 13 KB

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