style: update bu page design

This commit is contained in:
jinhojang6 2023-11-18 21:23:46 +09:00
parent 79ee5e6462
commit d37e592fdb
3 changed files with 25 additions and 21 deletions

View File

@ -13,14 +13,15 @@ interface Props {
export const BUHero = ({ data }: Props) => {
return (
<Container>
<MarkContainer>
<Mark
width={520}
height={520}
src={businessUnitMark(data?.bu)}
alt={data?.bu + '-mark'}
/>
</MarkContainer>
<Left>
<MarkContainer>
<Mark
fill
src={businessUnitMark(data?.bu)}
alt={data?.bu + '-mark'}
/>
</MarkContainer>
</Left>
<BUInfo>
<Header>
<Title>
@ -129,8 +130,7 @@ const Container = styled.div`
width: 100%;
flex-wrap: wrap;
box-sizing: border-box;
justify-content: space-between;
padding: 16px;
padding: 0 16px;
@media (max-width: ${breakpoints.md}px) {
padding: 0 8px;
@ -139,6 +139,10 @@ const Container = styled.div`
const MarkContainer = styled.div`
box-sizing: border-box;
position: relative;
width: 520px;
height: 520px;
padding: 150px;
@media (max-width: ${breakpoints.md}px) {
display: none;
@ -151,11 +155,18 @@ const Mark = styled(Image)`
}
`
const Left = styled.div`
display: flex;
align-items: center;
width: 50%;
box-sizing: border-box;
`
const BUInfo = styled.div`
display: flex;
flex-direction: column;
width: 50%;
padding: 32px 0 48px 0;
padding: 32px 0 48px 16px;
box-sizing: border-box;
@media (max-width: ${breakpoints.md}px) {
@ -209,7 +220,6 @@ const Content = styled.div`
display: flex;
flex-direction: column;
width: 100%;
padding-bottom: 40px;
p {
text-overflow: ellipsis;

View File

@ -1,4 +1,4 @@
import { breakpoints, uiConfigs } from '@/configs/ui.configs'
import { breakpoints } from '@/configs/ui.configs'
import { BUMenuBar } from '@/pages/[bu]'
import styled from '@emotion/styled'
import { Tag } from '../Tag'
@ -45,7 +45,6 @@ const BUMenuFilter = ({ activeMenus, setActiveMenus }: Props) => {
const Container = styled.div`
display: flex;
flex-direction: column;
margin-top: calc(${uiConfigs.navbarHeight}px + 24px);
padding-inline: 16px;
@media (max-width: ${breakpoints.md}px) {

View File

@ -57,12 +57,7 @@ const Item = styled.div`
display: flex;
flex-direction: column;
gap: 24px;
&:first-of-type {
span {
border-radius: 50%;
}
}
border-radius: 2px;
&:last-of-type {
hr {
@ -130,7 +125,7 @@ const Step = styled.span`
`
const StepNumber = styled.p`
font-size: 14px;
font-size: 14px !important;
line-height: 24px;
`