Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class DynamicContentDisplaySectionSource(enum.Enum):
speakers = "speakers"
keynoters = "keynoters"
proposals = "proposals"
local_communities = "local_communities"


@register_page_block()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ class DynamicContentDisplaySection(blocks.StructBlock):
("speakers", "Speakers"),
("keynoters", "Keynoters"),
("proposals", "Proposals"),
("local_communities", "Local Communities"),
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
queryKeynotesSection,
} from "~/types";
import { KeynotersContent } from "./keynoters-content";
import { LocalCommunitiesContent } from "./local-communities-content";
import { ProposalsContent } from "./proposals-content";
import { SpeakersContent } from "./speakers-content";

Expand All @@ -24,6 +25,9 @@ export const DynamicContentDisplaySection = ({
{source === DynamicContentDisplaySectionSource.Proposals && (
<ProposalsContent />
)}
{source === DynamicContentDisplaySectionSource.LocalCommunities && (
<LocalCommunitiesContent />
)}
</Fragment>
);
};
Expand Down Expand Up @@ -56,6 +60,9 @@ DynamicContentDisplaySection.dataFetching = (client, language, block) => {
}),
];
}
case DynamicContentDisplaySectionSource.LocalCommunities: {
return [];
}
}

return [];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import {
CardPart,
Grid,
Heading,
MultiplePartsCard,
MultiplePartsCardCollection,
SocialLinks,
Spacer,
Text,
VerticalStack,
} from "@python-italia/pycon-styleguide";
import { Section } from "@python-italia/pycon-styleguide";

export const LocalCommunitiesContent = () => {
return (
<Section>
<Grid cols={3} mdCols={2}>
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((item) => (
<MultiplePartsCard>
<CardPart shrink={false} size="none">
<img
style={{
objectFit: "cover",
}}
alt="test"
src="https://live.staticflickr.com/65535/54571831519_ed2daa51c6_k.jpg?s=eyJpIjo1NDU3MTgzMTUxOSwiZSI6MTc3MDQ5MjM3NCwicyI6ImE4NjVmZTkwZDAxZTIzMzY4MWM3NDM1OGNmYWYxOGQ3MTYyMDk0NDkiLCJ2IjoxfQ"
/>
</CardPart>

<CardPart>
<Heading size={4}>Python Bari</Heading>
</CardPart>
<CardPart background="milk">
<VerticalStack alignItems="center" gap="small">
<img
src="https://cdn.pycon.it/images/pythonvarese.width-500.png"
alt="Python Bari"
/>
</VerticalStack>
<Spacer size="small" />
<Text size={3}>
Python Bari è una community di Python che si occupa di
sviluppare software per la città di Bari.
</Text>
</CardPart>
<CardPart background="milk">
<VerticalStack alignItems="center" gap="small">
<SocialLinks
hoverColor="green"
socials={[
{
icon: "mastodon",
link: "https://social.python.it/@pycon",
rel: "me",
},
{
icon: "facebook",
link: "https://www.facebook.com/pythonitalia",
rel: "me",
},
{
icon: "instagram",
link: "https://www.instagram.com/pycon.it",
rel: "me",
},
{
icon: "linkedin",
link: "https://www.linkedin.com/company/pycon-italia",
rel: "me",
},
{
icon: "twitter",
link: "https://twitter.com/pyconit",
rel: "me",
},
]}
/>
</VerticalStack>
</CardPart>
</MultiplePartsCard>
))}
</Grid>
</Section>
);
};
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"],
Expand Down
Loading