mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 22:58:08 +00:00
landing page mobile update
This commit is contained in:
parent
61971e2426
commit
adfb5b14fc
@ -25,7 +25,7 @@ const Authors = ({
|
|||||||
index < mentions.length - 1 ? (
|
index < mentions.length - 1 ? (
|
||||||
<>
|
<>
|
||||||
<Author key={mention.name} mention={mention} email={email} />
|
<Author key={mention.name} mention={mention} email={email} />
|
||||||
<Dot variant={'body2'}>.</Dot>
|
<Dot variant={'body2'}>•</Dot>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Author key={mention.name} mention={mention} email={email} />
|
<Author key={mention.name} mention={mention} email={email} />
|
||||||
@ -43,20 +43,12 @@ const AuthorsContainer = styled.div<{
|
|||||||
flex-direction: ${({ flexDirection }) => flexDirection};
|
flex-direction: ${({ flexDirection }) => flexDirection};
|
||||||
gap: ${({ gap }) => gap}px;
|
gap: ${({ gap }) => gap}px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
// WIP
|
|
||||||
/* &:not(:last-child) {
|
|
||||||
&:after {
|
|
||||||
justify-content: center;
|
|
||||||
content: '•';
|
|
||||||
width: 12px;
|
|
||||||
}
|
|
||||||
} */
|
|
||||||
`
|
`
|
||||||
|
|
||||||
const Dot = styled(Typography)`
|
const Dot = styled(Typography)`
|
||||||
transform: translateY(1px);
|
font-size: 14px;
|
||||||
font-size: 18px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
`
|
`
|
||||||
|
|
||||||
export default Authors
|
export default Authors
|
||||||
|
@ -118,7 +118,7 @@ export default function Footer() {
|
|||||||
{title}:
|
{title}:
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<Row>
|
||||||
{links.map(({ label, href }, idx) => (
|
{links.map(({ label, href }, idx) => (
|
||||||
<Link
|
<Link
|
||||||
key={'second-group-link' + idx}
|
key={'second-group-link' + idx}
|
||||||
@ -130,7 +130,7 @@ export default function Footer() {
|
|||||||
{label}
|
{label}
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</Row>
|
||||||
</LinkGroup>
|
</LinkGroup>
|
||||||
))}
|
))}
|
||||||
</SecondLinksContainer>
|
</SecondLinksContainer>
|
||||||
@ -146,7 +146,7 @@ export default function Footer() {
|
|||||||
{title}:
|
{title}:
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<Row>
|
||||||
{links.map(({ label, href }, idx) => (
|
{links.map(({ label, href }, idx) => (
|
||||||
<Link
|
<Link
|
||||||
key={'third-group-link' + idx}
|
key={'third-group-link' + idx}
|
||||||
@ -158,7 +158,7 @@ export default function Footer() {
|
|||||||
{label}
|
{label}
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</Row>
|
||||||
</LinkGroup>
|
</LinkGroup>
|
||||||
))}
|
))}
|
||||||
</ThirdLinksContainer>
|
</ThirdLinksContainer>
|
||||||
@ -177,7 +177,7 @@ const Container = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-top: 196px;
|
margin-top: 200px;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
border-top: 1px solid rgb(var(--lsd-border-primary));
|
border-top: 1px solid rgb(var(--lsd-border-primary));
|
||||||
`
|
`
|
||||||
@ -188,16 +188,14 @@ const Section = styled.div`
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
|
||||||
/* temporary breakpoint */
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const OrgInfo = styled(Section)`
|
const OrgInfo = styled(Section)`
|
||||||
/* temporary breakpoint */
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
margin-bottom: ${SECTION_MARGIN}px;
|
margin-bottom: 76px;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
@ -205,6 +203,7 @@ const Links = styled(Section)`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
`
|
`
|
||||||
|
|
||||||
const Link = styled(Typography)`
|
const Link = styled(Typography)`
|
||||||
@ -212,13 +211,18 @@ const Link = styled(Typography)`
|
|||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
&:after {
|
&:after {
|
||||||
content: '•';
|
content: '•';
|
||||||
margin: 0 8px;
|
margin-left: 8px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const Row = styled.div`
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
`
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
@ -241,6 +245,10 @@ const SecondLinksContainer = styled.div`
|
|||||||
const ThirdLinksContainer = styled.div`
|
const ThirdLinksContainer = styled.div`
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-bottom: ${SECTION_MARGIN}px;
|
margin-bottom: ${SECTION_MARGIN}px;
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
margin-bottom: 80px;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const LinkGroup = styled.div`
|
const LinkGroup = styled.div`
|
||||||
@ -248,6 +256,10 @@ const LinkGroup = styled.div`
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-bottom: 34px;
|
margin-bottom: 34px;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const ScrollToTop = styled(Button)`
|
const ScrollToTop = styled(Button)`
|
||||||
|
@ -109,13 +109,13 @@ export default function Post({
|
|||||||
const _title = useMemo(
|
const _title = useMemo(
|
||||||
() => (
|
() => (
|
||||||
<TitleLink href={`/article/${slug}`}>
|
<TitleLink href={`/article/${slug}`}>
|
||||||
<CustomTypography
|
<Title
|
||||||
variant={size === PostSize.SMALL ? 'h4' : 'h1'}
|
variant={size === PostSize.SMALL ? 'h4' : 'h1'}
|
||||||
genericFontFamily="serif"
|
genericFontFamily="serif"
|
||||||
component="h2"
|
component="h2"
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
</CustomTypography>
|
</Title>
|
||||||
</TitleLink>
|
</TitleLink>
|
||||||
),
|
),
|
||||||
[title, size, slug, isFeatured],
|
[title, size, slug, isFeatured],
|
||||||
@ -125,7 +125,7 @@ export default function Post({
|
|||||||
() =>
|
() =>
|
||||||
classType == PostClassType.ARTICLE && (
|
classType == PostClassType.ARTICLE && (
|
||||||
<Description
|
<Description
|
||||||
variant={size === PostSize.SMALL ? 'body3' : 'h6'}
|
variant={size === PostSize.SMALL ? 'body2' : 'h6'}
|
||||||
genericFontFamily="sans-serif"
|
genericFontFamily="sans-serif"
|
||||||
isFeatured={isFeatured}
|
isFeatured={isFeatured}
|
||||||
>
|
>
|
||||||
@ -247,4 +247,15 @@ const Description = styled(CustomTypography)<{ isFeatured: boolean }>`
|
|||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
margin-right: ${({ isFeatured }) => (isFeatured ? '178px' : '0px')};
|
margin-right: ${({ isFeatured }) => (isFeatured ? '178px' : '0px')};
|
||||||
}
|
}
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
|
const Title = styled(CustomTypography)`
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
font-size: 28px;
|
||||||
|
line-height: 36px;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
|
@ -44,7 +44,7 @@ export const PostsList = (props: Props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Grid style={{ minHeight: '500px' }}>
|
<CustomGrid>
|
||||||
{postsToShow.length > 0 ? (
|
{postsToShow.length > 0 ? (
|
||||||
postsToShow.map((post, index) => (
|
postsToShow.map((post, index) => (
|
||||||
<GridItem
|
<GridItem
|
||||||
@ -65,7 +65,7 @@ export const PostsList = (props: Props) => {
|
|||||||
<Typography variant="body1">No related articles found.</Typography>
|
<Typography variant="body1">No related articles found.</Typography>
|
||||||
</GridItem>
|
</GridItem>
|
||||||
)}
|
)}
|
||||||
</Grid>
|
</CustomGrid>
|
||||||
{posts.length > pageSize && (
|
{posts.length > pageSize && (
|
||||||
<Button onClick={() => handleMoreOrLess()} size={'large'}>
|
<Button onClick={() => handleMoreOrLess()} size={'large'}>
|
||||||
{page * pageSize < posts.length ? 'Load More' : 'Show Less'}
|
{page * pageSize < posts.length ? 'Load More' : 'Show Less'}
|
||||||
@ -75,6 +75,13 @@ export const PostsList = (props: Props) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const CustomGrid = styled(Grid)`
|
||||||
|
min-height: 500px;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
const PostWrapper = styled.div`
|
const PostWrapper = styled.div`
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
padding: 16px 0;
|
padding: 16px 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user