(#1) Добил вёрстку центральных блоков landing

This commit is contained in:
2024-04-20 22:33:06 +03:00
parent 68e94680e3
commit 79bed2dae6
7 changed files with 146 additions and 48 deletions

View File

@@ -1,19 +1,33 @@
import styled from "@emotion/styled"
import { css } from '@emotion/react'
import styled from "@emotion/styled";
import { css } from "@emotion/react";
export const StyledLink = styled.a`
export const StyledLink = styled.a<{
contrast?: boolean;
inheritColor?: boolean;
}>`
font-weight: 400;
text-decoration: underline;
text-decoration-skip-ink: none;
color: ${(props: any) => props.contrast ? 'var(--text-contrast)' : 'var(--dark-link)'};
color: ${(props: any) =>
props.contrast ? "var(--text-contrast)" : "var(--dark-link)"};
${props => {
${(props) => {
if (props.contrast) {
return css`
&:hover {
color: var(--dark-link);
}
`
}
return css`
&:hover {
color: var(--dark-link);
}
`;
}
}}
${(props) => {
if (props.inheritColor) {
return css`
font-weight: inherit;
color: inherit;
text-decoration: inherit;
`;
}
}}
`;