Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Article Code #97

Merged
merged 1 commit into from
Jan 6, 2025
Merged
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
2 changes: 1 addition & 1 deletion frontend/components/ArticleHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function ArticleHero({
{title}
</Text>
</Heading>
<Text color={"gray.500"}>{description}</Text>
<Text fontSize={"lg"}>{description}</Text>
<Stack
spacing={{ base: 4, sm: 6 }}
direction={{ base: "column", sm: "row" }}
Expand Down
7 changes: 6 additions & 1 deletion frontend/components/Dynamic/Article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Box,
Image,
Code,
UnorderedList,
} from "@chakra-ui/react";
import { useQuery } from "react-query";
import { API_URL } from "@/app/config";
Expand Down Expand Up @@ -71,7 +72,7 @@ const newTheme = {
p: (props: any) => {
const { children } = props;
return (
<Text mb={10} fontSize={"xl"}>
<Text mb={10} fontSize={"lg"}>
{children}
</Text>
);
Expand All @@ -84,6 +85,10 @@ const newTheme = {
</Code>
);
},
ul: (props: any) => {
const { children } = props;
return <UnorderedList mb={3}>{children}</UnorderedList>;
},
};

const fetchArticle = async (slug: string) => {
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}

img[src*="#center-blog-image"] {
display: block;
margin: auto;
}
Loading