Skip to content

Commit

Permalink
fix: page about
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielviol committed Nov 14, 2024
1 parent 5bc4c30 commit bad9ae4
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"extraProps": [],
"title": "amotrans",
"excerpt": "none",
"excerpt": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/66d13c69-5f19-4262-ba58-a85d6f46aa65/logo2.png",
"date": "2024-11-07",
"slug": "amotrans",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"extraProps": [],
"title": "ABGLT",
"excerpt": "none",
"excerpt": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/3a181ede-d82e-44c0-9940-91ce89e76ead/abglt.png",
"content": "<p><strong><span style=\"color: oklch(0.31 0 0); font-size: 16px\">Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).</span></strong></p>",
"slug": "abglt",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"extraProps": [],
"title": "CMDLGBT",
"excerpt": "none",
"excerpt": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/3e505b55-2ee0-48f3-afd5-c37541c473b7/logo8.png",
"date": "2024-11-07",
"slug": "cmdlgbt",
Expand Down
4 changes: 2 additions & 2 deletions .deco/blocks/collections%2Fblog%2Fposts%2F6617a507df68.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"extraProps": [],
"date": "2024-11-07",
"title": "CELGBT",
"excerpt": "none",
"excerpt": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).",
"slug": "celgbt",
"content": "<p><strong><span style=\"color: oklch(0.31 0 0); font-size: 16px\">Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).</span></strong></p>",
"content": "<p>none</p>",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/d05291c1-3b5c-4fb9-ac90-ecd2d41973e1/logo6.png"
}
}
4 changes: 2 additions & 2 deletions .deco/blocks/collections%2Fblog%2Fposts%2F663ad4c49184.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
],
"extraProps": [],
"title": "AMOSERTRANS",
"excerpt": "none",
"excerpt": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/ac976326-631d-423c-bc94-e606ab4469f3/logo7.png",
"date": "2024-11-07",
"slug": "amosertrans",
"content": "<p><strong><span style=\"color: oklch(0.31 0 0); font-size: 16px\">Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).</span></strong></p>"
"content": "<p>none</p>"
}
}
4 changes: 2 additions & 2 deletions .deco/blocks/collections%2Fblog%2Fposts%2F71a3bc99eece.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"extraProps": [],
"date": "2024-11-07",
"slug": "atto",
"content": "<p><strong><span style=\"color: oklch(0.31 0 0); font-size: 16px\">Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).</span></strong></p>",
"content": "<p><strong><span style=\"color: oklch(0.31 0 0); font-size: 16px\">None</span></strong></p>",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/6249c15b-f82c-4706-8dd6-f14f12d7e7e3/logo3.png",
"excerpt": "none",
"excerpt": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).",
"title": "ATTO"
}
}
4 changes: 2 additions & 2 deletions .deco/blocks/collections%2Fblog%2Fposts%2Fcad863c0ffa2.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
],
"extraProps": [],
"title": "TODXS",
"excerpt": "none",
"excerpt": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/6f30152b-62d4-4d38-99a7-e072bfeb7338/logo9.png",
"date": "2024-11-07",
"slug": "todxs",
"content": "<p><strong><span style=\"color: oklch(0.31 0 0); font-size: 16px\">Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT).</span></strong></p>"
"content": "<p>none</p>"
}
}
42 changes: 5 additions & 37 deletions .deco/blocks/pages-Afiliacao-517295.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,11 @@
},
{
"__resolveType": "site/sections/AllAffiliates.tsx",
"affiliate": [
{
"name": "ABGLT",
"description": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT),",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/3a181ede-d82e-44c0-9940-91ce89e76ead/abglt.png"
},
{
"name": "amotrans",
"description": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT),",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/66d13c69-5f19-4262-ba58-a85d6f46aa65/logo2.png"
},
{
"name": "ATTO",
"description": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT),",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/6249c15b-f82c-4706-8dd6-f14f12d7e7e3/logo3.png"
},
{
"name": "TODXS",
"description": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT),",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/6f30152b-62d4-4d38-99a7-e072bfeb7338/logo9.png"
},
{
"name": "CMDLGBT",
"description": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT),",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/3e505b55-2ee0-48f3-afd5-c37541c473b7/logo8.png"
},
{
"name": "AMOSERTRANS",
"description": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT),",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/ac976326-631d-423c-bc94-e606ab4469f3/logo7.png"
},
{
"name": "CELGBT",
"description": "Promover ações que garantam a cidadania e os direitos humanos de lésbicas, gays, bissexuais, travestis e transexuais (LGBT),",
"image": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/antra/d05291c1-3b5c-4fb9-ac90-ecd2d41973e1/logo6.png"
}
]
"affiliate": {
"__resolveType": "blog/loaders/BlogpostList.ts",
"sortBy": "date_desc",
"count": 999
}
},
{
"__resolveType": "Footer"
Expand Down
11 changes: 3 additions & 8 deletions .deco/blocks/pages-home-5afd25174424.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,11 @@
"__resolveType": "website/sections/Rendering/Lazy.tsx",
"section": {
"__resolveType": "site/sections/News.tsx",
"title": "Últimas notícias",
"posts": {
"__resolveType": "blog/loaders/BlogpostList.ts",
"sortBy": "date_desc",
"count": 999
},
"title": "Ultimas notícias",
"news": {
"__resolveType": "blog/loaders/BlogpostList.ts",
"sortBy": "date_desc",
"count": 99
"count": 99,
"sortBy": "date_desc"
}
}
},
Expand Down
9 changes: 4 additions & 5 deletions islands/all-affiliates-island.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import Icon from "site/components/ui/Icon.tsx";
import { usePagination } from "site/components/ui/Pagination.tsx";

