_home.scss 14 KB

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