_home.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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. .ext{
  117. display: none;
  118. }
  119. }
  120. a::after{
  121. 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>');
  122. }
  123. }
  124. }
  125. // bouton foire aux questions
  126. .block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  127. grid-area: presentation;
  128. grid-column: 5;
  129. grid-row: 1;
  130. background-color: $blue-light;
  131. height: fit-content;
  132. align-self: end;
  133. .field--name-field-lien{
  134. &:before{
  135. margin-top: 1rem;
  136. display: block;
  137. content: url("../images/pictos/picto_faq.svg");
  138. }
  139. text-align: center;
  140. a{
  141. font-size: 0.8rem;
  142. font-weight: 1000;
  143. color: $blue-dark;
  144. text-transform: uppercase;
  145. }
  146. }
  147. .field--name-field-description{
  148. margin-bottom: 1rem;
  149. p{
  150. margin-top: 0;
  151. margin-bottom: 0;
  152. margin-left: 1.5rem;
  153. margin-right: 1.5rem;
  154. text-align: center;
  155. a{
  156. font-weight: 800;
  157. color: $white;
  158. font-size: 1.3rem;
  159. }
  160. }
  161. }
  162. }
  163. .block-block-content7db64d87-3e22-4fbd-9c11-2b95f5bef695{
  164. grid-column: 5;
  165. grid-row: 1;
  166. height: fit-content;
  167. display: flex;
  168. justify-self: end;
  169. width: 50%;
  170. margin-top: 14rem;
  171. .field--name-body{
  172. justify-content: right;
  173. display: flex;
  174. flex-direction: column;
  175. text-transform: uppercase;
  176. text-align: right;
  177. font-size: 1.3rem;
  178. :nth-child(1){
  179. &:after{
  180. display: block;
  181. content: url("../images/pictos/noun_Arrow_3771902-rouge.svg");
  182. transform: rotate(90deg);
  183. height: fit-content;
  184. position: relative;
  185. top: -30px;
  186. right: -60px;
  187. }
  188. }
  189. :nth-child(2){
  190. font-size: 2.5rem;
  191. font-weight: 900;
  192. }
  193. }
  194. }
  195. // bandeau actus
  196. .block-views-blockactus-blocks-pages-block-1{
  197. grid-area: actus;
  198. width: 100vw;
  199. border-bottom: 5px solid $blue-light;
  200. border-top: 5px solid $blue-light;
  201. .view-actus-blocks-pages{
  202. .view-content{
  203. display: grid;
  204. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  205. margin: auto;
  206. padding-top: 2rem;
  207. padding-bottom: 4rem;
  208. .views-row:nth-of-type(1) { grid-column: 2; }
  209. .node-type-actualite{
  210. color: $black;
  211. line-height: 1.5rem;
  212. padding: 0.5rem;
  213. div:first-child{ // block actu dans le bandeau
  214. display: flex;
  215. flex-direction: column;
  216. :nth-child(1) { order: 1; }
  217. :nth-child(4) { order: 2; }
  218. :nth-child(5) { order: 3; }
  219. }
  220. .field--name-field-images {
  221. .field__item img{
  222. max-width: 95%;
  223. max-height: 150px;
  224. object-fit: cover;
  225. width: 100%;
  226. padding-bottom: 1rem;
  227. }
  228. }
  229. time{
  230. font-size: 0.9rem;
  231. font-weight: 800;
  232. padding-right: 1rem;
  233. width: fit-content;
  234. &:after{
  235. padding-left: 0.5rem;
  236. content: "|";}
  237. }
  238. .field:not(.field--name-field-images){
  239. width: 100%;
  240. }
  241. h2{ margin:0; }
  242. a{ color: $black; }
  243. .inline.links{
  244. padding-top: none !important;
  245. list-style: none;
  246. width: fit-content;
  247. align-self: flex-end;
  248. padding-right: 1rem;
  249. a{
  250. display: none;
  251. }
  252. }
  253. .field--name-field-actu-type{
  254. padding-top: 1rem;
  255. }
  256. }
  257. }
  258. }
  259. }
  260. // bouton voir toutes actus du bandeau bleu
  261. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  262. grid-area: actus;
  263. grid-row: 4;
  264. grid-column: 5 / span 6;
  265. width: fit-content;
  266. margin-bottom: 2rem;
  267. align-self: end;
  268. .field--type-link {
  269. width: fit-content;
  270. height: fit-content;
  271. padding: 0.4rem 1rem;
  272. font-size: 0.8rem;
  273. margin: 0;
  274. background-color: $white;
  275. border: 2px solid $blue-light;
  276. list-style: none;
  277. a{
  278. text-transform: uppercase;
  279. font-weight: 700;
  280. color: $blue-light;
  281. }
  282. a::after{
  283. 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>');
  284. }
  285. }
  286. }
  287. // présentation programme
  288. .block-views-blockhome-nodes-block-2{
  289. grid-area: programme;
  290. .view-display-id-block_2:is(.view-id-home_nodes){
  291. padding-top: 2rem;
  292. // 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>');
  293. background: url('../images/pictos/carre-contour-bleu.svg');
  294. // background-position-y: 50%;
  295. background-repeat: no-repeat;
  296. max-width: 100vw;
  297. background-size: cover;
  298. .node-type-static{
  299. width: 70%;
  300. margin: auto;
  301. div:first-child:not(.field__item):not(.field){
  302. display: flex;
  303. flex-direction: row;
  304. flex-wrap: wrap;
  305. :nth-child(4) { order: 3; }
  306. }
  307. .inline.links{
  308. z-index: 95;
  309. align-self: flex-end;
  310. width: fit-content;
  311. height: fit-content;
  312. padding: 0.4rem 1rem;
  313. font-size: 0.8rem;
  314. margin: 0;
  315. background-color: $white;
  316. border: 2px solid $blue-light;
  317. list-style: none;
  318. a{
  319. text-transform: uppercase;
  320. font-weight: 700;
  321. color: $blue-light;
  322. &:after{
  323. // display: block;
  324. 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>');
  325. }
  326. }
  327. }
  328. .field--name-field-images{
  329. // grid-column: 2 / 4;
  330. .field__item{
  331. img{
  332. width: 15rem;
  333. height: auto;
  334. }
  335. }
  336. }
  337. .field--name-title{
  338. display: none;
  339. }
  340. .field--name-field-accroche{
  341. flex: 1 1 50px;
  342. // grid-column: 4 / 9;
  343. padding-left: 1rem;
  344. p{
  345. background-color: $white;
  346. font-size: 1.5rem;
  347. width: 110%;
  348. margin-bottom: 2rem;
  349. padding-bottom: 2rem;
  350. margin-block-start: 0;
  351. }
  352. }
  353. .field--name-field-videos{
  354. flex: 0 0 80%;
  355. padding-top: 4rem;
  356. margin: auto;
  357. }
  358. }
  359. }
  360. }
  361. }
  362. }