-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from 1Seok2/master
Merge
- Loading branch information
Showing
17 changed files
with
161 additions
and
80 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
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,20 +1,31 @@ | ||
import { apiBase } from '@api/api-base'; | ||
// import { apiBase } from '@api/api-base'; | ||
import Main from '@components/main'; | ||
import { GetServerSideProps } from 'next'; | ||
|
||
const MainPage = (props: any) => { | ||
console.log('main! ', props); | ||
|
||
return <Main />; | ||
}; | ||
|
||
export default MainPage; | ||
|
||
export const getServerSideProps: GetServerSideProps = async (context) => { | ||
const id = context.params; | ||
const data = (await apiBase())?.data || null; | ||
console.log(context); | ||
|
||
// const data = (await apiBase())?.data || null; | ||
console.log('loading ...'); | ||
function sleep(ms: number) { | ||
const wakeUpTime = Date.now() + ms; | ||
while (Date.now() < wakeUpTime) {} | ||
} | ||
sleep(1000); | ||
console.log('done!'); | ||
|
||
return { | ||
props: { | ||
data, | ||
// data, | ||
null: null, | ||
}, | ||
}; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import Header from '@components/header'; | ||
import { OuterContainer } from '@components/utils/styles/container.styled'; | ||
|
||
interface LayoutProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
const Layout = ({ children }: LayoutProps) => ( | ||
<> | ||
<Header /> | ||
<OuterContainer>{children}</OuterContainer> | ||
</> | ||
); | ||
|
||
export default Layout; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './Layout'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//@ts-nocheck | ||
|
||
/** | ||
* @description scroll hooks 사용하여 새 컴포넌트 반환 | ||
* 메인에 사용됨 | ||
|
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,25 +1,32 @@ | ||
import { InitProps } from './components'; | ||
|
||
type ItemStyleType = { | ||
interface ItemStyleType { | ||
height?: string; | ||
backgroundColor?: string; | ||
selected?: string; | ||
show?: boolean; | ||
init?: InitProps; | ||
isAdvertise?: boolean; | ||
}; | ||
minHeight?: string; | ||
} | ||
|
||
type HeaderStyleType = { | ||
interface HeaderStyleType { | ||
isMain?: boolean; | ||
}; | ||
} | ||
|
||
type TitleStyleType = { | ||
interface TitleStyleType { | ||
color?: string; | ||
isLoading?: boolean; | ||
}; | ||
} | ||
|
||
type ContentStyleType = { | ||
interface ContentStyleType { | ||
flexDirection?: string; | ||
}; | ||
} | ||
|
||
export type StyleType = ItemStyleType | HeaderStyleType | TitleStyleType; | ||
export interface StyleType | ||
extends ItemStyleType, | ||
HeaderStyleType, | ||
TitleStyleType, | ||
ContentStyleType {} | ||
|
||
// export type StyleType = ItemStyleType | HeaderStyleType | TitleStyleType; |