Skip to content

Commit

Permalink
fix(frontend): fix missing font-face (#2833)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc committed Jun 28, 2023
1 parent 8aa75f9 commit d3bdecd
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 156 deletions.
Binary file added web/public/SF-Pro-Text-Bold.otf
Binary file not shown.
Binary file added web/public/SF-Pro-Text-Semibold.otf
Binary file not shown.
13 changes: 13 additions & 0 deletions web/src/App.less
Expand Up @@ -2,9 +2,22 @@

@font-face {
font-family: SFPro;
font-weight: normal;
src: url('../public/SF-Pro-Text-Regular.otf') format('opentype');
}

@font-face {
font-family: SFPro;
font-weight: 600;
src: url('../public/SF-Pro-Text-Semibold.otf') format('opentype');
}

@font-face {
font-family: SFPro;
font-weight: bold;
src: url('../public/SF-Pro-Text-Bold.otf') format('opentype');
}

html,
body {
height: 100vh;
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/DocsBanner/DocsBanner.styled.ts
@@ -1,4 +1,4 @@
import { Typography } from 'antd';
import {Typography} from 'antd';
import styled from 'styled-components';

export const DocsBannerContainer = styled.div`
Expand All @@ -8,11 +8,11 @@ export const DocsBannerContainer = styled.div`
padding: 12px 18px;
border-radius: 2px;
width: max-content;
background: ${({ theme }) => theme.color.backgroundInteractive};
background: ${({theme}) => theme.color.backgroundInteractive};
`;

export const Text = styled(Typography.Text)`
a {
font-weight: 700;
font-weight: 600;
}
`;
1 change: 0 additions & 1 deletion web/src/components/EditTest/EditTest.styled.ts
Expand Up @@ -5,7 +5,6 @@ export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.lg};
margin-bottom: 25px;
font-weight: 700;
}
`;

Expand Down
Expand Up @@ -5,7 +5,6 @@ export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.lg};
margin-bottom: 25px;
font-weight: 700;
}
`;

Expand Down
Expand Up @@ -9,7 +9,6 @@ export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.lg};
margin-bottom: 16px;
font-weight: 700;
}
`;

Expand Down
Expand Up @@ -20,7 +20,6 @@ export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.lg};
margin: 0;
font-weight: 700;
}
`;

Expand Down Expand Up @@ -87,11 +86,6 @@ export const Text = styled(Typography.Text)`
font-size: ${({theme}) => theme.size.sm};
`;

export const StatusSpan = styled.span<{$isError: boolean}>`
color: ${({$isError, theme}) => ($isError ? theme.color.error : theme.color.success)};
font-weight: 700;
`;

export const HeadersList = styled.div`
display: flex;
flex-direction: column;
Expand Down
Expand Up @@ -20,7 +20,6 @@ export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.lg};
margin: 0;
font-weight: 700;
}
`;

Expand Down Expand Up @@ -83,7 +82,7 @@ export const Text = styled(Typography.Text)`

export const StatusSpan = styled.span<{$isError: boolean}>`
color: ${({$isError, theme}) => ($isError ? theme.color.error : theme.color.success)};
font-weight: 700;
font-weight: 600;
`;

export const HeadersList = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/RunEvents/RunEvents.styled.ts
Expand Up @@ -72,7 +72,7 @@ export const InfoIcon = styled(InfoCircleFilled)<{$isLarge?: boolean}>`
`;

export const Link = styled(Typography.Link)`
font-weight: bold;
font-weight: 600;
`;

export const ListContainer = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Settings/DataStore/DataStore.styled.ts
Expand Up @@ -5,7 +5,7 @@ export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.md};
margin-bottom: 16px;
font-weight: 700;
font-weight: 600;
}
`;

Expand Down
@@ -1,6 +1,6 @@
import styled from 'styled-components';
import {Typography} from 'antd';
import { CheckCircleOutlined } from '@ant-design/icons';
import {CheckCircleOutlined} from '@ant-design/icons';

export const FormContainer = styled.div`
display: grid;
Expand Down Expand Up @@ -73,7 +73,6 @@ export const DataStoreName = styled(Typography.Text)<{$isSelected: boolean}>`
export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.md};
font-weight: 700;
margin: 0 !important;
}
`;
Expand Down
Expand Up @@ -56,7 +56,6 @@ export const FormColumn = styled.div`
export const Title = styled(Typography.Title)`
&& {
font-size: ${({theme}) => theme.size.md};
font-weight: 700;
margin: 0;
}
`;
Expand Down
43 changes: 0 additions & 43 deletions web/src/components/TestSpecForm/Fields/AttributeField.styled.tsx

This file was deleted.

49 changes: 0 additions & 49 deletions web/src/components/TestSpecForm/Fields/AttributeField.tsx

This file was deleted.

This file was deleted.

Expand Up @@ -98,7 +98,7 @@ export const EntryPointTag = styled(TextTag)`

export const ExecutionStepStatus = styled.div`
color: ${({theme}) => theme.color.textLight};
font-weight: 700;
font-weight: 600;
`;

export const ExecutionStepRunLink = styled(Link)`
Expand Down
10 changes: 2 additions & 8 deletions web/src/pages/Environments/Environment.styled.tsx
Expand Up @@ -47,15 +47,9 @@ export const VariablesText = styled(Typography)`
flex-basis: 50%;
`;

export const HeaderText = styled(Typography)`
export const HeaderText = styled(Typography.Text)`
flex-basis: 50%;
font-weight: bold;
padding-left: 8px;
`;

export const HeaderTextRight = styled(Typography)`
flex-basis: 50%;
font-weight: bold;
font-weight: 600;
`;

export const VariablesMainContainer = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Environments/EnvironmentCard.tsx
Expand Up @@ -90,7 +90,7 @@ export const EnvironmentCard = ({
<E.VariablesMainContainer>
<E.HeaderContainer>
<E.HeaderText>Key</E.HeaderText>
<E.HeaderTextRight>Value</E.HeaderTextRight>
<E.HeaderText>Value</E.HeaderText>
</E.HeaderContainer>
<E.VariablesContainer>
{values.map(value => (
Expand Down

0 comments on commit d3bdecd

Please sign in to comment.