-
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.
Merge pull request #5 from Team-INSERT/refactor/layout
Refactor/layout
- Loading branch information
Showing
60 changed files
with
1,566 additions
and
1,476 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { AccodianMenu, Aside, Board, Classify, ScrollBtn, SubFooter } from '@/components' | ||
import Docs from '@/types/docs.type' | ||
import React from 'react' | ||
import * as S from './StaticLayout.style' | ||
|
||
interface AccidentLayoutPropsType { | ||
years: number[] | ||
docs: Docs[] | ||
} | ||
|
||
const AccidentLayout = ({ years, docs }: AccidentLayoutPropsType) => { | ||
return ( | ||
<S.StaticWrap> | ||
<Board> | ||
<S.StaticTitleWrap> | ||
<S.StaticTitleText>부마위키:사건/사고</S.StaticTitleText> | ||
</S.StaticTitleWrap> | ||
<S.StaticClassify> | ||
<Classify>사건/사고</Classify> | ||
</S.StaticClassify> | ||
<S.StaticLine /> | ||
<S.StaticListWrap> | ||
{years.map((year) => ( | ||
<AccodianMenu name={`${year}년 사건/사고`} key={year} isOpen={true}> | ||
{docs.map((accident: Docs) => ( | ||
<S.StaticList key={accident.id}> | ||
{accident.enroll === year && ( | ||
<S.StaticListItem> | ||
<S.StaticLink href={`/docs/${accident.title}`}>{accident.title}</S.StaticLink> | ||
</S.StaticListItem> | ||
)} | ||
</S.StaticList> | ||
))} | ||
</AccodianMenu> | ||
))} | ||
</S.StaticListWrap> | ||
<SubFooter /> | ||
</Board> | ||
<ScrollBtn /> | ||
<Aside /> | ||
</S.StaticWrap> | ||
) | ||
} | ||
|
||
export default AccidentLayout |
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,52 @@ | ||
import { AccodianMenu, Aside, Board, Classify, ScrollBtn, SubFooter } from '@/components' | ||
import Docs from '@/types/docs.type' | ||
import React from 'react' | ||
import * as S from './StaticLayout.style' | ||
|
||
interface ClubLayoutPropsType { | ||
major_club: Docs[] | ||
custom_club: Docs[] | ||
} | ||
|
||
const ClubLayout = ({ major_club, custom_club }: ClubLayoutPropsType) => { | ||
return ( | ||
<S.StaticWrap> | ||
<Board> | ||
<S.StaticTitleWrap> | ||
<S.StaticTitleText>부마위키:동아리</S.StaticTitleText> | ||
</S.StaticTitleWrap> | ||
<S.StaticClassify> | ||
<Classify>동아리</Classify> | ||
</S.StaticClassify> | ||
<S.StaticLine /> | ||
<S.StaticListWrap> | ||
<AccodianMenu name={`전공동아리`}> | ||
<S.StaticList> | ||
{major_club.map((club: Docs) => ( | ||
<S.StaticListItem key={club.id}> | ||
<S.StaticLink href={`/docs/${club.title}`}>{club.title}</S.StaticLink> | ||
</S.StaticListItem> | ||
))} | ||
</S.StaticList> | ||
</AccodianMenu> | ||
</S.StaticListWrap> | ||
<S.StaticListWrap> | ||
<AccodianMenu name={`사설동아리`}> | ||
<S.StaticList> | ||
{custom_club.map((club: Docs) => ( | ||
<S.StaticListItem key={club.id}> | ||
<S.StaticLink href={`/docs/${club.title}`}>{club.title}</S.StaticLink> | ||
</S.StaticListItem> | ||
))} | ||
</S.StaticList> | ||
</AccodianMenu> | ||
</S.StaticListWrap> | ||
<SubFooter /> | ||
</Board> | ||
<ScrollBtn /> | ||
<Aside /> | ||
</S.StaticWrap> | ||
) | ||
} | ||
|
||
export default ClubLayout |
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
Oops, something went wrong.