style: update footer style

This commit is contained in:
jinhojang6 2023-08-25 22:53:26 +09:00
parent 3f02cbc83c
commit a54c6dc6d1
4 changed files with 58 additions and 21 deletions

View File

@ -1,7 +1,10 @@
import { Typography } from '@acid-info/lsd-react' import { Typography } from '@acid-info/lsd-react'
import styled from '@emotion/styled' import styled from '@emotion/styled'
import { FooterLink } from '@/components/Footer/Footer.Link' import { FooterLink } from '@/components/Footer/Footer.Link'
import { FooterSectionContainer } from '@/components/Footer/Footer.Section' import {
FooterSection,
FooterSectionContainer,
} from '@/components/Footer/Footer.Section'
const SECOND_LINK_GROUP = [ const SECOND_LINK_GROUP = [
{ {
@ -42,7 +45,23 @@ const THIRD_LINKS_GROUP = [
export const FooterBuPanel = () => { export const FooterBuPanel = () => {
return ( return (
<BusinessUnits> <BusinessUnits>
<Wrapper> <BUInfo>
<Typography
component="div"
genericFontFamily="sans-serif"
variant="body2"
>
Logos
</Typography>
<Typography
component="div"
genericFontFamily="sans-serif"
variant="body2"
>
Business Units:
</Typography>
</BUInfo>
<BUs>
<SecondLinksContainer> <SecondLinksContainer>
{SECOND_LINK_GROUP.map(({ title, links }, idx) => ( {SECOND_LINK_GROUP.map(({ title, links }, idx) => (
<LinkGroup key={'second-group' + idx}> <LinkGroup key={'second-group' + idx}>
@ -99,31 +118,44 @@ export const FooterBuPanel = () => {
</LinkGroup> </LinkGroup>
))} ))}
</ThirdLinksContainer> </ThirdLinksContainer>
</Wrapper> </BUs>
</BusinessUnits> </BusinessUnits>
) )
} }
const Row = styled.div` const BusinessUnits = styled.div`
display: flex; margin-top: 50px;
gap: 8px; padding-top: 16px;
` border-top: 1px solid rgb(var(--lsd-border-primary));
const Wrapper = styled.div`
display: flex; display: flex;
align-items: baseline; align-items: baseline;
/* temporary breakpoint */ @media (max-width: 768px) {
flex-direction: column;
margin-top: 72px;
}
`
const BUInfo = styled(FooterSection)`
@media (max-width: 768px) {
margin-bottom: 76px;
}
`
const BUs = styled(FooterSection)`
display: flex;
flex-direction: row;
gap: 8px;
@media (max-width: 768px) { @media (max-width: 768px) {
flex-direction: column; flex-direction: column;
} }
` `
const SECTION_MARGIN = 50 const Row = styled.div`
display: flex;
const BusinessUnits = styled(FooterSectionContainer)` gap: 8px;
margin-top: ${SECTION_MARGIN}px;
padding: 16px 0 0 0;
` `
const SecondLinksContainer = styled.div` const SecondLinksContainer = styled.div`
@ -132,7 +164,6 @@ const SecondLinksContainer = styled.div`
const ThirdLinksContainer = styled.div` const ThirdLinksContainer = styled.div`
flex: 1; flex: 1;
margin-bottom: ${SECTION_MARGIN}px;
@media (max-width: 768px) { @media (max-width: 768px) {
margin-bottom: 80px; margin-bottom: 80px;

View File

@ -8,6 +8,7 @@ const FIRST_LINK_GRUOP = [
{ label: 'Terms & Conditions', href: 'https://logos.co/terms/' }, { label: 'Terms & Conditions', href: 'https://logos.co/terms/' },
{ label: 'Work with us', href: 'https://jobs.status.im/' }, { label: 'Work with us', href: 'https://jobs.status.im/' },
] ]
export const FooterOrgPanel = () => { export const FooterOrgPanel = () => {
return ( return (
<Wrapper> <Wrapper>
@ -48,7 +49,6 @@ const Wrapper = styled.div`
display: flex; display: flex;
align-items: baseline; align-items: baseline;
/* temporary breakpoint */
@media (max-width: 768px) { @media (max-width: 768px) {
flex-direction: column; flex-direction: column;
} }
@ -56,7 +56,7 @@ const Wrapper = styled.div`
const OrgInfo = styled(FooterSection)` const OrgInfo = styled(FooterSection)`
@media (max-width: 768px) { @media (max-width: 768px) {
margin-bottom: 76px; margin-bottom: 72px;
} }
` `

View File

@ -1,4 +1,6 @@
import { uiConfigs } from '@/configs/ui.configs'
import styled from '@emotion/styled' import styled from '@emotion/styled'
export const FooterSection = styled.div` export const FooterSection = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -9,11 +11,16 @@ export const FooterSection = styled.div`
width: 100%; width: 100%;
} }
` `
export const FooterSectionContainer = styled.div` export const FooterSectionContainer = styled.div`
display: flex; display: flex;
position: relative; position: relative;
flex-direction: column; flex-direction: column;
margin-top: 200px; padding: 16px 0;
padding: 16px;
border-top: 1px solid rgb(var(--lsd-border-primary)); border-top: 1px solid rgb(var(--lsd-border-primary));
margin: 200px auto;
@media (max-width: ${uiConfigs.maxContainerWidth + 32}px) {
margin-inline: 16px;
}
` `

View File

@ -1,4 +1,4 @@
import { Button, Typography } from '@acid-info/lsd-react' import { Button } from '@acid-info/lsd-react'
import styled from '@emotion/styled' import styled from '@emotion/styled'
import { FooterOrgPanel } from '@/components/Footer/Footer.OrgPanel' import { FooterOrgPanel } from '@/components/Footer/Footer.OrgPanel'
import { FooterSectionContainer } from '@/components/Footer/Footer.Section' import { FooterSectionContainer } from '@/components/Footer/Footer.Section'
@ -27,5 +27,4 @@ const ScrollToTop = styled(Button)`
width: fit-content; width: fit-content;
position: absolute; position: absolute;
bottom: 16px; bottom: 16px;
left: 16px;
` `