-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
237 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 49 additions & 49 deletions
98
build/assets/index-a75d7eb2.js → build/assets/index-23298fcd.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import useResponsiveFont from "@/hooks/useResponsiveFont"; | ||
import Font from "@/types/Font"; | ||
import Publication from "@/types/Publication"; | ||
import { formatYearMonth } from "@/utils/dateFormats"; | ||
import { Flex, Text } from "@dohyun-ko/react-atoms"; | ||
import ReactMarkdown from "react-markdown"; | ||
import StylessA from "./StylessA"; | ||
|
||
interface PublicationCardProps { | ||
publication: Publication; | ||
} | ||
|
||
const PublicationCard = ({ publication }: PublicationCardProps) => { | ||
const { name, date, url, description, publisher } = publication; | ||
const { font } = useResponsiveFont(); | ||
|
||
return ( | ||
<Flex | ||
flexDirection="column" | ||
style={{ | ||
fontSize: "0.75rem", | ||
}} | ||
> | ||
<StylessA href={url}> | ||
<Text font={Font.SemiBold} size={font(1)}> | ||
{name} | ||
</Text> | ||
</StylessA> | ||
|
||
<Text size={font(0.75)}> | ||
{publisher} - {formatYearMonth(new Date(date))} | ||
</Text> | ||
|
||
<ReactMarkdown>{description}</ReactMarkdown> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default PublicationCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Publication from "@/types/Publication"; | ||
import { Flex, Spacer } from "@dohyun-ko/react-atoms"; | ||
import { useTranslation } from "react-i18next"; | ||
import PublicationCard from "../components/PublicationCard"; | ||
import SectionTitle from "../components/SectionTitle"; | ||
|
||
interface PublicationSectionProps {} | ||
|
||
const PublicationSection = ({}: PublicationSectionProps) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<> | ||
<SectionTitle>Publications</SectionTitle> | ||
|
||
<Spacer height={"30px"} /> | ||
|
||
<Flex flexDirection={"column"} gap={"20px"}> | ||
{( | ||
t("publication.publications", { | ||
returnObjects: true, | ||
}) as Publication[] | ||
).map((publication) => ( | ||
<PublicationCard key={publication.name} publication={publication} /> | ||
))} | ||
</Flex> | ||
</> | ||
); | ||
}; | ||
|
||
export default PublicationSection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import useIsMobile from "@/hooks/useIsMobile"; | ||
import useResponsiveFont from "@/hooks/useResponsiveFont"; | ||
import Font from "@/types/Font"; | ||
import Publication from "@/types/Publication"; | ||
import { formatYearMonth } from "@/utils/dateFormats"; | ||
import { Flex, Text } from "@dohyun-ko/react-atoms"; | ||
import ReactMarkdown from "react-markdown"; | ||
import StylessA from "./StylessA"; | ||
|
||
interface PublicationCardProps { | ||
publication: Publication; | ||
} | ||
|
||
const PublicationCard = ({ publication }: PublicationCardProps) => { | ||
const { name, date, url, description, publisher } = publication; | ||
const { font } = useResponsiveFont(); | ||
const isMobile = useIsMobile(); | ||
|
||
return ( | ||
<Flex flexDirection="column"> | ||
<StylessA href={url}> | ||
<Text font={Font.SemiBold} size={font(1.5)}> | ||
{name} | ||
</Text> | ||
</StylessA> | ||
|
||
<Text> | ||
{publisher} - {formatYearMonth(new Date(date))} | ||
</Text> | ||
|
||
<ReactMarkdown>{description}</ReactMarkdown> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default PublicationCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Publication from "@/types/Publication"; | ||
import { Area, Content, Flex, Spacer } from "@dohyun-ko/react-atoms"; | ||
import { useTranslation } from "react-i18next"; | ||
import PublicationCard from "../components/PublicationCard"; | ||
import SectionTitle from "../components/SectionTitle"; | ||
|
||
interface PublicationSectionProps {} | ||
|
||
const PublicationSection = ({}: PublicationSectionProps) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<Area id="side-project-section"> | ||
<Content> | ||
<SectionTitle>Publications</SectionTitle> | ||
|
||
<Spacer height={"30px"} /> | ||
|
||
<Flex flexDirection={"column"} gap={"30px"}> | ||
{( | ||
t("publication.publications", { | ||
returnObjects: true, | ||
}) as Publication[] | ||
).map((publication) => ( | ||
<PublicationCard key={publication.name} publication={publication} /> | ||
))} | ||
</Flex> | ||
</Content> | ||
</Area> | ||
); | ||
}; | ||
|
||
export default PublicationSection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
interface Publication { | ||
name: string; | ||
isImportant: boolean; | ||
date: string; | ||
url?: string; | ||
publisher: string; | ||
description: string; | ||
} | ||
|
||
export default Publication; |