@@ -54,6 +54,29 @@ const SubHeading = styled(Heading)`
5454 margin-top: 0;
5555` ;
5656
57+ const MainHeading = styled ( Heading ) `
58+ margin-top: 0px;
59+ font-family: 'Tiempos-Headline';
60+ font-size: 48px;
61+ line-height: 56px;
62+ font-weight: 400;
63+ margin-bottom: 24px;
64+ @media (max-width: 640px) {
65+ font-size: 36px;
66+ line-height: 44px;
67+ }
68+ ` ;
69+
70+ const MainText = styled ( Text ) `
71+ font-family: 'Roboto';
72+ font-size: 18px;
73+ line-height: 25px;
74+ @media (max-width: 640px) {
75+ font-size: 16px;
76+ line-height: 26px;
77+ }
78+ ` ;
79+
5780const StyledModalHeader = styled ( ModalHeader ) `
5881 p {
5982 width: 100%;
@@ -97,18 +120,12 @@ export default function HomeBody() {
97120 < Box >
98121 < Flex className = "flex-col sm:flex-row pt-6" >
99122 < Box className = "flex-1 mb-4 sm:mb-0" >
100- < Box className = "mx-12 mt-8 sm:mt-32 mb-24 lg:m-24" >
101- < Heading
102- as = "h3"
103- fontFamily = "Tiempos-Headline"
104- fontSize = "46px"
105- fontWeight = "400"
106- lineHeight = "1"
107- >
123+ < Box className = "mx-6 sm:mx-12 mt-8 sm:mt-32 mb-24 lg:m-24" >
124+ < MainHeading as = "h3" >
108125 Your new favorite React component library
109- </ Heading >
126+ </ MainHeading >
110127 < div className = "my-8 sm:mt-6 sm:mb-16" >
111- < Text
128+ < MainText
112129 color = "secondary"
113130 fontSize = "lg"
114131 lineHeight = "26px"
@@ -117,17 +134,17 @@ export default function HomeBody() {
117134 Professionally designed and built by a team of React developers
118135 and product designers—Minerva gives you the components needed to
119136 start building your React app stat.{ ' ' }
120- </ Text >
137+ </ MainText >
121138 </ div >
122139 < StyledButton
123140 variant = "tertiary"
124141 mr = "2"
125- minWidth = "140px "
142+ minWidth = "168px "
126143 className = "mb-4 sm:mb-0"
127144 >
128145 Get started
129146 </ StyledButton >
130- < StyledButton variant = "primary" minWidth = "140px " bg = "#651FFF" >
147+ < StyledButton variant = "primary" minWidth = "168px " bg = "#651FFF" >
131148 Examples
132149 </ StyledButton >
133150 </ Box >
@@ -181,7 +198,7 @@ export default function HomeBody() {
181198 </ Text >
182199 </ SubContainer >
183200 </ Flex >
184- < StyledButton variant = "tertiary" mt = "8" minWidth = "140px " >
201+ < StyledButton variant = "tertiary" mt = "8" minWidth = "168px " >
185202 Get Started
186203 </ StyledButton >
187204 </ Flex >
@@ -191,25 +208,17 @@ export default function HomeBody() {
191208 < Flex
192209 maxWidth = "900px"
193210 mx = "auto"
194- py = "16 "
211+ py = "20 "
195212 className = "flex-col items-start"
196213 >
197- < Heading
198- as = "h4"
199- fontSize = "46px"
200- mb = "4"
201- fontWeight = "400"
202- fontFamily = "Tiempos-Headline"
203- >
204- Accessibility for all
205- </ Heading >
206- < Text color = "secondary" fontSize = "lg" fontFamily = "Roboto" >
214+ < MainHeading as = "h4" > Accessibility for all</ MainHeading >
215+ < MainText color = "secondary" fontSize = "lg" fontFamily = "Roboto" >
207216 We believe that accessible apps should be the standard. In this
208217 library, we try to leverage the great work in Reach UI as a
209218 foundation for making our components as WAI-ARIA compliant as
210219 possible.
211- </ Text >
212- < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "140px " >
220+ </ MainText >
221+ < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "168px " >
213222 Learn more
214223 </ Button >
215224 < Flex width = "100%" mt = "8" className = "flex-col md:flex-row" >
@@ -254,26 +263,17 @@ export default function HomeBody() {
254263 < Flex
255264 maxWidth = "900px"
256265 mx = "auto"
257- py = "16 "
266+ py = "20 "
258267 className = "flex-col items-start"
259268 >
260- < Heading
261- as = "h4"
262- fontSize = "46px"
263- mb = "6"
264- fontWeight = "400"
265- fontFamily = "Tiempos-Headline"
266- lineHeight = "1"
267- >
268- Built by developers, for developers
269- </ Heading >
270- < Text color = "secondary" fontSize = "lg" fontFamily = "Roboto" >
269+ < MainHeading as = "h4" > Built by developers, for developers</ MainHeading >
270+ < MainText color = "secondary" fontSize = "lg" fontFamily = "Roboto" >
271271 Whether you’re working on a solo project and need components with
272272 solid design, or you’re building an app for a client and need to
273273 move faster using a reliable component foundation—Minerva UI was
274274 built to make your life as a developer easier.
275- </ Text >
276- < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "140px " >
275+ </ MainText >
276+ < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "168px " >
277277 Learn more
278278 </ Button >
279279 < Flex
@@ -326,32 +326,26 @@ export default function HomeBody() {
326326 < Flex
327327 maxWidth = "900px"
328328 mx = "auto"
329- py = "16 "
329+ py = "20 "
330330 className = "flex-col items-start"
331331 >
332- < Heading
333- as = "h4"
334- fontSize = "46px"
335- mb = "6"
336- fontWeight = "400"
337- fontFamily = "Tiempos-Headline"
338- lineHeight = "1"
339- >
340- Delightfully designed
341- </ Heading >
342- < Text color = "secondary" fontSize = "lg" fontFamily = "Roboto" >
332+ < MainHeading as = "h4" > Delightfully designed</ MainHeading >
333+ < MainText color = "secondary" fontSize = "lg" fontFamily = "Roboto" >
343334 Backed by simple, clean code, each component has a corresponding
344335 element in our Figma design system allowing product designers and
345336 developers to make product magic happen with the tiniest margin of
346337 error possible.
347- </ Text >
348- < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "140px " >
338+ </ MainText >
339+ < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "168px " >
349340 Check out the Figma components
350341 </ Button >
351342 < Flex width = "100%" mt = "8" className = "flex-col lg:flex-row" >
352343 < TableExample />
353344
354- < SnippetContainer width = "100%" className = "ml-0 mt-4 lg:ml-8 lg:mt-0" >
345+ < SnippetContainer
346+ width = "100%"
347+ className = "ml-0 mt-4 lg:ml-8 lg:mt-0"
348+ >
355349 < CodeSnippet
356350 snippetBackground = "#F7F4FF"
357351 style = { { fontSize : '12px' } }
@@ -367,24 +361,16 @@ export default function HomeBody() {
367361 < Flex
368362 maxWidth = "900px"
369363 mx = "auto"
370- py = "16 "
364+ py = "20 "
371365 className = "flex-col items-start"
372366 >
373- < Heading
374- as = "h4"
375- fontSize = "46px"
376- mb = "2"
377- fontWeight = "400"
378- fontFamily = "Tiempos-Headline"
379- >
380- Globally themed
381- </ Heading >
382- < Text
367+ < MainHeading as = "h4" > Globally themed</ MainHeading >
368+ < MainText
383369 color = "secondary"
384370 fontSize = "lg"
385371 fontFamily = "Roboto"
386- > { `Each component is styled, giving you the opportunity to start your project quickly. Using our >defaultTheme<, you’re able to overwrite and manually style each component in the library as needed.` } </ Text >
387- < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "140px " >
372+ > { `Each component is styled, giving you the opportunity to start your project quickly. Using our >defaultTheme<, you’re able to overwrite and manually style each component in the library as needed.` } </ MainText >
373+ < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "168px " >
388374 Learn more
389375 </ Button >
390376 < Flex width = "100%" mt = "8" className = "flex-col-reverse md:flex-row" >
@@ -455,24 +441,16 @@ export default function HomeBody() {
455441 < Flex
456442 maxWidth = "900px"
457443 mx = "auto"
458- py = "16 "
444+ py = "20 "
459445 className = "flex-col items-start"
460446 >
461- < Heading
462- as = "h4"
463- fontSize = "46px"
464- mb = "2"
465- fontWeight = "400"
466- fontFamily = "Tiempos-Headline"
467- >
468- Fully customizable
469- </ Heading >
470- < Text color = "secondary" fontSize = "lg" fontFamily = "Roboto" >
447+ < MainHeading as = "h4" > Fully customizable</ MainHeading >
448+ < MainText color = "secondary" fontSize = "lg" fontFamily = "Roboto" >
471449 Minerva UI is built to give the developers flexibility and speed.
472450 Our components are unopinionated, allowing you to build custom
473451 designs without excess CSS.
474- </ Text >
475- < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "140px " >
452+ </ MainText >
453+ < Button variant = "tertiary" mb = "8" mt = "6" minWidth = "168px " >
476454 Learn more
477455 </ Button >
478456 < Flex width = "100%" mt = "8" className = "flex-col lg:flex-row" >
0 commit comments