_home.scss 15 KB

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