@politicalwatch/tipi-uikit 1.0.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/.browserslistrc +2 -0
  2. package/.editorconfig +7 -0
  3. package/.eslintrc.js +11 -0
  4. package/.postcssrc.json +5 -0
  5. package/.prettierrc.js +7 -0
  6. package/.storybook/main.js +19 -0
  7. package/.storybook/preview.js +17 -0
  8. package/.stylelintrc +24 -0
  9. package/README.md +21 -0
  10. package/dist/bng-890acecf.mjs +29 -0
  11. package/dist/coalicioncanaria-6f4c1db4.mjs +18 -0
  12. package/dist/compromis-5ea8e904.mjs +23 -0
  13. package/dist/cs-de2f22f8.mjs +21 -0
  14. package/dist/cup-83f9d201.mjs +25 -0
  15. package/dist/ehbildu-23275d48.mjs +25 -0
  16. package/dist/encomu-90f0f0ee.mjs +23 -0
  17. package/dist/erc-83cebd9f.mjs +33 -0
  18. package/dist/foroasturias-c86ed9f1.mjs +27 -0
  19. package/dist/iu-0d57eb1a.mjs +23 -0
  20. package/dist/jxcat-69202004.mjs +23 -0
  21. package/dist/maspais-a61a53ef.mjs +21 -0
  22. package/dist/nuevacanaria-559edad7.mjs +21 -0
  23. package/dist/pdecat-0ec3db5a.mjs +21 -0
  24. package/dist/pnv-7f6f4b34.mjs +29 -0
  25. package/dist/podemos-de793077.mjs +21 -0
  26. package/dist/pp-13bed712.mjs +25 -0
  27. package/dist/prc-8a3d42c1.mjs +29 -0
  28. package/dist/psoe-97af3ccf.mjs +21 -0
  29. package/dist/style.css +1 -0
  30. package/dist/sumar-7dfecef0.mjs +29 -0
  31. package/dist/teruelexiste-7d4a17ab.mjs +21 -0
  32. package/dist/tipi-uikit.es.js +26196 -0
  33. package/dist/tipi-uikit.umd.js +134 -0
  34. package/dist/unidaspodemos-43ae78cc.mjs +18 -0
  35. package/dist/upn-e7eb332f.mjs +35 -0
  36. package/dist/vox-64380b40.mjs +25 -0
  37. package/package.json +57 -0
  38. package/src/assets/.gitkeep +0 -0
  39. package/src/assets/birthday_bg.png +0 -0
  40. package/src/assets/index.js +64 -0
  41. package/src/assets/party_logos/bildu.png +0 -0
  42. package/src/assets/party_logos/bng.png +0 -0
  43. package/src/assets/party_logos/ca.jpeg +0 -0
  44. package/src/assets/party_logos/ciudadanos.png +0 -0
  45. package/src/assets/party_logos/compromis.jpg +0 -0
  46. package/src/assets/party_logos/cup.png +0 -0
  47. package/src/assets/party_logos/eajpnv.png +0 -0
  48. package/src/assets/party_logos/encomupodem.jpg +0 -0
  49. package/src/assets/party_logos/erc.png +0 -0
  50. package/src/assets/party_logos/fac.png +0 -0
  51. package/src/assets/party_logos/icon/bng.svg +4 -0
  52. package/src/assets/party_logos/icon/coalicioncanaria.svg +7 -0
  53. package/src/assets/party_logos/icon/compromis.svg +3 -0
  54. package/src/assets/party_logos/icon/cs.svg +3 -0
  55. package/src/assets/party_logos/icon/cup.svg +4 -0
  56. package/src/assets/party_logos/icon/ehbildu.svg +4 -0
  57. package/src/assets/party_logos/icon/encomu.svg +3 -0
  58. package/src/assets/party_logos/icon/erc.svg +5 -0
  59. package/src/assets/party_logos/icon/foroasturias.svg +4 -0
  60. package/src/assets/party_logos/icon/iu.svg +3 -0
  61. package/src/assets/party_logos/icon/jxcat.svg +3 -0
  62. package/src/assets/party_logos/icon/maspais.svg +3 -0
  63. package/src/assets/party_logos/icon/nuevacanaria.svg +3 -0
  64. package/src/assets/party_logos/icon/party-error.svg +3 -0
  65. package/src/assets/party_logos/icon/pdecat.svg +3 -0
  66. package/src/assets/party_logos/icon/pnv.svg +4 -0
  67. package/src/assets/party_logos/icon/podemos.svg +3 -0
  68. package/src/assets/party_logos/icon/pp.svg +4 -0
  69. package/src/assets/party_logos/icon/prc.svg +5 -0
  70. package/src/assets/party_logos/icon/psoe.svg +3 -0
  71. package/src/assets/party_logos/icon/sumar.svg +73 -0
  72. package/src/assets/party_logos/icon/teruelexiste.svg +3 -0
  73. package/src/assets/party_logos/icon/unidaspodemos.svg +27 -0
  74. package/src/assets/party_logos/icon/upn.svg +5 -0
  75. package/src/assets/party_logos/icon/vox.svg +4 -0
  76. package/src/assets/party_logos/iu.png +0 -0
  77. package/src/assets/party_logos/jxcat.png +0 -0
  78. package/src/assets/party_logos/mas-pais.jpg +0 -0
  79. package/src/assets/party_logos/nueva_canarias.png +0 -0
  80. package/src/assets/party_logos/pdecat.png +0 -0
  81. package/src/assets/party_logos/podemos.jpg +0 -0
  82. package/src/assets/party_logos/pp.png +0 -0
  83. package/src/assets/party_logos/prc.png +0 -0
  84. package/src/assets/party_logos/psc.png +0 -0
  85. package/src/assets/party_logos/pse-ee.png +0 -0
  86. package/src/assets/party_logos/psoe.png +0 -0
  87. package/src/assets/party_logos/teruelexiste.svg +4 -0
  88. package/src/assets/party_logos/unidaspodemos.png +0 -0
  89. package/src/assets/party_logos/upn.jpg +0 -0
  90. package/src/assets/party_logos/vox.png +0 -0
  91. package/src/assets/svg/icon-advanced.svg +3 -0
  92. package/src/assets/svg/icon-bell.svg +3 -0
  93. package/src/assets/svg/icon-birthday.svg +18 -0
  94. package/src/assets/svg/icon-building.svg +3 -0
  95. package/src/assets/svg/icon-calendar.svg +4 -0
  96. package/src/assets/svg/icon-chevron-down.svg +3 -0
  97. package/src/assets/svg/icon-chevron-left.svg +3 -0
  98. package/src/assets/svg/icon-chevron-right.svg +3 -0
  99. package/src/assets/svg/icon-chevron-up.svg +3 -0
  100. package/src/assets/svg/icon-clock.svg +4 -0
  101. package/src/assets/svg/icon-close-menu.svg +3 -0
  102. package/src/assets/svg/icon-close.svg +3 -0
  103. package/src/assets/svg/icon-conversation.svg +3 -0
  104. package/src/assets/svg/icon-denied.svg +3 -0
  105. package/src/assets/svg/icon-document.svg +4 -0
  106. package/src/assets/svg/icon-download.svg +3 -0
  107. package/src/assets/svg/icon-error.svg +3 -0
  108. package/src/assets/svg/icon-footprint.svg +3 -0
  109. package/src/assets/svg/icon-github.svg +9 -0
  110. package/src/assets/svg/icon-hamburger.svg +1 -0
  111. package/src/assets/svg/icon-info.svg +3 -0
  112. package/src/assets/svg/icon-less.svg +3 -0
  113. package/src/assets/svg/icon-location.svg +3 -0
  114. package/src/assets/svg/icon-logout.svg +13 -0
  115. package/src/assets/svg/icon-mail.svg +4 -0
  116. package/src/assets/svg/icon-more.svg +5 -0
  117. package/src/assets/svg/icon-open-blank.svg +3 -0
  118. package/src/assets/svg/icon-plus.svg +3 -0
  119. package/src/assets/svg/icon-search.svg +4 -0
  120. package/src/assets/svg/icon-success.svg +3 -0
  121. package/src/assets/svg/icon-twitter.svg +3 -0
  122. package/src/assets/svg/icon-upload.svg +3 -0
  123. package/src/assets/svg/icons.js +67 -0
  124. package/src/components/CSVDownload/CSVDownload.vue +146 -0
  125. package/src/components/Charts/Barchart/d3.barchart.js +484 -0
  126. package/src/components/Charts/Barchart/d3.barchart.vue +16 -0
  127. package/src/components/Charts/Sliceschart/d3.sliceschart.js +372 -0
  128. package/src/components/Charts/Sliceschart/d3.sliceschart.vue +20 -0
  129. package/src/components/Charts/Sunburst/d3.sunburst.js +412 -0
  130. package/src/components/Charts/Sunburst/d3.sunburst.vue +23 -0
  131. package/src/components/Charts/WordsCloud/d3.wordscloud.js +332 -0
  132. package/src/components/Charts/WordsCloud/d3.wordscloud.vue +16 -0
  133. package/src/components/Charts/d3.chart.js +242 -0
  134. package/src/components/Charts/d3.chart.vue +81 -0
  135. package/src/components/Charts/styles.scss +92 -0
  136. package/src/components/CongressLink/CongressLink.vue +19 -0
  137. package/src/components/Deputy/Deputy.vue +106 -0
  138. package/src/components/Header/Header.vue +19 -0
  139. package/src/components/Icon/Icon.vue +30 -0
  140. package/src/components/InitiativeCard/InitiativeCard.vue +94 -0
  141. package/src/components/InitiativeMeta/InitiativeMeta.vue +79 -0
  142. package/src/components/Loader/Loader.vue +23 -0
  143. package/src/components/Message/Message.vue +27 -0
  144. package/src/components/Navbar/Navbar.vue +117 -0
  145. package/src/components/Neuron/Neuron.vue +211 -0
  146. package/src/components/PartyLogo/PartyLogo.vue +58 -0
  147. package/src/components/PartyLogo/PartyLogoIcon.vue +239 -0
  148. package/src/components/Results/Results.vue +114 -0
  149. package/src/components/Splash/Splash.vue +43 -0
  150. package/src/components/Text/Text.vue +69 -0
  151. package/src/components/TipiCharts/TipiBarchart.vue +204 -0
  152. package/src/components/TopicCard/TopicCard.vue +52 -0
  153. package/src/components/TopicLink/TopicLink.vue +37 -0
  154. package/src/components/TopicPill/TopicPill.vue +67 -0
  155. package/src/components/Topics/Topics.vue +79 -0
  156. package/src/components/TwoCircles/TwoCircles.vue +134 -0
  157. package/src/components/index.js +57 -0
  158. package/src/main.js +11 -0
  159. package/src/stories/CSVDownload.stories.js +245 -0
  160. package/src/stories/CongressLink.stories.js +21 -0
  161. package/src/stories/D3BarChart.stories.js +40 -0
  162. package/src/stories/D3SlicesChart.stories.js +64 -0
  163. package/src/stories/D3Sunburst.stories.js +293 -0
  164. package/src/stories/D3WordsCloud.stories.js +64 -0
  165. package/src/stories/Deputy.stories.js +168 -0
  166. package/src/stories/Header.stories.js +26 -0
  167. package/src/stories/Icon.stories.js +25 -0
  168. package/src/stories/InitiativeCard.stories.js +58 -0
  169. package/src/stories/InitiativeMeta.stories.js +37 -0
  170. package/src/stories/Loader.stories.js +25 -0
  171. package/src/stories/Message.stories.js +49 -0
  172. package/src/stories/Navbar.stories.js +85 -0
  173. package/src/stories/Neuron.stories.js +210 -0
  174. package/src/stories/PartyLogo.stories.js +21 -0
  175. package/src/stories/PartyLogoIcon.stories.js +21 -0
  176. package/src/stories/Results.stories.js +350 -0
  177. package/src/stories/Splash.stories.js +25 -0
  178. package/src/stories/Text.stories.js +46 -0
  179. package/src/stories/TopicCard.stories.js +775 -0
  180. package/src/stories/TopicLink.stories.js +778 -0
  181. package/src/stories/TopicPill.stories.js +46 -0
  182. package/src/stories/Topics.stories.js +80 -0
  183. package/src/stories/TwoCircles.stories.js +144 -0
  184. package/src/stories/mocks.js +153 -0
  185. package/src/styles/01_settings/_settings__breakpoints.scss +28 -0
  186. package/src/styles/01_settings/_settings__colors.scss +30 -0
  187. package/src/styles/01_settings/_settings__fonts.scss +3 -0
  188. package/src/styles/01_settings/_settings__icons.scss +0 -0
  189. package/src/styles/01_settings/_settings__variables.scss +45 -0
  190. package/src/styles/02_tools/_tools__functions.scss +19 -0
  191. package/src/styles/02_tools/_tools__mixins.scss +321 -0
  192. package/src/styles/03_generic/_generic__box-sizing.scss +12 -0
  193. package/src/styles/03_generic/_generic__global.scss +20 -0
  194. package/src/styles/03_generic/_generic__normalize.scss +371 -0
  195. package/src/styles/04_base/_base__anchors.scss +8 -0
  196. package/src/styles/04_base/_base__blockquotes.scss +10 -0
  197. package/src/styles/04_base/_base__forms.scss +32 -0
  198. package/src/styles/04_base/_base__headings.scss +23 -0
  199. package/src/styles/04_base/_base__images.scss +4 -0
  200. package/src/styles/04_base/_base__lists.scss +66 -0
  201. package/src/styles/04_base/_base__paragraphs.scss +11 -0
  202. package/src/styles/04_base/_base__tables.scss +95 -0
  203. package/src/styles/05_objects/_objects__columns.scss +29 -0
  204. package/src/styles/05_objects/_objects__container.scss +19 -0
  205. package/src/styles/05_objects/_objects__grid.scss +57 -0
  206. package/src/styles/05_objects/_objects__masonry.scss +11 -0
  207. package/src/styles/05_objects/_objects__media.scss +24 -0
  208. package/src/styles/05_objects/_objects__section.scss +21 -0
  209. package/src/styles/06_components/_components__button.scss +178 -0
  210. package/src/styles/06_components/_components__congress-link.scss +12 -0
  211. package/src/styles/06_components/_components__decorator.scss +10 -0
  212. package/src/styles/06_components/_components__deputy.scss +177 -0
  213. package/src/styles/06_components/_components__disclaimer.scss +24 -0
  214. package/src/styles/06_components/_components__forms.scss +454 -0
  215. package/src/styles/06_components/_components__header.scss +37 -0
  216. package/src/styles/06_components/_components__icon.scss +27 -0
  217. package/src/styles/06_components/_components__initiative-card.scss +49 -0
  218. package/src/styles/06_components/_components__initiative-meta.scss +91 -0
  219. package/src/styles/06_components/_components__loader.scss +125 -0
  220. package/src/styles/06_components/_components__menu.scss +110 -0
  221. package/src/styles/06_components/_components__message.scss +66 -0
  222. package/src/styles/06_components/_components__navbar.scss +114 -0
  223. package/src/styles/06_components/_components__party-logo.scss +21 -0
  224. package/src/styles/06_components/_components__splash.scss +29 -0
  225. package/src/styles/06_components/_components__text.scss +69 -0
  226. package/src/styles/06_components/_components__topic-card.scss +40 -0
  227. package/src/styles/06_components/_components__topic-link.scss +37 -0
  228. package/src/styles/06_components/_components__topics.scss +107 -0
  229. package/src/styles/07_trumps/_trumps__borders.scss +1 -0
  230. package/src/styles/07_trumps/_trumps__colors.scss +3 -0
  231. package/src/styles/07_trumps/_trumps__grid.scss +1 -0
  232. package/src/styles/07_trumps/_trumps__helpers.scss +17 -0
  233. package/src/styles/07_trumps/_trumps__texts.scss +39 -0
  234. package/src/styles/07_trumps/_trumps__visibility.scss +56 -0
  235. package/src/styles/main.scss +54 -0
  236. package/src/utils/index.js +26 -0
  237. package/svgo.config.js +16 -0
  238. package/vite.config.js +54 -0
