Skip to content

Commit

Permalink
fix heading style
Browse files Browse the repository at this point in the history
  • Loading branch information
Екатерина Заславская committed Jul 7, 2021
1 parent afa51dc commit 2969ce5
Showing 1 changed file with 56 additions and 23 deletions.
79 changes: 56 additions & 23 deletions src/ui/hero-main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,74 @@ export const HeroMain: React.FC = () => {
{language === 'English' ? (
<>
<div className='u-flex-column'>
<h2
className='p-2 white u-inline-block'
style={{
background:
'linear-gradient(to right, rgb(16,98,254), rgb(74, 0, 224))',
borderRadius: '5px',
}}
>
{textMainPageEng.t1}
<h2 className='white'>
<span
style={{
backgroundColor: 'rgb(16,98,254)',
boxShadow:
'0.50em 0 0 rgb(16,98,254), -0.50em 0 0 rgb(16,98,254)',
boxDecorationBreak: 'clone',
lineHeight: 2.5,
display: 'inline',
padding: '0.2em 0em',
}}
>
{textMainPageEng.t1}
</span>
</h2>
</div>
<div className='u-flex-column'>
<h2 className='py-2 white u-inline-block'>
{textMainPageEng.t2}
<h2 className='white'>
<span
style={{
backgroundColor: 'rgb(16,98,254)',
boxShadow:
'0.50em 0 0 rgb(16,98,254), -0.50em 0 0 rgb(16,98,254)',
boxDecorationBreak: 'clone',
lineHeight: 2.5,
display: 'inline',
padding: '0.2em 0em',
}}
>
{textMainPageEng.t2}
</span>
</h2>
</div>
</>
) : (
<>
<div className='u-flex-column'>
<h2
className='p-2 white u-inline-block'
style={{
background: `linear-gradient(to right, rgb(16,98,254), rgb(74, 0, 224))`,
borderRadius: '5px',
backgroundRepeat: 'repeat',
backgroundSize: 'cover',
}}
>
{textMainPageRu.t1}
<h2 className='white'>
<span
style={{
backgroundColor: 'rgb(16,98,254)',
boxShadow:
'0.50em 0 0 rgb(16,98,254), -0.50em 0 0 rgb(16,98,254)',
boxDecorationBreak: 'clone',
lineHeight: 2.5,
display: 'inline',
padding: '0.2em 0em',
}}
>
{textMainPageRu.t1}
</span>
</h2>
</div>
<div className='u-flex-column'>
<h2 className='py-2 white u-inline-block'>
{textMainPageRu.t2}
<h2 className='white'>
<span
style={{
backgroundColor: 'rgb(16,98,254)',
boxShadow:
'0.50em 0 0 rgb(16,98,254), -0.50em 0 0 rgb(16,98,254)',
boxDecorationBreak: 'clone',
lineHeight: 2.5,
display: 'inline',
padding: '0.2em 0em',
}}
>
{textMainPageRu.t2}
</span>
</h2>
</div>
</>
Expand Down

0 comments on commit 2969ce5

Please sign in to comment.