_home.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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. // bandeau actus
  161. .block-views-blockactus-blocks-pages-block-1{
  162. grid-area: actus;
  163. width: 100vw;
  164. border-bottom: 5px solid $blue-light;
  165. border-top: 5px solid $blue-light;
  166. .view-actus-blocks-pages{
  167. .view-content{
  168. display: grid;
  169. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  170. margin: auto;
  171. padding-top: 2rem;
  172. padding-bottom: 4rem;
  173. .views-row:nth-of-type(1) { grid-column: 2; }
  174. .node-type-actualite{
  175. color: $black;
  176. line-height: 1.5rem;
  177. padding: 0.5rem;
  178. div:first-child{ // block actu dans le bandeau
  179. display: flex;
  180. flex-direction: column;
  181. :nth-child(1) { order: 1; }
  182. :nth-child(4) { order: 2; }
  183. :nth-child(5) { order: 3; }
  184. }
  185. .field--name-field-images {
  186. .field__item img{
  187. max-width: 95%;
  188. max-height: 150px;
  189. object-fit: cover;
  190. width: 100%;
  191. padding-bottom: 1rem;
  192. }
  193. }
  194. time{
  195. font-size: 0.9rem;
  196. font-weight: 800;
  197. padding-right: 1rem;
  198. width: fit-content;
  199. &:after{
  200. padding-left: 0.5rem;
  201. content: "|";}
  202. }
  203. .field:not(.field--name-field-images){
  204. width: 100%;
  205. }
  206. h2{ margin:0; }
  207. a{ color: $black; }
  208. .inline.links{
  209. padding-top: none !important;
  210. list-style: none;
  211. width: fit-content;
  212. align-self: flex-end;
  213. padding-right: 1rem;
  214. a{
  215. display: none;
  216. }
  217. }
  218. .field--name-field-actu-type{
  219. padding-top: 1rem;
  220. }
  221. }
  222. }
  223. }
  224. }
  225. // bouton voir toutes actus du bandeau bleu
  226. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  227. grid-area: actus;
  228. grid-row: 4;
  229. grid-column: 5 / span 6;
  230. width: fit-content;
  231. margin-bottom: 2rem;
  232. align-self: end;
  233. .field--type-link {
  234. width: fit-content;
  235. height: fit-content;
  236. padding: 0.4rem 1rem;
  237. font-size: 0.8rem;
  238. margin: 0;
  239. background-color: $white;
  240. border: 2px solid $blue-light;
  241. list-style: none;
  242. a{
  243. text-transform: uppercase;
  244. font-weight: 700;
  245. color: $blue-light;
  246. }
  247. a::after{
  248. 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>');
  249. }
  250. }
  251. }
  252. // présentation programme
  253. .block-views-blockhome-nodes-block-2{
  254. grid-area: programme;
  255. .view-display-id-block_2:is(.view-id-home_nodes){
  256. padding-top: 2rem;
  257. // 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>');
  258. background: url('../images/pictos/carre-contour-bleu.svg');
  259. // background-position-y: 50%;
  260. background-repeat: no-repeat;
  261. max-width: 100vw;
  262. background-size: cover;
  263. .node-type-static{
  264. width: 70%;
  265. margin: auto;
  266. div:first-child:not(.field__item):not(.field){
  267. display: flex;
  268. flex-direction: row;
  269. flex-wrap: wrap;
  270. :nth-child(4) { order: 3; }
  271. }
  272. .inline.links{
  273. z-index: 95;
  274. align-self: flex-end;
  275. width: fit-content;
  276. height: fit-content;
  277. padding: 0.4rem 1rem;
  278. font-size: 0.8rem;
  279. margin: 0;
  280. background-color: $white;
  281. border: 2px solid $blue-light;
  282. list-style: none;
  283. a{
  284. text-transform: uppercase;
  285. font-weight: 700;
  286. color: $blue-light;
  287. &:after{
  288. // display: block;
  289. 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>');
  290. }
  291. }
  292. }
  293. .field--name-field-images{
  294. // grid-column: 2 / 4;
  295. .field__item{
  296. img{
  297. width: 15rem;
  298. height: auto;
  299. }
  300. }
  301. }
  302. .field--name-title{
  303. display: none;
  304. }
  305. .field--name-field-accroche{
  306. flex: 1 1 50px;
  307. // grid-column: 4 / 9;
  308. padding-left: 1rem;
  309. p{
  310. background-color: $white;
  311. font-size: 1.5rem;
  312. width: 110%;
  313. margin-bottom: 2rem;
  314. padding-bottom: 2rem;
  315. margin-block-start: 0;
  316. }
  317. }
  318. .field--name-field-videos{
  319. flex: 0 0 80%;
  320. padding-top: 4rem;
  321. margin: auto;
  322. }
  323. }
  324. }
  325. }
  326. }
  327. }