Skip to content

Commit d398057

Browse files
Miriam PetrocchiMiriam Petrocchi
authored andcommitted
Fix styles Post e Webinar
1 parent 0591e0a commit d398057

File tree

2 files changed

+58
-56
lines changed

2 files changed

+58
-56
lines changed

.astro/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"_variables": {
3-
"lastUpdateCheck": 1733466292132
3+
"lastUpdateCheck": 1734518853551
44
}
55
}

src/components/DynamicSpreadsheet.tsx

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -122,65 +122,67 @@ export default function DynamicSpreadsheet() {
122122
};
123123

124124
return (
125-
<div className="prose-page">
126-
<div className="flex justify-start items-center gap-4">
127-
<p className="font-semibold">Filtri:</p>
128-
129-
<IconSelect
130-
options={metodi}
131-
icon="codicon:symbol-method"
132-
filter="metodo"
133-
onFilterSelection={handleFilterSelection}
134-
/>
135-
<IconSelect
136-
options={target}
137-
icon="pepicons-pop:label"
138-
filter="target"
139-
onFilterSelection={handleFilterSelection}
140-
/>
141-
</div>
142-
<div className="flex gap-4 not-prose">
143-
{metodi.map(
144-
(m) =>
145-
m.selected && (
146-
<button
147-
key={m.name}
148-
onClick={() => handleFilterSelection({ filter: 'metodo', value: m.name })}
149-
className="flex items-center border rounded-full border-black px-2 ease-in-out duration-300 hover:bg-red-100"
150-
>
151-
<Icon
152-
icon="material-symbols:close"
153-
className="text-red-500 hover:text-red-600 duration-300 transition-colors"
154-
/>
155-
156-
{m.name}
157-
</button>
158-
)
159-
)}
160-
{target.map(
161-
(t) =>
162-
t.selected && (
163-
<button
164-
key={t.name}
165-
onClick={() => handleFilterSelection({ filter: 'target', value: t.name })}
166-
className="flex items-center border rounded-full border-black px-2 ease-in-out duration-300 hover:bg-red-100"
167-
>
168-
<Icon
169-
icon="material-symbols:close"
170-
className="text-red-500 hover:text-red-600 duration-300 transition-colors"
171-
/>
172-
173-
{t.name}
174-
</button>
175-
)
176-
)}
125+
<div className="">
126+
<div className='prose-page'>
127+
<div className="flex justify-start items-center gap-4">
128+
<p className="font-semibold">Filtri:</p>
129+
130+
<IconSelect
131+
options={metodi}
132+
icon="codicon:symbol-method"
133+
filter="metodo"
134+
onFilterSelection={handleFilterSelection}
135+
/>
136+
<IconSelect
137+
options={target}
138+
icon="pepicons-pop:label"
139+
filter="target"
140+
onFilterSelection={handleFilterSelection}
141+
/>
142+
</div>
143+
<div className="flex gap-4 not-prose">
144+
{metodi.map(
145+
(m) =>
146+
m.selected && (
147+
<button
148+
key={m.name}
149+
onClick={() => handleFilterSelection({ filter: 'metodo', value: m.name })}
150+
className="flex items-center border rounded-full border-black px-2 ease-in-out duration-300 hover:bg-red-100"
151+
>
152+
<Icon
153+
icon="material-symbols:close"
154+
className="text-red-500 hover:text-red-600 duration-300 transition-colors"
155+
/>
156+
157+
{m.name}
158+
</button>
159+
)
160+
)}
161+
{target.map(
162+
(t) =>
163+
t.selected && (
164+
<button
165+
key={t.name}
166+
onClick={() => handleFilterSelection({ filter: 'target', value: t.name })}
167+
className="flex items-center border rounded-full border-black px-2 ease-in-out duration-300 hover:bg-red-100"
168+
>
169+
<Icon
170+
icon="material-symbols:close"
171+
className="text-red-500 hover:text-red-600 duration-300 transition-colors"
172+
/>
173+
174+
{t.name}
175+
</button>
176+
)
177+
)}
178+
</div>
177179
</div>
178180
<hr className="my-6 " />
179181
{rows.length > 0 ? (
180-
<div className="flex flex-col md:flex-row justify-center gap-4">
182+
<div className="flex flex-col md:flex-row flex-wrap justify-center gap-4">
181183
{filteredRows.map((row, index) => (
182184
<a
183-
className="flex flex-col items-center border px-6 py-4 rounded-xl hover:bg-[#f3f0f0c2]"
185+
className="flex flex-col items-center border px-6 py-4 rounded-xl hover:bg-[#f3f0f0c2] max-w-[300px]"
184186
href={row.url_video}
185187
key={index}
186188
target="_blank"
@@ -190,7 +192,7 @@ export default function DynamicSpreadsheet() {
190192
<div className="not-prose">
191193
<h3 className="text-2xl">{row.nome}</h3>
192194
{row.descrizione && <p className="text-base text-slate-700 mt-2">{row.descrizione}</p>}
193-
<div className="flex gap-2 mt-2">
195+
<div className="flex flex-wrap gap-2 mt-2">
194196
{row.metodi &&
195197
row.metodi.length > 0 &&
196198
row.metodi.map((metodo) => (

0 commit comments

Comments
 (0)