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

UI 반응형 수정 및 SSR 관련 fetch 헤더 수정 #7

Merged
merged 2 commits into from
Oct 17, 2024
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: 2 additions & 0 deletions src/app/[username]/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default async function Page({ params }: { params: { username: string; id:
const response = await fetch(url, {
method: 'GET',
headers,
cache: 'no-store',
})

const res = await response.json()
Expand Down Expand Up @@ -57,6 +58,7 @@ export default async function Page({ params }: { params: { username: string; id:
const response = await fetch(url, {
method: 'GET',
headers,
cache: 'no-store',
})

const res = await response.json()
Expand Down
10 changes: 5 additions & 5 deletions src/components/molecules/OutputDateRange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ interface DateRangeInputProps {
const OutputDateRange: React.FC<DateRangeInputProps> = ({ formLabel, startDate, endDate }) => {
return (
<Box mb={4}>
<Flex align="center">
<Text mb="0" width="150px" fontWeight="bold" align="left">
<Flex align="center" fontSize={['sm', 'md', 'lg']}>
<Text mb="0" width={[130, 140, 150]} fontWeight="bold" align="left">
{formLabel}
</Text>
<Text>{startDate}</Text>
<Text>~</Text>
<Text>{endDate}</Text>
<Text fontSize={['sm', 'md', 'lg']}>
{startDate} ~ {endDate}
</Text>
</Flex>
</Box>
)
Expand Down
4 changes: 2 additions & 2 deletions src/components/molecules/OutputLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ interface OutputLinkProps {
const OutputLink: React.FC<OutputLinkProps> = ({ link, formLabel }) => {
return (
<Box mb={4}>
<Flex align="center">
<Text mb="0" width="150px" fontWeight="bold" align="left">
<Flex align="center" fontSize={['sm', 'md', 'lg']}>
<Text mb="0" width={[130, 140, 150]} fontWeight="bold" align="left">
{formLabel}
</Text>
<Link href={link} isExternal>
Expand Down
4 changes: 2 additions & 2 deletions src/components/organisms/ProjectInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const ProjectInformation: React.FC<ProjectInformationProps> = ({
{skills &&
Object.entries(skills).map(([category, skillNames]) => (
<Box key={category} mb={4}>
<Flex align="center">
<Text mb="0" width={[110, 130, 150]} fontWeight="bold" align="left">
<Flex align="center" fontSize={['sm', 'md', 'lg']}>
<Text mb="0" width={[130, 140, 150]} fontWeight="bold" align="left">
{'>'} {category.charAt(0).toUpperCase() + category.slice(1)}
</Text>
<Flex wrap="wrap" gap={4} justify="flex-start">
Expand Down
4 changes: 2 additions & 2 deletions src/components/templates/PortfolioViewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const PortfolioViewPage: React.FC<PortfolioViewPageProps> = ({ portfolioData, us
<Heading fontSize="4xl" mb={4}>
ABOUT ME
</Heading>
<Flex justify="center" gap={10} mb={6}>
<Flex justify="center" gap={10} mb={10} direction={['column', 'column', 'row']}>
<VStack>
<Text fontSize="sm">이름</Text>
<Text fontWeight="bold">{userData.name}</Text>
Expand Down Expand Up @@ -124,7 +124,7 @@ const PortfolioViewPage: React.FC<PortfolioViewPageProps> = ({ portfolioData, us
shadow="md"
key={project.id}
>
<Heading fontSize="xl" my={[3, 5, 5]}>
<Heading fontSize={['xl', '2xl', '2xl']} my={[3, 5, 10]}>
{project.name}
</Heading>
<Flex direction={['column', 'row']}>
Expand Down
Loading