-
Notifications
You must be signed in to change notification settings - Fork 423
/
Copy pathhero.js
69 lines (68 loc) · 2.34 KB
/
hero.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import {Text, Box, Heading, ThemeProvider, Link} from '@primer/react'
import React from 'react'
import {Container} from '@primer/gatsby-theme-doctocat'
export default function Hero() {
return (
<ThemeProvider colorMode="night" nightScheme="dark_dimmed">
<Box pt={3}>
<Container>
{/* Temporary banner before site is decomissioned, it is intended to mirror the Note component that shows up on component pages */}
<Box
sx={{
backgroundColor: '#ddf4ff', //bgColor-accent-muted
borderColor: '#54aeff66', //borderColor-accent-muted
borderLeftWidth: '6px',
borderLeftStyle: 'solid',
borderStyle: 'solid',
borderRightWidth: '0',
borderTopWidth: '0',
borderBottomWidth: 0,
padding: 3,
borderRadius: 2,
marginBottom: 3,
}}
>
<Text sx={{display: 'block'}}>
🎉 👀 New look, same Primer!{' '}
<Link
href="https://primer-docs-preview.github.com"
target="_blank"
sx={{
color: '#0969da !important',
}}
>
Preview the new docs experience here
</Link>{' '}
and let us know what you think.
</Text>
</Box>
<Box
sx={{
display: 'flex',
gap: '64px',
align: 'center',
img: {
display: 'none',
'@media screen and (min-width: 768px)': {display: 'block'},
},
}}
>
<div>
<Heading sx={{fontSize: 7, lineHeight: 'condensed', pb: 3, mt: 5}}>Primer Design System</Heading>
<Text as="p" sx={{m: 0, fontSize: 3, pb: 0}}>
Primer is a set of guidelines, principles, and patterns for designing and building UI at GitHub.
</Text>
</div>
<img
role="presentation"
alt="Mona illustration"
width="250"
height="202"
src="https://github.com/user-attachments/assets/3a52cf63-82b6-4c46-98db-da3d70e4a115"
/>
</Box>
</Container>
</Box>
</ThemeProvider>
)
}