(#1) Добил вёрстку центральных блоков landing
This commit is contained in:
@@ -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;
|
||||
`;
|
||||
}
|
||||
}}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user