@jjlmoya/utils-civic 1.8.0 → 1.9.0
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.
- package/.github/workflows/ci.yml +103 -0
- package/.gitignore +1 -0
- package/package.json +17 -5
- package/scripts/postinstall.mjs +2 -4
- package/src/category/index.ts +2 -1
- package/src/components/ProductionBreadcrumb.astro +132 -0
- package/src/components/ProductionWidget.astro +182 -0
- package/src/entries.ts +2 -0
- package/src/i18n/header-ui.ts +15 -0
- package/src/i18n/language-ui.ts +9 -0
- package/src/i18n/languages.ts +24 -0
- package/src/identity/brands.ts +5 -0
- package/src/index.ts +1 -0
- package/src/layouts/ProductionCategoryPage.astro +184 -0
- package/src/layouts/ProductionPage.astro +209 -0
- package/src/layouts/ProductionUtilityPage.astro +235 -0
- package/src/mfe/assets.ts +15 -0
- package/src/mfe/category-ui.ts +25 -0
- package/src/mfe/routes.ts +50 -0
- package/src/pages/[locale]/[utilities]/[categories]/[category]/[slug].astro +100 -0
- package/src/pages/[locale]/[utilities]/[categories]/[category].astro +44 -0
- package/src/pages/index.astro +1 -1
- package/src/pages/utilidades/[slug].astro +90 -0
- package/src/pages/utilidades/categorias/[category].astro +38 -0
- package/src/tests/locale_completeness.test.ts +1 -1
- package/src/tests/tool_validation.test.ts +1 -1
- package/src/tool/access-to-information-request-builder/access-to-information-request-builder.css +577 -0
- package/src/tool/access-to-information-request-builder/bibliography.astro +6 -0
- package/src/tool/access-to-information-request-builder/bibliography.ts +6 -0
- package/src/tool/access-to-information-request-builder/component.astro +106 -0
- package/src/tool/access-to-information-request-builder/contract.test.ts +17 -0
- package/src/tool/access-to-information-request-builder/controller.ts +135 -0
- package/src/tool/access-to-information-request-builder/dom-views.ts +59 -0
- package/src/tool/access-to-information-request-builder/entry.ts +27 -0
- package/src/tool/access-to-information-request-builder/evaluator.ts +27 -0
- package/src/tool/access-to-information-request-builder/i18n/de.ts +52 -0
- package/src/tool/access-to-information-request-builder/i18n/en.ts +76 -0
- package/src/tool/access-to-information-request-builder/i18n/es.ts +52 -0
- package/src/tool/access-to-information-request-builder/i18n/fr.ts +50 -0
- package/src/tool/access-to-information-request-builder/i18n/id.ts +50 -0
- package/src/tool/access-to-information-request-builder/i18n/it.ts +50 -0
- package/src/tool/access-to-information-request-builder/i18n/ja.ts +50 -0
- package/src/tool/access-to-information-request-builder/i18n/ko.ts +50 -0
- package/src/tool/access-to-information-request-builder/i18n/nl.ts +49 -0
- package/src/tool/access-to-information-request-builder/i18n/pl.ts +49 -0
- package/src/tool/access-to-information-request-builder/i18n/pt.ts +49 -0
- package/src/tool/access-to-information-request-builder/i18n/ru.ts +49 -0
- package/src/tool/access-to-information-request-builder/i18n/sv.ts +49 -0
- package/src/tool/access-to-information-request-builder/i18n/tr.ts +49 -0
- package/src/tool/access-to-information-request-builder/i18n/zh.ts +49 -0
- package/src/tool/access-to-information-request-builder/index.ts +11 -0
- package/src/tool/access-to-information-request-builder/logic.test.ts +68 -0
- package/src/tool/access-to-information-request-builder/logic.ts +138 -0
- package/src/tool/access-to-information-request-builder/seo.astro +15 -0
- package/src/tool/access-to-information-request-builder/storage.ts +27 -0
- package/src/tool/access-to-information-request-builder/ui.ts +154 -0
- package/src/tool/access-to-information-request-builder/validation.ts +7 -0
- package/src/tools.ts +2 -0
- package/src/types.ts +2 -4
- package/src/worker.ts +9 -0
- package/tsconfig.json +14 -5
- package/src/pages/[locale]/[slug].astro +0 -166
- package/src/pages/[locale].astro +0 -253
package/src/tools.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { VOTE_SEAT_DISPROPORTIONALITY_ANALYZER_TOOL } from './tool/vote-seat-dis
|
|
|
8
8
|
import { PARTICIPATORY_BUDGET_ALLOCATOR_TOOL } from './tool/participatory-budget-allocator';
|
|
9
9
|
import { PUBLIC_BUDGET_ANALYZER_TOOL } from './tool/public-budget-analyzer';
|
|
10
10
|
import { PARLIAMENTARY_VOTING_ANALYZER_TOOL } from './tool/parliamentary-voting-analyzer';
|
|
11
|
+
import { ACCESS_TO_INFORMATION_REQUEST_BUILDER_TOOL } from './tool/access-to-information-request-builder';
|
|
11
12
|
|
|
12
13
|
export const ALL_TOOLS: ToolDefinition[] = [
|
|
13
14
|
COALITION_MAJORITY_CALCULATOR_TOOL,
|
|
@@ -18,4 +19,5 @@ export const ALL_TOOLS: ToolDefinition[] = [
|
|
|
18
19
|
PARTICIPATORY_BUDGET_ALLOCATOR_TOOL,
|
|
19
20
|
PUBLIC_BUDGET_ANALYZER_TOOL,
|
|
20
21
|
PARLIAMENTARY_VOTING_ANALYZER_TOOL,
|
|
22
|
+
ACCESS_TO_INFORMATION_REQUEST_BUILDER_TOOL,
|
|
21
23
|
];
|
package/src/types.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { SEOSection } from '@jjlmoya/utils-shared';
|
|
2
|
+
import type { UtilityLocale } from '@jjlmoya/utils-shared/routing';
|
|
2
3
|
|
|
3
4
|
export type { SEOSection };
|
|
4
5
|
|
|
5
|
-
export type KnownLocale =
|
|
6
|
-
| 'ar' | 'da' | 'de' | 'en' | 'es' | 'fi'
|
|
7
|
-
| 'fr' | 'id' | 'it' | 'ja' | 'ko' | 'nb' | 'nl'
|
|
8
|
-
| 'pl' | 'pt' | 'ru' | 'sv' | 'tr' | 'zh';
|
|
6
|
+
export type KnownLocale = UtilityLocale;
|
|
9
7
|
|
|
10
8
|
export interface FAQItem {
|
|
11
9
|
question: string;
|
package/src/worker.ts
ADDED
package/tsconfig.json
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "astro/tsconfigs/strictest",
|
|
3
|
-
"include": [
|
|
3
|
+
"include": [
|
|
4
|
+
"src/**/*",
|
|
5
|
+
".astro/types.d.ts"
|
|
6
|
+
],
|
|
4
7
|
"compilerOptions": {
|
|
5
8
|
"baseUrl": ".",
|
|
6
9
|
"strictNullChecks": true,
|
|
7
10
|
"noImplicitAny": true,
|
|
8
11
|
"strict": true,
|
|
9
|
-
"types": [
|
|
12
|
+
"types": [
|
|
13
|
+
"astro/client",
|
|
14
|
+
"astro/jsx-runtime"
|
|
15
|
+
],
|
|
10
16
|
"jsx": "preserve",
|
|
11
|
-
"jsxImportSource": "astro"
|
|
17
|
+
"jsxImportSource": "astro",
|
|
18
|
+
"resolveJsonModule": true
|
|
12
19
|
},
|
|
13
|
-
"exclude": [
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules",
|
|
22
|
+
"dist"
|
|
23
|
+
]
|
|
14
24
|
}
|
|
15
|
-
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import PreviewLayout from "../../layouts/PreviewLayout.astro";
|
|
3
|
-
import PreviewNavSidebar from "../../components/PreviewNavSidebar.astro";
|
|
4
|
-
import { ALL_TOOLS } from "../../index";
|
|
5
|
-
import {
|
|
6
|
-
UtilityHeader,
|
|
7
|
-
FAQSection,
|
|
8
|
-
Bibliography,
|
|
9
|
-
SEORenderer,
|
|
10
|
-
} from "@jjlmoya/utils-shared";
|
|
11
|
-
import type { KnownLocale, ToolLocaleContent } from "../../types";
|
|
12
|
-
import type { UtilitySEOContent } from "@jjlmoya/utils-shared";
|
|
13
|
-
import type { AstroComponentFactory } from "astro/runtime/server/index.js";
|
|
14
|
-
|
|
15
|
-
export async function getStaticPaths() {
|
|
16
|
-
const paths = [];
|
|
17
|
-
|
|
18
|
-
for (const { entry, Component: lazyComp } of ALL_TOOLS) {
|
|
19
|
-
const { default: Component } = await (lazyComp as () => Promise<{ default: AstroComponentFactory }>)();
|
|
20
|
-
const localeEntries = Object.entries(entry.i18n) as [
|
|
21
|
-
KnownLocale,
|
|
22
|
-
() => Promise<ToolLocaleContent>,
|
|
23
|
-
][];
|
|
24
|
-
const localeContents = await Promise.all(
|
|
25
|
-
localeEntries.map(async ([locale, loader]) => ({
|
|
26
|
-
locale,
|
|
27
|
-
content: await loader(),
|
|
28
|
-
})),
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
const localeUrls = Object.fromEntries(
|
|
32
|
-
localeContents.map(({ locale, content }) => [
|
|
33
|
-
locale,
|
|
34
|
-
`/${locale}/${content.slug}`,
|
|
35
|
-
]),
|
|
36
|
-
) as Partial<Record<KnownLocale, string>>;
|
|
37
|
-
|
|
38
|
-
const firstLoader = entry.i18n.en ?? Object.values(entry.i18n)[0];
|
|
39
|
-
const englishSlug = firstLoader ? (await firstLoader()).slug : entry.id;
|
|
40
|
-
|
|
41
|
-
for (const { locale, content } of localeContents) {
|
|
42
|
-
const allToolsNav = (
|
|
43
|
-
await Promise.all(
|
|
44
|
-
ALL_TOOLS.map(async ({ entry: navEntry }) => {
|
|
45
|
-
const loader = navEntry.i18n[locale] ?? navEntry.i18n.en;
|
|
46
|
-
if (!loader) return null;
|
|
47
|
-
const navContent = await loader();
|
|
48
|
-
return {
|
|
49
|
-
id: navEntry.id,
|
|
50
|
-
title: navContent.title,
|
|
51
|
-
href: `/${locale}/${navContent.slug}`,
|
|
52
|
-
isActive: navEntry.id === entry.id,
|
|
53
|
-
};
|
|
54
|
-
}),
|
|
55
|
-
)
|
|
56
|
-
).filter(Boolean) as NavItem[];
|
|
57
|
-
paths.push({
|
|
58
|
-
params: { locale, slug: content.slug },
|
|
59
|
-
props: { Component, locale, content, localeUrls, allToolsNav, englishSlug },
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return paths;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface NavItem {
|
|
68
|
-
id: string;
|
|
69
|
-
title: string;
|
|
70
|
-
href: string;
|
|
71
|
-
isActive?: boolean;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
type PageProps = {
|
|
75
|
-
Component: AstroComponentFactory;
|
|
76
|
-
locale: KnownLocale;
|
|
77
|
-
content: ToolLocaleContent;
|
|
78
|
-
localeUrls: Partial<Record<KnownLocale, string>>;
|
|
79
|
-
allToolsNav: NavItem[];
|
|
80
|
-
englishSlug: string;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const { Component, locale, content, localeUrls, allToolsNav, englishSlug } = Astro.props as PageProps;
|
|
84
|
-
|
|
85
|
-
const cssFiles = import.meta.glob<string>("../../tool/*/*.css", { query: "?raw", import: "default" });
|
|
86
|
-
const cssKey = Object.keys(cssFiles).find((k) => k.endsWith(`/${englishSlug}.css`));
|
|
87
|
-
const cssLoader = cssKey ? cssFiles[cssKey] : undefined;
|
|
88
|
-
const toolCss = cssLoader ? await cssLoader() : "";
|
|
89
|
-
|
|
90
|
-
const seoContent: UtilitySEOContent = { locale, sections: content.seo ?? [] };
|
|
91
|
-
|
|
92
|
-
const words = content.title.split(/\s+/).filter(Boolean);
|
|
93
|
-
const titleParts = words.length > 1
|
|
94
|
-
? [words[0] || "", words.slice(1).join(" ")]
|
|
95
|
-
: [content.title.slice(0, Math.ceil(content.title.length / 2)), content.title.slice(Math.ceil(content.title.length / 2))];
|
|
96
|
-
const titleHighlight = titleParts[0] || "";
|
|
97
|
-
const titleBase = titleParts[1] || "";
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
<PreviewLayout
|
|
101
|
-
title={content.title}
|
|
102
|
-
currentLocale={locale}
|
|
103
|
-
localeUrls={localeUrls}
|
|
104
|
-
hasSidebar={true}
|
|
105
|
-
>
|
|
106
|
-
<PreviewNavSidebar
|
|
107
|
-
slot="sidebar"
|
|
108
|
-
categoryTitle="Tools"
|
|
109
|
-
tools={allToolsNav}
|
|
110
|
-
/>
|
|
111
|
-
<Fragment slot="head">
|
|
112
|
-
{toolCss ? <Fragment set:html={`<style is:inline>${toolCss}</style>`} /> : null}
|
|
113
|
-
{
|
|
114
|
-
( content.schemas ?? []).map((schema: unknown) => (
|
|
115
|
-
<script
|
|
116
|
-
is:inline
|
|
117
|
-
type="application/ld+json"
|
|
118
|
-
set:html={JSON.stringify(schema)}
|
|
119
|
-
/>
|
|
120
|
-
))
|
|
121
|
-
}
|
|
122
|
-
</Fragment>
|
|
123
|
-
|
|
124
|
-
<div class="tool-page">
|
|
125
|
-
<UtilityHeader
|
|
126
|
-
titleHighlight={titleHighlight}
|
|
127
|
-
titleBase={titleBase}
|
|
128
|
-
description={content.description}
|
|
129
|
-
/>
|
|
130
|
-
|
|
131
|
-
<section class="section-tool">
|
|
132
|
-
<Component ui={content.ui} locale={locale} />
|
|
133
|
-
</section>
|
|
134
|
-
|
|
135
|
-
<section class="section-seo">
|
|
136
|
-
<SEORenderer content={seoContent} />
|
|
137
|
-
</section>
|
|
138
|
-
|
|
139
|
-
<section class="section-faq">
|
|
140
|
-
<FAQSection items={content.faq} />
|
|
141
|
-
</section>
|
|
142
|
-
|
|
143
|
-
<section class="section-bibliography">
|
|
144
|
-
<Bibliography links={content.bibliography} />
|
|
145
|
-
</section>
|
|
146
|
-
</div>
|
|
147
|
-
</PreviewLayout>
|
|
148
|
-
|
|
149
|
-
<style>
|
|
150
|
-
.tool-page {
|
|
151
|
-
display: flex;
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
gap: 2rem;
|
|
154
|
-
}
|
|
155
|
-
.section-tool {
|
|
156
|
-
max-width: 1200px;
|
|
157
|
-
margin: 0 auto;
|
|
158
|
-
width: 100%;
|
|
159
|
-
}
|
|
160
|
-
.section-seo,
|
|
161
|
-
.section-faq,
|
|
162
|
-
.section-bibliography {
|
|
163
|
-
padding-top: 2rem;
|
|
164
|
-
border-top: 1px solid var(--border-color);
|
|
165
|
-
}
|
|
166
|
-
</style>
|
package/src/pages/[locale].astro
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import PreviewLayout from '../layouts/PreviewLayout.astro';
|
|
3
|
-
import PreviewNavSidebar from '../components/PreviewNavSidebar.astro';
|
|
4
|
-
import { civicCategory, ALL_TOOLS } from '../index';
|
|
5
|
-
import { Icon } from 'astro-icon/components';
|
|
6
|
-
import type { KnownLocale, ToolLocaleContent } from '../types';
|
|
7
|
-
|
|
8
|
-
export async function getStaticPaths() {
|
|
9
|
-
const locales = ['de', 'en', 'es', 'fr', 'id', 'it', 'ja', 'ko', 'nl', 'pl', 'pt', 'ru', 'sv', 'tr', 'zh'] as KnownLocale[];
|
|
10
|
-
return locales.map(locale => ({ params: { locale } }));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const { locale: currentLocale } = Astro.params as { locale: KnownLocale };
|
|
14
|
-
|
|
15
|
-
const categoryContent = await civicCategory.i18n[currentLocale]!();
|
|
16
|
-
|
|
17
|
-
const tools = ALL_TOOLS || [];
|
|
18
|
-
|
|
19
|
-
const toolsWithContent = tools.length > 0
|
|
20
|
-
? await Promise.all(
|
|
21
|
-
tools.map(async ({ entry, Component }) => {
|
|
22
|
-
const languages = Object.keys(entry.i18n);
|
|
23
|
-
const localeEntries = await Promise.all(
|
|
24
|
-
languages.map(async (l) => {
|
|
25
|
-
const content = await entry.i18n[l as KnownLocale]!();
|
|
26
|
-
return [l, content];
|
|
27
|
-
})
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
const localeContents = Object.fromEntries(localeEntries) as Record<string, ToolLocaleContent<Record<string, string>>>;
|
|
31
|
-
|
|
32
|
-
const currentLocaleContent = localeContents[currentLocale] || localeContents['en'];
|
|
33
|
-
const availableLocales: Record<string, string> = {};
|
|
34
|
-
|
|
35
|
-
for (const l of languages) {
|
|
36
|
-
const lCont = localeContents[l];
|
|
37
|
-
if (lCont) {
|
|
38
|
-
availableLocales[l] = `/${l}/${lCont.slug}`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return { entry, Component, locale: currentLocaleContent, availableLocales };
|
|
43
|
-
})
|
|
44
|
-
)
|
|
45
|
-
: [];
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
<PreviewLayout
|
|
49
|
-
title={categoryContent.title}
|
|
50
|
-
currentLocale={currentLocale}
|
|
51
|
-
hasSidebar={true}
|
|
52
|
-
>
|
|
53
|
-
<PreviewNavSidebar
|
|
54
|
-
slot="sidebar"
|
|
55
|
-
categoryTitle={categoryContent.title}
|
|
56
|
-
tools={toolsWithContent.map(({ entry, locale, availableLocales }) => {
|
|
57
|
-
const href = availableLocales[currentLocale] || (locale ? `/${currentLocale}/${locale.slug}` : '#');
|
|
58
|
-
return {
|
|
59
|
-
id: entry.id,
|
|
60
|
-
title: locale?.title || entry.id,
|
|
61
|
-
href: href,
|
|
62
|
-
};
|
|
63
|
-
})}
|
|
64
|
-
/>
|
|
65
|
-
<div class="dashboard">
|
|
66
|
-
<header class="preview-header">
|
|
67
|
-
<span class="badge">preview · @jjlmoya/utils-civic</span>
|
|
68
|
-
<h1>{categoryContent.title}</h1>
|
|
69
|
-
<p>{categoryContent.description}</p>
|
|
70
|
-
</header>
|
|
71
|
-
|
|
72
|
-
<div class="tool-list">
|
|
73
|
-
{toolsWithContent?.map(({ entry, locale, availableLocales }) => (
|
|
74
|
-
<article class="tool-card">
|
|
75
|
-
<a href={availableLocales?.[currentLocale] || (locale ? `/${currentLocale}/${locale.slug}` : '#')} class="tool-card-link">
|
|
76
|
-
<div class="tool-icons">
|
|
77
|
-
<div class="icon-wrapper bg">
|
|
78
|
-
<Icon name={entry.icons.bg} />
|
|
79
|
-
</div>
|
|
80
|
-
<div class="icon-wrapper fg">
|
|
81
|
-
<Icon name={entry.icons.fg} />
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="tool-card-content">
|
|
85
|
-
<h2 class="tool-title">{locale?.title}</h2>
|
|
86
|
-
<p class="tool-description">{locale?.description}</p>
|
|
87
|
-
</div>
|
|
88
|
-
<div class="tool-card-meta">
|
|
89
|
-
<span class="tool-id">{entry.id}</span>
|
|
90
|
-
</div>
|
|
91
|
-
</a>
|
|
92
|
-
|
|
93
|
-
{availableLocales && Object.keys(availableLocales).length > 1 && (
|
|
94
|
-
<div class="tool-locales">
|
|
95
|
-
{Object.entries(availableLocales).map(([l, url]) => (
|
|
96
|
-
<a href={url} class="locale-badge" title={`Ver en ${l.toUpperCase()}`} class:list={{ active: l === currentLocale }}>
|
|
97
|
-
{l.toUpperCase()}
|
|
98
|
-
</a>
|
|
99
|
-
))}
|
|
100
|
-
</div>
|
|
101
|
-
)}
|
|
102
|
-
</article>
|
|
103
|
-
))}
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
</div>
|
|
107
|
-
</PreviewLayout>
|
|
108
|
-
|
|
109
|
-
<style>
|
|
110
|
-
.dashboard {
|
|
111
|
-
display: flex;
|
|
112
|
-
flex-direction: column;
|
|
113
|
-
gap: 5rem;
|
|
114
|
-
}
|
|
115
|
-
.preview-header {
|
|
116
|
-
text-align: center;
|
|
117
|
-
padding-bottom: 3rem;
|
|
118
|
-
border-bottom: 1px solid var(--border-color);
|
|
119
|
-
}
|
|
120
|
-
.badge {
|
|
121
|
-
display: inline-block;
|
|
122
|
-
padding: 0.25rem 0.75rem;
|
|
123
|
-
background: var(--accent);
|
|
124
|
-
border-radius: 99px;
|
|
125
|
-
font-size: 0.7rem;
|
|
126
|
-
font-weight: 800;
|
|
127
|
-
margin-bottom: 1.5rem;
|
|
128
|
-
color: var(--text-base);
|
|
129
|
-
letter-spacing: 0.05em;
|
|
130
|
-
}
|
|
131
|
-
h1 {
|
|
132
|
-
font-size: clamp(2rem, 6vw, 3.5rem);
|
|
133
|
-
font-weight: 900;
|
|
134
|
-
margin: 0 0 1rem;
|
|
135
|
-
background: linear-gradient(to bottom, var(--text-base), var(--text-muted));
|
|
136
|
-
-webkit-background-clip: text;
|
|
137
|
-
-webkit-text-fill-color: transparent;
|
|
138
|
-
background-clip: text;
|
|
139
|
-
}
|
|
140
|
-
.preview-header p {
|
|
141
|
-
color: var(--text-muted);
|
|
142
|
-
font-size: 1.1rem;
|
|
143
|
-
margin: 0;
|
|
144
|
-
}
|
|
145
|
-
.tool-list {
|
|
146
|
-
display: grid;
|
|
147
|
-
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
148
|
-
gap: 2rem;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.tool-card {
|
|
152
|
-
display: flex;
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
gap: 1rem;
|
|
155
|
-
}
|
|
156
|
-
.tool-card-link {
|
|
157
|
-
flex: 1;
|
|
158
|
-
display: flex;
|
|
159
|
-
flex-direction: column;
|
|
160
|
-
padding: 1.5rem;
|
|
161
|
-
background: var(--bg-surface);
|
|
162
|
-
border: 1px solid var(--border-color);
|
|
163
|
-
border-radius: 0.75rem;
|
|
164
|
-
text-decoration: none;
|
|
165
|
-
transition: all 0.2s ease;
|
|
166
|
-
}
|
|
167
|
-
.tool-card-link:hover {
|
|
168
|
-
border-color: var(--accent);
|
|
169
|
-
background: rgba(244, 63, 94, 0.05);
|
|
170
|
-
transform: translateY(-2px);
|
|
171
|
-
}
|
|
172
|
-
.tool-icons {
|
|
173
|
-
display: flex;
|
|
174
|
-
align-items: center;
|
|
175
|
-
gap: 1rem;
|
|
176
|
-
margin-bottom: 1.25rem;
|
|
177
|
-
}
|
|
178
|
-
.icon-wrapper {
|
|
179
|
-
display: flex;
|
|
180
|
-
align-items: center;
|
|
181
|
-
justify-content: center;
|
|
182
|
-
width: 3rem;
|
|
183
|
-
height: 3rem;
|
|
184
|
-
border-radius: 0.5rem;
|
|
185
|
-
font-size: 1.5rem;
|
|
186
|
-
}
|
|
187
|
-
.icon-wrapper.bg {
|
|
188
|
-
background: var(--accent);
|
|
189
|
-
color: var(--text-base);
|
|
190
|
-
}
|
|
191
|
-
.icon-wrapper.fg {
|
|
192
|
-
background: var(--bg-page);
|
|
193
|
-
border: 1px solid var(--border-color);
|
|
194
|
-
color: var(--accent);
|
|
195
|
-
}
|
|
196
|
-
.tool-card-content {
|
|
197
|
-
flex: 1;
|
|
198
|
-
display: flex;
|
|
199
|
-
flex-direction: column;
|
|
200
|
-
}
|
|
201
|
-
.tool-title {
|
|
202
|
-
font-size: 1.25rem;
|
|
203
|
-
font-weight: 700;
|
|
204
|
-
margin: 0 0 0.5rem;
|
|
205
|
-
color: var(--text-base);
|
|
206
|
-
}
|
|
207
|
-
.tool-description {
|
|
208
|
-
font-size: 0.9375rem;
|
|
209
|
-
color: var(--text-muted);
|
|
210
|
-
line-height: 1.5;
|
|
211
|
-
margin: 0;
|
|
212
|
-
}
|
|
213
|
-
.tool-card-meta {
|
|
214
|
-
padding-top: 1rem;
|
|
215
|
-
border-top: 1px solid var(--border-color);
|
|
216
|
-
margin-top: 1.5rem;
|
|
217
|
-
}
|
|
218
|
-
.tool-id {
|
|
219
|
-
display: inline-block;
|
|
220
|
-
font-size: 0.7rem;
|
|
221
|
-
background: var(--bg-page);
|
|
222
|
-
border: 1px solid var(--border-color);
|
|
223
|
-
padding: 0.35rem 0.75rem;
|
|
224
|
-
border-radius: 0.4rem;
|
|
225
|
-
color: var(--accent);
|
|
226
|
-
font-weight: 600;
|
|
227
|
-
}
|
|
228
|
-
.tool-locales {
|
|
229
|
-
display: flex;
|
|
230
|
-
gap: 0.5rem;
|
|
231
|
-
flex-wrap: wrap;
|
|
232
|
-
}
|
|
233
|
-
.locale-badge {
|
|
234
|
-
display: inline-block;
|
|
235
|
-
padding: 0.4rem 0.85rem;
|
|
236
|
-
background: var(--bg-page);
|
|
237
|
-
border: 1px solid var(--border-color);
|
|
238
|
-
border-radius: 0.4rem;
|
|
239
|
-
color: var(--text-muted);
|
|
240
|
-
text-decoration: none;
|
|
241
|
-
font-size: 0.75rem;
|
|
242
|
-
font-weight: 600;
|
|
243
|
-
text-transform: uppercase;
|
|
244
|
-
letter-spacing: 0.05em;
|
|
245
|
-
transition: all 0.15s ease;
|
|
246
|
-
}
|
|
247
|
-
.locale-badge:hover,
|
|
248
|
-
.locale-badge.active {
|
|
249
|
-
color: var(--accent);
|
|
250
|
-
border-color: var(--accent);
|
|
251
|
-
background: rgba(244, 63, 94, 0.1);
|
|
252
|
-
}
|
|
253
|
-
</style>
|