export interface Props {
affiliate: BlogPost[] | null;
affiliate: BlogPost[] | undefined;
}

const CardAffiliate = (props: any) => {
return (
<a href="/affiliation">
<a href="/affiliation" class="w-full max-w-[350px]">
<div class="w-full max-w-[350px] px-6 py-8 flex flex-col gap-5 rounded-lg shadow-lg border border-gray-200">
<div class="flex justify-start">
<Image
Expand All @@ -23,7 +23,6 @@ const CardAffiliate = (props: any) => {
loading="lazy"
/>
</div>
<h3 class="text-3xl font-bold">{props.name}</h3>
<p class="text-base font-medium">{props.description}</p>
<div class="flex justify-end">
<a href="/affiliation" class="p-3 text-pink-500 hover:text-pink-700">
Expand All @@ -49,7 +48,7 @@ export default function AllAffiliatesIsland({ affiliate }: Props) {
return (
<div class="lg:container text-sm px-5 p-16 mb-40">
<div class="space-y-10">
<div class="flex justify-center items-center gap-5">
<div class="flex flex-col md:flex-row justify-center items-center gap-5">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">
Região
Expand Down Expand Up @@ -106,7 +105,7 @@ export default function AllAffiliatesIsland({ affiliate }: Props) {
{currentItems?.map((item, i) => (
<CardAffiliate
key={`${i}_${item.title}`}
description={item.description}
description={item.excerpt}
image={item.image}
name={item.title}
/>
Expand Down
7 changes: 5 additions & 2 deletions sections/AllAffiliates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import { BlogPost } from "apps/blog/types.ts";
import AllAffiliatesIsland from "site/islands/all-affiliates-island.tsx";

export interface Props {
affiliate: BlogPost[] | null
affiliate: BlogPost[] | null;
}

export default function AllAffiliates({ affiliate }: Props) {
return <AllAffiliatesIsland affiliate={affiliate}/>;
const cardsAffiliate = affiliate?.filter((affiliate) =>
affiliate.categories?.some((affiliate) => affiliate.slug === "affiliation")
);
return <AllAffiliatesIsland affiliate={cardsAffiliate} />;
}
14 changes: 8 additions & 6 deletions sections/WhoAreWe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,25 @@ export default function WhoAreWe({ title, links, image, imageDesktop }: Props) {
<h1 class="text-3xl font-semibold w-[90%]">{title}</h1>
<div className="grid grid-cols-2 justify-end md:flex gap-8">
{links.map((link, index) => (
<a class="underline text-base font-medium" key={index}>{link}</a>
<a class="underline text-base font-medium" key={index}>
{link}
</a>
))}
</div>
<div className="w-full">
<Image
className="md:hidden w-full rounded-2xl"
width={380}
height={274}
width={327}
height={245}
src={image}
alt={image}
decoding="async"
loading="lazy"
/>
<Image
className="hidden md:flex w-full max-h-[400px] rounded-2xl"
width={380}
height={274}
className="hidden md:flex w-full max-h-[380px] rounded-2xl object-cover"
width={1384}
height={380}
src={imageDesktop}
alt={imageDesktop}
decoding="async"
Expand Down
4 changes: 2 additions & 2 deletions static/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -2790,8 +2790,8 @@ html {
.max-h-\[300px\] {
max-height: 300px;
}
.max-h-\[400px\] {
max-height: 400px;
.max-h-\[380px\] {
max-height: 380px;
}
.max-h-\[456px\] {
max-height: 456px;
Expand Down

0 comments on commit bad9ae4

Please sign in to comment.