Skip to content

Commit 313f7f5

Browse files
committed
feat: aggiungi il supporto per il plugin @tailwindcss/typography e aggiorna i file di configurazione
1 parent 9c55668 commit 313f7f5

6 files changed

Lines changed: 54 additions & 20 deletions

File tree

package-lock.json

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@astrojs/react": "^4.3.0",
1414
"@astrojs/tailwind": "^6.0.2",
1515
"@heroicons/react": "^2.2.0",
16+
"@tailwindcss/typography": "^0.5.16",
1617
"@types/react": "^19.1.8",
1718
"@types/react-dom": "^19.1.6",
1819
"astro": "^5.11.0",

src/content/info.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ La democrazia non si esercita solo durante le elezioni. **I referendum e le iniz
1616
## Come funziona il sito?
1717

1818
### 🔍 **Esplora le iniziative**
19-
Naviga tra tutte le iniziative attive, filtra per categoria (ambiente, salute, diritti, economia...) e trova quelle che ti interessano di più.
19+
Naviga tra [tutte le iniziative attive](/?stato=IN+RACCOLTA+FIRME), filtra per categoria (ambiente, salute, diritti, economia...) e trova quelle che ti interessano di più.
2020

2121
### 📊 **Informazioni complete**
2222
Per ogni iniziativa trovi:

src/pages/info.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const description = "Scopri come funziona questo sito e perché è importante pa
2626

2727
<!-- Main Content -->
2828
<main class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
29-
<div class="bg-white rounded-lg shadow-sm border border-gray-200 p-8">
30-
<article class="prose prose-gray max-w-none prose-headings:text-gray-900 prose-h1:text-3xl prose-h1:font-bold prose-h1:mb-6 prose-h2:text-2xl prose-h2:font-bold prose-h2:mb-4 prose-h2:mt-8 prose-h3:text-xl prose-h3:font-semibold prose-h3:mb-3 prose-h3:mt-6 prose-p:text-gray-700 prose-p:leading-relaxed prose-p:mb-4 prose-strong:font-semibold prose-strong:text-gray-900 prose-ul:my-4 prose-li:mb-2">
29+
<div class="bg-white rounded-lg shadow-sm border border-gray-200 p-6 sm:p-8">
30+
<article class="prose prose-lg prose-gray max-w-none prose-headings:text-gray-900 prose-h1:text-3xl prose-h1:font-bold prose-h1:mb-6 prose-h1:mt-0 prose-h2:text-2xl prose-h2:font-bold prose-h2:mb-4 prose-h2:mt-8 prose-h3:text-xl prose-h3:font-semibold prose-h3:mb-3 prose-h3:mt-6 prose-p:text-gray-700 prose-p:leading-relaxed prose-strong:font-semibold prose-strong:text-gray-900 prose-ul:my-4 prose-li:mb-2 prose-a:text-blue-600 prose-a:hover:text-blue-700">
3131
<InfoContent />
3232
</article>
3333
</div>

src/styles/global.css

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,3 @@
2323
-webkit-box-orient: vertical;
2424
overflow: hidden;
2525
}
26-
27-
/* Prose styling for long text */
28-
.prose {
29-
color: #374151;
30-
max-width: 65ch;
31-
}
32-
33-
.prose p {
34-
margin-top: 1.25em;
35-
margin-bottom: 1.25em;
36-
}
37-
38-
.prose strong {
39-
color: #111827;
40-
font-weight: 600;
41-
}

tailwind.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ export default {
44
theme: {
55
extend: {},
66
},
7-
plugins: [],
7+
plugins: [
8+
require('@tailwindcss/typography'),
9+
],
810
}

0 commit comments

Comments
 (0)