Commit 43287be7 authored by 박민석's avatar 박민석

add Footer

parent 0cd7937d
...@@ -11,7 +11,7 @@ function App () { ...@@ -11,7 +11,7 @@ function App () {
<> <>
<Header /> <Header />
<Banner /> <Banner />
<Section gap='3rem'> <Section title='Products' gap='3rem'>
<Card <Card
title='BXM' title='BXM'
subTitle='Business eXcellence Framework' subTitle='Business eXcellence Framework'
......
// @ts-nocheck // @ts-nocheck
import styled from 'styled-components' import styled from 'styled-components'
import logoImg from '../assets/images/logo.png' import Logo from './Logo'
export default function Footer () { export default function Footer () {
return <Wrapper> return <Wrapper>
<LogoWrap> <Logo />
<Logo className={clsx({ active: scrollY > 10 })} image={ scrollY > 10 ? colorLogoImg : logoImg} /> <CopyRight>Copyright© Bankwareglobal All Rights Reserved.</CopyRight>
<LogoTitpeWrap>
<LogoTitle type='main'>SWLab</LogoTitle>
<LogoTitle type='sub'>Bankware Global</LogoTitle>
</LogoTitpeWrap>
</LogoWrap>
</Wrapper> </Wrapper>
} }
...@@ -21,4 +16,11 @@ const Wrapper = styled.div` ...@@ -21,4 +16,11 @@ const Wrapper = styled.div`
height: auto; height: auto;
padding: 2.25rem 5rem; padding: 2.25rem 5rem;
font-size: 1.125rem; font-size: 1.125rem;
display: flex;
align-items: center;
`
const CopyRight = styled.p`
color: #fff;
font-size: 14px;
font-weight: 400;
` `
// @ts-nocheck // @ts-nocheck
import { useState, useEffect } from 'react' import { useState, useEffect } from 'react'
import clsx from 'clsx'
import styled from 'styled-components' import styled from 'styled-components'
import logoImg from '../assets/images/logo.png' import clsx from 'clsx'
import colorLogoImg from '../assets/images/logo_color.png'
import Nav from './Nav' import Nav from './Nav'
import Logo from './Logo'
export default function Header () { export default function Header () {
const [scrollY, setScrollY] = useState(0) const [scrollY, setScrollY] = useState(0)
...@@ -25,13 +25,7 @@ export default function Header () { ...@@ -25,13 +25,7 @@ export default function Header () {
return ( return (
<Wrapper className={clsx({ active: scrollY > 10 })}> <Wrapper className={clsx({ active: scrollY > 10 })}>
<LogoWrap> <Logo active={scrollY > 10} />
<Logo className={clsx({ active: scrollY > 10 })} image={ scrollY > 10 ? colorLogoImg : logoImg} />
<LogoTitpeWrap>
<LogoTitle type='main'>SWLab</LogoTitle>
<LogoTitle type='sub'>Bankware Global</LogoTitle>
</LogoTitpeWrap>
</LogoWrap>
<Nav /> <Nav />
</Wrapper> </Wrapper>
) )
...@@ -60,34 +54,3 @@ const Wrapper = styled.div` ...@@ -60,34 +54,3 @@ const Wrapper = styled.div`
transition: background-color 1s, box-shadow .2s, max-height .8s; transition: background-color 1s, box-shadow .2s, max-height .8s;
} }
` `
const Logo = styled.div`
margin-top: 10px;
margin-right: 6px;
width: 35px;
height: 44px;
background-image: url(${props => props.image});
background-size: contain;
background-repeat: no-repeat;
&.active {
width: 52px;
height: 52px;
}
`
const LogoWrap = styled.div`
display: flex;
align-items: center;
flex-grow: 1;
width: 300px;
height: 60px;
margin-top: -8px;
`
const LogoTitpeWrap = styled.div`
display: flex;
flex-direction: column;
`
const LogoTitle = styled.span`
font-size: ${(props) => (props.type === 'main' ? '33px' : '14px')};
font-weight: ${(props) => (props.type === 'main' ? 600 : 400)};
margin-top: ${(props) => (props.type !== 'main' && '-4px')}
`
// @ts-nocheck
import styled from 'styled-components'
import logoImg from '../assets/images/logo.png'
import colorLogoImg from '../assets/images/logo_color.png'
import clsx from 'clsx'
export default function Logo (props) {
const { active = false } = props
return (<Wrapper>
<Image className={clsx({ active: active })} image={ active ? colorLogoImg : logoImg} />
<TitleWrap>
<Title type='main'>SWLab</Title>
<Title type='sub'>Bankware Global</Title>
</TitleWrap>
</Wrapper>)
}
const Image = styled.div`
margin-top: 10px;
margin-right: 6px;
width: 35px;
height: 44px;
background-image: url(${props => props.image});
background-size: contain;
background-repeat: no-repeat;
&.active {
width: 52px;
height: 52px;
}
`
const Wrapper = styled.div`
display: flex;
align-items: center;
flex-grow: 1;
width: 300px;
height: 60px;
margin-top: -8px;
`
const TitleWrap = styled.div`
display: flex;
flex-direction: column;
`
const Title = styled.span`
font-size: ${(props) => (props.type === 'main' ? '33px' : '14px')};
font-weight: ${(props) => (props.type === 'main' ? 600 : 400)};
margin-top: ${(props) => (props.type !== 'main' && '-4px')}
`
...@@ -2,18 +2,30 @@ ...@@ -2,18 +2,30 @@
import styled from 'styled-components' import styled from 'styled-components'
export default function Section (props) { export default function Section (props) {
const { gap } = props const { gap, title } = props
return <Wrapper gap={gap}> return <Wrapper>
<Title>{title}</Title>
<Contents gap={gap}>
{props.children} {props.children}
</Contents>
</Wrapper> </Wrapper>
} }
const Wrapper = styled.div` const Wrapper = styled.section`
display: flex; display: flex;
flex-direction: ${props => props.flexDirection}; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: ${props => props.gap};
padding: 80px 0; padding: 80px 0;
` `
const Title = styled.h1`
font-size: 4rem;
font-weight: 700;
`
const Contents = styled.div`
display: flex;
justify-content: center;
align-items: center;
gap: ${props => props.gap};
`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment