다른 사회 이슈도 둘러보세요.
diff --git a/src/components/organisms/Home/DiscussedTopics.tsx b/src/components/organisms/Home/DiscussedTopics.tsx
index 28549279..518c7f09 100644
--- a/src/components/organisms/Home/DiscussedTopics.tsx
+++ b/src/components/organisms/Home/DiscussedTopics.tsx
@@ -4,7 +4,7 @@ import { Title } from "@/components/atoms/title";
import Topic from "@/components/molecules/discussedTopic";
import { topicData } from "@/dummy/topicData";
-const title = "광장이 지금\n얘기하고 있는 주제";
+const title = "광장이 이야기하는\n사회 이슈";
const DiscussedTopics = () => {
return (
@@ -22,7 +22,16 @@ const DiscussedTopics = () => {
))}
-
주제를 추가하고 싶어요.
+
+ window.open(
+ "https://docs.google.com/forms/d/e/1FAIpQLSfaG6BKFpiQfP8VOkjeAKfhgcobB4_A3uYp1gvG8J9R7vvD5w/viewform"
+ )
+ }
+ >
+ 주제를 추가하고 싶어요.
+
);
diff --git a/src/components/organisms/Home/LoginTopic.tsx b/src/components/organisms/Home/LoginTopic.tsx
index 4794c502..be0c9bcf 100644
--- a/src/components/organisms/Home/LoginTopic.tsx
+++ b/src/components/organisms/Home/LoginTopic.tsx
@@ -10,10 +10,28 @@ import { CategoryFilter } from "@/components/molecules/categoryFilter";
import { MySubscribeData } from "@/dummy/MySubscribeData";
export const LoginTopic = () => {
+ // const [arr, setArr] = useState([]);
+ // const [a, setA] = useState("");
+
+ // const [b, setB] = useState("");
+ // const [c, setC] = useState("");
+
+ // useEffect(() => {
+ // getget()
+ // .then((res) => {
+ // console.log(res.data.data.subscribeResList);
+ // setA(res.data.data.subscribeResList[0]?.issue);
+ // setB(res.data.data.subscribeResList[1]?.issue);
+ // setC(res.data.data.subscribeResList[2]?.issue);
+ // })
+ // .catch((err) => {
+ // console.log(err);
+ // });
+ // }, []);
return (
-
+
{" "}
diff --git a/src/components/organisms/Home/MainContent.tsx b/src/components/organisms/Home/MainContent.tsx
index cf18991e..deced053 100644
--- a/src/components/organisms/Home/MainContent.tsx
+++ b/src/components/organisms/Home/MainContent.tsx
@@ -8,7 +8,7 @@ import { Inner } from "@/style/global";
export const MainContent = () => {
const firstData = contentData[0];
- const title = "지금 사람들이\n가장 많이 본 콘텐츠";
+ const title = "지금 가장\n인기있는 콘텐츠";
return (
diff --git a/src/components/organisms/Home/MainTopic.tsx b/src/components/organisms/Home/MainTopic.tsx
index e0808fc1..ed72973f 100644
--- a/src/components/organisms/Home/MainTopic.tsx
+++ b/src/components/organisms/Home/MainTopic.tsx
@@ -7,7 +7,7 @@ import { subjectData } from "@/dummy/subjectData";
import { Inner } from "@/style/global";
export const MainTopic = () => {
- const title = "가장 인기있는\n주제";
+ const title = " 광장에서 가장\n인기 있는 사회 이슈";
return (
diff --git a/src/dummy/MySubscribeData.ts b/src/dummy/MySubscribeData.ts
index f5c6886e..8429942f 100644
--- a/src/dummy/MySubscribeData.ts
+++ b/src/dummy/MySubscribeData.ts
@@ -1,26 +1,17 @@
export const MySubscribeData = [
{
id: 8,
- url: "환경",
- title: "후쿠시마 오염수",
- imgUrl: "",
- type: "safsdjafliej",
- pubDate: "환경",
+ area: "환경",
+ subject: "후쿠시마 오염수",
},
{
- id: 8,
- url: "환경",
- title: "후쿠시마 오염수",
- imgUrl: "",
- type: "safsdjafliej",
- pubDate: "환경",
+ id: 2,
+ area: "환경",
+ subject: "후쿠시마 오염수",
},
{
- id: 8,
- url: "환경",
- title: "후쿠시마 오염수",
- imgUrl: "",
- type: "safsdjafliej",
- pubDate: "환경",
+ id: 3,
+ area: "환경",
+ subject: "후쿠시마 오염수",
},
];
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 7ac15304..c0e906ae 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -5,7 +5,7 @@ import { useSetRecoilState } from "recoil";
import { getMainBubbleChart } from "@/apis";
import BubbleChart from "@/components/organisms/Home/BubbleChart";
import DiscussedTopics from "@/components/organisms/Home/DiscussedTopics";
-import { LoginTopic } from "@/components/organisms/Home/LoginTopic";
+// import { LoginTopic } from "@/components/organisms/Home/LoginTopic";
import { MainCommunity } from "@/components/organisms/Home/MainCommunity";
import { MainContent } from "@/components/organisms/Home/MainContent";
import { MainTopic } from "@/components/organisms/Home/MainTopic";
@@ -33,7 +33,7 @@ const Home = () => {
{/* 여러가지 메인에 들어갈 organism들 */}
- {!localStorage.getItem("accessToken") ? : }
+ {!localStorage.getItem("accessToken") ? : ""}
diff --git a/src/types/index.ts b/src/types/index.ts
index 4330e1fb..8f9bf6cf 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -122,6 +122,14 @@ export interface ArticleDataProps {
type: string;
url: string;
} // 좋아요 수 넣기
+export interface ArticleData1Props {
+ id: number;
+ url: string;
+ title: string;
+ imgUrl: string;
+ type: string;
+ pubDate: string;
+} // 좋아요 수 넣기
export interface ArticleItemProps {
title: string;