Skip to content

Commit

Permalink
feat: add adobe preset
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanRodrickson committed Apr 23, 2020
1 parent 6e48312 commit 04b81a1
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
69 changes: 69 additions & 0 deletions src/components/presets/adobe.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/* eslint-disable no-use-before-define */

import Inline from '../inline.macro'
import { Link, Flex, Image, Box, Text } from './scope'

const code = (
<Inline>
<>
<Box
sx={{
display: 'grid',
placeItems: 'center'
}}
>
<Box
css={`
border: 10px solid;
border-image-source: linear-gradient(
to right,
rgb(247, 102, 152) 0%,
rgb(234, 64, 123) 29%,
rgb(101, 78, 163) 100%
);
border-image-slice: 1;
`}
sx={{
bg: 'white',
padding: '30px'
}}
>
<Link
href='https://fonts.googleapis.com/css2?family=Merriweather:wght@400;900&display=swap'
rel='stylesheet'
/>
<Text
css={`
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
`}
sx={{
pt: 4,
pb: 5,
fontSize: 7,
background:
'linear-gradient(to right, rgb(247, 102, 152) 0%, rgb(234, 64, 123) 29%, rgb(101, 78, 163) 100%);',
lineHeight: 1.4,
fontWeight: '900',
fontFamily: 'Merriweather',
maxWidth: '36rem',
bg: 'white'
}}
children={query.title}
/>
<Flex
sx={{
justifyContent: 'space-between'
}}
></Flex>
</Box>
</Box>
</>
</Inline>
)

const query = {
title: 'Craft quality editorial flows in Premier Pro'
}

export default { name: 'adobe', code, query }
2 changes: 2 additions & 0 deletions src/components/presets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import simple from './simple'
import swyxdotio from './swyxdotio'
import thePracticalDev from './thepracticaldev'
import vercell from './vercell'
import adobe from './adobe'

export default {
article,
Expand All @@ -21,5 +22,6 @@ export default {
simple,
swyxdotio,
thePracticalDev,
adobe,
vercell
}

0 comments on commit 04b81a1

Please sign in to comment.