Further responsive styling of docs home
This commit is contained in:
committed by
fabioberger
parent
745bdda1a3
commit
a20c40ca90
@@ -12,7 +12,7 @@ export interface IStepLinkConfig {
|
||||
export const StepLink: React.FC<IStepLinkConfig> = props => (
|
||||
<StepLinkWrapper href={props.url}>
|
||||
<StepLinkText>{props.title}</StepLinkText>
|
||||
<svg width="14" height="14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg height="14px" width="14px" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
clipRule="evenodd"
|
||||
@@ -38,8 +38,18 @@ const StepLinkWrapper = styled.a`
|
||||
& + & {
|
||||
border-top: 1px solid #dbdfdd;
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
svg {
|
||||
transform: scale(0.85);
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const StepLinkText = styled.span`
|
||||
font-size: 1.25rem;
|
||||
|
||||
@media (max-width: 500px) {
|
||||
font-size: 16px;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -31,13 +31,13 @@ export const DocsHome: React.FC = () => {
|
||||
<div>
|
||||
<Heading size="default">Get Started</Heading>
|
||||
{getStartedLinks.map((link, index) => (
|
||||
<Fragment key={`get-started-${index}`}>
|
||||
<Fragment key={`getStarted-${index}`}>
|
||||
<GetStartedButton color={colors.brandDark} href={link.url} isWithArrow={true}>
|
||||
{link.heading}
|
||||
</GetStartedButton>
|
||||
<Paragraph color={colors.textDarkPrimary} isMuted={1}>
|
||||
<GetStartedParagraph color={colors.textDarkPrimary} isMuted={1}>
|
||||
{link.description}
|
||||
</Paragraph>
|
||||
</GetStartedParagraph>
|
||||
</Fragment>
|
||||
))}
|
||||
</div>
|
||||
@@ -74,13 +74,28 @@ const GetStartedWrapper = styled.div`
|
||||
grid-column-gap: 70px;
|
||||
grid-row-gap: 30px;
|
||||
|
||||
@media (max-width: 500px) {
|
||||
@media (max-width: 900px) {
|
||||
grid-column-gap: 30px;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
`;
|
||||
|
||||
const GetStartedButton = styled(Button)`
|
||||
margin-bottom: 12px;
|
||||
|
||||
@media (max-width: 500px) {
|
||||
font-size: 16px !important;
|
||||
|
||||
svg {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const GetStartedParagraph = styled(Paragraph)`
|
||||
@media (max-width: 500px) {
|
||||
font-size: 14px;
|
||||
}
|
||||
`;
|
||||
|
||||
const CommunityWrapper = styled.div`
|
||||
@@ -99,6 +114,10 @@ const Separator = styled.hr`
|
||||
border-color: #e4e4e4;
|
||||
height: 0;
|
||||
margin: 60px 0;
|
||||
|
||||
@media (max-width: 500px) {
|
||||
margin: 30px 0;
|
||||
}
|
||||
`;
|
||||
|
||||
const shortcuts: IShortcutLinkProps[] = [
|
||||
|
||||
Reference in New Issue
Block a user