Skip to content

Commit

Permalink
fix: add Tiempos Headline font and fix example table styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Junghyun2006 committed Jul 19, 2022
1 parent 9982d86 commit a0c95da
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 20 deletions.
36 changes: 18 additions & 18 deletions docs/components/homepage-components/HomeBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const SubContainer = styled(Flex)`
`;

const SubHeading = styled(Heading)`
font-family: tiempos;
font-family: Tiempos-Headline;
font-size: 38px;
font-weight: 400;
color: #fff;
Expand Down Expand Up @@ -100,14 +100,14 @@ export default function HomeBody() {
<Box className="mx-12 mt-8 sm:mt-32 mb-24 lg:m-24">
<Heading
as="h3"
fontFamily="tiempos"
fontFamily="Tiempos-Headline"
fontSize="46px"
fontWeight="400"
lineHeight="1"
>
Your new favorite React component library
</Heading>
<div className="my-8 sm:my-16">
<div className="my-8 sm:mt-6 sm:mb-16">
<Text color="secondary" fontSize="lg" lineHeight="26px">
Professionally designed and built by a team of React developers
and product designers—Minerva gives you the components needed to
Expand Down Expand Up @@ -192,9 +192,9 @@ export default function HomeBody() {
<Heading
as="h4"
fontSize="46px"
mb="2"
mb="4"
fontWeight="400"
fontFamily="tiempos"
fontFamily="Tiempos-Headline"
>
Accessibility for all
</Heading>
Expand Down Expand Up @@ -255,9 +255,9 @@ export default function HomeBody() {
<Heading
as="h4"
fontSize="46px"
mb="2"
mb="6"
fontWeight="400"
fontFamily="tiempos"
fontFamily="Tiempos-Headline"
lineHeight="1"
>
Built by developers, for developers
Expand All @@ -271,7 +271,7 @@ export default function HomeBody() {
<Button variant="tertiary" mb="8" mt="6" minWidth="140px">
Learn more
</Button>
<Flex width="100%" mt="8" className="flex-col-reverse md:flex-row">
<Flex width="100%" mt="8" className="flex-col-reverse md:flex-row md:flex-row-reverse lg:flex-row">
<SnippetContainer width="100%" mr="8">
<CodeSnippet
snippetBackground="#1F1B29"
Expand All @@ -281,7 +281,7 @@ export default function HomeBody() {
</CodeSnippet>
</SnippetContainer>

<Box width="100%" className="ml-0 mb-4 md:ml-12 md:mt-0">
<Box width="100%" className="ml-0 mb-4 lg:ml-12 md:mt-0">
<Box shadow="lg" borderRadius="md" p="2" maxWidth="264px">
<Image
src="mountain_sky.png"
Expand Down Expand Up @@ -323,9 +323,9 @@ export default function HomeBody() {
<Heading
as="h4"
fontSize="46px"
mb="2"
mb="6"
fontWeight="400"
fontFamily="tiempos"
fontFamily="Tiempos-Headline"
lineHeight="1"
>
Delightfully designed
Expand All @@ -339,10 +339,10 @@ export default function HomeBody() {
<Button variant="tertiary" mb="8" mt="6" minWidth="140px">
Check out the Figma components
</Button>
<Flex width="100%" mt="8" className="flex-col md:flex-row">
<Flex width="100%" mt="8" className="flex-col lg:flex-row">
<TableExample />

<SnippetContainer width="100%" className="ml-0 mt-4 md:ml-8 mt-0">
<SnippetContainer width="100%" className="ml-0 mt-4 lg:ml-8 mt-0">
<CodeSnippet
snippetBackground="#F7F4FF"
style={{ fontSize: '12px' }}
Expand All @@ -366,7 +366,7 @@ export default function HomeBody() {
fontSize="46px"
mb="2"
fontWeight="400"
fontFamily="tiempos"
fontFamily="Tiempos-Headline"
>
Globally themed
</Heading>
Expand Down Expand Up @@ -439,7 +439,7 @@ export default function HomeBody() {
fontSize="46px"
mb="2"
fontWeight="400"
fontFamily="tiempos"
fontFamily="Tiempos-Headline"
>
Fully customizable
</Heading>
Expand All @@ -451,15 +451,15 @@ export default function HomeBody() {
<Button variant="tertiary" mb="8" mt="6" minWidth="140px">
Learn more
</Button>
<Flex width="100%" mt="8" className="flex-col md:flex-row">
<Flex width="100%" mt="8" className="flex-col lg:flex-row">
<TableExample />
<SnippetContainer
width="100%"
className="ml-0 mt-4 md:ml-8 md:mt-0"
className="ml-0 mt-4 lg:ml-8 lg:mt-0"
>
<CodeSnippet
snippetBackground="#F7F4FF"
style={{ fontSize: '12px' }}
style={{ fontSize: '12px', fontFamily: 'Roboto Mono' }}
>
{snippetText}
</CodeSnippet>
Expand Down
13 changes: 13 additions & 0 deletions docs/components/homepage-components/TableExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ const TableRowSection = () => (
Tag Label
</Tag>
</TableCell>
<TableCell style={{ paddingLeft: '8px' }}>
<Text fontSize="xs" lineHeight="20px">
Admin
</Text>
</TableCell>
<TableCell style={{ paddingLeft: '8px' }}>
<Text fontSize="xs" lineHeight="20px" color="#651FFF" fontWeight="bold">
Edit
</Text>
</TableCell>
</TableRow>
);

Expand All @@ -75,6 +85,9 @@ export default function TableExample() {
<TableHeaderCell style={{ paddingLeft: '8px' }}>
Status
</TableHeaderCell>
<TableHeaderCell style={{ paddingLeft: '8px' }}>
Role
</TableHeaderCell>
</TableRow>
</TableHeader>
<TableBody>
Expand Down
6 changes: 6 additions & 0 deletions docs/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ input[type='color']::-webkit-color-swatch {
.DocSearch-Search-Icon {
color: #bab9bd !important;
}

@font-face {
font-family: 'Tiempos-Headline';
font-style: normal;
src: url('/fonts/TiemposHeadline-Regular.otf') format('opentype');
}
2 changes: 1 addition & 1 deletion docs/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const customVariants = {
},
Text: {
...defaultTheme.Text,
fontFamily: "'Roboto Condensed', sans-serif",
fontFamily: "'Roboto', sans-serif",
fontSize: '14px',
lineHeight: '24px',
},
Expand Down
Binary file added docs/public/fonts/TiemposHeadline-Black.otf
Binary file not shown.
Binary file added docs/public/fonts/TiemposHeadline-BlackItalic.otf
Binary file not shown.
Binary file added docs/public/fonts/TiemposHeadline-Bold.otf
Binary file not shown.
Binary file added docs/public/fonts/TiemposHeadline-BoldItalic.otf
Binary file not shown.
Binary file added docs/public/fonts/TiemposHeadline-Light.otf
Binary file not shown.
Binary file added docs/public/fonts/TiemposHeadline-LightItalic.otf
Binary file not shown.
Binary file added docs/public/fonts/TiemposHeadline-Medium.otf
Binary file not shown.
Binary file not shown.
Binary file added docs/public/fonts/TiemposHeadline-Regular.otf
Binary file not shown.
Binary file not shown.
Binary file added docs/public/fonts/TiemposHeadline-Semibold.otf
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/theme/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ input[type='search']::-webkit-search-results-decoration {
bottom: 0;
left: 0;
right: 0;
}
}

0 comments on commit a0c95da

Please sign in to comment.