-
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 #21 from Network-Leader/13-layout-component
13-layout-component
- Loading branch information
Showing
16 changed files
with
228 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
import React from "react"; | ||
import { FooterBox, FooterContents, FooterIconBox } from "../../styles/layout/footer"; | ||
import { ReactComponent as NLslogo } from '../../assets/NL_logo-white.svg' | ||
import { Text } from "../common"; | ||
|
||
function Footer() { | ||
return ( | ||
<FooterBox> | ||
<FooterIconBox> | ||
<NLslogo width="35px"/> | ||
</FooterIconBox> | ||
<FooterContents> | ||
<Text size="small" color="foot" children="서울특별시 노원구 공릉로" lineheight="28px"/> | ||
<Text size="small" color="foot" children="© 개인정보처리방침 NL. All RIGHT RESERVED" lineheight="28px"/> | ||
</FooterContents> | ||
</FooterBox> | ||
) | ||
} | ||
|
||
export default Footer |
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,42 @@ | ||
import React from "react"; | ||
import { HeaderBox, HeaderContents, HeaderMenuItem, LogoBox } from "../../styles/layout/header"; | ||
import { ReactComponent as NLlogo } from '../../assets/NL_LOGO.svg' | ||
import { Nav } from "../common"; | ||
import { Link } from "react-router-dom"; | ||
|
||
type User = {name: string;} | ||
|
||
type Props = | ||
{ | ||
authenticated: boolean; | ||
profile: User | null; | ||
} | ||
|
||
const menuList = [ | ||
'소개', '활동', '팀 블로그', '지원' | ||
] | ||
|
||
function Header(props: Props) { | ||
return ( | ||
<HeaderBox> | ||
<LogoBox> | ||
<Link to="/"> | ||
<NLlogo style={{'width': '211px', 'height': '105px'}}/> | ||
</Link> | ||
</LogoBox> | ||
<HeaderContents> | ||
{menuList.map((item, index) => ( | ||
<HeaderMenuItem> | ||
<Nav color="white" size="large" children={item} url={item}/> | ||
</HeaderMenuItem> | ||
)) | ||
} | ||
<div> | ||
{props.authenticated ? props.profile?.name : <HeaderMenuItem><Nav color="white" size="large" children='로그인' url='/signin'/></HeaderMenuItem>} | ||
</div> | ||
</HeaderContents> | ||
</HeaderBox> | ||
) | ||
} | ||
|
||
export default Header |
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 +1,19 @@ | ||
import React from "react"; | ||
import { Outlet } from "react-router-dom"; | ||
import { HeaderContents } from "../../styles/layout/header"; | ||
import Footer from "./Footer"; | ||
import Header from "./Header"; | ||
|
||
const Layout = () => { | ||
return ( | ||
<div style={{ backgroundColor: "blue" }}> | ||
<Header authenticated={false} profile={null} /> | ||
|
||
<Outlet /> | ||
|
||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
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 @@ | ||
import React from "react"; |
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,31 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
const FooterBox = styled.div` | ||
position: absolute; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
/* width: 1441px; */ | ||
width: 100%; | ||
height: 318px; | ||
left: 0px; | ||
top: 6057px; | ||
background-color: black; | ||
` | ||
|
||
const FooterIconBox = styled.div` | ||
display: flex; | ||
min-height: 35px; | ||
margin-top: 148px; | ||
min-width: 942px; | ||
border-bottom: 2px solid white; | ||
` | ||
|
||
const FooterContents = styled.div` | ||
min-width: 942px; | ||
color: white; | ||
padding: 40px 0px; | ||
` | ||
|
||
export { FooterBox, FooterIconBox, FooterContents }; |
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,47 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
const HeaderBox = styled.div` | ||
display: flex; | ||
position: fixed; | ||
top: 0px; | ||
left: 0px; | ||
/* width: 1441px; */ | ||
width: 100%; | ||
height: 105px; | ||
z-index: 999; | ||
/* background-color: black; */ | ||
background-image: linear-gradient(to right, black 200px, transparent 200px 411px, black 411px 100%) | ||
` | ||
|
||
const HeaderContents = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
margin-left: 400px; | ||
` | ||
|
||
const HeaderMenuItem = styled.div` | ||
display: flex; | ||
position: relative; | ||
align-items: center; | ||
text-align: center; | ||
justify-content: center; | ||
min-width: 100px; | ||
height: 100%; | ||
cursor: pointer; | ||
` | ||
|
||
const LogoBox = styled.div` | ||
left: 205px; | ||
margin-left: 200px; | ||
min-width: 211px; | ||
min-height: 101px; | ||
cursor: pointer; | ||
` | ||
|
||
export { | ||
HeaderBox, | ||
HeaderContents, | ||
HeaderMenuItem, | ||
LogoBox | ||
}; |
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 @@ | ||
import styled from "@emotion/styled"; |
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