From 6144268e3c66c0a848ab70adaa30fe342ff846c8 Mon Sep 17 00:00:00 2001 From: hyuna Date: Mon, 18 Jan 2021 01:00:08 +0900 Subject: [PATCH] =?UTF-8?q?main=20page=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/dodam/components/GridView.js | 27 +--- packages/dodam/components/RankingView.js | 11 ++ packages/dodam/next.config.js | 2 - packages/dodam/pages/_app.js | 33 +---- packages/dodam/pages/index.js | 127 +++++++++++------- packages/dodam/public/images/ic_overview.svg | 1 + packages/dodam/public/images/ic_ranking.svg | 1 + packages/dodam/public/images/ic_real time.svg | 1 + .../dodam/{ => public}/images/mainBanner.png | Bin 9 files changed, 98 insertions(+), 105 deletions(-) create mode 100644 packages/dodam/components/RankingView.js create mode 100644 packages/dodam/public/images/ic_overview.svg create mode 100644 packages/dodam/public/images/ic_ranking.svg create mode 100644 packages/dodam/public/images/ic_real time.svg rename packages/dodam/{ => public}/images/mainBanner.png (100%) diff --git a/packages/dodam/components/GridView.js b/packages/dodam/components/GridView.js index ecd8a35..90f5eb2 100644 --- a/packages/dodam/components/GridView.js +++ b/packages/dodam/components/GridView.js @@ -1,30 +1,9 @@ -// const GridtView = { -// { -// "key": "1", -// "name": "Club", -// // "imageUrl" : "" -// }, -// { -// "key": "2", -// "name": "Club", -// // "imageUrl" : "" -// }, -// { -// "key": "3", -// "name": "Club", -// // "imageUrl" : "" -// }, -// { -// "key": "4", -// "name": "Club", -// // "imageUrl" : "" -// }, -// }; +import Image from 'next/image'; export default function GridtView(props) { - const dataList = props.data.map((data, i) => ( + const dataList = props.data.map((data) => (
- +
{data.title}
)); diff --git a/packages/dodam/components/RankingView.js b/packages/dodam/components/RankingView.js new file mode 100644 index 0000000..615ccb8 --- /dev/null +++ b/packages/dodam/components/RankingView.js @@ -0,0 +1,11 @@ +import Image from 'next/image'; + +export default function RankingtView(props) { + const dataList = props.data.map((data) => ( +
+ +
{data.title}
+
+ )); + return
{dataList}
; +} diff --git a/packages/dodam/next.config.js b/packages/dodam/next.config.js index 25d7c42..8c8ff6c 100644 --- a/packages/dodam/next.config.js +++ b/packages/dodam/next.config.js @@ -1,5 +1,3 @@ const withTM = require('next-transpile-modules')(['@dodam/components'], true); -const withImages = require('next-images'); module.exports = withTM(); -module.exports = withImages(); diff --git a/packages/dodam/pages/_app.js b/packages/dodam/pages/_app.js index 8baabd7..e099a20 100644 --- a/packages/dodam/pages/_app.js +++ b/packages/dodam/pages/_app.js @@ -12,38 +12,7 @@ const Dodam = ({ Component, pageProps }) => ( - diff --git a/packages/dodam/pages/index.js b/packages/dodam/pages/index.js index 3277a35..f696534 100644 --- a/packages/dodam/pages/index.js +++ b/packages/dodam/pages/index.js @@ -1,8 +1,10 @@ import { Button } from '@dodam/components'; -import mainBanner from '@/images/mainBanner.png'; +import Image from 'next/image'; import GridView from '@/components/GridView.js'; +import { Typography } from '@dodam/components'; +import RankingtView from '@/components/RankingView'; -let data = [ +const data = [ { imageUrl: '1.png', title: '1번 타이틀', @@ -21,7 +23,7 @@ let data = [ }, ]; -let weekData = [ +const weekData = [ { imageUrl: '1.png', title: '1번 타이틀', @@ -37,63 +39,94 @@ let weekData = [ ]; export default function Main() { - const dataList = weekData.map((data, i) => ( -
- -
{data.title}
-
- )); return ( -
-
+
+
-
나에게 맞는 최적의 동아리는?
-
- 성격유형분석을 통한
- 동아리맞춤 서비스를 만나보세요 + 나에게 맞는 최적의 동아리는? + + 성격유형분석을 통한 + + + 동아리 맞춤 서비스를 만나보세요 + +
+
-
-
-
금주 동아리 랭킹
-
{dataList}
+ +
+
+
+ +
+
+ + 금주 동아리 랭킹 + +
+
+
+ +
-
-
실시간 모집공고
- + +
+
+
+ +
+
+ + 실시간 모집공고 + +
+
+ +
+
+
+ +
-
- FOOOOOOOOOOOTTTTTTTTTTTTEEEEEEEEEEERRRRRR +
+ + 도담도담 소개 | 이용약관 | 개인정보처리방침 +
+ 서울특별시 강남구(도담도담) +
+ Copyright 2020. DodamDodam All rights reserved. +
+
+ - \ No newline at end of file diff --git a/packages/dodam/public/images/ic_ranking.svg b/packages/dodam/public/images/ic_ranking.svg new file mode 100644 index 0000000..e6bbad4 --- /dev/null +++ b/packages/dodam/public/images/ic_ranking.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/dodam/public/images/ic_real time.svg b/packages/dodam/public/images/ic_real time.svg new file mode 100644 index 0000000..2bb1675 --- /dev/null +++ b/packages/dodam/public/images/ic_real time.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/dodam/images/mainBanner.png b/packages/dodam/public/images/mainBanner.png similarity index 100% rename from packages/dodam/images/mainBanner.png rename to packages/dodam/public/images/mainBanner.png