diff --git a/src/components/pages/ProfilePage/UserProfilePage.js b/src/components/pages/ProfilePage/UserProfilePage.js index 2953d20..245107a 100644 --- a/src/components/pages/ProfilePage/UserProfilePage.js +++ b/src/components/pages/ProfilePage/UserProfilePage.js @@ -10,6 +10,7 @@ import SuperTooltip from 'components/atoms/SuperTooltip'; import GroupList from 'components/organisms/GroupList'; import ProfileStats from 'components/organisms/ProfileStats'; import Header from 'components/templates/Header'; +import MainFooter from 'components/templates/MainFooter'; import ZaboList from 'components/templates/ZaboList'; import { logout as logoutAction } from 'store/reducers/auth'; @@ -54,54 +55,57 @@ const UserProfile = ({ profile }) => { const groupsWithPending = useMemo (() => [...groups, ...pendingGroups.map (group => ({ ...group, isPending: true }))], [groups, pendingGroups]); return ( - - - - - - { - profilePhoto - ? - : - } - - - {username} - - {description || '아직 소개가 없습니다.'} - - {isMyProfile ? ( - - - 로그아웃 - {isMobile ? '편집' : '프로필 편집'} - {isAdmin && ({isMobile ? '관리' : '관리자'})} - - - ) : ( - // - // {following - // ? 팔로우 취소 - // : 팔로우} - // - '' - )} - - - - - - - - - - - - - 저장한 자보 - - - + <> + + + + + + { + profilePhoto + ? + : + } + + + {username} + + {description || '아직 소개가 없습니다.'} + + {isMyProfile ? ( + + + 로그아웃 + {isMobile ? '편집' : '프로필 편집'} + {isAdmin && ({isMobile ? '관리' : '관리자'})} + + + ) : ( + // + // {following + // ? 팔로우 취소 + // : 팔로우} + // + '' + )} + + + + + + + + + + + + + 저장한 자보 + + + + + > ); }; diff --git a/src/components/templates/MainFooter/MainFooter.js b/src/components/templates/MainFooter/MainFooter.js new file mode 100644 index 0000000..5de8b66 --- /dev/null +++ b/src/components/templates/MainFooter/MainFooter.js @@ -0,0 +1,21 @@ +import React from 'react'; + +import logo from 'static/logo/logo_white.svg'; + +import { MainFooterW } from './MainFooter.styled'; + +// TODO: white sparcs logo svg +const MainFooter = () => ( + + + + + + 만든 사람들 + 라이센스 + + Contact:zabo@sparcs.org + +); + +export default MainFooter; diff --git a/src/components/templates/MainFooter/MainFooter.styled.js b/src/components/templates/MainFooter/MainFooter.styled.js new file mode 100644 index 0000000..aa0c20d --- /dev/null +++ b/src/components/templates/MainFooter/MainFooter.styled.js @@ -0,0 +1,50 @@ +import styled from 'styled-components'; + +export const MainFooterW = styled.div` + position: relative; + left: 0; + bottom: 0; + height: 50px; + color: white; + background-color: #143441; + padding: 0 24px; + + display: flex; + align-items: center; + + @media(max-width: 910px) { + padding: 0 16px; + } +`; + +MainFooterW.Links = styled.div` + font-size: 15px; + line-height: 17px; + font-weight: 700; + margin-left: 40px; + + flex: 1; + display: flex; + align-items: center; + @media(max-width: 910px) { + justify-content: flex-end; + } +`; + +MainFooterW.Button = styled.div` + margin-left: 24px; + cursor: pointer; + + @media(max-width: 910px) { + margin-left: 12px; + } +`; + +MainFooterW.Contact = styled.div` + font-size: 13px; + font-weight: 700; + + @media(max-width: 910px) { + display: none; + } +`; diff --git a/src/components/templates/MainFooter/index.js b/src/components/templates/MainFooter/index.js new file mode 100644 index 0000000..630ad7e --- /dev/null +++ b/src/components/templates/MainFooter/index.js @@ -0,0 +1 @@ +export { default } from './MainFooter';
{description || '아직 소개가 없습니다.'}