@@ -0,0 +1,46 @@
1
+ import TipiTopicPill from '@/components/TopicPill/TopicPill.vue';
2
+ import { topicsStyles } from './mocks';
3
+
4
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
5
+ export default {
6
+ title: 'Example/TipiTopicPill',
7
+ component: TipiTopicPill,
8
+ tags: ['autodocs'],
9
+
10
+ argTypes: {
11
+ topics: {
12
+ type: 'array',
13
+ },
14
+ topicsStyles: {
15
+ type: 'object',
16
+ },
17
+ withLinks: {
18
+ type: 'boolean',
19
+ },
20
+ limit: {
21
+ type: 'number',
22
+ },
23
+ order: {
24
+ type: 'boolean',
25
+ },
26
+ },
27
+ };
28
+
29
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
30
+ export const Primary = {
31
+ args: {
32
+ topics: [
33
+ 'ODS 1 Fin de la pobreza',
34
+ 'ODS 16 Paz, justicia e instituciones sólidas',
35
+ 'ODS 5 Igualdad de género',
36
+ ],
37
+ topicsStyles,
38
+ },
39
+ };
40
+
41
+ export const Unrelated = {
42
+ args: {
43
+ topics: [],
44
+ topicsStyles,
45
+ },
46
+ };
@@ -0,0 +1,80 @@
1
+ import { vueRouter } from 'storybook-vue3-router';
2
+ import TipiTopics from '@/components/Topics/Topics.vue';
3
+ import { topicsStyles } from './mocks';
4
+
5
+ const customRoutes = [
6
+ {
7
+ path: '/',
8
+ name: 'home',
9
+ component: TipiTopics,
10
+ },
11
+ {
12
+ path: '/results',
13
+ name: 'results',
14
+ component: TipiTopics,
15
+ },
16
+ {
17
+ path: '/initiative/:id',
18
+ name: 'initiative',
19
+ params: { id: '161-000792' },
20
+ component: TipiTopics,
21
+ },
22
+ ];
23
+
24
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
25
+ export default {
26
+ title: 'Example/TipiTopics',
27
+ component: TipiTopics,
28
+ decorators: [vueRouter(customRoutes)],
29
+ tags: ['autodocs'],
30
+
31
+ argTypes: {
32
+ meta: {
33
+ type: 'text',
34
+ },
35
+ topics: {
36
+ type: 'array',
37
+ },
38
+ tags: {
39
+ type: 'array',
40
+ },
41
+ topicsStyles: {
42
+ type: 'object',
43
+ },
44
+ },
45
+ };
46
+
47
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
48
+ export const Primary = {
49
+ args: {
50
+ meta: 'ODS tratados',
51
+ topics: ['ODS 16 Paz, justicia e instituciones sólidas', 'ODS 5 Igualdad de género'],
52
+ tags: [
53
+ {
54
+ topic: 'ODS 16 Paz, justicia e instituciones sólidas',
55
+ subtopic: '16.1 Redución de la violencia',
56
+ tag: 'Violencia de género',
57
+ times: 1,
58
+ },
59
+ {
60
+ topic: 'ODS 16 Paz, justicia e instituciones sólidas',
61
+ subtopic: '16.a Fortalecimiento de las instituciones de seguridad',
62
+ tag: 'Prevención de la violencia y la delincuencia',
63
+ times: 1,
64
+ },
65
+ {
66
+ topic: 'ODS 5 Igualdad de género',
67
+ subtopic: '5.2 Acabar con la violencia contra las mujeres',
68
+ tag: 'Ley 1/2004',
69
+ times: 1,
70
+ },
71
+ {
72
+ topic: 'ODS 5 Igualdad de género',
73
+ subtopic: '5.2 Acabar con la violencia contra las mujeres',
74
+ tag: 'Violencia de género',
75
+ times: 1,
76
+ },
77
+ ],
78
+ topicsStyles,
79
+ },
80
+ };
@@ -0,0 +1,144 @@
1
+ import TipiTwoCircles from '@/components/TwoCircles/TwoCircles.vue';
2
+
3
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
4
+ export default {
5
+ title: 'Example/TipiTwoCircles',
6
+ component: TipiTwoCircles,
7
+ tags: ['autodocs'],
8
+
9
+ argTypes: {
10
+ selection: {
11
+ type: 'object',
12
+ },
13
+ styles: {
14
+ type: 'object',
15
+ },
16
+ topic: {
17
+ type: 'text',
18
+ },
19
+ },
20
+ };
21
+
22
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
23
+ export const Primary = {
24
+ args: {
25
+ selection: {
26
+ compareswith: { _id: 'ODS 3 Salud y bienestar', initiatives: 2223 },
27
+ selected: { _id: 'ODS 1 Fin de la pobreza', initiatives: 844 },
28
+ },
29
+ styles: {
30
+ topics: {
31
+ 'ODS 1 Fin de la pobreza': {
32
+ shortname: 'ODS 1',
33
+ color: '#eb1c2d',
34
+ image: 'ods-1.svg',
35
+ orgs_logos: ['caritas.png'],
36
+ },
37
+ 'ODS 2 Hambre cero': {
38
+ shortname: 'ODS 2',
39
+ color: '#d3a029',
40
+ image: 'ods-2.svg',
41
+ orgs_logos: ['fao.png'],
42
+ },
43
+ 'ODS 3 Salud y bienestar': {
44
+ shortname: 'ODS 3',
45
+ color: '#4c9f38',
46
+ image: 'ods-3.svg',
47
+ orgs_logos: ['salud_por_der.png', 'isglobal.png'],
48
+ },
49
+ 'ODS 4 Educación de calidad': {
50
+ shortname: 'ODS 4',
51
+ color: '#c52333',
52
+ image: 'ods-4.svg',
53
+ orgs_logos: ['cmi.png'],
54
+ },
55
+ 'ODS 5 Igualdad de género': {
56
+ shortname: 'ODS 5',
57
+ color: '#ed4135',
58
+ image: 'ods-5.svg',
59
+ orgs_logos: ['cedawsombra.png', 'coordinadora.png', 'fpfe_g.png'],
60
+ },
61
+ 'ODS 6 Agua limpia y saneamiento': {
62
+ shortname: 'ODS 6',
63
+ color: '#00aed9',
64
+ image: 'ods-6.svg',
65
+ orgs_logos: ['catedra-aquae.png', 'ongawa.png'],
66
+ },
67
+ 'ODS 7 Energía asequible y no contaminante': {
68
+ shortname: 'ODS 7',
69
+ color: '#fdb713',
70
+ image: 'ods-7.svg',
71
+ orgs_logos: ['esf.png'],
72
+ },
73
+ 'ODS 8 Trabajo decente y crecimiento económico': {
74
+ shortname: 'ODS 8',
75
+ color: '#8f1838',
76
+ image: 'ods-8.svg',
77
+ orgs_logos: ['ccoo.png'],
78
+ },
79
+ 'ODS 9 Industria, innovación e infraestructura': {
80
+ shortname: 'ODS 9',
81
+ color: '#f06a38',
82
+ image: 'ods-9.svg',
83
+ orgs_logos: ['foretica.png'],
84
+ },
85
+ 'ODS 10 Reducción de las desigualdades': {
86
+ shortname: 'ODS 10',
87
+ color: '#dd1367',
88
+ image: 'ods-10.svg',
89
+ orgs_logos: ['congde.png', 'caritas.png'],
90
+ },
91
+ 'ODS 11 Ciudades y comunidades sostenibles': {
92
+ shortname: 'ODS 11',
93
+ color: '#f69c39',
94
+ image: 'ods-11.svg',
95
+ orgs_logos: ['idl_uam.png', 'itgespub.png'],
96
+ },
97
+ 'ODS 12 Producción y consumo responsables': {
98
+ shortname: 'ODS 12',
99
+ color: '#cf8d2a',
100
+ image: 'ods-12.svg',
101
+ orgs_logos: ['hispacoop.png'],
102
+ },
103
+ 'ODS 13 Acción por el clima': {
104
+ shortname: 'ODS 13',
105
+ color: '#48773e',
106
+ image: 'ods-13.svg',
107
+ orgs_logos: ['wwf.png'],
108
+ },
109
+ 'ODS 14 Vida submarina': {
110
+ shortname: 'ODS 14',
111
+ color: '#007dbc',
112
+ image: 'ods-14.svg',
113
+ orgs_logos: ['oceana.png'],
114
+ },
115
+ 'ODS 15 Vida de ecosistemas terrestres': {
116
+ shortname: 'ODS 15',
117
+ color: '#5cb84d',
118
+ image: 'ods-15.svg',
119
+ orgs_logos: ['greenpeace.png'],
120
+ },
121
+ 'ODS 16 Paz, justicia e instituciones sólidas': {
122
+ shortname: 'ODS 16',
123
+ color: '#02558b',
124
+ image: 'ods-16.svg',
125
+ orgs_logos: [],
126
+ },
127
+ 'ODS 17 Alianzas para lograr los objetivos': {
128
+ shortname: 'ODS 17',
129
+ color: '#183668',
130
+ image: 'ods-17.svg',
131
+ orgs_logos: ['mauec.png'],
132
+ },
133
+ 'no-topic': { shortname: 'Sin relación con la Agenda2030' },
134
+ },
135
+ subtopics: {
136
+ '1.1 Erradicar la pobreza extrema': { color: '#eb1c2d', image: 'ods-01.svg' },
137
+ '1.2 Niveles nacionales de pobreza': { color: '#eb1c2d', image: 'ods-01.svg' },
138
+ },
139
+ defaultColor: '#cecece',
140
+ defaultImage: 'placeholder.png',
141
+ },
142
+ topic: 'ODS 1 Fin de la pobreza',
143
+ },
144
+ };
@@ -0,0 +1,153 @@
1
+ export const initiative = {
2
+ tagged: [
3
+ {
4
+ knowledgebase: 'ods',
5
+ topics: ['ODS 16 Paz, justicia e instituciones sólidas', 'ODS 5 Igualdad de género'],
6
+ tags: [
7
+ {
8
+ topic: 'ODS 16 Paz, justicia e instituciones sólidas',
9
+ subtopic: '16.1 Redución de la violencia',
10
+ tag: 'Violencia de género',
11
+ times: 1,
12
+ },
13
+ {
14
+ topic: 'ODS 16 Paz, justicia e instituciones sólidas',
15
+ subtopic: '16.a Fortalecimiento de las instituciones de seguridad',
16
+ tag: 'Prevención de la violencia y la delincuencia',
17
+ times: 1,
18
+ },
19
+ {
20
+ topic: 'ODS 5 Igualdad de género',
21
+ subtopic: '5.2 Acabar con la violencia contra las mujeres',
22
+ tag: 'Ley 1/2004',
23
+ times: 1,
24
+ },
25
+ {
26
+ topic: 'ODS 5 Igualdad de género',
27
+ subtopic: '5.2 Acabar con la violencia contra las mujeres',
28
+ tag: 'Violencia de género',
29
+ times: 1,
30
+ },
31
+ ],
32
+ },
33
+ ],
34
+ title: 'Proposición no de Ley sobre lucha contra la violencia de género en el ámbito digital.',
35
+ status: 'En tramitación',
36
+ reference: '161/000792',
37
+ authors: ['Grupo Parlamentario Socialista'],
38
+ deputies: [],
39
+ id: '161-000792',
40
+ place: 'Comisión de Igualdad',
41
+ url: 'https://www.congreso.es/es/busqueda-de-iniciativas?p_p_id=iniciativas&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_iniciativas_mode=mostrarDetalle&_iniciativas_legislatura=XV&_iniciativas_id=161%2F000792',
42
+ created: '2024-05-10T00:00:00+00:00',
43
+ oldid: 'e351228585d59fe61d31d7590de8f386a9288e2d',
44
+ initiative_type: '161',
45
+ initiative_type_alt: 'Proposición no de Ley en Comisión',
46
+ updated: '2024-05-14T00:00:00+00:00',
47
+ };
48
+
49
+ export const topicsStyles = {
50
+ 'ODS 1 Fin de la pobreza': {
51
+ shortname: 'ODS 1',
52
+ color: '#eb1c2d',
53
+ image: 'ods-1.svg',
54
+ orgs_logos: ['caritas.png'],
55
+ },
56
+ 'ODS 2 Hambre cero': {
57
+ shortname: 'ODS 2',
58
+ color: '#d3a029',
59
+ image: 'ods-2.svg',
60
+ orgs_logos: ['fao.png'],
61
+ },
62
+ 'ODS 3 Salud y bienestar': {
63
+ shortname: 'ODS 3',
64
+ color: '#4c9f38',
65
+ image: 'ods-3.svg',
66
+ orgs_logos: ['salud_por_der.png', 'isglobal.png'],
67
+ },
68
+ 'ODS 4 Educación de calidad': {
69
+ shortname: 'ODS 4',
70
+ color: '#c52333',
71
+ image: 'ods-4.svg',
72
+ orgs_logos: ['cmi.png'],
73
+ },
74
+ 'ODS 5 Igualdad de género': {
75
+ shortname: 'ODS 5',
76
+ color: '#ed4135',
77
+ image: 'ods-5.svg',
78
+ orgs_logos: ['cedawsombra.png', 'coordinadora.png', 'fpfe_g.png'],
79
+ },
80
+ 'ODS 6 Agua limpia y saneamiento': {
81
+ shortname: 'ODS 6',
82
+ color: '#00aed9',
83
+ image: 'ods-6.svg',
84
+ orgs_logos: ['catedra-aquae.png', 'ongawa.png'],
85
+ },
86
+ 'ODS 7 Energía asequible y no contaminante': {
87
+ shortname: 'ODS 7',
88
+ color: '#fdb713',
89
+ image: 'ods-7.svg',
90
+ orgs_logos: ['esf.png'],
91
+ },
92
+ 'ODS 8 Trabajo decente y crecimiento económico': {
93
+ shortname: 'ODS 8',
94
+ color: '#8f1838',
95
+ image: 'ods-8.svg',
96
+ orgs_logos: ['ccoo.png'],
97
+ },
98
+ 'ODS 9 Industria, innovación e infraestructura': {
99
+ shortname: 'ODS 9',
100
+ color: '#f06a38',
101
+ image: 'ods-9.svg',
102
+ orgs_logos: ['foretica.png'],
103
+ },
104
+ 'ODS 10 Reducción de las desigualdades': {
105
+ shortname: 'ODS 10',
106
+ color: '#dd1367',
107
+ image: 'ods-10.svg',
108
+ orgs_logos: ['congde.png', 'caritas.png'],
109
+ },
110
+ 'ODS 11 Ciudades y comunidades sostenibles': {
111
+ shortname: 'ODS 11',
112
+ color: '#f69c39',
113
+ image: 'ods-11.svg',
114
+ orgs_logos: ['idl_uam.png', 'itgespub.png'],
115
+ },
116
+ 'ODS 12 Producción y consumo responsables': {
117
+ shortname: 'ODS 12',
118
+ color: '#cf8d2a',
119
+ image: 'ods-12.svg',
120
+ orgs_logos: ['hispacoop.png'],
121
+ },
122
+ 'ODS 13 Acción por el clima': {
123
+ shortname: 'ODS 13',
124
+ color: '#48773e',
125
+ image: 'ods-13.svg',
126
+ orgs_logos: ['wwf.png'],
127
+ },
128
+ 'ODS 14 Vida submarina': {
129
+ shortname: 'ODS 14',
130
+ color: '#007dbc',
131
+ image: 'ods-14.svg',
132
+ orgs_logos: ['oceana.png'],
133
+ },
134
+ 'ODS 15 Vida de ecosistemas terrestres': {
135
+ shortname: 'ODS 15',
136
+ color: '#5cb84d',
137
+ image: 'ods-15.svg',
138
+ orgs_logos: ['greenpeace.png'],
139
+ },
140
+ 'ODS 16 Paz, justicia e instituciones sólidas': {
141
+ shortname: 'ODS 16',
142
+ color: '#02558b',
143
+ image: 'ods-16.svg',
144
+ orgs_logos: [],
145
+ },
146
+ 'ODS 17 Alianzas para lograr los objetivos': {
147
+ shortname: 'ODS 17',
148
+ color: '#183668',
149
+ image: 'ods-17.svg',
150
+ orgs_logos: ['mauec.png'],
151
+ },
152
+ 'no-topic': { shortname: 'Sin relación con la Agenda2030' },
153
+ };
@@ -0,0 +1,28 @@
1
+ $xs: 450px !default;
2
+ $sm: 768px !default;
3
+ $md: 992px !default;
4
+ $lg: 1024px !default;
5
+ $xl: 1200px !default;
6
+
7
+ $xxs-max: $xs - 0.1 !default;
8
+ $xs-max: $sm - 0.1 !default;
9
+ $sm-max: $md - 0.1 !default;
10
+ $md-max: $lg - 0.1 !default;
11
+ $lg-max: $xl - 0.1 !default;
12
+
13
+ $breakpoints: (
14
+ xs: $xs,
15
+ sm: $sm,
16
+ md: $md,
17
+ lg: $lg,
18
+ xl: $xl
19
+ ) !default;
20
+
21
+ $breakpoints-max: (
22
+ max-xs: $xs-max,
23
+ max-sm: $sm-max,
24
+ max-md: $md-max,
25
+ max-lg: $lg-max
26
+ ) !default;
27
+
28
+ $breakpoint-class: '\\@' !default;
@@ -0,0 +1,30 @@
1
+ $primary: #ff6565 !default;
2
+ $black: #000 !default;
3
+ $white: #fff !default;
4
+ $neutral: #ddd !default;
5
+ $secondary: #9cb0bf !default;
6
+ $secondary-dark: #2d4252 !default;
7
+ $secondary-light: #f4f6f8 !default;
8
+ $primary-dark: #d64949 !default;
9
+ $primary-light: #ffe0e0 !default;
10
+ $error: #e81c1c !default;
11
+ $completed: #4dca7f !default;
12
+
13
+ $colors: (
14
+ "primary": $primary,
15
+ "primary-dark": $primary-dark,
16
+ "primary-light": $primary-light,
17
+ "secondary": $secondary,
18
+ "secondary-dark": $secondary-dark,
19
+ "secondary-light": $secondary-light,
20
+ "error": $error,
21
+ "white": $white,
22
+ "black": $black,
23
+ "completed": $completed,
24
+ "neutral": $neutral,
25
+ ) !default;
26
+
27
+ $navbar-background-color: $white !default;
28
+ $menu-link-color: $secondary-dark !default;
29
+ $navbar-toogle-color: $secondary-dark !default;
30
+ $topic-pill-color: $white !default;
@@ -0,0 +1,3 @@
1
+ @import url('https://fonts.googleapis.com/css?family=Rubik:300,400,500&display=swap');
2
+
3
+ $font-primary: 'Rubik', sans-serif !default;
File without changes
@@ -0,0 +1,45 @@
1
+ $base-radius: 4px;
2
+
3
+ $o-container: 1120px !default;
4
+ $o-container__gutter: 32px !default;
5
+ $o-container__gutter-single: calc($o-container__gutter / 2) !default;
6
+ $container-max: $o-container + $o-container__gutter !default;
7
+
8
+ $grid-gap: 32px !default;
9
+ $grid-gap-single: calc($grid-gap / 2) !default;
10
+
11
+ $spacer-unit: 8px !default;
12
+
13
+ $grid-fractions: (
14
+ '1': calc(1 / 12),
15
+ '2': calc(2 / 12),
16
+ '2-5': calc(2 / 10),
17
+ '3': calc(3 / 12),
18
+ '4': calc(4 / 12),
19
+ '5': calc(5 / 12),
20
+ '6': calc(6 / 12),
21
+ '7': calc(7 / 12),
22
+ '8': calc(8 / 12),
23
+ '9': calc(9 / 12),
24
+ '10': calc(10 / 12),
25
+ '11': calc(11 / 12),
26
+ '12': calc(12 / 12)
27
+ ) !default;
28
+
29
+ $o-section-gap: $spacer-unit * 4 !default;
30
+ $o-section-gap-lg: $o-section-gap !default;
31
+
32
+ $percent-widths: (
33
+ 15,
34
+ 20,
35
+ 25,
36
+ 33,
37
+ 40,
38
+ 50
39
+ ) !default;
40
+
41
+ $logo-mobile-width: 200px !default;
42
+ $logo-desktop-width: 350px !default;
43
+ $decorator-mobile-height: $spacer-unit !default;
44
+ $decorator-desktop-height: $spacer-unit !default;
45
+ $topic-pill-separator: 0 !default;
@@ -0,0 +1,19 @@
1
+ /* GRID */
2
+ @function str-replace($string, $search, $replace) {
3
+ $index: str-index($string, $search);
4
+
5
+ @if $index {
6
+ @return str-slice($string, 1, $index - 1)+$replace+str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
7
+ }
8
+
9
+ @return $string;
10
+ }
11
+
12
+ /* TYPOGRAPHY */
13
+
14
+ /* Convert pixels to rem */
15
+ @function rem($size) {
16
+ $remSize: calc($size / 16px);
17
+
18
+ @return #{$remSize}rem;
19
+ }