Skip to content

Commit

Permalink
[#34] Feat: Footer 작업
Browse files Browse the repository at this point in the history
  • Loading branch information
seocylucky committed Aug 4, 2023
1 parent 642d314 commit be05eca
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
79 changes: 79 additions & 0 deletions components/reusable/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { styled } from 'styled-components';
import theme from '../../styles/theme';
import Spacing from './Spacing';

interface TextProps {
size: 'M' | 'L';
}

const Footer = () => {
return (
<Container>
<Spacing direction="vertical" size={62} />
<FooterFlex>
<WhiteLogo />
<TextFlex>
<WHiteText size="L">Contact</WHiteText>
<WHiteText size="M">[email protected]</WHiteText>
</TextFlex>
</FooterFlex>
<Spacing direction="vertical" size={150} />
<Line />
<Spacing direction="vertical" size={32} />
<FooterFlex>
<WHiteText size="M">Copyright ⓒ Soongcharo All Rights Reserved.</WHiteText>
<TextFlex>
<WHiteText size="M">이용약관</WHiteText>
<WHiteText size="M">숭차로 운영 정책</WHiteText>
<WHiteText size="L">개인정보 처리방침</WHiteText>
</TextFlex>
</FooterFlex>
</Container>
);
};

export default Footer;

const Container = styled.div`
width: 100%;
height: 352px;
padding-left: 240px;
padding-right: 240px;
position: absolute;
bottom: 0;
background-color: ${theme.colors.footer};
border-bottom: 2px solid ${theme.colors.gray1};
align-items: center;
`;

const WhiteLogo = styled.div`
width: 68px;
height: 24px;
background-image: url('whiteLogo.svg');
`;

const FooterFlex = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
`;

const TextFlex = styled.div`
display: flex;
flex-direction: row;
gap: 30px;
`;

const WHiteText = styled.div<TextProps>`
color: ${theme.colors.white};
font-size: ${(props) =>
props.size === 'M' ? theme.fontStyles.Text_M.fontSize : theme.fontStyles.Text_L.fontSize}px;
font-weight: ${(props) =>
props.size === 'M' ? theme.fontStyles.Text_M.fontWeight : theme.fontStyles.Text_L.fontWeight};
`;

const Line = styled.div`
width: 100%;
height: 1px;
background-color: ${theme.colors.gray2};
`;
3 changes: 3 additions & 0 deletions public/whiteLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit be05eca

Please sign in to comment.