Skip to content

Commit

Permalink
feat/#25/hyperlink 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmj12 committed Dec 19, 2024
1 parent cb3dc96 commit 88a471c
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 57 deletions.
63 changes: 14 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"react": "^18",
"react-dom": "^18",
"react-icons": "^5.3.0",
"react-redux": "^9.1.2",
"react-spinners": "^0.14.1",
"tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7",
Expand Down
20 changes: 13 additions & 7 deletions src/components/Project/Project.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
import { useRouter } from "next/router";
import * as Styles from "./styles";
import MDEditorViewer from "./MDEditor/MdeditorViewer";
import Link from "next/link";

export default function ProjectComponents() {
const router = useRouter();
const { id } = router.query;

return (
<div>
<h1> 프로젝트 제목: {id} </h1>
<h1> 사진 사진 사진 사진</h1>
<h1> 링크 링크 링크 </h1>
<h1> Markdown Viewer </h1>

<Styles.ProjectDetailContainer>
<Styles.ProjectDetailTitle>프로젝트 제목: {id}</Styles.ProjectDetailTitle>
<Styles.ProjectDetailText>
한 줄 소개글 우리 프로젝트 좋아요 많관부
</Styles.ProjectDetailText>
<Link href="https://github.com/team-pofo/frontend" legacyBehavior>
<Styles.ProjectDetailLink target="_blank">
https://github.com/team-pofo/frontend
</Styles.ProjectDetailLink>
</Link>
<MDEditorViewer />
</div>
</Styles.ProjectDetailContainer>
);
}
25 changes: 25 additions & 0 deletions src/components/Project/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import styled from "@emotion/styled";

export const ProjectDetailContainer = styled.div`
max-width: 1200px;
align-items: center;
padding: 20px 20px 20px 20px;
margin: auto;
`;

export const ProjectDetailTitle = styled.p`
margin: 0px 0px 10px;
font-size: 40px;
font-weight: 700;
`;

export const ProjectDetailText = styled.p`
margin: 0px 0px 10px;
font-size: 20px;
`;

export const ProjectDetailLink = styled.a`
padding: 0 0 10px;
font-size: 20px;
cursor: pointer;
`;

0 comments on commit 88a471c

Please sign in to comment.