-
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.
๐ ํค๋ ํ์ด์ง ๋ ์ด์์์ ํตํฉ (#135)
* design: ๋ฉ์ธ ํค๋ ๋ ์ด์์ ๋ณ๊ฒฝ * design: ๋๋ถ๋ฅ ํ์ด์ง ํค๋ ํฌํจ * design: ํ์ด์ง ๋ ์ด์์ ํค๋ ํฌํจ * fix: ๊ต๊ณผ๊ณผ์ ๋น ๋ฐฐ์ด ๋ ๋๋ง ์ ์ธ * design: ์ฐ๊ตฌ ๊ทธ๋ฃน ํจ๋ฉ ์กฐ์
- Loading branch information
1 parent
ea76db5
commit bea13c1
Showing
18 changed files
with
80 additions
and
76 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
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 |
---|---|---|
@@ -1,56 +1,56 @@ | ||
export const dynamic = 'force-dynamic'; | ||
|
||
import MainNode1 from '@/public/image/main_1.svg'; | ||
import MainNode2 from '@/public/image/main_2.svg'; | ||
import MainNode3 from '@/public/image/main_3.svg'; | ||
import MainNode4 from '@/public/image/main_4.svg'; | ||
import MainNode5 from '@/public/image/main_5.svg'; | ||
import MainNode6 from '@/public/image/main_6.svg'; | ||
import MainNode7 from '@/public/image/main_7.svg'; | ||
// import MainNode1 from '@/public/image/main_1.svg'; | ||
// import MainNode2 from '@/public/image/main_2.svg'; | ||
// import MainNode3 from '@/public/image/main_3.svg'; | ||
// import MainNode4 from '@/public/image/main_4.svg'; | ||
// import MainNode5 from '@/public/image/main_5.svg'; | ||
// import MainNode6 from '@/public/image/main_6.svg'; | ||
// import MainNode7 from '@/public/image/main_7.svg'; | ||
|
||
import { getMainContents } from '@/apis/main'; | ||
|
||
import BgVideo from '@/components/main/BgVideo'; | ||
// import BgVideo from '@/components/main/BgVideo'; | ||
import MainPageContent from '@/components/main/MainPageContent'; | ||
import ShortCuts from '@/components/main/ShortCuts'; | ||
// import ShortCuts from '@/components/main/ShortCuts'; | ||
|
||
import { facultyRecruitment, notice, topConferenceList } from '@/types/page'; | ||
// import { facultyRecruitment, notice, topConferenceList } from '@/types/page'; | ||
|
||
import { getPath } from '@/utils/page'; | ||
// import { getPath } from '@/utils/page'; | ||
|
||
const tclPath = getPath(topConferenceList); | ||
const facultyRecruitmentPath = getPath(facultyRecruitment); | ||
const undergraduateNoticePath = getPath(notice); | ||
// const tclPath = getPath(topConferenceList); | ||
// const facultyRecruitmentPath = getPath(facultyRecruitment); | ||
// const undergraduateNoticePath = getPath(notice); | ||
|
||
const shortCuts = [ | ||
{ title: facultyRecruitment.name, href: facultyRecruitmentPath }, | ||
{ title: topConferenceList.name, href: tclPath }, | ||
{ title: 'ํ๋ถ ' + notice.name, href: `${undergraduateNoticePath}?tag=ํ์ฌ(ํ๋ถ)` }, | ||
]; | ||
// const shortCuts = [ | ||
// { title: facultyRecruitment.name, href: facultyRecruitmentPath }, | ||
// { title: topConferenceList.name, href: tclPath }, | ||
// { title: 'ํ๋ถ ' + notice.name, href: `${undergraduateNoticePath}?tag=ํ์ฌ(ํ๋ถ)` }, | ||
// ]; | ||
|
||
export default async function MainPage() { | ||
const data = await getMainContents(); | ||
|
||
return ( | ||
<div className={`w-[1264px] h-[1270px] relative mx-auto overflow-hidden`}> | ||
<BgVideo /> | ||
<BackgroundNode /> | ||
<ShortCuts shortCuts={shortCuts} /> | ||
<div className={`relative mx-auto overflow-hidden bg-[#18191b]`}> | ||
{/* <BgVideo /> */} | ||
{/* <BackgroundNode /> */} | ||
{/* <ShortCuts shortCuts={shortCuts} /> */} | ||
{data && <MainPageContent data={data} />} | ||
</div> | ||
); | ||
} | ||
|
||
function BackgroundNode() { | ||
return ( | ||
<div className="absolute w-full"> | ||
<MainNode1 className="absolute top-0 left-[-10px]" /> | ||
<MainNode2 className="absolute top-0 right-0" /> | ||
<MainNode3 className="absolute top-[490px] left-0" /> | ||
<MainNode4 className="absolute top-[300px] right-[188.5px]" /> | ||
<MainNode5 className="absolute top-[865px] left-[186px]" /> | ||
<MainNode6 className="absolute top-[1070px] left-0" /> | ||
<MainNode7 className="absolute top-[1176px] right-1" /> | ||
</div> | ||
); | ||
} | ||
// function BackgroundNode() { | ||
// return ( | ||
// <div className="absolute w-full"> | ||
// <MainNode1 className="absolute top-0 left-[-10px]" /> | ||
// <MainNode2 className="absolute top-0 right-0" /> | ||
// <MainNode3 className="absolute top-[490px] left-0" /> | ||
// <MainNode4 className="absolute top-[300px] right-[188.5px]" /> | ||
// <MainNode5 className="absolute top-[865px] left-[186px]" /> | ||
// <MainNode6 className="absolute top-[1070px] left-0" /> | ||
// <MainNode7 className="absolute top-[1176px] right-1" /> | ||
// </div> | ||
// ); | ||
// } |
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
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
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